diff --git a/www/4503.b2250dc8ab065fe0.js b/www/4503.5b8c6e9bf02d0b2a.js similarity index 70% rename from www/4503.b2250dc8ab065fe0.js rename to www/4503.5b8c6e9bf02d0b2a.js index ebd06da..ef0029e 100644 --- a/www/4503.b2250dc8ab065fe0.js +++ b/www/4503.5b8c6e9bf02d0b2a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4503],{334:(E,b,u)=>{u.d(b,{s3:()=>h});const h=(0,u(5083).F3)("Keyboard")},4503:(E,b,u)=>{u.d(b,{b:()=>ne});var m=u(467),e=u(4438),f=u(8974),h=u(334),p=u(2739),I=u(5293),S=u(6421),A=u(446),v=u(2904),R=u(5402),G=u(5173),j=u(4517),C=u(177),D=u(9417);const w=["recordbtn"];function L(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-button",22),e.bIt("click",function(){e.eBV(o);const n=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.readmore(n))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"Read more...")))}function N(s,c){1&s&&e.nrm(0,"img",29)}function $(s,c){1&s&&e.nrm(0,"img",30)}function F(s,c){if(1&s){const o=e.RV6();e.j41(0,"div",23),e.bIt("click",function(){e.eBV(o);const n=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.playFile(n))}),e.j41(1,"div",24),e.DNE(2,N,1,0,"img",25)(3,$,1,0,"img",26),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div",27),e.nrm(7,"img",28)(8,"img",28),e.k0s()()}if(2&s){const o=e.XpG(2).$implicit;e.R7$(2),e.Y8G("ngIf",!(null!=o&&null!=o.audio&&o.audio.play)),e.R7$(),e.Y8G("ngIf",null==o||null==o.audio?null:o.audio.play),e.R7$(2),e.JRh(null==o||null==o.audio?null:o.audio.duration)}}function X(s,c){if(1&s&&(e.j41(0,"ion-text",31),e.EFF(1),e.k0s()),2&s){const o=e.XpG(2).$implicit;e.R7$(),e.JRh(null==o?null:o.time)}}function U(s,c){if(1&s&&(e.j41(0,"div",9),e.nrm(1,"ion-text",18),e.DNE(2,L,3,3,"ion-button",19)(3,F,9,3,"div",20)(4,X,2,1,"ion-text",21),e.k0s()),2&s){const o=e.XpG(),t=o.$implicit,n=o.index;e.ZvI("bot-content__message ",null==t?null:t.type,""),e.Y8G("ngClass",0!==n?"msg-block":""),e.R7$(),e.Y8G("innerHTML",t.displayMsg,e.npT),e.R7$(),e.Y8G("ngIf",null==t?null:t.readMore),e.R7$(),e.Y8G("ngIf","audio"==(null==t?null:t.messageType)),e.R7$(),e.Y8G("ngIf",null==t?null:t.time)}}function Y(s,c){1&s&&e.nrm(0,"ion-icon",38)}function V(s,c){1&s&&e.nrm(0,"ion-icon",39)}function W(s,c){1&s&&e.nrm(0,"ion-icon",38)}function K(s,c){1&s&&e.nrm(0,"ion-icon",40)}function H(s,c){if(1&s){const o=e.RV6();e.j41(0,"div",32)(1,"div",33),e.bIt("click",function(){e.eBV(o);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.msgLiked(n,"like"))}),e.DNE(2,Y,1,0,"ion-icon",34)(3,V,1,0,"ion-icon",35),e.k0s(),e.j41(4,"div",36),e.bIt("click",function(){e.eBV(o);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.msgLiked(n,"dislike"))}),e.DNE(5,W,1,0,"ion-icon",34)(6,K,1,0,"ion-icon",37),e.k0s()()}if(2&s){const o=e.XpG().$implicit;e.R7$(2),e.Y8G("ngIf",!o.likeMsg),e.R7$(),e.Y8G("ngIf",o.likeMsg),e.R7$(2),e.Y8G("ngIf",!o.dislikeMsg),e.R7$(),e.Y8G("ngIf",o.dislikeMsg)}}function J(s,c){if(1&s&&(e.j41(0,"div"),e.DNE(1,U,5,8,"div",16)(2,H,7,4,"div",17),e.k0s()),2&s){const o=c.$implicit,t=c.index;e.R7$(),e.Y8G("ngIf",""!==(null==o?null:o.type)),e.R7$(),e.Y8G("ngIf","received"===(null==o?null:o.type)&&0!==t&&o.timeStamp&&!(null!=o&&null!=o.audio&&o.audio.file)&&"An unknown error occured, please try after sometime"!==o.message)}}function q(s,c){if(1&s&&(e.j41(0,"div",14),e.DNE(1,J,3,2,"div",15),e.k0s()),2&s){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.botMessages)}}function Z(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-input",41,2),e.nI1(2,"translate"),e.bIt("keyup.enter",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.handleMessage())}),e.mxI("ngModelChange",function(n){e.eBV(o);const i=e.XpG();return e.DH7(i.textMessage,n)||(i.textMessage=n),e.Njj(n)}),e.bIt("focus",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.scrollToBottom())})("ionFocus",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.scrollToBottom())})("ionBlur",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.onInputBlur())}),e.k0s()}if(2&s){const o=e.XpG();e.Y8G("disabled",o.disabled)("placeholder",e.bMT(2,3,"Type here")),e.R50("ngModel",o.textMessage)}}function z(s,c){if(1&s&&(e.j41(0,"div",42),e.nrm(1,"ion-icon",43),e.j41(2,"ion-label"),e.EFF(3),e.k0s()()),2&s){const o=e.XpG();e.R7$(3),e.JRh(o.durationDisplay)}}function Q(s,c){1&s&&(e.j41(0,"ion-label",44)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&s&&(e.R7$(2),e.SpI(" << ",e.bMT(3,1,"Swipe left to cancel"),""))}function ee(s,c){1&s&&e.nrm(0,"ion-icon",45)}function te(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-icon",46),e.bIt("click",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.handleMessage())}),e.k0s()}}let ne=(()=>{var s;class c{constructor(t,n,i,r,a,d,l,g){this.record=t,this.ngZone=n,this.headerService=i,this.messageApi=r,this.translate=a,this.telemetryGeneratorService=d,this.storage=l,this.platform=g,this.botMessages=[],this.textMessage="",this.botStartTimeStamp=Date.now(),this.config={},this.botMessageEvent=new e.bkB,this.navigated=!1,this.startRecording=!1,this.duration=0,this.durationDisplay="",this.disabled=!1,this.keyboardOpen=!1,this.keyboardHeight=0,this.temp="",this.language="",this.isTitleChanged=!1,this.defaultLoaderMsg={identifier:"",message:this.translate.instant("Loading...."),messageType:"text",displayMsg:this.translate.instant("Loading..."),type:"received",time:"",timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""},this.botMessages=[],this.audioRef=new Audio,A.g.then(M=>{this.configVariables=M}).catch(M=>{console.error("Failed to load configuration:",M)})}ngOnInit(){var t=this;this.initialiseBot(),this.platform.backButton.subscribeWithPriority(11,(0,m.A)(function*(){t.handleBackNavigation()})),this.headerService.headerEventEmitted$.subscribe(n=>{"back"==n&&!this.navigated&&(this.navigated=!0,this.handleBackNavigation())}),h.s3.addListener("keyboardWillShow",n=>{this.keyboardHeight=n.keyboardHeight,this.adjustForKeyboard()}),h.s3.addListener("keyboardWillHide",()=>{this.keyboardHeight=0,this.adjustForKeyboard()}),this.record.startEndEvent$.subscribe(n=>{this.ngZone.run(()=>{this.startRecording=n,this.calculation()})}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.audioRef&&(this.botMessages.forEach(n=>{n.audio&&(n.audio.play=!1)}),this.audioRef.pause())})}adjustForKeyboard(){const t=document.querySelector("ion-footer");t&&(t.style.marginBottom=`${this.keyboardHeight}px`);const n=document.querySelector("ion-content");n&&(n.style.bottom=`${this.keyboardHeight}px`),this.scrollToBottom()}scrollToBottom(){this.keyboardOpen=!0,setTimeout(()=>{this.content.scrollToBottom(300)},100)}ngOnChanges(){var t,n;null!==(t=this.config)&&void 0!==t&&t.notification&&null!==(n=this.config)&&void 0!==n&&null!==(n=n.notif)&&void 0!==n&&n.body&&(this.textMessage=this.config.notif.body,this.handleMessage())}onInputFocus(){this.keyboardOpen=!0,h.s3.addListener("keyboardWillShow",()=>{setTimeout(()=>this.scrollToBottom(),300)})}onInputBlur(){this.keyboardOpen=!1,h.s3.removeAllListeners()}ngOnDestroy(){h.s3.removeAllListeners(),this.handleBackNavigation()}ionViewWillEnter(){this.botMessages=[],this.navigated=!1}ngAfterViewInit(){this.record.gestureControl(this.recordbtn)}initialiseBot(){var t=this;return(0,m.A)(function*(){t.botMessages=[];let i,n="";t.language=(yield t.storage.getData("lang"))||"en",t.isTitleChanged=t.configVariables.titleCode.includes(t.language),"story"==t.config.type?n=t.isTitleChanged?t.configVariables[t.language].kathaSakhiBotName:" Katha Sakhi":"parent"==t.config.type?n=t.isTitleChanged?t.configVariables[t.language].parentTaraBotName:"Parent Tara":"teacher"==t.config.type&&(n=t.isTitleChanged?t.configVariables[t.language].teacherTaraBotName:"Teacher Tara"),t.translate.get(`WELCOME_TO_${t.config.type.toUpperCase()}_SAKHI`).subscribe(r=>{i=r.replace("${botName}",n)}),0===t.botMessages.length&&t.botMessages.push({messageType:"text",displayMsg:i,type:"received"}),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),yield t.messageApi.getAllChatMessages(t.config.type).then(r=>{r.forEach(a=>{var d;let l={identifier:"",message:"",messageType:"",type:"",displayMsg:"",audio:{file:"",duration:"",play:!1},time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};var g;l.message=a.message,l.identifier=a.identifier,a.message.length>200&&a.message.length-200>100?(l.displayMsg=a.message.substring(0,200),l.readMore=!0):(l.displayMsg=a.message.substring(0,200),l.readMore=!1),l.messageType=a.messageType,l.type=0===a.fromMe?"received":"sent",l.time=new Date(JSON.parse(a.ts)).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),l.timeStamp=a.ts,l.requestId=null!==(d=a.requestId)&&void 0!==d?d:"",l.likeMsg=1==a.reaction,l.dislikeMsg=0==a.reaction,"audio"==a.messageType&&(l.audio.file="sent"==l.type?a.mediaData:a.mediaUrl,l.audio.duration=null!==(g=a.duration)&&void 0!==g?g:""),t.botMessages.push(l)})}),t.config.notif&&(t.textMessage=t.config.notif.body,t.handleMessage())})()}handleMessage(){var t=this;return(0,m.A)(function*(){t.ngZone.run(()=>{t.chat={identifier:"",message:"",messageType:"text",type:"sent",displayMsg:"",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""},t.textMessage.replace(/\s/g,"").length>0&&(h.s3.hide(),t.chat.message=t.textMessage,t.chat.displayMsg=t.textMessage,t.chat.timeStamp=Date.now(),t.botMessages.push(t.chat),t.saveChatMessage(t.chat),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),t.botMessages=JSON.parse(JSON.stringify(t.botMessages)),t.botMessages.push(t.defaultLoaderMsg),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}))}),yield t.makeBotAPICall(t.textMessage,"")})()}saveChatMessage(t){const n={identifier:(0,S.A)(),message:t.message,botType:this.config.type,fromMe:"sent"==t.type?1:0,messageType:t.messageType,mediaMimeType:t.messageType,mediaData:"sent"==t.type&&"audio"==t.messageType?t.audio.file:"",mediaUrl:"received"==t.type&&"audio"==t.messageType?t.audio.file:"",duration:"audio"==t.messageType?t.audio.duration:"",requestId:t.requestId,ts:t.timeStamp,reaction:-1};this.messageApi.saveChatMessage(n).then()}makeBotAPICall(t,n){var i=this;return(0,m.A)(function*(){i.textMessage="",i.disabled=!0;let r=i.botMessages.length,a=yield i.storage.getData("lang");yield i.messageApi.getBotMessage(t,n,i.config.type,a).then(d=>{i.botMessages=JSON.parse(JSON.stringify(i.botMessages)),i.botMessages.forEach(function(){var l=(0,m.A)(function*(g,M){if(200===d.responseCode){let _=d.body.result;if(M==r-1&&"received"===g.type&&(g.time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),g.timeStamp=Date.now(),g.requestId=d.requestHeaders["X-Request-ID"],null!=_&&_.output)){var T,B,k,O;if(i.disabled=!1,g.message=null===(T=_.output)||void 0===T?void 0:T.text,(null==_||null===(B=_.output)||void 0===B?void 0:B.text.length)>200&&(null==_?void 0:_.output.text.length)-200>100?(g.displayMsg=_.output.text.substring(0,200),g.readMore=!0):g.displayMsg=null===(O=_.output)||void 0===O?void 0:O.text,i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300)}),i.saveChatMessage(g),null!=_&&null!==(k=_.output)&&void 0!==k&&k.audio){var x;let ie=yield i.fetchAudioDuration(_.output.audio),y={identifier:"",message:"",messageType:"",displayMsg:"",audio:{file:"",duration:"",play:!1},type:"received",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:Date.now(),readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};y.audio={file:null===(x=_.output)||void 0===x?void 0:x.audio,duration:ie,play:!1},y.messageType="audio",i.ngZone.run(()=>{i.botMessages.push(y),i.saveChatMessage(y),i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300).then()})})}i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300).then()})}}else{var P;g.message=d.errorMesg?d.errorMesg:null!==(P=d.data)&&void 0!==P&&P.detail?d.data.detail:"An unknown error occured, please try after sometime",g.displayMsg=g.message,g.time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),g.timeStamp=Date.now(),i.saveChatMessage(g),i.disabled=!1}});return function(g,M){return l.apply(this,arguments)}}())}).catch(d=>{i.disabled=!1,i.botMessages[r-1].message="An unknown error occured, please try after sometime",i.botMessages[r-1].displayMsg="An unknown error occured, please try after sometime",i.botMessages[r-1].time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),i.botMessages[r-1].timeStamp=Date.now(),d.body.detail.length>0&&"type_error.enum"===d.body.detail[0].type&&(i.botMessages[r-1].message="Sorry, this language is not currently supported.",i.botMessages[r-1].displayMsg="Sorry, this language is not currently supported."),i.saveChatMessage(i.botMessages[r-1])})})()}readmore(t){let n=t.displayMsg,i=t.displayMsg.length;t.message!==n?(t.message.length{this.content.scrollToBottom(300).then()})):t.readMore=!1}playFile(t){var n=this;return(0,m.A)(function*(){let i=t.audio,r="";n.botMessages.forEach(a=>{var d;null!==(d=a.audio)&&void 0!==d&&d.play&&t.timeStamp!==a.timeStamp&&(a.audio.play=!1)}),"sent"===t.type?(r=`data:audio/aac;base64,${(yield p.YA.readFile({path:i.file,directory:p.__.Data})).data}`,i.play=!i.play):"received"===t.type&&(r=i.file,i.play=!i.play),n.audioRef.src="",n.audioRef.src=r,n.audioRef.load(),n.audioRef.preload="auto",n.audioRef.controls=!0,n.audioRef.oncanplaythrough=()=>{i.play?n.audioRef.play():n.audioRef.pause()},n.audioRef.ondurationchange=a=>{console.log("ondurationchange ",a)},n.audioRef.ontimeupdate=a=>{},n.audioRef.onended=()=>{i.play=!1,n.audioRef.pause()}})()}handleBackNavigation(){let t=Date.now()-this.botStartTimeStamp;if(this.botMessages.length>0){let n={audio:0,text:0};this.botMessages.forEach(i=>{"text"==i.messageType?n.text++:"audio"==i.messageType&&(n.audio++,this.audioRef&&(i.audio&&(i.audio.play=!1),this.audioRef.pause()))}),console.log("result count ",n),this.botMessageEvent.emit({audio:n.audio,text:n.text,duration:t/1e3})}else this.botMessageEvent.emit({audio:0,text:0,duration:t/1e3});this.botMessages=[]}cancelRecording(){var t=this;return(0,m.A)(function*(){yield t.record.stopRecognition("audio").then(n=>{console.log("res on recorded data ",n)}),t.startRecording=!1})()}calculation(){if(!this.startRecording)return this.duration=0,void(this.durationDisplay="");this.duration+=1;const t=Math.floor(this.duration/60),n=(this.duration%60).toString().padStart(2,"0");this.durationDisplay=`${t}:${n}`,setTimeout(()=>{this.calculation()},1e3)}onLongPressStart(){var t=this;return(0,m.A)(function*(){console.log("long press start"),(yield(yield I.R.hasAudioRecordingPermission()).value)?t.record.startRecognition(""):yield I.R.requestAudioRecordingPermission()})()}onLongPressEnd(){var t=this;return(0,m.A)(function*(){console.log("long press end"),yield t.record.stopRecognition("audio").then(function(){var n=(0,m.A)(function*(i){if(i.value&&i.value.recordDataBase64){t.chat={identifier:"",message:"",messageType:"",displayMsg:"",audio:{file:"",duration:"",play:!1},type:"sent",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};const r=i.value.recordDataBase64,a=(new Date).getTime()+".wav";yield p.YA.writeFile({path:a,directory:p.__.Data,data:r}),t.ngZone.run(()=>{t.chat.messageType="audio",t.chat.audio={file:a,base64Data:r,duration:t.getTimeString(i.value.msDuration),play:!1},t.chat.timeStamp=Date.now(),t.botMessages.push(t.chat),t.saveChatMessage(t.chat),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),t.botMessages.push(t.defaultLoaderMsg),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)})}),t.makeBotAPICall("",r)}});return function(i){return n.apply(this,arguments)}}())})()}getTimeString(t){let n=Math.floor(t/1e3/60),i=Math.floor(t/1e3-60*n);return n.toString().padStart(2,"0")+":"+i.toString().padStart(2,"0")}fetchAudioDuration(t){const n=new AudioContext;return fetch(t).then(i=>i.arrayBuffer()).then(i=>n.decodeAudioData(i)).then(i=>{const r=i.duration;return Math.floor(r/60).toString().padStart(2,"0")+":"+Math.floor(r%60).toString().padStart(2,"0")}).catch(i=>"")}msgLiked(t,n){this.botMessages.forEach((i,r)=>{if(t.timeStamp==i.timeStamp){let d={id:this.botMessages[r-1].message,type:"Request"},l=[];l.push({id:t.requestId,type:"X-Request-ID"}),"text"==this.botMessages[r-1].messageType&&l.push(d),"like"==n?(i.likeMsg=!0,i.dislikeMsg=!1,this.messageApi.updateMessageReactions(i.identifier,1),this.telemetryGeneratorService.generateInteractTelemetry("TOUCH","message-liked","bot",`${this.config.type}-sakhi`,void 0,void 0,void 0,l)):(t.dislikeMsg=!0,t.likeMsg=!1,this.messageApi.updateMessageReactions(i.identifier,0),this.telemetryGeneratorService.generateInteractTelemetry("TOUCH","message-disliked","bot",`${this.config.type}-sakhi`,void 0,void 0,void 0,l))}})}}return(s=c).\u0275fac=function(t){return new(t||s)(e.rXU(v.XI),e.rXU(e.SKi),e.rXU(v.Ux),e.rXU(v.F_),e.rXU(R.c$),e.rXU(G.O),e.rXU(v.n$),e.rXU(j.OD))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-bot-messages"]],viewQuery:function(t,n){if(1&t&&(e.GBs(w,5,e.aKT),e.GBs(f.W9,7)),2&t){let i;e.mGM(i=e.lsd())&&(n.recordbtn=i.first),e.mGM(i=e.lsd())&&(n.content=i.first)}},inputs:{config:"config"},outputs:{botMessageEvent:"botMessageEvent"},features:[e.OA$],decls:13,vars:11,consts:[["content",""],["recordbtn",""],["textareaField",""],["id","content",3,"fullscreen","scrollEvents"],["class","bot-content",4,"ngIf"],[2,"background-color","white"],[1,"bot-input",3,"ngClass"],["aria-label","","value","","fill","outline","shape","round",3,"disabled","placeholder","ngModel","keyup.enter","ngModelChange","focus","ionFocus","ionBlur",4,"ngIf"],["class","input_record",4,"ngIf"],[3,"ngClass"],["class","cancel-record",4,"ngIf"],["fill","clear","size","small",3,"touchstart","touchend","disabled"],["aria-hidden","true","class","audio-record-mic right icon","src","assets/icon/bot-audio.svg",4,"ngIf"],["class","audio-record-mic right icon","name","send",3,"click",4,"ngIf"],[1,"bot-content"],[4,"ngFor","ngForOf"],[3,"class","ngClass",4,"ngIf"],["class","action-div",4,"ngIf"],[3,"innerHTML"],["fill","clear","size","small",3,"click",4,"ngIf"],["class","audio_msg",3,"click",4,"ngIf"],["class","time",4,"ngIf"],["fill","clear","size","small",3,"click"],[1,"audio_msg",3,"click"],[1,"play_audio"],["src","../../../assets/icon/play.svg","alt","",4,"ngIf"],["src","../../../assets/icon/pause.svg","alt","",4,"ngIf"],[1,"audio-wave"],["src","../../../assets/icon/waveform.svg","alt",""],["src","../../../assets/icon/play.svg","alt",""],["src","../../../assets/icon/pause.svg","alt",""],[1,"time"],[1,"action-div"],[1,"action_button",3,"click"],["class","like","aria-hidden","true","src","assets/icon/thumb-up.svg",4,"ngIf"],["aria-hidden","true","src","assets/icon/like.svg",4,"ngIf"],[1,"action_button","unlike",3,"click"],["aria-hidden","true","src","assets/icon/dislike.svg",4,"ngIf"],["aria-hidden","true","src","assets/icon/thumb-up.svg",1,"like"],["aria-hidden","true","src","assets/icon/like.svg"],["aria-hidden","true","src","assets/icon/dislike.svg"],["aria-label","","value","","fill","outline","shape","round",3,"keyup.enter","ngModelChange","focus","ionFocus","ionBlur","disabled","placeholder","ngModel"],[1,"input_record"],["aria-hidden","true","name","mic",1,"audio-record-mic","on-record"],[1,"cancel-record"],["aria-hidden","true","src","assets/icon/bot-audio.svg",1,"audio-record-mic","right","icon"],["name","send",1,"audio-record-mic","right","icon",3,"click"]],template:function(t,n){if(1&t){const i=e.RV6();e.j41(0,"ion-content",3,0),e.DNE(2,q,2,1,"div",4),e.k0s(),e.j41(3,"ion-footer",5)(4,"div",6),e.DNE(5,Z,3,5,"ion-input",7)(6,z,4,1,"div",8),e.j41(7,"div",9,1),e.DNE(9,Q,4,3,"ion-label",10),e.j41(10,"ion-button",11),e.bIt("touchstart",function(){return e.eBV(i),e.Njj(n.onLongPressStart())})("touchend",function(){return e.eBV(i),e.Njj(n.onLongPressEnd())}),e.DNE(11,ee,1,0,"ion-icon",12),e.k0s()(),e.DNE(12,te,1,0,"ion-icon",13),e.k0s()()}2&t&&(e.Y8G("fullscreen",!0)("scrollEvents",!0),e.R7$(2),e.Y8G("ngIf",n.botMessages.length>0),e.R7$(2),e.Y8G("ngClass",n.keyboardOpen?"keyboard-open":"keyboard-closed"),e.R7$(),e.Y8G("ngIf",!n.startRecording),e.R7$(),e.Y8G("ngIf",n.startRecording),e.R7$(),e.Y8G("ngClass",n.startRecording?"cancel-div":""),e.R7$(2),e.Y8G("ngIf",n.startRecording),e.R7$(),e.Y8G("disabled",n.disabled),e.R7$(),e.Y8G("ngIf",0==n.textMessage.length),e.R7$(),e.Y8G("ngIf",n.textMessage.length>0))},dependencies:[C.YU,C.Sq,C.bT,D.BC,D.vS,f.Jm,f.W9,f.M0,f.iq,f.$w,f.he,f.IO,f.Gw,R.D9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0px;height:90%}.bot-content[_ngcontent-%COMP%]{padding:1rem;overflow:auto}.bot-content[_ngcontent-%COMP%] .msg-block[_ngcontent-%COMP%]{margin-top:1rem}.bot-content__message[_ngcontent-%COMP%]{line-height:normal;letter-spacing:-.3px;background:var(--ion-color-primary-contrast);padding:1rem 1rem 10px;max-width:80%;position:relative;width:-moz-fit-content;width:fit-content;box-shadow:0 .25rem .25rem #0000000d;white-space:pre-line}.bot-content__message[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{display:flex}.bot-content__message[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{color:#00000040;display:flex;justify-content:flex-end;font-size:.688rem;letter-spacing:.031rem;padding-top:.25rem}.bot-content__message.received[_ngcontent-%COMP%]{border-radius:1rem 1rem 1rem 0px}.bot-content__message.sent[_ngcontent-%COMP%]{background:#dcf7c5;margin-left:auto;border-radius:1rem 1rem 0px}.bot-input[_ngcontent-%COMP%]{bottom:0;width:100%;padding:1rem;background:var(--ion-color-primary-contrast);box-shadow:0 -.33px #a6a6aa;display:flex;align-items:center}.bot-input[_ngcontent-%COMP%] ion-textarea[_ngcontent-%COMP%]{width:90%}.bot-input[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0}.bot-input[_ngcontent-%COMP%] .input_record[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.bot-input[_ngcontent-%COMP%] .input_record[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin-left:1rem}.bot-input[_ngcontent-%COMP%] .cancel-div[_ngcontent-%COMP%]{display:flex;width:100%;margin-left:1rem;align-items:center}.bot-input[_ngcontent-%COMP%] .cancel-record[_ngcontent-%COMP%]{width:90%}.bot-input[_ngcontent-%COMP%] .audio-record-mic[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;fill:var(--ion-color-medium)}.bot-input[_ngcontent-%COMP%] .on-record[_ngcontent-%COMP%]{fill:var(--ion-color-primary)!important}.bot-input[_ngcontent-%COMP%] .sc-ion-input-md-h[_ngcontent-%COMP%]{height:2.25rem;min-height:auto;padding:0 .5rem!important;--border-color: gray;caret-color:gray!important;--highlight-color: gray !important;--highlight-color-focused: gray !important}.bot-input[_ngcontent-%COMP%] .keyboard-open[_ngcontent-%COMP%], .keyboard-open[_ngcontent-%COMP%]{transform:translateY(-50%)}.audio_msg[_ngcontent-%COMP%]{display:flex;background:#c6dfc6;padding:5px;border-radius:10px}.audio_msg[_ngcontent-%COMP%] .play_audio[_ngcontent-%COMP%]{display:flex;flex-direction:column}.audio_msg[_ngcontent-%COMP%] .play_audio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:8px;text-align:center}.audio_msg[_ngcontent-%COMP%] .audio-wave[_ngcontent-%COMP%]{padding-left:5px}.audio_msg[_ngcontent-%COMP%] .audio-wave[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.audio_msg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px}.action-div[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem;margin-top:-.6rem;margin-left:.3rem}.action_button[_ngcontent-%COMP%]{padding:.1rem .5rem;width:-moz-fit-content;width:fit-content;box-shadow:0 .25rem .25rem #0000000d;white-space:pre-line;border-radius:16px;background:#fff;border:.1px solid grey;transform:scale(1)}.unlike[_ngcontent-%COMP%]{transform:scale(-1);margin-left:.75rem!important}ion-content[_ngcontent-%COMP%]{--padding-bottom: 60px}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{flex:1}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin-left:10px}"]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4503],{334:(E,b,u)=>{u.d(b,{s3:()=>h});const h=(0,u(5083).F3)("Keyboard")},4503:(E,b,u)=>{u.d(b,{b:()=>ne});var m=u(467),e=u(4438),f=u(8974),h=u(334),p=u(2739),I=u(5293),S=u(6421),A=u(446),v=u(2904),R=u(5402),G=u(5173),j=u(4517),C=u(177),D=u(9417);const w=["recordbtn"];function L(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-button",22),e.bIt("click",function(){e.eBV(o);const n=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.readmore(n))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"Read more...")))}function N(s,c){1&s&&e.nrm(0,"img",29)}function $(s,c){1&s&&e.nrm(0,"img",30)}function F(s,c){if(1&s){const o=e.RV6();e.j41(0,"div",23),e.bIt("click",function(){e.eBV(o);const n=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.playFile(n))}),e.j41(1,"div",24),e.DNE(2,N,1,0,"img",25)(3,$,1,0,"img",26),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div",27),e.nrm(7,"img",28)(8,"img",28),e.k0s()()}if(2&s){const o=e.XpG(2).$implicit;e.R7$(2),e.Y8G("ngIf",!(null!=o&&null!=o.audio&&o.audio.play)),e.R7$(),e.Y8G("ngIf",null==o||null==o.audio?null:o.audio.play),e.R7$(2),e.JRh(null==o||null==o.audio?null:o.audio.duration)}}function V(s,c){if(1&s&&(e.j41(0,"ion-text",31),e.EFF(1),e.k0s()),2&s){const o=e.XpG(2).$implicit;e.R7$(),e.JRh(null==o?null:o.time)}}function X(s,c){if(1&s&&(e.j41(0,"div",9),e.nrm(1,"ion-text",18),e.DNE(2,L,3,3,"ion-button",19)(3,F,9,3,"div",20)(4,V,2,1,"ion-text",21),e.k0s()),2&s){const o=e.XpG(),t=o.$implicit,n=o.index;e.ZvI("bot-content__message ",null==t?null:t.type,""),e.Y8G("ngClass",0!==n?"msg-block":""),e.R7$(),e.Y8G("innerHTML",t.displayMsg,e.npT),e.R7$(),e.Y8G("ngIf",null==t?null:t.readMore),e.R7$(),e.Y8G("ngIf","audio"==(null==t?null:t.messageType)),e.R7$(),e.Y8G("ngIf",null==t?null:t.time)}}function U(s,c){1&s&&e.nrm(0,"ion-icon",38)}function Y(s,c){1&s&&e.nrm(0,"ion-icon",39)}function W(s,c){1&s&&e.nrm(0,"ion-icon",38)}function K(s,c){1&s&&e.nrm(0,"ion-icon",40)}function H(s,c){if(1&s){const o=e.RV6();e.j41(0,"div",32)(1,"div",33),e.bIt("click",function(){e.eBV(o);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.msgLiked(n,"like"))}),e.DNE(2,U,1,0,"ion-icon",34)(3,Y,1,0,"ion-icon",35),e.k0s(),e.j41(4,"div",36),e.bIt("click",function(){e.eBV(o);const n=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.msgLiked(n,"dislike"))}),e.DNE(5,W,1,0,"ion-icon",34)(6,K,1,0,"ion-icon",37),e.k0s()()}if(2&s){const o=e.XpG().$implicit;e.R7$(2),e.Y8G("ngIf",!o.likeMsg),e.R7$(),e.Y8G("ngIf",o.likeMsg),e.R7$(2),e.Y8G("ngIf",!o.dislikeMsg),e.R7$(),e.Y8G("ngIf",o.dislikeMsg)}}function J(s,c){if(1&s&&(e.j41(0,"div"),e.DNE(1,X,5,8,"div",16)(2,H,7,4,"div",17),e.k0s()),2&s){const o=c.$implicit,t=c.index;e.R7$(),e.Y8G("ngIf",""!==(null==o?null:o.type)),e.R7$(),e.Y8G("ngIf","received"===(null==o?null:o.type)&&0!==t&&o.timeStamp&&!(null!=o&&null!=o.audio&&o.audio.file)&&"An unknown error occured, please try after sometime"!==o.message)}}function q(s,c){if(1&s&&(e.j41(0,"div",14),e.DNE(1,J,3,2,"div",15),e.k0s()),2&s){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.botMessages)}}function Z(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-input",41,2),e.nI1(2,"translate"),e.bIt("keyup.enter",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.handleMessage())}),e.mxI("ngModelChange",function(n){e.eBV(o);const i=e.XpG();return e.DH7(i.textMessage,n)||(i.textMessage=n),e.Njj(n)}),e.bIt("focus",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.scrollToBottom())})("ionFocus",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.scrollToBottom())})("ionBlur",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.onInputBlur())}),e.k0s()}if(2&s){const o=e.XpG();e.Y8G("disabled",o.disabled)("placeholder",e.bMT(2,3,"Type here")),e.R50("ngModel",o.textMessage)}}function z(s,c){if(1&s&&(e.j41(0,"div",42),e.nrm(1,"ion-icon",43),e.j41(2,"ion-label"),e.EFF(3),e.k0s()()),2&s){const o=e.XpG();e.R7$(3),e.JRh(o.durationDisplay)}}function Q(s,c){1&s&&(e.j41(0,"ion-label",44)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&s&&(e.R7$(2),e.SpI(" << ",e.bMT(3,1,"Swipe left to cancel"),""))}function ee(s,c){1&s&&e.nrm(0,"ion-icon",45)}function te(s,c){if(1&s){const o=e.RV6();e.j41(0,"ion-icon",46),e.bIt("click",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.handleMessage())}),e.k0s()}}let ne=(()=>{var s;class c{constructor(t,n,i,r,a,d,l,g){this.record=t,this.ngZone=n,this.headerService=i,this.messageApi=r,this.translate=a,this.telemetryGeneratorService=d,this.storage=l,this.platform=g,this.botMessages=[],this.textMessage="",this.botStartTimeStamp=Date.now(),this.config={},this.botMessageEvent=new e.bkB,this.navigated=!1,this.startRecording=!1,this.duration=0,this.durationDisplay="",this.disabled=!1,this.keyboardOpen=!1,this.keyboardHeight=0,this.temp="",this.language="",this.isTitleChanged=!1,this.defaultLoaderMsg={identifier:"",message:this.translate.instant("Loading...."),messageType:"text",displayMsg:this.translate.instant("Loading..."),type:"received",time:"",timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""},this.botMessages=[],this.audioRef=new Audio,A.g.then(M=>{this.configVariables=M}).catch(M=>{console.error("Failed to load configuration:",M)})}ngOnInit(){var t=this;this.initialiseBot(),this.platform.backButton.subscribeWithPriority(11,(0,m.A)(function*(){t.handleBackNavigation()})),this.headerService.headerEventEmitted$.subscribe(n=>{"back"==n&&!this.navigated&&(this.navigated=!0,this.handleBackNavigation())}),h.s3.addListener("keyboardWillShow",n=>{this.keyboardHeight=n.keyboardHeight,this.adjustForKeyboard()}),h.s3.addListener("keyboardWillHide",()=>{this.keyboardHeight=0,this.adjustForKeyboard()}),this.record.startEndEvent$.subscribe(n=>{this.ngZone.run(()=>{this.startRecording=n,this.calculation()})}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.audioRef&&(this.botMessages.forEach(n=>{n.audio&&(n.audio.play=!1)}),this.audioRef.pause())})}adjustForKeyboard(){const t=document.querySelector("ion-footer");t&&(t.style.marginBottom=`${this.keyboardHeight}px`);const n=document.querySelector("ion-content");n&&(n.style.bottom=`${this.keyboardHeight}px`),this.scrollToBottom()}scrollToBottom(){this.keyboardOpen=!0,setTimeout(()=>{this.content.scrollToBottom(300)},100)}ngOnChanges(){var t,n;null!==(t=this.config)&&void 0!==t&&t.notification&&null!==(n=this.config)&&void 0!==n&&null!==(n=n.notif)&&void 0!==n&&n.body&&(this.textMessage=this.config.notif.body,this.handleMessage())}onInputFocus(){this.keyboardOpen=!0,h.s3.addListener("keyboardWillShow",()=>{setTimeout(()=>this.scrollToBottom(),300)})}onInputBlur(){this.keyboardOpen=!1,h.s3.removeAllListeners()}ngOnDestroy(){h.s3.removeAllListeners(),this.handleBackNavigation()}ionViewWillEnter(){this.botMessages=[],this.navigated=!1}ngAfterViewInit(){this.record.gestureControl(this.recordbtn)}initialiseBot(){var t=this;return(0,m.A)(function*(){t.botMessages=[];let i,n="";t.language=(yield t.storage.getData("lang"))||"en",t.isTitleChanged=t.configVariables.titleCode.includes(t.language),"story"==t.config.type?n=t.isTitleChanged?t.configVariables[t.language].kathaSakhiBotName:" Katha Sakhi":"parent"==t.config.type?n=t.isTitleChanged?t.configVariables[t.language].parentTaraBotName:"Parent Tara":"teacher"==t.config.type&&(n=t.isTitleChanged?t.configVariables[t.language].teacherTaraBotName:"Teacher Tara"),"story"==t.config.type?i=t.configVariables[t.language].storyBotMsg?t.configVariables[t.language].storyBotMsg:"":"parent"==t.config.type?i=t.configVariables[t.language].parentBotMsg?t.configVariables[t.language].parentBotMsg:"":"teacher"==t.config.type&&(i=t.configVariables[t.language].teacherBotMsg?t.configVariables[t.language].teacherBotMsg:""),i||t.translate.get(`WELCOME_TO_${t.config.type.toUpperCase()}_SAKHI`).subscribe(r=>{i=r.replace("${botName}",n)}),0===t.botMessages.length&&t.botMessages.push({messageType:"text",displayMsg:i,type:"received"}),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),yield t.messageApi.getAllChatMessages(t.config.type).then(r=>{r.forEach(a=>{var d;let l={identifier:"",message:"",messageType:"",type:"",displayMsg:"",audio:{file:"",duration:"",play:!1},time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};var g;l.message=a.message,l.identifier=a.identifier,a.message.length>200&&a.message.length-200>100?(l.displayMsg=a.message.substring(0,200),l.readMore=!0):(l.displayMsg=a.message.substring(0,200),l.readMore=!1),l.messageType=a.messageType,l.type=0===a.fromMe?"received":"sent",l.time=new Date(JSON.parse(a.ts)).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),l.timeStamp=a.ts,l.requestId=null!==(d=a.requestId)&&void 0!==d?d:"",l.likeMsg=1==a.reaction,l.dislikeMsg=0==a.reaction,"audio"==a.messageType&&(l.audio.file="sent"==l.type?a.mediaData:a.mediaUrl,l.audio.duration=null!==(g=a.duration)&&void 0!==g?g:""),t.botMessages.push(l)})}),t.config.notif&&(t.textMessage=t.config.notif.body,t.handleMessage())})()}handleMessage(){var t=this;return(0,m.A)(function*(){t.ngZone.run(()=>{t.chat={identifier:"",message:"",messageType:"text",type:"sent",displayMsg:"",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""},t.textMessage.replace(/\s/g,"").length>0&&(h.s3.hide(),t.chat.message=t.textMessage,t.chat.displayMsg=t.textMessage,t.chat.timeStamp=Date.now(),t.botMessages.push(t.chat),t.saveChatMessage(t.chat),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),t.botMessages=JSON.parse(JSON.stringify(t.botMessages)),t.botMessages.push(t.defaultLoaderMsg),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}))}),yield t.makeBotAPICall(t.textMessage,"")})()}saveChatMessage(t){const n={identifier:(0,S.A)(),message:t.message,botType:this.config.type,fromMe:"sent"==t.type?1:0,messageType:t.messageType,mediaMimeType:t.messageType,mediaData:"sent"==t.type&&"audio"==t.messageType?t.audio.file:"",mediaUrl:"received"==t.type&&"audio"==t.messageType?t.audio.file:"",duration:"audio"==t.messageType?t.audio.duration:"",requestId:t.requestId,ts:t.timeStamp,reaction:-1};this.messageApi.saveChatMessage(n).then()}makeBotAPICall(t,n){var i=this;return(0,m.A)(function*(){i.textMessage="",i.disabled=!0;let r=i.botMessages.length,a=yield i.storage.getData("lang");yield i.messageApi.getBotMessage(t,n,i.config.type,a).then(d=>{i.botMessages=JSON.parse(JSON.stringify(i.botMessages)),i.botMessages.forEach(function(){var l=(0,m.A)(function*(g,M){if(200===d.responseCode){let _=d.body.result;if(M==r-1&&"received"===g.type&&(g.time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),g.timeStamp=Date.now(),g.requestId=d.requestHeaders["X-Request-ID"],null!=_&&_.output)){var T,B,k,O;if(i.disabled=!1,g.message=null===(T=_.output)||void 0===T?void 0:T.text,(null==_||null===(B=_.output)||void 0===B?void 0:B.text.length)>200&&(null==_?void 0:_.output.text.length)-200>100?(g.displayMsg=_.output.text.substring(0,200),g.readMore=!0):g.displayMsg=null===(O=_.output)||void 0===O?void 0:O.text,i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300)}),i.saveChatMessage(g),null!=_&&null!==(k=_.output)&&void 0!==k&&k.audio){var x;let ie=yield i.fetchAudioDuration(_.output.audio),y={identifier:"",message:"",messageType:"",displayMsg:"",audio:{file:"",duration:"",play:!1},type:"received",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:Date.now(),readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};y.audio={file:null===(x=_.output)||void 0===x?void 0:x.audio,duration:ie,play:!1},y.messageType="audio",i.ngZone.run(()=>{i.botMessages.push(y),i.saveChatMessage(y),i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300).then()})})}i.content.scrollToBottom(300).then(()=>{i.content.scrollToBottom(300).then()})}}else{var P;g.message=d.errorMesg?d.errorMesg:null!==(P=d.data)&&void 0!==P&&P.detail?d.data.detail:"An unknown error occured, please try after sometime",g.displayMsg=g.message,g.time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),g.timeStamp=Date.now(),i.saveChatMessage(g),i.disabled=!1}});return function(g,M){return l.apply(this,arguments)}}())}).catch(d=>{i.disabled=!1,i.botMessages[r-1].message="An unknown error occured, please try after sometime",i.botMessages[r-1].displayMsg="An unknown error occured, please try after sometime",i.botMessages[r-1].time=(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),i.botMessages[r-1].timeStamp=Date.now(),d.body.detail.length>0&&"type_error.enum"===d.body.detail[0].type&&(i.botMessages[r-1].message="Sorry, this language is not currently supported.",i.botMessages[r-1].displayMsg="Sorry, this language is not currently supported."),i.saveChatMessage(i.botMessages[r-1])})})()}readmore(t){let n=t.displayMsg,i=t.displayMsg.length;t.message!==n?(t.message.length{this.content.scrollToBottom(300).then()})):t.readMore=!1}playFile(t){var n=this;return(0,m.A)(function*(){let i=t.audio,r="";n.botMessages.forEach(a=>{var d;null!==(d=a.audio)&&void 0!==d&&d.play&&t.timeStamp!==a.timeStamp&&(a.audio.play=!1)}),"sent"===t.type?(r=`data:audio/aac;base64,${(yield p.YA.readFile({path:i.file,directory:p.__.Data})).data}`,i.play=!i.play):"received"===t.type&&(r=i.file,i.play=!i.play),n.audioRef.src="",n.audioRef.src=r,n.audioRef.load(),n.audioRef.preload="auto",n.audioRef.controls=!0,n.audioRef.oncanplaythrough=()=>{i.play?n.audioRef.play():n.audioRef.pause()},n.audioRef.ondurationchange=a=>{console.log("ondurationchange ",a)},n.audioRef.ontimeupdate=a=>{},n.audioRef.onended=()=>{i.play=!1,n.audioRef.pause()}})()}handleBackNavigation(){let t=Date.now()-this.botStartTimeStamp;if(this.botMessages.length>0){let n={audio:0,text:0};this.botMessages.forEach(i=>{"text"==i.messageType?n.text++:"audio"==i.messageType&&(n.audio++,this.audioRef&&(i.audio&&(i.audio.play=!1),this.audioRef.pause()))}),this.botMessageEvent.emit({audio:n.audio,text:n.text,duration:t/1e3})}else this.botMessageEvent.emit({audio:0,text:0,duration:t/1e3});this.botMessages=[]}cancelRecording(){var t=this;return(0,m.A)(function*(){yield t.record.stopRecognition("audio").then(n=>{console.log("res on recorded data ",n)}),t.startRecording=!1})()}calculation(){if(!this.startRecording)return this.duration=0,void(this.durationDisplay="");this.duration+=1;const t=Math.floor(this.duration/60),n=(this.duration%60).toString().padStart(2,"0");this.durationDisplay=`${t}:${n}`,setTimeout(()=>{this.calculation()},1e3)}onLongPressStart(){var t=this;return(0,m.A)(function*(){console.log("long press start"),(yield(yield I.R.hasAudioRecordingPermission()).value)?t.record.startRecognition(""):yield I.R.requestAudioRecordingPermission()})()}onLongPressEnd(){var t=this;return(0,m.A)(function*(){console.log("long press end"),yield t.record.stopRecognition("audio").then(function(){var n=(0,m.A)(function*(i){if(i.value&&i.value.recordDataBase64){t.chat={identifier:"",message:"",messageType:"",displayMsg:"",audio:{file:"",duration:"",play:!1},type:"sent",time:(new Date).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"}),timeStamp:"",readMore:!1,likeMsg:!1,dislikeMsg:!1,requestId:""};const r=i.value.recordDataBase64,a=(new Date).getTime()+".wav";yield p.YA.writeFile({path:a,directory:p.__.Data,data:r}),t.ngZone.run(()=>{t.chat.messageType="audio",t.chat.audio={file:a,base64Data:r,duration:t.getTimeString(i.value.msDuration),play:!1},t.chat.timeStamp=Date.now(),t.botMessages.push(t.chat),t.saveChatMessage(t.chat),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)}),t.botMessages.push(t.defaultLoaderMsg),t.content.scrollToBottom(300).then(()=>{t.content.scrollToBottom(300)})}),t.makeBotAPICall("",r)}});return function(i){return n.apply(this,arguments)}}())})()}getTimeString(t){let n=Math.floor(t/1e3/60),i=Math.floor(t/1e3-60*n);return n.toString().padStart(2,"0")+":"+i.toString().padStart(2,"0")}fetchAudioDuration(t){const n=new AudioContext;return fetch(t).then(i=>i.arrayBuffer()).then(i=>n.decodeAudioData(i)).then(i=>{const r=i.duration;return Math.floor(r/60).toString().padStart(2,"0")+":"+Math.floor(r%60).toString().padStart(2,"0")}).catch(i=>"")}msgLiked(t,n){this.botMessages.forEach((i,r)=>{if(t.timeStamp==i.timeStamp){let d={id:this.botMessages[r-1].message,type:"Request"},l=[];l.push({id:t.requestId,type:"X-Request-ID"}),"text"==this.botMessages[r-1].messageType&&l.push(d),"like"==n?(i.likeMsg=!0,i.dislikeMsg=!1,this.messageApi.updateMessageReactions(i.identifier,1),this.telemetryGeneratorService.generateInteractTelemetry("TOUCH","message-liked","bot",`${this.config.type}-sakhi`,void 0,void 0,void 0,l)):(t.dislikeMsg=!0,t.likeMsg=!1,this.messageApi.updateMessageReactions(i.identifier,0),this.telemetryGeneratorService.generateInteractTelemetry("TOUCH","message-disliked","bot",`${this.config.type}-sakhi`,void 0,void 0,void 0,l))}})}}return(s=c).\u0275fac=function(t){return new(t||s)(e.rXU(v.XI),e.rXU(e.SKi),e.rXU(v.Ux),e.rXU(v.F_),e.rXU(R.c$),e.rXU(G.O),e.rXU(v.n$),e.rXU(j.OD))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-bot-messages"]],viewQuery:function(t,n){if(1&t&&(e.GBs(w,5,e.aKT),e.GBs(f.W9,7)),2&t){let i;e.mGM(i=e.lsd())&&(n.recordbtn=i.first),e.mGM(i=e.lsd())&&(n.content=i.first)}},inputs:{config:"config"},outputs:{botMessageEvent:"botMessageEvent"},features:[e.OA$],decls:13,vars:11,consts:[["content",""],["recordbtn",""],["textareaField",""],["id","content",3,"fullscreen","scrollEvents"],["class","bot-content",4,"ngIf"],[2,"background-color","white"],[1,"bot-input",3,"ngClass"],["aria-label","","value","","fill","outline","shape","round",3,"disabled","placeholder","ngModel","keyup.enter","ngModelChange","focus","ionFocus","ionBlur",4,"ngIf"],["class","input_record",4,"ngIf"],[3,"ngClass"],["class","cancel-record",4,"ngIf"],["fill","clear","size","small",3,"touchstart","touchend","disabled"],["aria-hidden","true","class","audio-record-mic right icon","src","assets/icon/bot-audio.svg",4,"ngIf"],["class","audio-record-mic right icon","name","send",3,"click",4,"ngIf"],[1,"bot-content"],[4,"ngFor","ngForOf"],[3,"class","ngClass",4,"ngIf"],["class","action-div",4,"ngIf"],[3,"innerHTML"],["fill","clear","size","small",3,"click",4,"ngIf"],["class","audio_msg",3,"click",4,"ngIf"],["class","time",4,"ngIf"],["fill","clear","size","small",3,"click"],[1,"audio_msg",3,"click"],[1,"play_audio"],["src","../../../assets/icon/play.svg","alt","",4,"ngIf"],["src","../../../assets/icon/pause.svg","alt","",4,"ngIf"],[1,"audio-wave"],["src","../../../assets/icon/waveform.svg","alt",""],["src","../../../assets/icon/play.svg","alt",""],["src","../../../assets/icon/pause.svg","alt",""],[1,"time"],[1,"action-div"],[1,"action_button",3,"click"],["class","like","aria-hidden","true","src","assets/icon/thumb-up.svg",4,"ngIf"],["aria-hidden","true","src","assets/icon/like.svg",4,"ngIf"],[1,"action_button","unlike",3,"click"],["aria-hidden","true","src","assets/icon/dislike.svg",4,"ngIf"],["aria-hidden","true","src","assets/icon/thumb-up.svg",1,"like"],["aria-hidden","true","src","assets/icon/like.svg"],["aria-hidden","true","src","assets/icon/dislike.svg"],["aria-label","","value","","fill","outline","shape","round",3,"keyup.enter","ngModelChange","focus","ionFocus","ionBlur","disabled","placeholder","ngModel"],[1,"input_record"],["aria-hidden","true","name","mic",1,"audio-record-mic","on-record"],[1,"cancel-record"],["aria-hidden","true","src","assets/icon/bot-audio.svg",1,"audio-record-mic","right","icon"],["name","send",1,"audio-record-mic","right","icon",3,"click"]],template:function(t,n){if(1&t){const i=e.RV6();e.j41(0,"ion-content",3,0),e.DNE(2,q,2,1,"div",4),e.k0s(),e.j41(3,"ion-footer",5)(4,"div",6),e.DNE(5,Z,3,5,"ion-input",7)(6,z,4,1,"div",8),e.j41(7,"div",9,1),e.DNE(9,Q,4,3,"ion-label",10),e.j41(10,"ion-button",11),e.bIt("touchstart",function(){return e.eBV(i),e.Njj(n.onLongPressStart())})("touchend",function(){return e.eBV(i),e.Njj(n.onLongPressEnd())}),e.DNE(11,ee,1,0,"ion-icon",12),e.k0s()(),e.DNE(12,te,1,0,"ion-icon",13),e.k0s()()}2&t&&(e.Y8G("fullscreen",!0)("scrollEvents",!0),e.R7$(2),e.Y8G("ngIf",n.botMessages.length>0),e.R7$(2),e.Y8G("ngClass",n.keyboardOpen?"keyboard-open":"keyboard-closed"),e.R7$(),e.Y8G("ngIf",!n.startRecording),e.R7$(),e.Y8G("ngIf",n.startRecording),e.R7$(),e.Y8G("ngClass",n.startRecording?"cancel-div":""),e.R7$(2),e.Y8G("ngIf",n.startRecording),e.R7$(),e.Y8G("disabled",n.disabled),e.R7$(),e.Y8G("ngIf",0==n.textMessage.length),e.R7$(),e.Y8G("ngIf",n.textMessage.length>0))},dependencies:[C.YU,C.Sq,C.bT,D.BC,D.vS,f.Jm,f.W9,f.M0,f.iq,f.$w,f.he,f.IO,f.Gw,R.D9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0px;height:90%}.bot-content[_ngcontent-%COMP%]{padding:1rem;overflow:auto}.bot-content[_ngcontent-%COMP%] .msg-block[_ngcontent-%COMP%]{margin-top:1rem}.bot-content__message[_ngcontent-%COMP%]{line-height:normal;letter-spacing:-.3px;background:var(--ion-color-primary-contrast);padding:1rem 1rem 10px;max-width:80%;position:relative;width:-moz-fit-content;width:fit-content;box-shadow:0 .25rem .25rem #0000000d;white-space:pre-line}.bot-content__message[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{display:flex}.bot-content__message[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{color:#00000040;display:flex;justify-content:flex-end;font-size:.688rem;letter-spacing:.031rem;padding-top:.25rem}.bot-content__message.received[_ngcontent-%COMP%]{border-radius:1rem 1rem 1rem 0px}.bot-content__message.sent[_ngcontent-%COMP%]{background:#dcf7c5;margin-left:auto;border-radius:1rem 1rem 0px}.bot-input[_ngcontent-%COMP%]{bottom:0;width:100%;padding:1rem;background:var(--ion-color-primary-contrast);box-shadow:0 -.33px #a6a6aa;display:flex;align-items:center}.bot-input[_ngcontent-%COMP%] ion-textarea[_ngcontent-%COMP%]{width:90%}.bot-input[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0}.bot-input[_ngcontent-%COMP%] .input_record[_ngcontent-%COMP%]{width:30%;display:flex;align-items:center}.bot-input[_ngcontent-%COMP%] .input_record[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin-left:1rem}.bot-input[_ngcontent-%COMP%] .cancel-div[_ngcontent-%COMP%]{display:flex;width:100%;margin-left:1rem;align-items:center}.bot-input[_ngcontent-%COMP%] .cancel-record[_ngcontent-%COMP%]{width:90%}.bot-input[_ngcontent-%COMP%] .audio-record-mic[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;fill:var(--ion-color-medium)}.bot-input[_ngcontent-%COMP%] .on-record[_ngcontent-%COMP%]{fill:var(--ion-color-primary)!important}.bot-input[_ngcontent-%COMP%] .sc-ion-input-md-h[_ngcontent-%COMP%]{height:2.25rem;min-height:auto;padding:0 .5rem!important;--border-color: gray;caret-color:gray!important;--highlight-color: gray !important;--highlight-color-focused: gray !important}.bot-input[_ngcontent-%COMP%] .keyboard-open[_ngcontent-%COMP%], .keyboard-open[_ngcontent-%COMP%]{transform:translateY(-50%)}.audio_msg[_ngcontent-%COMP%]{display:flex;background:#c6dfc6;padding:5px;border-radius:10px}.audio_msg[_ngcontent-%COMP%] .play_audio[_ngcontent-%COMP%]{display:flex;flex-direction:column}.audio_msg[_ngcontent-%COMP%] .play_audio[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:8px;text-align:center}.audio_msg[_ngcontent-%COMP%] .audio-wave[_ngcontent-%COMP%]{padding-left:5px}.audio_msg[_ngcontent-%COMP%] .audio-wave[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.audio_msg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px}.action-div[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem;margin-top:-.6rem;margin-left:.3rem}.action_button[_ngcontent-%COMP%]{padding:.1rem .5rem;width:-moz-fit-content;width:fit-content;box-shadow:0 .25rem .25rem #0000000d;white-space:pre-line;border-radius:16px;background:#fff;border:.1px solid grey;transform:scale(1)}.unlike[_ngcontent-%COMP%]{transform:scale(-1);margin-left:.75rem!important}ion-content[_ngcontent-%COMP%]{--padding-bottom: 60px}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-input[_ngcontent-%COMP%]{flex:1}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin-left:10px}"]}),c})()}}]); \ No newline at end of file diff --git a/www/5695.82ef23372439ff45.js b/www/5695.82ef23372439ff45.js new file mode 100644 index 0000000..8e15a72 --- /dev/null +++ b/www/5695.82ef23372439ff45.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5695],{5695:(J,g,n)=>{n.r(g),n.d(g,{TabsPageModule:()=>Y});var r=n(8974),d=n(177),T=n(9417),u=n(3021),b=n(467),p=n(319),P=n(8941),v=n(446),t=n(4438),y=n(4517),C=n(1113),M=n(5173),R=n(6198),V=n(2904),f=n(5402);const O=["tabRef"];function $(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].kathaSakhiBotName)}}function I(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Katha Sakhi")))}function D(a,l){if(1&a&&(t.j41(0,"ion-tab-button",10),t.nrm(1,"ion-icon",11),t.DNE(2,$,2,1,"ion-label",12)(3,I,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}function G(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].parentTaraBotName)}}function j(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Parent Tara")))}function F(a,l){if(1&a&&(t.j41(0,"ion-tab-button",13),t.nrm(1,"ion-icon",14),t.DNE(2,G,2,1,"ion-label",12)(3,j,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}function S(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].teacherTaraBotName)}}function E(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Teacher Tara")))}function X(a,l){if(1&a&&(t.j41(0,"ion-tab-button",15),t.nrm(1,"ion-icon",16),t.DNE(2,S,2,1,"ion-label",12)(3,E,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}const x=[{path:"",component:(()=>{var a;class l{constructor(e,i,s,m,h,N,W){this.platform=e,this.router=i,this.tabService=s,this.telemetry=m,this.languageService=h,this.storage=N,this.modalCtrl=W,this.optModalOpen=!1,this.isTitleChanged=!1,this.language="",v.g.then(c=>{this.configVariables=c}).catch(c=>{console.error("Failed to load configuration:",c)})}tabViewWillEnter(){this.tabService.show()}ngOnInit(){var e=this;return(0,b.A)(function*(){e.language=(yield e.storage.getData("lang"))||"en",e.isTitleChanged=e.configVariables.titleCode.includes(e.language),e.languageSubscription=e.languageService.currentLanguage$.subscribe(i=>{e.loadTabData(i)})})()}loadTabData(e){this.language=e,this.isTitleChanged=this.configVariables.titleCode.includes(e)}ionViewDidEnter(){var e=this;this.tabService.show(),this.subscription=this.platform.backButton.subscribeWithPriority(9999,(0,b.A)(function*(){let i;e.optModalOpen||(e.optModalOpen=!0,i=yield e.modalCtrl.create({component:p.Z,cssClass:"sheet-modal",breakpoints:[.2],showBackdrop:!1,backdropDismiss:!1,initialBreakpoint:.2,handle:!1,handleBehavior:"none"}),yield i.present()),i.onDidDismiss().then(s=>{e.optModalOpen=!1,s.data&&s.data&&P.q.exitApp()})}))}ionViewWillEnter(){this.tabRef.outlet.component.tabViewWillEnter&&this.tabRef.outlet.component.tabViewWillEnter()}ionViewWillLeave(){this.subscription.unsubscribe()}ngOnDestroy(){var e=this;return(0,b.A)(function*(){const i=yield e.modalCtrl.getTop();i&&i.dismiss()})()}ionTabsDidChange(e){"story"==e.tab?(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","story-sakhi"),this.router.navigate(["/story"])):"parent-sakhi"==e.tab?(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","parent-sakhi"),this.router.navigate(["/parent-sakhi"])):"teacher-sakhi"==e.tab&&(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","teacher-sakhi"),this.router.navigate(["/teacher-sakhi"]))}}return(a=l).\u0275fac=function(e){return new(e||a)(t.rXU(y.OD),t.rXU(u.Ix),t.rXU(C.q),t.rXU(M.O),t.rXU(R.g),t.rXU(V.n$),t.rXU(r.W3))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-tabs"]],viewQuery:function(e,i){if(1&e&&t.GBs(O,5),2&e){let s;t.mGM(s=t.lsd())&&(i.tabRef=s.first)}},decls:14,vars:12,consts:[["tabRef",""],[3,"ionTabsDidChange"],["tab","home","href","/tabs/home",1,"home-screen"],["aria-hidden","true","src","assets/icon/home.svg"],["slot","bottom",1,"tabbar"],["tab","story","href","",4,"ngIf"],["tab","parent-sakhi","href","",4,"ngIf"],["tab","teacher-sakhi","href","",4,"ngIf"],["tab","my-pitara","href","/tabs/my-pitara"],["aria-hidden","true","src","assets/icon/pitara1.svg"],["tab","story","href",""],["aria-hidden","true","src","assets/icon/book.svg"],[4,"ngIf"],["tab","parent-sakhi","href",""],["aria-hidden","true","src","assets/icon/parents.svg"],["tab","teacher-sakhi","href",""],["aria-hidden","true","src","assets/icon/teacher.svg"]],template:function(e,i){if(1&e){const s=t.RV6();t.j41(0,"ion-content")(1,"ion-tabs",1,0),t.bIt("ionTabsDidChange",function(h){return t.eBV(s),t.Njj(i.ionTabsDidChange(h))}),t.j41(3,"ion-tab-button",2),t.nrm(4,"ion-icon",3),t.k0s(),t.j41(5,"ion-tab-bar",4),t.DNE(6,D,4,2,"ion-tab-button",5)(7,F,4,2,"ion-tab-button",6)(8,X,4,2,"ion-tab-button",7),t.j41(9,"ion-tab-button",8),t.nrm(10,"ion-icon",9),t.j41(11,"ion-label"),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()()}2&e&&(t.R7$(3),t.muq("--background: ",null==i.configVariables?null:i.configVariables.footerColor,""),t.R7$(2),t.muq("--background: ",null==i.configVariables?null:i.configVariables.footerColor,""),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("story")),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("parent")),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("teacher")),t.R7$(4),t.JRh(t.bMT(13,10,"My Pitara")))},dependencies:[r.W9,r.iq,r.he,r.Jq,r.qW,r.p4,d.bT,f.D9],styles:["ion-tab-bar[_ngcontent-%COMP%]{border-radius:50px;border:.188rem solid var(--ion-color-primary-contrast);padding:0 1rem}ion-tab-button[_ngcontent-%COMP%]{--color: var(--ion-color-primary-contrast);--color-selected: var(--ion-color-primary-contrast)}#tab-button-story[_ngcontent-%COMP%], #tab-button-my-pitara[_ngcontent-%COMP%], #tab-button-parent-sakhi[_ngcontent-%COMP%], #tab-button-teacher-sakhi[_ngcontent-%COMP%]{width:30%}ion-icon[_ngcontent-%COMP%]{width:1.375rem;height:1.5rem;opacity:.6;fill:var(--ion-color-primary-contrast)}ion-tab-button.tab-selected[_ngcontent-%COMP%] .home-screen[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{border:.063rem solid var(--ion-color-tertiary)}ion-tab-button.tab-selected[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{opacity:initial;fill:var(--ion-color-tertiary)}ion-tab-button.tab-selected[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{color:var(--ion-color-tertiary);font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}ion-label[_ngcontent-%COMP%]{font-size:10px}.home-screen[_ngcontent-%COMP%]{position:fixed;left:0;right:0;margin:0 auto;bottom:1.938rem;height:auto;z-index:9999;width:3.5rem;height:3.5rem;border:.188rem solid var(--ion-color-primary-contrast);border-radius:50%;border-bottom-color:transparent;border-left-color:transparent;transform:rotate(-45deg)}.home-screen[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{transform:rotate(45deg);border:.063rem solid var(--ion-color-primary-contrast);border-radius:50%;width:1.625rem;height:1.625rem;padding:.25rem}"]}),l})(),children:[{path:"home",loadChildren:()=>Promise.all([n.e(5006),n.e(2076),n.e(4392)]).then(n.bind(n,4392)).then(a=>a.HomePageModule)},{path:"my-pitara",loadChildren:()=>Promise.all([n.e(2076),n.e(4567)]).then(n.bind(n,4567)).then(a=>a.MyPitaraPageModule)},{path:"story",loadChildren:()=>Promise.all([n.e(4503),n.e(2648)]).then(n.bind(n,2648)).then(a=>a.StoryPageModule)},{path:"teacher-sakhi",loadChildren:()=>Promise.all([n.e(4503),n.e(1177)]).then(n.bind(n,1177)).then(a=>a.TeacherSakhiPageModule)},{path:"parent-sakhi",loadChildren:()=>Promise.all([n.e(4503),n.e(101)]).then(n.bind(n,101)).then(a=>a.ParentSakhiPageModule)},{path:"",redirectTo:"/tabs/home",pathMatch:"full"}]},{path:"",redirectTo:"tabs/home",pathMatch:"full"}];let B=(()=>{var a;class l{}return(a=l).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[u.iI.forChild(x)]}),l})(),Y=(()=>{var a;class l{}return(a=l).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[r.bv,d.MD,T.YN,B,f.h]}),l})()}}]); \ No newline at end of file diff --git a/www/5695.8872c0aaa0ff593e.js b/www/5695.8872c0aaa0ff593e.js deleted file mode 100644 index 7bf7fc1..0000000 --- a/www/5695.8872c0aaa0ff593e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5695],{5695:(J,c,n)=>{n.r(c),n.d(c,{TabsPageModule:()=>Y});var r=n(8974),d=n(177),T=n(9417),u=n(3021),h=n(467),p=n(319),P=n(8941),v=n(446),t=n(4438),C=n(4517),y=n(1113),M=n(5173),R=n(6198),V=n(2904),f=n(5402);const O=["tabRef"];function $(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].kathaSakhiBotName)}}function I(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Katha Sakhi")))}function D(a,l){if(1&a&&(t.j41(0,"ion-tab-button",10),t.nrm(1,"ion-icon",11),t.DNE(2,$,2,1,"ion-label",12)(3,I,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}function G(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].parentTaraBotName)}}function j(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Parent Tara")))}function F(a,l){if(1&a&&(t.j41(0,"ion-tab-button",13),t.nrm(1,"ion-icon",14),t.DNE(2,G,2,1,"ion-label",12)(3,j,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}function S(a,l){if(1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.k0s()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(null==o.configVariables||null==o.configVariables[o.language]?null:o.configVariables[o.language].teacherTaraBotName)}}function E(a,l){1&a&&(t.j41(0,"ion-label"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(),t.JRh(t.bMT(2,1,"Teacher Tara")))}function X(a,l){if(1&a&&(t.j41(0,"ion-tab-button",15),t.nrm(1,"ion-icon",16),t.DNE(2,S,2,1,"ion-label",12)(3,E,3,3,"ion-label",12),t.k0s()),2&a){const o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.isTitleChanged),t.R7$(),t.Y8G("ngIf",!o.isTitleChanged)}}const x=[{path:"",component:(()=>{var a;class l{constructor(e,i,s,m,g,N,W){this.platform=e,this.router=i,this.tabService=s,this.telemetry=m,this.languageService=g,this.storage=N,this.modalCtrl=W,this.optModalOpen=!1,this.isTitleChanged=!1,this.language="",v.g.then(b=>{console.log("Configuration:",b),this.configVariables=b}).catch(b=>{console.error("Failed to load configuration:",b)})}tabViewWillEnter(){this.tabService.show()}ngOnInit(){var e=this;return(0,h.A)(function*(){e.language=(yield e.storage.getData("lang"))||"en",e.isTitleChanged=e.configVariables.titleCode.includes(e.language),e.languageSubscription=e.languageService.currentLanguage$.subscribe(i=>{e.loadTabData(i)})})()}loadTabData(e){this.language=e,this.isTitleChanged=this.configVariables.titleCode.includes(e)}ionViewDidEnter(){var e=this;this.tabService.show(),this.subscription=this.platform.backButton.subscribeWithPriority(9999,(0,h.A)(function*(){let i;e.optModalOpen||(e.optModalOpen=!0,i=yield e.modalCtrl.create({component:p.Z,cssClass:"sheet-modal",breakpoints:[.2],showBackdrop:!1,backdropDismiss:!1,initialBreakpoint:.2,handle:!1,handleBehavior:"none"}),yield i.present()),i.onDidDismiss().then(s=>{e.optModalOpen=!1,s.data&&s.data&&P.q.exitApp()})}))}ionViewWillEnter(){this.tabRef.outlet.component.tabViewWillEnter&&this.tabRef.outlet.component.tabViewWillEnter()}ionViewWillLeave(){this.subscription.unsubscribe()}ngOnDestroy(){var e=this;return(0,h.A)(function*(){const i=yield e.modalCtrl.getTop();i&&i.dismiss()})()}ionTabsDidChange(e){"story"==e.tab?(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","story-sakhi"),this.router.navigate(["/story"])):"parent-sakhi"==e.tab?(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","parent-sakhi"),this.router.navigate(["/parent-sakhi"])):"teacher-sakhi"==e.tab&&(this.tabService.hide(),this.telemetry.generateStartTelemetry("bot","teacher-sakhi"),this.router.navigate(["/teacher-sakhi"]))}}return(a=l).\u0275fac=function(e){return new(e||a)(t.rXU(C.OD),t.rXU(u.Ix),t.rXU(y.q),t.rXU(M.O),t.rXU(R.g),t.rXU(V.n$),t.rXU(r.W3))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-tabs"]],viewQuery:function(e,i){if(1&e&&t.GBs(O,5),2&e){let s;t.mGM(s=t.lsd())&&(i.tabRef=s.first)}},decls:14,vars:12,consts:[["tabRef",""],[3,"ionTabsDidChange"],["tab","home","href","/tabs/home",1,"home-screen"],["aria-hidden","true","src","assets/icon/home.svg"],["slot","bottom",1,"tabbar"],["tab","story","href","",4,"ngIf"],["tab","parent-sakhi","href","",4,"ngIf"],["tab","teacher-sakhi","href","",4,"ngIf"],["tab","my-pitara","href","/tabs/my-pitara"],["aria-hidden","true","src","assets/icon/pitara1.svg"],["tab","story","href",""],["aria-hidden","true","src","assets/icon/book.svg"],[4,"ngIf"],["tab","parent-sakhi","href",""],["aria-hidden","true","src","assets/icon/parents.svg"],["tab","teacher-sakhi","href",""],["aria-hidden","true","src","assets/icon/teacher.svg"]],template:function(e,i){if(1&e){const s=t.RV6();t.j41(0,"ion-content")(1,"ion-tabs",1,0),t.bIt("ionTabsDidChange",function(g){return t.eBV(s),t.Njj(i.ionTabsDidChange(g))}),t.j41(3,"ion-tab-button",2),t.nrm(4,"ion-icon",3),t.k0s(),t.j41(5,"ion-tab-bar",4),t.DNE(6,D,4,2,"ion-tab-button",5)(7,F,4,2,"ion-tab-button",6)(8,X,4,2,"ion-tab-button",7),t.j41(9,"ion-tab-button",8),t.nrm(10,"ion-icon",9),t.j41(11,"ion-label"),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()()}2&e&&(t.R7$(3),t.muq("--background: ",null==i.configVariables?null:i.configVariables.footerColor,""),t.R7$(2),t.muq("--background: ",null==i.configVariables?null:i.configVariables.footerColor,""),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("story")),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("parent")),t.R7$(),t.Y8G("ngIf",null==i.configVariables||null==i.configVariables.bots?null:i.configVariables.bots.includes("teacher")),t.R7$(4),t.JRh(t.bMT(13,10,"My Pitara")))},dependencies:[r.W9,r.iq,r.he,r.Jq,r.qW,r.p4,d.bT,f.D9],styles:["ion-tab-bar[_ngcontent-%COMP%]{border-radius:50px;border:.188rem solid var(--ion-color-primary-contrast);padding:0 1rem}ion-tab-button[_ngcontent-%COMP%]{--color: var(--ion-color-primary-contrast);--color-selected: var(--ion-color-primary-contrast)}#tab-button-story[_ngcontent-%COMP%], #tab-button-my-pitara[_ngcontent-%COMP%], #tab-button-parent-sakhi[_ngcontent-%COMP%], #tab-button-teacher-sakhi[_ngcontent-%COMP%]{width:30%}ion-icon[_ngcontent-%COMP%]{width:1.375rem;height:1.5rem;opacity:.6;fill:var(--ion-color-primary-contrast)}ion-tab-button.tab-selected[_ngcontent-%COMP%] .home-screen[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{border:.063rem solid var(--ion-color-tertiary)}ion-tab-button.tab-selected[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{opacity:initial;fill:var(--ion-color-tertiary)}ion-tab-button.tab-selected[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{color:var(--ion-color-tertiary);font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}ion-label[_ngcontent-%COMP%]{font-size:10px}.home-screen[_ngcontent-%COMP%]{position:fixed;left:0;right:0;margin:0 auto;bottom:1.938rem;height:auto;z-index:9999;width:3.5rem;height:3.5rem;border:.188rem solid var(--ion-color-primary-contrast);border-radius:50%;border-bottom-color:transparent;border-left-color:transparent;transform:rotate(-45deg)}.home-screen[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{transform:rotate(45deg);border:.063rem solid var(--ion-color-primary-contrast);border-radius:50%;width:1.625rem;height:1.625rem;padding:.25rem}"]}),l})(),children:[{path:"home",loadChildren:()=>Promise.all([n.e(5006),n.e(2076),n.e(4392)]).then(n.bind(n,4392)).then(a=>a.HomePageModule)},{path:"my-pitara",loadChildren:()=>Promise.all([n.e(2076),n.e(4567)]).then(n.bind(n,4567)).then(a=>a.MyPitaraPageModule)},{path:"story",loadChildren:()=>Promise.all([n.e(4503),n.e(2648)]).then(n.bind(n,2648)).then(a=>a.StoryPageModule)},{path:"teacher-sakhi",loadChildren:()=>Promise.all([n.e(4503),n.e(1177)]).then(n.bind(n,1177)).then(a=>a.TeacherSakhiPageModule)},{path:"parent-sakhi",loadChildren:()=>Promise.all([n.e(4503),n.e(101)]).then(n.bind(n,101)).then(a=>a.ParentSakhiPageModule)},{path:"",redirectTo:"/tabs/home",pathMatch:"full"}]},{path:"",redirectTo:"tabs/home",pathMatch:"full"}];let B=(()=>{var a;class l{}return(a=l).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[u.iI.forChild(x)]}),l})(),Y=(()=>{var a;class l{}return(a=l).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[r.bv,d.MD,T.YN,B,f.h]}),l})()}}]); \ No newline at end of file diff --git a/www/786.00a4f06b53d7d2e2.js b/www/786.00a4f06b53d7d2e2.js deleted file mode 100644 index 98ce8c8..0000000 --- a/www/786.00a4f06b53d7d2e2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[786],{786:(R,u,s)=>{s.r(u),s.d(u,{SplashPageModule:()=>I});var P=s(177),m=s(9417),v=s(8974),d=s(3021),p=s(467),M=s(6421),C=s(1984),O=s(446),t=s(4438),S=s(6011),y=s(3486),l=s(2904),x=s(5173),U=s(5402);const b=[{path:"",component:(()=>{var n;class r{constructor(e,i,f,o,g,h,a,j,D,G,N){this.appinitialise=e,this.storage=i,this.router=f,this.headerService=o,this.telemetryGeneratorService=g,this.utilService=h,this.cachingService=a,this.configService=j,this.translate=D,this.apiService=G,this.lcoalNotifService=N,this.cachingService.initStorage()}ngOnInit(){var e=this;return(0,p.A)(function*(){var i;O.g.then(a=>{console.log("Configuration:",a),e.configVariables=a}).catch(a=>{console.error("Failed to load configuration:",a)}),e.headerService.showStatusBar(!0),e.headerService.hideHeader(),C.f.getInstance().init(yield e.utilService.getDeviceId()),e.apiService.onInit().subscribe();let f=(0,M.A)();e.storage.setData("sid",f),e.appinitialise.initialize(),setTimeout((0,p.A)(function*(){e.startTelemetry(),e.router.navigate(["/tabs/home"])}),2e3);let o=yield e.configService.getConfigMeta(),g=null==o||null===(i=o.notification)||void 0===i?void 0:i.android;g&&(yield e.lcoalNotifService.cancelNotification(g.id),yield e.lcoalNotifService.initializeLocalNotif(g)),e.storage.setData("configMeta",JSON.stringify(o));let h=yield e.storage.getData("lang");h?e.translate.use(h):null==o||o.languages.forEach(a=>{null!=a&&a.default&&(e.storage.setData("lang",a.id),e.translate.use(a.id),e.translate.setDefaultLang(a.id))})})()}startTelemetry(){var e=this;return(0,p.A)(function*(){e.telemetryGeneratorService.genererateAppStartTelemetry(yield e.utilService.getDeviceSpec())})()}}return(n=r).\u0275fac=function(e){return new(e||n)(t.rXU(S.H),t.rXU(y.n),t.rXU(d.Ix),t.rXU(l.Ux),t.rXU(x.O),t.rXU(l.a0),t.rXU(l.dk),t.rXU(l.we),t.rXU(U.c$),t.rXU(l.Gf),t.rXU(l.MK))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-splash"]],decls:6,vars:3,consts:[[1,"splash-screen",3,"fullscreen"],[1,"splash-screen_box"],["alt","Pitara box",1,"pitara-box",3,"src"],[1,"footer-img"]],template:function(e,i){1&e&&(t.j41(0,"ion-content",0)(1,"div",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"div",3)(4,"h3"),t.EFF(5),t.k0s()()()),2&e&&(t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("src",null==i.configVariables?null:i.configVariables.splashImage,t.B4B),t.R7$(3),t.JRh(null==i.configVariables?null:i.configVariables.siteName))},dependencies:[v.W9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0;--background: url(/assets/images/splash-bg1.png) center center / cover no-repeat}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%]{height:13%;display:flex;justify-content:space-between;align-items:center;padding:2rem 1rem .5rem;background-color:#fff}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .MOE-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:first-child{width:100px;margin-right:1rem}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .MOE-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:last-child{width:36px}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:65px}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:10px}.splash-screen[_ngcontent-%COMP%] .splash-screen-img[_ngcontent-%COMP%]{padding-top:1rem;display:flex;justify-content:center;align-items:center;height:41%}.splash-screen[_ngcontent-%COMP%] .splash-screen-img[_ngcontent-%COMP%] .pm-logo[_ngcontent-%COMP%]{width:70%}.splash-screen[_ngcontent-%COMP%] .splash-screen_box[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:55%}.splash-screen[_ngcontent-%COMP%] .splash-screen_box[_ngcontent-%COMP%] .pitara-box[_ngcontent-%COMP%]{width:80%}.splash-screen[_ngcontent-%COMP%] .footer-img[_ngcontent-%COMP%]{position:fixed;bottom:-25%;background:#fff;border-radius:50%;width:100%;height:50%;display:flex;align-items:flex-start;justify-content:center;left:50%;transform:translate(-50%)}.splash-screen[_ngcontent-%COMP%] .footer-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:11rem}"]}),r})()}];let X=(()=>{var n;class r{}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[d.iI.forChild(b),d.iI]}),r})(),I=(()=>{var n;class r{}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[P.MD,m.YN,v.bv,X]}),r})()}}]); \ No newline at end of file diff --git a/www/786.844b70ed6b69d85d.js b/www/786.844b70ed6b69d85d.js new file mode 100644 index 0000000..7d5b1c6 --- /dev/null +++ b/www/786.844b70ed6b69d85d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[786],{786:(R,u,s)=>{s.r(u),s.d(u,{SplashPageModule:()=>I});var P=s(177),m=s(9417),v=s(8974),d=s(3021),p=s(467),M=s(6421),C=s(1984),O=s(446),t=s(4438),S=s(6011),y=s(3486),l=s(2904),x=s(5173),U=s(5402);const b=[{path:"",component:(()=>{var n;class r{constructor(e,i,f,o,g,h,a,j,D,G,N){this.appinitialise=e,this.storage=i,this.router=f,this.headerService=o,this.telemetryGeneratorService=g,this.utilService=h,this.cachingService=a,this.configService=j,this.translate=D,this.apiService=G,this.lcoalNotifService=N,this.cachingService.initStorage()}ngOnInit(){var e=this;return(0,p.A)(function*(){var i;O.g.then(a=>{e.configVariables=a}).catch(a=>{console.error("Failed to load configuration:",a)}),e.headerService.showStatusBar(!0),e.headerService.hideHeader(),C.f.getInstance().init(yield e.utilService.getDeviceId()),e.apiService.onInit().subscribe();let f=(0,M.A)();e.storage.setData("sid",f),e.appinitialise.initialize(),setTimeout((0,p.A)(function*(){e.startTelemetry(),e.router.navigate(["/tabs/home"])}),2e3);let o=yield e.configService.getConfigMeta(),g=null==o||null===(i=o.notification)||void 0===i?void 0:i.android;g&&(yield e.lcoalNotifService.cancelNotification(g.id),yield e.lcoalNotifService.initializeLocalNotif(g)),e.storage.setData("configMeta",JSON.stringify(o));let h=yield e.storage.getData("lang");h?e.translate.use(h):null==o||o.languages.forEach(a=>{null!=a&&a.default&&(e.storage.setData("lang",a.id),e.translate.use(a.id),e.translate.setDefaultLang(a.id))})})()}startTelemetry(){var e=this;return(0,p.A)(function*(){e.telemetryGeneratorService.genererateAppStartTelemetry(yield e.utilService.getDeviceSpec())})()}}return(n=r).\u0275fac=function(e){return new(e||n)(t.rXU(S.H),t.rXU(y.n),t.rXU(d.Ix),t.rXU(l.Ux),t.rXU(x.O),t.rXU(l.a0),t.rXU(l.dk),t.rXU(l.we),t.rXU(U.c$),t.rXU(l.Gf),t.rXU(l.MK))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-splash"]],decls:6,vars:3,consts:[[1,"splash-screen",3,"fullscreen"],[1,"splash-screen_box"],["alt","Pitara box",1,"pitara-box",3,"src"],[1,"footer-img"]],template:function(e,i){1&e&&(t.j41(0,"ion-content",0)(1,"div",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"div",3)(4,"h3"),t.EFF(5),t.k0s()()()),2&e&&(t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("src",null==i.configVariables?null:i.configVariables.splashImage,t.B4B),t.R7$(3),t.JRh(null==i.configVariables?null:i.configVariables.siteName))},dependencies:[v.W9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0;--background: url(/assets/images/splash-bg1.png) center center / cover no-repeat}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%]{height:13%;display:flex;justify-content:space-between;align-items:center;padding:2rem 1rem .5rem;background-color:#fff}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .MOE-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:first-child{width:100px;margin-right:1rem}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .MOE-logos[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:last-child{width:36px}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:65px}.splash-screen[_ngcontent-%COMP%] .splash-screen-header[_ngcontent-%COMP%] .bhashini-logo[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:10px}.splash-screen[_ngcontent-%COMP%] .splash-screen-img[_ngcontent-%COMP%]{padding-top:1rem;display:flex;justify-content:center;align-items:center;height:41%}.splash-screen[_ngcontent-%COMP%] .splash-screen-img[_ngcontent-%COMP%] .pm-logo[_ngcontent-%COMP%]{width:70%}.splash-screen[_ngcontent-%COMP%] .splash-screen_box[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:55%}.splash-screen[_ngcontent-%COMP%] .splash-screen_box[_ngcontent-%COMP%] .pitara-box[_ngcontent-%COMP%]{width:80%}.splash-screen[_ngcontent-%COMP%] .footer-img[_ngcontent-%COMP%]{position:fixed;bottom:-25%;background:#fff;border-radius:50%;width:100%;height:50%;display:flex;align-items:flex-start;justify-content:center;left:50%;transform:translate(-50%)}.splash-screen[_ngcontent-%COMP%] .footer-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:11rem}"]}),r})()}];let X=(()=>{var n;class r{}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[d.iI.forChild(b),d.iI]}),r})(),I=(()=>{var n;class r{}return(n=r).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[P.MD,m.YN,v.bv,X]}),r})()}}]); \ No newline at end of file diff --git a/www/7916.058371c1c22bebce.js b/www/7916.058371c1c22bebce.js deleted file mode 100644 index 276c637..0000000 --- a/www/7916.058371c1c22bebce.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7916],{7916:(tt,p,j)=>{"use strict";j.r(p),j.d(p,{PlayerPageModule:()=>R});var we=j(177),Ie=j(9417),me=j(8974),ye=j(3021),oe=j(467),ge=j(5083);const ce=(0,ge.F3)("ScreenOrientation",{web:()=>j.e(9061).then(j.bind(j,9061)).then(S=>new S.ScreenOrientationWeb)}),Le={metadata:{mimeType:"application/pdf",artifactUrl:"https://obj.stage.sunbirded.org/sunbird-content-staging/content/do_21361377330381619213052/artifact/cbse-1st-class-activity-sheet-21.pdf",identifier:"do_21361377330381619213052",name:"pdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdf",streamingUrl:"https://obj.stage.sunbirded.org/sunbird-content-staging/content/do_21361377330381619213052/artifact/cbse-1st-class-activity-sheet-21.pdf",isAvailableLocally:!1},config:{showEndPage:!1,endPage:[{template:"assessment",contentType:["SelfAssess"]}],splash:{webLink:"",text:"",icon:"",bgImage:"assets/icons/splacebackground_1.png"},overlay:{enableUserSwitcher:!0,showUser:!1},plugins:[{id:"org.sunbird.player.endpage",ver:"1.1",type:"plugin"}],sideMenu:{showShare:!1,showDownload:!1,showReplay:!1,showExit:!0,showPrint:!1}},context:{did:"da39a3ee5e6b4b0d3255bfef95601890afd80709",origin:"https://staging.sunbirded.org",pdata:{pid:"sunbird.app.contentplayer",ver:"6.0-local"},sid:"07ae2cf8-f53c-45f7-9cb9-dec8763e71e3",cdata:[],channel:"505c7c48ac6dc1edc9b08f21db5a571d"}},Oe={context:{mode:"play",authToken:"",sid:"7283cf2e-d215-9944-b0c5-269489c6fa56",did:"3c0a3724311fe944dec5df559cc4e006",uid:"anonymous",channel:"505c7c48ac6dc1edc9b08f21db5a571d",pdata:{id:"",ver:"",pid:""},contextRollup:{l1:"505c7c48ac6dc1edc9b08f21db5a571d"},tags:[""],cdata:[]},config:{sideMenu:{showShare:!1,showDownload:!1,showReplay:!1,showExit:!0}},metadata:{mimeType:"video/mp4",artifactUrl:"https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/content/do_21310353608830976014671/artifact/mp4_14.mp4",identifier:"do_21310353608830976014671",name:"mp4_14.mp4",streamingUrl:"https://ntppreprodmedia-inct.streaming.media.azure.net/409780ae-3fc2-4879-85f7-f1affcce55fa/mp4_14.ism/manifest(format=m3u8-aapl-v3)"}};var De=j(5331),je=j.n(De),B=j(3649),se=j(56),b=j(4438),de=j(2904),Z=j(345),Te=j(5173),Re=j(4517);const be=["pdf"],Ue=["video"];function $e(S,Y){if(1&S){const y=b.RV6();b.j41(0,"ion-fab",7)(1,"ion-fab-button",8),b.bIt("click",function(){b.eBV(y);const k=b.XpG();return b.Njj(k.closePlayer())}),b.nrm(2,"ion-icon",9),b.k0s()()}}function Fe(S,Y){1&S&&b.nrm(0,"div",10,0)}function He(S,Y){1&S&&b.nrm(0,"div",11,1)}function l(S,Y){if(1&S&&(b.j41(0,"div")(1,"div",12),b.nrm(2,"iframe",13),b.k0s()()),2&S){const y=b.XpG();b.R7$(2),b.Y8G("src",y.srcUrl,b.f$h)}}function ke(S,Y){if(1&S&&(b.j41(0,"div"),b.nrm(1,"iframe",14),b.k0s()),2&S){const y=b.XpG();b.R7$(),b.Y8G("src",y.srcUrl,b.f$h)}}const V=[{path:"",component:(()=>{var S;class Y{constructor(u,k,M,F,q,K,A){var Q,_;this.router=u,this.headerService=k,this.location=M,this.domSanitiser=F,this.telemetryGeneratorService=q,this.telemetryService=K,this.platform=A,this.orientationType="",this.playerConfig={},this.playerType="",this.pageId="",this.cdata=[];let G=null===(Q=this.router.getCurrentNavigation())||void 0===Q?void 0:Q.extras;var D,ee,ne,L,ae;G&&(this.content=null===(D=G.state)||void 0===D?void 0:D.content,this.playerType=this.getPlayerType(this.content.metaData.mimetype),this.srcUrl=this.content.metaData.url.startsWith("https://")?this.domSanitiser.bypassSecurityTrustResourceUrl(this.content.metaData.url):this.domSanitiser.bypassSecurityTrustResourceUrl("https://"+this.content.metaData.url),this.pageId=null===(ee=G.state)||void 0===ee?void 0:ee.pageid),this.populateCData(),(null===(_=this.content)||void 0===_?void 0:_.metaData.mimetype)==se.Cc.YOUTUBE&&this.telemetryGeneratorService.generateStartTelemetry("content","player",new B.$i(null===(ne=this.content)||void 0===ne?void 0:ne.metaData.identifier,null===(L=this.content)||void 0===L?void 0:L.metaData.mimetype,""),{l1:null===(ae=this.content)||void 0===ae?void 0:ae.metaData.identifier},this.cdata)}getPlayerType(u){return u==se.Cc.PDF?"pdf":u==se.Cc.MP4||u==se.Cc.WEBM||u==se.Cc.AUDIO?"video":u==se.Cc.YOUTUBE?"youtube":"link"}ngOnInit(){var u=this;this.platform.backButton.subscribeWithPriority(11,(0,oe.A)(function*(){u.closePlayer()})),this.headerService.hideHeader(),this.headerService.hideStatusBar(),this.playerConfig=Le,this.videoConfig=Oe}ngAfterViewInit(){var u=this;return(0,oe.A)(function*(){if(u.orientationType=yield(yield ce.orientation()).type,"portrait-primary"==u.orientationType||"portrait-secondary"==u.orientationType)if(u.orientationType="landscape-primary",ce.unlock(),ce.lock({orientation:"landscape-primary"}),"pdf"==u.playerType){var k,M,F,q,K,A,Q,G,D,_;u.playerConfig.metadata.identifier=null===(k=u.content)||void 0===k?void 0:k.metaData.identifier,u.playerConfig.metadata.name=null===(M=u.content)||void 0===M?void 0:M.metaData.name,"local"!==(null===(F=u.content)||void 0===F?void 0:F.source)&&"local"!==(null===(q=u.content)||void 0===q?void 0:q.type)||null===(K=u.content)||void 0===K||!K.metaData.url.includes("file://")?(u.playerConfig.metadata.artifactUrl=(null===(G=u.content)||void 0===G?void 0:G.metaData.artifactUrl)||"",u.playerConfig.metadata.streamingUrl=null===(D=u.content)||void 0===D?void 0:D.metaData.url):(u.playerConfig.metadata.streamingUrl=ge.Ii.convertFileSrc(null===(_=u.content)||void 0===_?void 0:_.metaData.url.replace("file://","")),u.playerConfig.metadata.artifactUrl=""),u.playerConfig.metadata.isAvailableLocally="local"===(null===(A=u.content)||void 0===A?void 0:A.source)||"local"===(null===(Q=u.content)||void 0===Q?void 0:Q.type),u.playerConfig.metadata.baseDir="",u.playerConfig.context.cdata=u.cdata;const H=document.createElement("sunbird-pdf-player");H.setAttribute("player-config",JSON.stringify(u.playerConfig)),H.addEventListener("playerEvent",J=>{u.playerEvents(J)}),H.addEventListener("telemetryEvent",J=>{u.playerTelemetryEvents(J)}),u.pdf.nativeElement.append(H)}else if("video"==u.playerType){var ee,ne,L,ae,le,P,ue,v,Ce,fe;u.videoConfig.metadata.identifier=null===(ee=u.content)||void 0===ee?void 0:ee.metaData.identifier,u.videoConfig.metadata.name=null===(ne=u.content)||void 0===ne?void 0:ne.metaData.name,"local"!==(null===(L=u.content)||void 0===L?void 0:L.source)&&"local"!==(null===(ae=u.content)||void 0===ae?void 0:ae.type)||null===(le=u.content)||void 0===le||!le.metaData.url.includes("file://")?(u.videoConfig.metadata.streamingUrl="",u.videoConfig.metadata.artifactUrl=(null===(v=u.content)||void 0===v?void 0:v.metaData.artifactUrl)||(null===(Ce=u.content)||void 0===Ce?void 0:Ce.metaData.url)||""):(u.videoConfig.metadata.streamingUrl=ge.Ii.convertFileSrc(null===(fe=u.content)||void 0===fe?void 0:fe.metaData.url.replace("file://","")),u.videoConfig.metadata.artifactUrl=""),u.videoConfig.context.cdata=u.cdata,u.videoConfig.metadata.isAvailableLocally="local"===(null===(P=u.content)||void 0===P?void 0:P.source)||"local"===(null===(ue=u.content)||void 0===ue?void 0:ue.type);const H=document.createElement("sunbird-video-player");H.setAttribute("player-config",JSON.stringify(u.videoConfig)),H.addEventListener("playerEvent",J=>{u.playerEvents(J)}),H.addEventListener("telemetryEvent",J=>{console.log("On telemetryEvent",J),u.playerTelemetryEvents(J)}),u.video.nativeElement.append(H)}else if("link"==u.playerType){var Pe;u.srcUrl=null===(Pe=u.content)||void 0===Pe?void 0:Pe.metaData.url}"link"!=u.playerType&&new(je())("#player",{autoplay:!0})})()}ionViewWillLeave(){("landscape-primary"==this.orientationType||"landscape-secondary"==this.orientationType)&&(this.orientationType="portrait-primary",ce.unlock(),ce.lock({orientation:"portrait-primary"})),this.headerService.showHeader(),this.headerService.showStatusBar(!1)}playerTelemetryEvents(u){var k,M;("START"===(null==u||null===(k=u.detail)||void 0===k?void 0:k.eid)||"END"===(null==u||null===(M=u.detail)||void 0===M?void 0:M.eid))&&this.telemetryService.saveTelemetry(JSON.stringify(u.detail)).subscribe(F=>console.log("response after telemetry",F))}closePlayer(){var u,k,M,F;(null===(u=this.content)||void 0===u?void 0:u.metaData.mimetype)==se.Cc.YOUTUBE&&this.telemetryGeneratorService.generateEndTelemetry("content","play","player","player",new B.$i(null===(k=this.content)||void 0===k?void 0:k.metaData.identifier,null===(M=this.content)||void 0===M?void 0:M.metaData.mimetype,""),{l1:null===(F=this.content)||void 0===F?void 0:F.metaData.identifier},[]),this.location.back()}playerEvents(u){var k,M;null!=u&&null!==(k=u.detail)&&void 0!==k&&null!==(k=k.edata)&&void 0!==k&&k.type&&"EXIT"===(null==u||null===(M=u.detail)||void 0===M||null===(M=M.edata)||void 0===M?void 0:M.type)&&this.location.back()}populateCData(){var u,k,M,F,q;this.cdata=[{id:null===(u=this.content)||void 0===u?void 0:u.metaData.mimetype,type:"MimeType"}],null!==(k=this.content)&&void 0!==k&&k.metaData.category&&this.cdata.push({id:null===(F=this.content)||void 0===F?void 0:F.metaData.category,type:"Category"}),null!==(M=this.content)&&void 0!==M&&M.metaData.language&&this.cdata.push({id:null===(q=this.content)||void 0===q?void 0:q.metaData.language,type:"Language"}),this.pageId&&this.cdata.push({id:this.pageId,type:"SourcePage"})}}return(S=Y).\u0275fac=function(u){return new(u||S)(b.rXU(ye.Ix),b.rXU(de.Ux),b.rXU(we.aZ),b.rXU(Z.up),b.rXU(Te.O),b.rXU(de.H0),b.rXU(Re.OD))},S.\u0275cmp=b.VBU({type:S,selectors:[["app-player"]],viewQuery:function(u,k){if(1&u&&(b.GBs(be,5),b.GBs(Ue,5)),2&u){let M;b.mGM(M=b.lsd())&&(k.pdf=M.first),b.mGM(M=b.lsd())&&(k.video=M.first)}},decls:6,vars:5,consts:[["pdf",""],["video",""],["id","playerFullscreen",1,"player-fullscreen"],["slot","fixed","vertical","top","horizontal","start","size","small",4,"ngIf"],["class","pdf-player",4,"ngIf"],["class","video-player",4,"ngIf"],[4,"ngIf"],["slot","fixed","vertical","top","horizontal","start","size","small"],["color","danger","size","small",3,"click"],["name","close"],[1,"pdf-player"],[1,"video-player"],["id","player",1,"plyr__video-embed"],["title","","allowfullscreen","","allow","autoplay",3,"src"],["title","External Website",1,"iframeCss",3,"src"]],template:function(u,k){1&u&&(b.j41(0,"div",2),b.DNE(1,$e,3,0,"ion-fab",3)(2,Fe,2,0,"div",4)(3,He,2,0,"div",5)(4,l,3,1,"div",6)(5,ke,2,1,"div",6),b.k0s()),2&u&&(b.R7$(),b.Y8G("ngIf",k.playerType),b.R7$(),b.Y8G("ngIf","pdf"===k.playerType),b.R7$(),b.Y8G("ngIf","video"===k.playerType),b.R7$(),b.Y8G("ngIf","youtube"===k.playerType),b.R7$(),b.Y8G("ngIf","link"===k.playerType))},dependencies:[we.bT,me.Q8,me.YW,me.iq],styles:['.player-fullscreen[_ngcontent-%COMP%], .player-fullscreen[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .pdf-player[_ngcontent-%COMP%], .video-player[_ngcontent-%COMP%]{height:100%}iframe[_ngcontent-%COMP%]{width:100%;height:100%}ion-fab[_ngcontent-%COMP%]{top:.2rem!important;left:.2rem!important}.iframeCss[_ngcontent-%COMP%]{width:"100%";height:"500px";border:"1px solid #ccc";padding:"10px";border-radius:"5px";margin-top:"10px"}']}),Y})()}];let Ve=(()=>{var S;class Y{}return(S=Y).\u0275fac=function(u){return new(u||S)},S.\u0275mod=b.$C({type:S}),S.\u0275inj=b.G2t({imports:[ye.iI.forChild(V),ye.iI]}),Y})(),R=(()=>{var S;class Y{}return(S=Y).\u0275fac=function(u){return new(u||S)},S.\u0275mod=b.$C({type:S}),S.\u0275inj=b.G2t({imports:[we.MD,Ie.YN,me.bv,Ve]}),Y})()},5331:function(tt){"object"==typeof navigator&&(tt.exports=function(){"use strict";function p(e,i,t){return(i="symbol"==typeof(a=function(n,r){if("object"!=typeof n||null===n)return n;var o=n[Symbol.toPrimitive];if(void 0!==o){var c=o.call(n,"string");if("object"!=typeof c)return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(i))?a:String(a))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e;var a}function j(e,i){for(var t=0;t(t=100/c.width*(a.clientX-c.left))?t=0:100t?t-=(100-2*t)*d:50i){var t=(a="".concat(i).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0;return parseFloat(e.toFixed(t))}var a;return Math.round(e/i)*i}(t/100*(r-n),o)}},{key:"set",value:function(i){e.enabled&&B_event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),function(t,s){if(t&&s){var a=new Event(s,{bubbles:!0});t.dispatchEvent(a)}}(i.target,"touchend"===i.type?"change":"input"))}}],s=[{key:"setup",value:function(i){var t=1null!=e?e.constructor:null,Z=(e,i)=>!!(e&&i&&e instanceof i),Te=e=>null==e,Re=e=>de(e)===Object,be=e=>de(e)===String,Ue=e=>"function"==typeof e,$e=e=>Array.isArray(e),Fe=e=>Z(e,NodeList),He=e=>Te(e)||(be(e)||$e(e)||Fe(e))&&!e.length||Re(e)&&!Object.keys(e).length;var l={nullOrUndefined:Te,object:Re,number:e=>de(e)===Number&&!Number.isNaN(e),string:be,boolean:e=>de(e)===Boolean,function:Ue,array:$e,weakMap:e=>Z(e,WeakMap),nodeList:Fe,element:e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,textNode:e=>de(e)===Text,event:e=>Z(e,Event),keyboardEvent:e=>Z(e,KeyboardEvent),cue:e=>Z(e,window.TextTrackCue)||Z(e,window.VTTCue),track:e=>Z(e,TextTrack)||!Te(e)&&be(e.kind),promise:e=>Z(e,Promise)&&Ue(e.then),url:e=>{if(Z(e,window.URL))return!0;if(!be(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!He(new URL(i).hostname)}catch{return!1}},empty:He};const ke=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>void 0!==e.style[s]);return!!l.string(t)&&i[t]})();function _e(e,i){setTimeout(()=>{try{e.hidden=!0,e.hidden=!1}catch{}},i)}var V={isIE:!!window.document.documentMode,isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function Ve(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function R(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),R(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),R(e,...i)):e}function S(e,i){Array.from(e.length?e:[e]).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;n.appendChild(s),o?r.insertBefore(n,o):r.appendChild(n)})}function Y(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&Y(s,i),l.string(t)&&(s.innerText=t),s}function u(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function k(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(k):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function M(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function F(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function q(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=R({},i);return e.split(",").forEach(a=>{const n=a.trim(),r=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,d=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":t.class=l.string(s.class)?`${s.class} ${r}`:r;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=d}}),R(s,t)}function K(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function A(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>A(s,i,t));if(l.element(e)){let s="toggle";return void 0!==t&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function Q(e,i){return l.element(e)&&e.classList.contains(i)}function _(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function D(e){return this.elements.container.querySelector(e)}function ee(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const ne={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},L={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=L[e]||"html5"!==i;return{api:t,ui:t&&L.rangeInput}},pip:!(V.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(ne).includes(t)&&(t+=`; codecs="${ne[e]}"`);try{return!(!t||!this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==ke,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ae=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function le(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=n;ae&&(o={passive:a,capture:n}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function P(e,i="",t,s=!0,a=!1){le.call(this,e,i,t,!0,s,a)}function ue(e,i="",t,s=!0,a=!1){le.call(this,e,i,t,!1,s,a)}function fe(e,i="",t,s=!0,a=!1){const n=(...r)=>{ue(e,i,n,s,a),t.apply(this,r)};le.call(this,e,i,n,!0,s,a)}function v(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Ce(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Pe(){return new Promise(e=>this.ready?setTimeout(e,0):P.call(this,this.elements.container,"ready",e)).then(()=>{})}function H(e){l.promise(e)&&e.then(null,()=>{})}function J(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function at(e){return!!(l.array(e)||l.string(e)&&e.includes(":"))&&(l.array(e)?e:e.split(":")).map(Number).every(l.number)}function qe(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,r)=>0===r?n:s(r,n%r),a=s(i,t);return[i/a,t/a]}function Ke(e){const i=s=>at(s)?s.split(":").map(Number):null;let t=i(e);if(null===t&&(t=i(this.config.ratio)),null===t&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),null===t&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return qe(t)}function ve(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ke.call(this,e);if(!l.array(t))return{};const[s,a]=qe(t),n=100/s*a;if(st(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-n)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:t}}function lt(e,i,t=.05){const s=e/i,a=it(Object.keys(nt),s);return Math.abs(a-s)<=t?nt[a]:[e,i]}const he={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||L.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:he.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||ve.call(e),Object.defineProperty(e.media,"quality",{get(){const i=he.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=he.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),("none"!==n||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||H(e.play())}),e.media.load())}v.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(k(he.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ge(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}const Se=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),rt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function Tt(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const ot={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},z={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=Ve(i.i18n,e);return l.empty(t)?Object.keys(ot).includes(e)?ot[e]:"":(Object.entries({"{seektime}":i.seekTime,"{title}":i.title}).forEach(([a,n])=>{t=Se(t,a,n)}),t)}};class Ae{constructor(i){p(this,"get",t=>{if(!Ae.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),p(this,"set",t=>{if(!Ae.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),R(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Ee(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if("text"===i)try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function ct(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let a=!1;const n=()=>null!==document.getElementById(i),r=(o,c)=>{o.innerHTML=c,s&&n()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=Ae.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const d=window.localStorage.getItem(`${t}-${i}`);if(a=null!==d,a){const g=JSON.parse(d);r(c,g.content)}}Ee(e).then(d=>{if(!l.empty(d)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:d}))}catch{}r(c,d)}}).catch(()=>{})}}const dt=e=>Math.trunc(e/60/60%60,10);function Be(e=0,i=!1,t=!1){if(!l.number(e))return Be(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=dt(e);const n=(e=>Math.trunc(e/60%60,10))(e),r=(e=>Math.trunc(e%60,10))(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const m={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||V.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=D.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:D.call(this,this.config.selectors.buttons.pause),restart:D.call(this,this.config.selectors.buttons.restart),rewind:D.call(this,this.config.selectors.buttons.rewind),fastForward:D.call(this,this.config.selectors.buttons.fastForward),mute:D.call(this,this.config.selectors.buttons.mute),pip:D.call(this,this.config.selectors.buttons.pip),airplay:D.call(this,this.config.selectors.buttons.airplay),settings:D.call(this,this.config.selectors.buttons.settings),captions:D.call(this,this.config.selectors.buttons.captions),fullscreen:D.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=D.call(this,this.config.selectors.progress),this.elements.inputs={seek:D.call(this,this.config.selectors.inputs.seek),volume:D.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:D.call(this,this.config.selectors.display.buffer),currentTime:D.call(this,this.config.selectors.display.currentTime),duration:D.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=m.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Y(n,R(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(r),n},createLabel(e,i={}){const t=z.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=R({},i);let s=function wt(e=""){let i=e.toString();return i=function(t=""){let s=t.toString();return s=Se(s,"-"," "),s=Se(s,"_"," "),s=rt(s),Se(s," ","")}(i),i.charAt(0).toLowerCase()+i.slice(1)}(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(a[r]=t[r],delete t[r])}),"button"!==a.element||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||R(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=y(a.element);return a.toggle?(n.appendChild(m.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(m.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(m.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(m.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(m.createIcon.call(this,a.icon)),n.appendChild(m.createLabel.call(this,a.label))),R(t,q(this.config.selectors.buttons[s],t)),Y(n,t),"play"===s?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=y("input",R(q(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":z.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,m.updateRangeFill.call(this,t),b.setup(t),t},createProgress(e,i){const t=y("progress",R(q(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if("volume"!==e){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?z.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=q(this.config.selectors.display[e],i),s=y("div",R(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":z.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){P.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),"keydown"===t.type))return;const s=_(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))m.showMenuPanel.call(this,i,!0);else{let a;" "!==t.key&&("ArrowDown"===t.key||s&&"ArrowRight"===t.key?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),ee.call(this,a,!0))}},!1),P.call(this,e,"keyup",t=>{"Return"===t.key&&m.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const r=q(this.config.selectors.inputs[t]),o=y("button",R(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":n,value:e})),c=y("span");c.innerHTML=s,l.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>"true"===o.getAttribute("aria-checked"),set(d){d&&Array.from(o.parentNode.children).filter(g=>_(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",d?"true":"false")}}),this.listeners.bind(o,"click keyup",d=>{if(!l.keyboardEvent(d)||" "===d.key){switch(d.preventDefault(),d.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}m.showMenuPanel.call(this,"home",l.keyboardEvent(d))}},t,!1),m.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?Be(e,dt(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=m.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&m.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,i=0){l.element(e)&&(e.value=i,m.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(n,r)=>{const o=l.number(r)?r:0,c=l.element(n)?n:this.elements.display.buffer;if(l.element(c)){c.value=o;const d=c.getElementsByTagName("span")[0];l.element(d)&&(d.childNodes[0].nodeValue=o)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":a=this.duration,i=0===(s=this.currentTime)||0===a||Number.isNaN(s)||Number.isNaN(a)?0:(s/a*100).toFixed(2),"timeupdate"===e.type&&m.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}var s,a},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&"range"===i.getAttribute("type")){if(_(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=m.formatTime(this.currentTime),s=m.formatTime(this.duration),a=z.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(_(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(V.isWebKit||V.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=g=>A(s,a,g);if(this.touch)return void n(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!Q(s,a))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=m.formatTime(c);const d=null===(i=this.config.markers)||void 0===i||null===(t=i.points)||void 0===t?void 0:t.find(({time:g})=>g===Math.round(c));d&&s.insertAdjacentHTML("afterbegin",`${d.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;m.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&"timeupdate"===e.type&&this.media.seeking||m.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return K(this.elements.display.currentTime,!0),void K(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&m.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&m.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&m.setMarkers.call(this),m.updateSeekTooltip.call(this)},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if("captions"===e)a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=m.getLabel.call(this,e,a);const r=n&&n.querySelector(`[value="${a}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return 1===i?z.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=z.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return rt(i);case"captions":return I.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=J(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(m.toggleMenuButton.call(this,i,s),M(t),m.checkMenu.call(this),!s)return;const a=n=>{const r=z.get(`qualityBadge.${n}`,this.config);return r.length?m.createBadge.call(this,r):null};this.options.quality.sort((n,r)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(r)?1:-1}).forEach(n=>{m.createMenuItem.call(this,{value:n,list:t,type:i,title:m.getLabel.call(this,"quality",n),badge:a(n)})}),m.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=I.getTracks.call(this),s=!!t.length;if(m.toggleMenuButton.call(this,e,s),M(i),m.checkMenu.call(this),!s)return;const a=t.map((n,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:I.getLabel.call(this,n),badge:n.language&&m.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:z.get("disabled",this.config),list:i,type:"language"}),a.forEach(m.createMenuItem.bind(this)),m.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;m.toggleMenuButton.call(this,e,t),M(i),m.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{m.createMenuItem.call(this,{value:s,list:i,type:e,title:m.getLabel.call(this,"speed",s)})}),m.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);K(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');ee.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&"Escape"===e.key)a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(n);if(r||!r&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),K(i,!a),A(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?m.focusFirstMenuItem.call(this,null,!0):a||s||ee.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return k(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(L.transitions&&!L.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=m.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",ue.call(this,s,ke,r))};P.call(this,s,ke,r),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}K(a,!0),K(t,!1),m.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=m;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const d=y("div",q(this.config.selectors.controls.wrapper));this.elements.controls=d;const g={class:"plyr__controls__item"};return J(l.array(this.config.controls)?this.config.controls:[]).forEach(w=>{if("restart"===w&&d.appendChild(t.call(this,"restart",g)),"rewind"===w&&d.appendChild(t.call(this,"rewind",g)),"play"===w&&d.appendChild(t.call(this,"play",g)),"fast-forward"===w&&d.appendChild(t.call(this,"fast-forward",g)),"progress"===w){const h=y("div",{class:`${g.class} plyr__progress__container`}),T=y("div",q(this.config.selectors.progress));if(T.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),T.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const x=y("span",{class:this.config.classNames.tooltip},"00:00");T.appendChild(x),this.elements.display.seekTooltip=x}this.elements.progress=T,h.appendChild(this.elements.progress),d.appendChild(h)}if("current-time"===w&&d.appendChild(n.call(this,"currentTime",g)),"duration"===w&&d.appendChild(n.call(this,"duration",g)),"mute"===w||"volume"===w){let{volume:h}=this.elements;l.element(h)&&d.contains(h)||(h=y("div",R({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=h,d.appendChild(h)),"mute"===w&&h.appendChild(t.call(this,"mute")),"volume"!==w||V.isIos||V.isIPadOS||h.appendChild(a.call(this,"volume",R({max:1,step:.05,value:this.config.volume},{id:`plyr-volume-${e.id}`})))}if("captions"===w&&d.appendChild(t.call(this,"captions",g)),"settings"===w&&!l.empty(this.config.settings)){const h=y("div",R({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const T=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),x=y("div"),N=y("div",{id:`plyr-settings-${e.id}-home`}),U=y("div",{role:"menu"});N.appendChild(U),x.appendChild(N),this.elements.settings.panels.home=N,this.config.settings.forEach(C=>{const $=y("button",R(q(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,$,C),P.call(this,$,"click",()=>{c.call(this,C,!1)});const f=y("span",null,z.get(C,this.config)),E=y("span",{class:this.config.classNames.menu.value});E.innerHTML=e[C],f.appendChild(E),$.appendChild(f),U.appendChild($);const W=y("div",{id:`plyr-settings-${e.id}-${C}`,hidden:""}),X=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});X.appendChild(y("span",{"aria-hidden":!0},z.get(C,this.config))),X.appendChild(y("span",{class:this.config.classNames.hidden},z.get("menuBack",this.config))),P.call(this,W,"keydown",ie=>{"ArrowLeft"===ie.key&&(ie.preventDefault(),ie.stopPropagation(),c.call(this,"home",!0))},!1),P.call(this,X,"click",()=>{c.call(this,"home",!1)}),W.appendChild(X),W.appendChild(y("div",{role:"menu"})),x.appendChild(W),this.elements.settings.buttons[C]=$,this.elements.settings.panels[C]=W}),T.appendChild(x),h.appendChild(T),d.appendChild(h),this.elements.settings.popup=T,this.elements.settings.menu=h}if("pip"===w&&L.pip&&d.appendChild(t.call(this,"pip",g)),"airplay"===w&&L.airplay&&d.appendChild(t.call(this,"airplay",g)),"download"===w){const h=R({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:T}=this.config.urls;!l.url(T)&&this.isEmbed&&R(h,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(t.call(this,"download",h))}"fullscreen"===w&&d.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,he.getQualityOptions.call(this)),o.call(this),d},inject(){if(this.config.loadSprite){const a=m.getIconUrl.call(this);a.cors&&ct(a.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let s,t=!0;if(l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=m.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:I.getLabel.call(this)}),t=!1),t&&l.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([r,o])=>{n=Se(n,`{${r}}`,o)}),n})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||m.findElements.call(this),!l.empty(this.elements.buttons)){const a=n=>{const r=this.config.classNames.controlPressed;n.setAttribute("aria-pressed","false"),Object.defineProperty(n,"pressed",{configurable:!0,enumerable:!0,get:()=>Q(n,r),set(o=!1){A(n,r,o),n.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{l.array(n)||l.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(V.isEdge&&_e(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,o=G.call(this,`${n.controls.wrapper} ${n.labels} .${a.hidden}`);Array.from(o).forEach(c=>{A(c,this.config.classNames.hidden,!1),A(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=null===(e=this.config.markers)||void 0===e||null===(i=e.points)||void 0===i?void 0:i.filter(({time:c})=>c>0&&cA(n,r,c);t.forEach(c=>{const d=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";n&&(d.addEventListener("mouseenter",()=>{c.label||(n.style.left=g,n.innerHTML=c.label,o(!0))}),d.addEventListener("mouseleave",()=>{o(!1)})),d.addEventListener("click",()=>{this.currentTime=c.time}),d.style.left=g,a.appendChild(d)}),s.appendChild(a),this.config.tooltips.seek||(n=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function ut(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ht(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const I={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!L.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&m.setCaptionsMenu.call(this));var e,i;if(l.element(this.elements.captions)||(this.elements.captions=y("div",q(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),i=this.elements.wrapper,l.element(e=this.elements.captions)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)),V.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(r=>{const o=r.getAttribute("src"),c=ut(o);null!==c&&c.hostname!==window.location.href.hostname&&["http:","https:"].includes(c.protocol)&&Ee(o,"blob").then(d=>{r.setAttribute("src",window.URL.createObjectURL(d))}).catch(()=>{k(r)})})}const t=J((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let s=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===s&&([s]=t);let a=this.storage.get("captions");l.boolean(a)||({active:a}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:a,language:s,languages:t}),this.isHTML5&&P.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",I.update.bind(this)),setTimeout(I.update.bind(this),0)},update(){const e=I.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),P.call(this,r,"cuechange",()=>I.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(I.setLanguage.call(this,t),I.toggle.call(this,i&&n)),this.elements&&A(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&m.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=I.getTracks.call(this),r=I.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void I.set.call(this,n.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),A(this.elements.container,s,a),this.captions.toggled=a,m.updateSetting.call(this,"captions"),v.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=I.getTracks.call(this);if(-1!==e)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,m.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),v.call(this,this.media,"languagechange")}I.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&I.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else I.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=I.getTracks.call(this),a=I.findTrack.call(this,[t]);I.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=I.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),a=Array.from(t).sort((r,o)=>s(o)-s(r));let n;return e.every(r=>(n=a.find(o=>o.language===r),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return I.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&L.textTracks&&this.captions.toggled&&(i=I.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?z.get("enabled",this.config):e.language.toUpperCase():i.label:z.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=I.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(Tt)}const t=i.map(s=>s.trim()).join("\n");if(t!==this.elements.captions.innerHTML){M(this.elements.captions);const s=y("span",q(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),v.call(this,this.media,"cuechange")}}},pt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},mt="picture-in-picture",pe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Xe=()=>{};class At{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Xe}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Xe}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Xe}}class te{constructor(i){p(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active),v.call(this.player,this.target===this.player.media?this.target:this.player.elements.container,this.active?"enterfullscreen":"exitfullscreen",!0)}),p(this,"toggleFallback",(t=!1)=>{var s,a;if(t?this.scrollPosition={x:null!==(s=window.scrollX)&&void 0!==s?s:0,y:null!==(a=window.scrollY)&&void 0!==a?a:0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",A(this.target,this.player.config.classNames.fullscreen.fallback,t),V.isIos){let n=document.head.querySelector('meta[name="viewport"]');const r="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const o=l.string(n.content)&&n.content.includes(r);t?(this.cleanupViewport=!o,o||(n.content+=`,${r}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(c=>c.trim()!==r).join(","))}this.onChange()}),p(this,"trapFocus",t=>{if(V.isIos||V.isIPadOS||!this.active||"Tab"!==t.key)return;const s=document.activeElement,a=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,r=a[a.length-1];s!==r||t.shiftKey?s===n&&t.shiftKey&&(r.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}),p(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":te.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");A(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),p(this,"enter",()=>{this.supported&&(V.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!te.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),p(this,"exit",()=>{this.supported&&(V.isIos&&this.player.config.fullscreen.iosNative?(this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),H(this.player.play())):!te.nativeSupported||this.forceFallback?this.toggleFallback(!1):this.prefix?l.empty(this.prefix)||document[`${this.prefix}${"moz"===this.prefix?"Cancel":"Exit"}${this.property}`]():(document.cancelFullScreen||document.exitFullscreen).call(document))}),p(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=te.prefix,this.property=te.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===i.config.fullscreen.fallback,this.player.elements.fullscreen=i.config.fullscreen.container&&function(t,s){const{prototype:a}=Element;return(a.closest||function(){let n=this;do{if(_.matches(n,s))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null}).call(t,s)}(this.player.elements.container,i.config.fullscreen.container),P.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),P.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),P.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return te.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`])||(i=t,0))),i}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,te.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||te.nativeSupported||!V.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!te.nativeSupported||this.forceFallback)return Q(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){var i;return V.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(i=this.player.elements.fullscreen)&&void 0!==i?i:this.player.elements.container}}function We(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const O={addStyleHook(){A(this.elements.container,this.config.selectors.container.replace(".",""),!0),A(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void O.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(m.inject.call(this),this.listeners.controls()),O.toggleNativeControls.call(this),this.isHTML5&&I.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,m.updateVolume.call(this),m.timeUpdate.call(this),m.durationUpdate.call(this),O.checkPlaying.call(this),A(this.elements.container,this.config.classNames.pip.supported,L.pip&&this.isHTML5&&this.isVideo),A(this.elements.container,this.config.classNames.airplay.supported,L.airplay&&this.isHTML5),A(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{v.call(this,this.media,"ready")},0),O.setTitle.call(this),this.poster&&O.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&m.durationUpdate.call(this),this.config.mediaMetadata&&m.setMediaMetadata.call(this)},setTitle(){let e=z.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=D.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=z.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){A(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Pe.call(this).then(()=>We(e)).catch(t=>{throw e===this.poster&&O.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),O.togglePoster.call(this,!0),e)))},checkPlaying(e){A(this.elements.container,this.config.classNames.playing,this.playing),A(this.elements.container,this.config.classNames.paused,this.paused),A(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",z.get(this.playing?"pause":"play",this.config))}),l.event(e)&&"timeupdate"===e.type||O.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{A(this.elements.container,this.config.classNames.loading,this.loading),O.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class Et{constructor(i){p(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,A(s.container,t.config.classNames.isTouch,!0)}),p(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&le.call(s,window,"keydown keyup",this.handleKey,t,!1),le.call(s,document.body,"click",this.toggleMenu,t),fe.call(s,document.body,"touchstart",this.firstTouch)}),p(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&P.call(t,a.container,"keydown keyup",this.handleKey,!1),P.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:d}=a;d&&"enterfullscreen"===c.type&&(d.pressed=!1,d.hover=!1);let g=0;["touchstart","touchmove","mousemove"].includes(c.type)&&(O.toggleControls.call(t,!0),g=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>O.toggleControls.call(t,!1),g)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=a.wrapper,{active:d}=t.fullscreen,[g,w]=Ke.call(t),h=st(`aspect-ratio: ${g} / ${w}`);if(!d)return void(h?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null));const[T,x]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],N=T/x>g/w;h?(c.style.width=N?"auto":"100%",c.style.height=N?"100%":"auto"):(c.style.maxWidth=N?x/w*g+"px":null,c.style.margin=N?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(r,50)};P.call(t,a.container,"enterfullscreen exitfullscreen",c=>{const{target:d}=t.fullscreen;d===a.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(r(),("enterfullscreen"===c.type?P:ue).call(t,window,"resize",o)))})}),p(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(P.call(t,t.media,"timeupdate seeking seeked",n=>m.timeUpdate.call(t,n)),P.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>m.durationUpdate.call(t,n)),P.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),P.call(t,t.media,"progress playing seeking seeked",n=>m.updateProgress.call(t,n)),P.call(t,t.media,"volumechange",n=>m.updateVolume.call(t,n)),P.call(t,t.media,"playing play pause ended emptied timeupdate",n=>O.checkPlaying.call(t,n)),P.call(t,t.media,"waiting canplay seeked playing",n=>O.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=D.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;P.call(t,s.container,"click",r=>{([s.container,n].includes(r.target)||n.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{H(t.play())},"play")):this.proxy(r,()=>{H(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&P.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),P.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),P.call(t,t.media,"ratechange",()=>{m.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),P.call(t,t.media,"qualitychange",n=>{m.updateSetting.call(t,"quality",null,n.detail.quality)}),P.call(t,t.media,"ready qualitychange",()=>{m.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");P.call(t,t.media,a,n=>{let{detail:r={}}=n;"error"===n.type&&(r=t.media.error),v.call(t,s.container,n.type,!0,r)})}),p(this,"proxy",(t,s,a)=>{const{player:n}=this,r=n.config.listeners[a];let o=!0;l.function(r)&&(o=r.call(n,t)),!1!==o&&l.function(s)&&s.call(n,t)}),p(this,"bind",(t,s,a,n,r=!0)=>{const{player:o}=this,d=l.function(o.config.listeners[n]);P.call(o,t,s,g=>this.proxy(g,a,n),r&&!d)}),p(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=V.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{H(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{v.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),m.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{[" ","Enter"].includes(n.key)&&("Enter"!==n.key?(n.preventDefault(),n.stopPropagation(),m.toggleMenu.call(t,n)):m.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",n=>{"Escape"===n.key&&m.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const r=s.progress.getBoundingClientRect();n.currentTarget.setAttribute("seek-value",100/r.width*(n.pageX-r.left))}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const r=n.currentTarget,o="play-on-seeked";if(l.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),d=["mouseup","touchend","keyup"].includes(n.type);c&&d?(r.removeAttribute(o),H(t.play())):!d&&t.playing&&(r.setAttribute(o,""),t.pause())}),V.isIos){const n=G.call(t,'input[type="range"]');Array.from(n).forEach(r=>this.bind(r,a,o=>_e(o.target)))}this.bind(s.inputs.seek,a,n=>{const r=n.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>m.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(n)}),V.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",r=>m.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,m.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&"mouseenter"===n.type}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&"mouseenter"===r.type)})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:r}=t;A(s.controls,n.classNames.noTransition,!0),O.toggleControls.call(t,!0),setTimeout(()=>{A(s.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>O.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",n=>{const r=n.webkitDirectionInvertedFromDevice,[o,c]=[n.deltaX,-n.deltaY].map(w=>r?-w:w),d=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(d/50);const{volume:g}=t.media;(1===d&&g<1||-1===d&&g>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:a,type:n,altKey:r,ctrlKey:o,metaKey:c,shiftKey:d}=i,g="keydown"===n,w=g&&a===this.lastKey;var h;if(!(r||o||c||d)&&a)if(g){const T=document.activeElement;if(l.element(T)){const{editable:x}=t.config.selectors,{seek:N}=s.inputs;if(T!==N&&_(T,x)||" "===i.key&&_(T,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":w||(h=parseInt(a,10),t.currentTime=t.duration/10*h);break;case" ":case"k":w||H(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":w||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":w||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===a&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){m.toggleMenu.call(this.player,i)}}typeof globalThis<"u"||typeof window<"u"||typeof global<"u"&&global;var i,Mt=((i={exports:{}}).exports=function(){var t=function(){},s={},a={},n={};function o(h,T){if(h){var x=n[h];if(a[h]=T,x)for(;x.length;)x[0](h,T),x.splice(0,1)}}function c(h,T){h.call&&(h={success:h}),T.length?(h.error||t)(T):(h.success||t)(h)}function d(h,T,x,N){var U,C,$=document,f=x.async,E=(x.numRetries||0)+1,W=x.before||t,X=h.replace(/[\?|#].*$/,""),ie=h.replace(/^(css|img)!/,"");N=N||0,/(^css!|\.css$)/.test(X)?((C=$.createElement("link")).rel="stylesheet",C.href=ie,(U="hideFocus"in C)&&C.relList&&(U=0,C.rel="preload",C.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(X)?(C=$.createElement("img")).src=ie:((C=$.createElement("script")).src=h,C.async=void 0===f||f),C.onload=C.onerror=C.onbeforeload=function(re){var Ye=re.type[0];if(U)try{C.sheet.cssText.length||(Ye="e")}catch(Lt){18!=Lt.code&&(Ye="e")}if("e"==Ye){if((N+=1){Mt(e,{success:i,error:t})})}function Me(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}const Je={setup(){const e=this;A(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,ve.call(e),l.object(window.Vimeo)?Je.ready.call(e):Qe(e.config.urls.vimeo.sdk).then(()=>{Je.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...a}=i;let n=e.media.getAttribute("src"),r="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=function(f){const E=f.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return E&&5===E.length?E[4]:null}(n);const o=r?{h:r}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const c=ht({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...a}),d=l.empty(g=n)?null:l.number(Number(g))?g:g.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:g;var g;const w=y("iframe"),h=Ge(e.config.urls.vimeo.iframe,d,c);if(w.setAttribute("src",h),w.setAttribute("allowfullscreen",""),w.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||w.setAttribute("referrerPolicy",s),t||!i.customControls)w.setAttribute("data-poster",e.poster),e.media=F(w,e.media);else{const f=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(w),e.media=F(f,e.media)}i.customControls||Ee(Ge(e.config.urls.vimeo.api,h)).then(f=>{!l.empty(f)&&f.thumbnail_url&&O.setPoster.call(e,f.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(w,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Me.call(e,!0),e.embed.play()),e.media.pause=()=>(Me.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:T}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>T,set(f){const{embed:E,media:W,paused:X,volume:ie}=e,re=X&&!E.hasPlayed;W.seeking=!0,v.call(e,W,"seeking"),Promise.resolve(re&&E.setVolume(0)).then(()=>E.setCurrentTime(f)).then(()=>re&&E.pause()).then(()=>re&&E.setVolume(ie)).catch(()=>{})}});let x=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>x,set(f){e.embed.setPlaybackRate(f).then(()=>{x=f,v.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:N}=e.config;Object.defineProperty(e.media,"volume",{get:()=>N,set(f){e.embed.setVolume(f).then(()=>{N=f,v.call(e,e.media,"volumechange")})}});let{muted:U}=e.config;Object.defineProperty(e.media,"muted",{get:()=>U,set(f){const E=!!l.boolean(f)&&f;e.embed.setMuted(!!E||e.config.muted).then(()=>{U=E,v.call(e,e.media,"volumechange")})}});let C,{loop:$}=e.config;Object.defineProperty(e.media,"loop",{get:()=>$,set(f){const E=l.boolean(f)?f:e.config.loop.active;e.embed.setLoop(E).then(()=>{$=E})}}),e.embed.getVideoUrl().then(f=>{C=f,m.setDownloadUrl.call(e)}).catch(f=>{this.debug.warn(f)}),Object.defineProperty(e.media,"currentSrc",{get:()=>C}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(f=>{const[E,W]=f;e.embed.ratio=lt(E,W),ve.call(this)}),e.embed.setAutopause(e.config.autopause).then(f=>{e.config.autopause=f}),e.embed.getVideoTitle().then(f=>{e.config.title=f,O.setTitle.call(this)}),e.embed.getCurrentTime().then(f=>{T=f,v.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(f=>{e.media.duration=f,v.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(f=>{e.media.textTracks=f,I.setup.call(e)}),e.embed.on("cuechange",({cues:f=[]})=>{const E=f.map(W=>function(X){const ie=document.createDocumentFragment(),re=document.createElement("div");return ie.appendChild(re),re.innerHTML=X,ie.firstChild.innerText}(W.text));I.updateCues.call(e,E)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(f=>{Me.call(e,!f),f||v.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{v.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{v.call(e,e.media,"playing")}),e.embed.on("play",()=>{Me.call(e,!0),v.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Me.call(e,!1)}),e.embed.on("timeupdate",f=>{e.media.seeking=!1,T=f.seconds,v.call(e,e.media,"timeupdate")}),e.embed.on("progress",f=>{e.media.buffered=f.percent,v.call(e,e.media,"progress"),1===parseInt(f.percent,10)&&v.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(E=>{E!==e.media.duration&&(e.media.duration=E,v.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,v.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,v.call(e,e.media,"ended")}),e.embed.on("error",f=>{e.media.error=f,v.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>O.build.call(e),0)}};function xe(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}function xt(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const ze={setup(){if(A(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))ze.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),ze.ready.call(this)},Qe(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){Ee(Ge(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:a}=i;this.config.title=t,O.setTitle.call(this),this.embed.ratio=lt(a,s)}ve.call(this)}).catch(()=>{ve.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=l.empty(n=s)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n;var n;const r=y("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":i.customControls?e.poster:void 0});if(e.media=F(r,e.media),i.customControls){const o=c=>`https://i.ytimg.com/vi/${a}/${c}default.jpg`;We(o("maxres"),121).catch(()=>We(o("sd"),121)).catch(()=>We(o("hq"))).then(c=>O.setPoster.call(e,c.src)).then(c=>{c.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:xt(i),playerVars:R({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const c=o.data;e.media.error={code:c,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[c]||"An unknown error occurred"},v.call(e,e.media,"error")}},onPlaybackRateChange(o){e.media.playbackRate=o.target.getPlaybackRate(),v.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const c=o.target;ze.getTitle.call(e,a),e.media.play=()=>{xe.call(e,!0),c.playVideo()},e.media.pause=()=>{xe.call(e,!1),c.pauseVideo()},e.media.stop=()=>{c.stopVideo()},e.media.duration=c.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(c.getCurrentTime()),set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,v.call(e,e.media,"seeking"),c.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>c.getPlaybackRate(),set(h){c.setPlaybackRate(h)}});let{volume:d}=e.config;Object.defineProperty(e.media,"volume",{get:()=>d,set(h){d=h,c.setVolume(100*d),v.call(e,e.media,"volumechange")}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(h){const T=l.boolean(h)?h:g;g=T,c[T?"mute":"unMute"](),c.setVolume(100*d),v.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>c.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const w=c.getAvailablePlaybackRates();e.options.speed=w.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),v.call(e,e.media,"timeupdate"),v.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=c.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBufferedO.build.call(e),50)},onStateChange(o){const c=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,v.call(e,e.media,"seeked")),o.data){case-1:v.call(e,e.media,"timeupdate"),e.media.buffered=c.getVideoLoadedFraction(),v.call(e,e.media,"progress");break;case 0:xe.call(e,!1),e.media.loop?(c.stopVideo(),c.playVideo()):v.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(xe.call(e,!0),v.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{v.call(e,e.media,"timeupdate")},50),e.media.duration!==c.getDuration()&&(e.media.duration=c.getDuration(),v.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),xe.call(e,!1);break;case 3:v.call(e,e.media,"waiting")}v.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},ft={setup(){this.media?(A(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),A(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&A(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),S(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?he.setup.call(this):this.isYouTube?ze.setup.call(this):this.isVimeo&&Je.setup.call(this)):this.debug.warn("No media element found!")}};class Nt{constructor(i){p(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():Qe(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),p(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),p(this,"setupIMA",()=>{this.elements.container=y("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),p(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),p(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=Be(Math.max(this.manager.getRemainingTime(),0)),a=`${z.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)},100)}),p(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),p(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(0!==t&&-1!==t&&t{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((r=>{v.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`)}}),p(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),p(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,r)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),p(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),p(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,H(this.player.media.play())}),p(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),p(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),p(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),p(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),p(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),p(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),p(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${ht({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}function yt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}const It=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);n&&(s.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+ +`0.${n[4]}`,s.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+ +`0.${n[9]}`)}}),s.text&&i.push(s)}),i},bt=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class Ze{constructor(i){p(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),p(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,r)=>n.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(n).then(a)}})),p(this,"getThumbnail",t=>new Promise(s=>{Ee(t).then(a=>{const n={frames:It(a),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{n.height=r.naturalHeight,n.width=r.naturalWidth,this.thumbnails.push(n),s()},r.src=n.urlPrefix+n.frames[0].text})})),p(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var s,a;const n=this.player.elements.progress.getBoundingClientRect();this.seekTime=this.player.media.duration*(100/n.width*(t.pageX-n.left)/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Be(this.seekTime);const o=null===(s=this.player.config.markers)||void 0===s||null===(a=s.points)||void 0===a?void 0:a.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}
`)}this.showImageAtCurrentTime()}}),p(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),p(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),p(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):fe.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),p(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),p(this,"render",()=>{this.elements.thumb.container=y("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=y("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=y("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=y("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=y("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),p(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),p(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,r)=>{this.loadedImages.includes(n.frames[t].text)&&(a=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),p(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,r=a.frames[s],o=a.frames[s].text,c=n+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const d=new Image;d.src=c,d.dataset.index=s,d.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),d.onload=()=>this.showImage(d,r,t,s,o,!0),this.loadingImage=d,this.removeOldImages(d)}}),p(this,"showImage",(t,s,a,n,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${n}. qual: ${a}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,r))}),p(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if("img"!==s.tagName.toLowerCase())return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),p(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let r;r=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const d=c.text;if(d!==n&&!this.loadedImages.includes(d)){o=!0,this.player.debug.log(`Preloading thumb filename: ${d}`);const{urlPrefix:g}=this.thumbnails[0],w=g+d,h=new Image;h.src=w,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${d}`),this.loadedImages.includes(d)||this.loadedImages.push(d),a()}}}),o||a()}},300)})),p(this,"getHigherQuality",(t,s,a,n)=>{if(t{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),p(this,"toggleThumbContainer",(t=!1,s=!1)=>{this.elements.thumb.container.classList.toggle(this.player.config.classNames.previewThumbnails.thumbContainerShown,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),p(this,"toggleScrubbingContainer",(t=!1)=>{this.elements.scrubbing.container.classList.toggle(this.player.config.classNames.previewThumbnails.scrubbingContainerShown,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),p(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),p(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),p(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,o=this.mousePosX-t.left-a.clientWidth/2,c=yt(o,s.left-t.left+10,s.right-t.left-a.clientWidth-10);a.style.left=`${c}px`,a.style.setProperty("--preview-arrow-offset",o-c+"px")}),p(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),p(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*a+"px",t.style.width=t.naturalWidth*a+"px",t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const et={insertElements(e,i){l.string(i)?u(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{u(e,this.media,t)})},change(e){Ve(e,"sources.length")?(he.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],k(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=pe.html5,src:a}]=i,n="html5"===s?t:"div",r="html5"===s?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:L.check(t,s,this.config.playsinline),media:y(n,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),O.addStyleHook.call(this),this.isHTML5&&et.insertElements.call(this,"source",i),this.config.title=e.title,ft.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&et.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&O.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Ne{constructor(i,t){if(p(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>H(this.media.play())),this.media.play()):null),p(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),p(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),p(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),p(this,"restart",()=>{this.currentTime=0}),p(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),p(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),p(this,"increaseVolume",o=>{this.volume=(this.media.muted?0:this.volume)+(l.number(o)?o:0)}),p(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),p(this,"airplay",()=>{L.airplay&&this.media.webkitShowPlaybackTargetPicker()}),p(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=Q(this.elements.container,this.config.classNames.hideControls),g=A(this.elements.container,this.config.classNames.hideControls,void 0===o?void 0:!o);return g&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&m.toggleMenu.call(this,!1),g!==c&&v.call(this,this.media,g?"controlshidden":"controlsshown"),!g}return!1}),p(this,"on",(o,c)=>{P.call(this,this.elements.container,o,c)}),p(this,"once",(o,c)=>{fe.call(this,this.elements.container,o,c)}),p(this,"off",(o,c)=>{ue(this.elements.container,o,c)}),p(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const d=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(k(this.elements.buttons.play),k(this.elements.captions),k(this.elements.controls),k(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(Ce.call(this),he.cancelRequests.call(this),F(this.elements.original,this.elements.container),v.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(O.toggleNativeControls.call(this,!0),d()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&l.function(this.embed.destroy)&&this.embed.destroy(),d()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(d),setTimeout(d,200))}),p(this,"supports",o=>L.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=L.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=R({},pt,Ne.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new At(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",L),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!L.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,r=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(r=ut(n.getAttribute("src")),this.provider=(o=r.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(o)?pe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(o)?pe.vimeo:null),this.elements.container=this.media,this.media=n,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(pe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=a,this.provider=pe.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}var o;this.supported=L.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Et(this),this.storage=new Ae(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=y("div"),S(this.media,this.elements.container)),O.migrateStyles.call(this),O.addStyleHook.call(this),ft.setup.call(this),this.config.debug&&P.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new te(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&O.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Nt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>H(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===pe.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===pe.youtube}get isVimeo(){return this.provider===pe.vimeo}get isVideo(){return"video"===this.type}get isAudio(){return"audio"===this.type}get playing(){return!(!this.ready||this.paused||this.ended)}get paused(){return!!this.media.paused}get stopped(){return!(!this.paused||0!==this.currentTime)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!(this.isHTML5&&!this.isAudio&&!this.media.mozHasAudio&&!this.media.webkitAudioDecodedByteCount&&(!this.media.audioTracks||!this.media.audioTracks.length))}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=yt(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const r=it(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${r} instead`),a=r,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){et.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,m.setDownloadUrl.call(this))}set poster(i){this.isVideo?O.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=qe(Ke.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&at(i)?(this.config.ratio=qe(i),ve.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){I.toggle.call(this,i,!1)}set currentTrack(i){I.set.call(this,i,!1),I.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){I.setLanguage.call(this,i,!1)}get language(){return(I.getCurrentTrack.call(this)||{}).language}set pip(i){if(!L.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?mt:"inline"),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return L.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===mt:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))}static supported(i,t){return L.check(i,t)}static loadSprite(i,t){return ct(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new Ne(a,t))}}return Ne.defaults=JSON.parse(JSON.stringify(pt)),Ne}())}}]); \ No newline at end of file diff --git a/www/7916.f15bebeedebb8cc8.js b/www/7916.f15bebeedebb8cc8.js new file mode 100644 index 0000000..e340e04 --- /dev/null +++ b/www/7916.f15bebeedebb8cc8.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7916],{7916:(tt,p,j)=>{"use strict";j.r(p),j.d(p,{PlayerPageModule:()=>R});var we=j(177),Ie=j(9417),me=j(8974),ye=j(3021),oe=j(467),ge=j(5083);const ce=(0,ge.F3)("ScreenOrientation",{web:()=>j.e(9061).then(j.bind(j,9061)).then(S=>new S.ScreenOrientationWeb)}),Le={metadata:{mimeType:"application/pdf",artifactUrl:"https://obj.stage.sunbirded.org/sunbird-content-staging/content/do_21361377330381619213052/artifact/cbse-1st-class-activity-sheet-21.pdf",identifier:"do_21361377330381619213052",name:"pdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdfpdf",streamingUrl:"https://obj.stage.sunbirded.org/sunbird-content-staging/content/do_21361377330381619213052/artifact/cbse-1st-class-activity-sheet-21.pdf",isAvailableLocally:!1},config:{showEndPage:!1,endPage:[{template:"assessment",contentType:["SelfAssess"]}],splash:{webLink:"",text:"",icon:"",bgImage:"assets/icons/splacebackground_1.png"},overlay:{enableUserSwitcher:!0,showUser:!1},plugins:[{id:"org.sunbird.player.endpage",ver:"1.1",type:"plugin"}],sideMenu:{showShare:!1,showDownload:!1,showReplay:!1,showExit:!0,showPrint:!1}},context:{did:"da39a3ee5e6b4b0d3255bfef95601890afd80709",origin:"https://staging.sunbirded.org",pdata:{pid:"sunbird.app.contentplayer",ver:"6.0-local"},sid:"07ae2cf8-f53c-45f7-9cb9-dec8763e71e3",cdata:[],channel:"505c7c48ac6dc1edc9b08f21db5a571d"}},Oe={context:{mode:"play",authToken:"",sid:"7283cf2e-d215-9944-b0c5-269489c6fa56",did:"3c0a3724311fe944dec5df559cc4e006",uid:"anonymous",channel:"505c7c48ac6dc1edc9b08f21db5a571d",pdata:{id:"",ver:"",pid:""},contextRollup:{l1:"505c7c48ac6dc1edc9b08f21db5a571d"},tags:[""],cdata:[]},config:{sideMenu:{showShare:!1,showDownload:!1,showReplay:!1,showExit:!0}},metadata:{mimeType:"video/mp4",artifactUrl:"https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/content/do_21310353608830976014671/artifact/mp4_14.mp4",identifier:"do_21310353608830976014671",name:"mp4_14.mp4",streamingUrl:"https://ntppreprodmedia-inct.streaming.media.azure.net/409780ae-3fc2-4879-85f7-f1affcce55fa/mp4_14.ism/manifest(format=m3u8-aapl-v3)"}};var De=j(5331),je=j.n(De),B=j(3649),se=j(56),b=j(4438),de=j(2904),J=j(345),Te=j(5173),Re=j(4517);const be=["pdf"],Ue=["video"];function $e(S,Y){if(1&S){const y=b.RV6();b.j41(0,"ion-fab",7)(1,"ion-fab-button",8),b.bIt("click",function(){b.eBV(y);const k=b.XpG();return b.Njj(k.closePlayer())}),b.nrm(2,"ion-icon",9),b.k0s()()}}function Fe(S,Y){1&S&&b.nrm(0,"div",10,0)}function He(S,Y){1&S&&b.nrm(0,"div",11,1)}function l(S,Y){if(1&S&&(b.j41(0,"div")(1,"div",12),b.nrm(2,"iframe",13),b.k0s()()),2&S){const y=b.XpG();b.R7$(2),b.Y8G("src",y.srcUrl,b.f$h)}}function ke(S,Y){if(1&S&&(b.j41(0,"div"),b.nrm(1,"iframe",14),b.k0s()),2&S){const y=b.XpG();b.R7$(),b.Y8G("src",y.srcUrl,b.f$h)}}const V=[{path:"",component:(()=>{var S;class Y{constructor(u,k,M,F,q,K,A){var Q,_;this.router=u,this.headerService=k,this.location=M,this.domSanitiser=F,this.telemetryGeneratorService=q,this.telemetryService=K,this.platform=A,this.orientationType="",this.playerConfig={},this.playerType="",this.pageId="",this.cdata=[];let G=null===(Q=this.router.getCurrentNavigation())||void 0===Q?void 0:Q.extras;var D,Z,ne,L,ae;G&&(this.content=null===(D=G.state)||void 0===D?void 0:D.content,this.playerType=this.getPlayerType(this.content.metaData.mimetype),this.srcUrl=this.content.metaData.url.startsWith("https://")?this.domSanitiser.bypassSecurityTrustResourceUrl(this.content.metaData.url):this.domSanitiser.bypassSecurityTrustResourceUrl("https://"+this.content.metaData.url),this.pageId=null===(Z=G.state)||void 0===Z?void 0:Z.pageid),this.populateCData(),(null===(_=this.content)||void 0===_?void 0:_.metaData.mimetype)==se.Cc.YOUTUBE&&this.telemetryGeneratorService.generateStartTelemetry("content","player",new B.$i(null===(ne=this.content)||void 0===ne?void 0:ne.metaData.identifier,null===(L=this.content)||void 0===L?void 0:L.metaData.mimetype,""),{l1:null===(ae=this.content)||void 0===ae?void 0:ae.metaData.identifier},this.cdata)}getPlayerType(u){return u==se.Cc.PDF?"pdf":u==se.Cc.MP4||u==se.Cc.WEBM||u==se.Cc.AUDIO?"video":u==se.Cc.YOUTUBE?"youtube":"link"}ngOnInit(){var u=this;this.platform.backButton.subscribeWithPriority(11,(0,oe.A)(function*(){u.closePlayer()})),this.headerService.hideHeader(),this.headerService.hideStatusBar(),this.playerConfig=Le,this.videoConfig=Oe}ngAfterViewInit(){var u=this;return(0,oe.A)(function*(){if(u.orientationType=yield(yield ce.orientation()).type,"portrait-primary"==u.orientationType||"portrait-secondary"==u.orientationType)if(u.orientationType="landscape-primary",ce.unlock(),ce.lock({orientation:"landscape-primary"}),"pdf"==u.playerType){var k,M,F,q,K,A,Q,G,D,_;u.playerConfig.metadata.identifier=null===(k=u.content)||void 0===k?void 0:k.metaData.identifier,u.playerConfig.metadata.name=null===(M=u.content)||void 0===M?void 0:M.metaData.name,"local"!==(null===(F=u.content)||void 0===F?void 0:F.source)&&"local"!==(null===(q=u.content)||void 0===q?void 0:q.type)||null===(K=u.content)||void 0===K||!K.metaData.url.includes("file://")?(u.playerConfig.metadata.artifactUrl=(null===(G=u.content)||void 0===G?void 0:G.metaData.artifactUrl)||"",u.playerConfig.metadata.streamingUrl=null===(D=u.content)||void 0===D?void 0:D.metaData.url):(u.playerConfig.metadata.streamingUrl=ge.Ii.convertFileSrc(null===(_=u.content)||void 0===_?void 0:_.metaData.url.replace("file://","")),u.playerConfig.metadata.artifactUrl=""),u.playerConfig.metadata.isAvailableLocally="local"===(null===(A=u.content)||void 0===A?void 0:A.source)||"local"===(null===(Q=u.content)||void 0===Q?void 0:Q.type),u.playerConfig.metadata.baseDir="",u.playerConfig.context.cdata=u.cdata;const H=document.createElement("sunbird-pdf-player");H.setAttribute("player-config",JSON.stringify(u.playerConfig)),H.addEventListener("playerEvent",ee=>{u.playerEvents(ee)}),H.addEventListener("telemetryEvent",ee=>{u.playerTelemetryEvents(ee)}),u.pdf.nativeElement.append(H)}else if("video"==u.playerType){var Z,ne,L,ae,le,P,ue,v,Ce,fe;u.videoConfig.metadata.identifier=null===(Z=u.content)||void 0===Z?void 0:Z.metaData.identifier,u.videoConfig.metadata.name=null===(ne=u.content)||void 0===ne?void 0:ne.metaData.name,"local"!==(null===(L=u.content)||void 0===L?void 0:L.source)&&"local"!==(null===(ae=u.content)||void 0===ae?void 0:ae.type)||null===(le=u.content)||void 0===le||!le.metaData.url.includes("file://")?(u.videoConfig.metadata.streamingUrl="",u.videoConfig.metadata.artifactUrl=(null===(v=u.content)||void 0===v?void 0:v.metaData.artifactUrl)||(null===(Ce=u.content)||void 0===Ce?void 0:Ce.metaData.url)||""):(u.videoConfig.metadata.streamingUrl=ge.Ii.convertFileSrc(null===(fe=u.content)||void 0===fe?void 0:fe.metaData.url.replace("file://","")),u.videoConfig.metadata.artifactUrl=""),u.videoConfig.context.cdata=u.cdata,u.videoConfig.metadata.isAvailableLocally="local"===(null===(P=u.content)||void 0===P?void 0:P.source)||"local"===(null===(ue=u.content)||void 0===ue?void 0:ue.type);const H=document.createElement("sunbird-video-player");H.setAttribute("player-config",JSON.stringify(u.videoConfig)),H.addEventListener("playerEvent",ee=>{u.playerEvents(ee)}),H.addEventListener("telemetryEvent",ee=>{u.playerTelemetryEvents(ee)}),u.video.nativeElement.append(H)}else if("link"==u.playerType){var Pe;u.srcUrl=null===(Pe=u.content)||void 0===Pe?void 0:Pe.metaData.url}"link"!=u.playerType&&new(je())("#player",{autoplay:!0})})()}ionViewWillLeave(){("landscape-primary"==this.orientationType||"landscape-secondary"==this.orientationType)&&(this.orientationType="portrait-primary",ce.unlock(),ce.lock({orientation:"portrait-primary"})),this.headerService.showHeader(),this.headerService.showStatusBar(!1)}playerTelemetryEvents(u){var k,M;("START"===(null==u||null===(k=u.detail)||void 0===k?void 0:k.eid)||"END"===(null==u||null===(M=u.detail)||void 0===M?void 0:M.eid))&&this.telemetryService.saveTelemetry(JSON.stringify(u.detail)).subscribe(F=>console.log("response after telemetry",F))}closePlayer(){var u,k,M,F;(null===(u=this.content)||void 0===u?void 0:u.metaData.mimetype)==se.Cc.YOUTUBE&&this.telemetryGeneratorService.generateEndTelemetry("content","play","player","player",new B.$i(null===(k=this.content)||void 0===k?void 0:k.metaData.identifier,null===(M=this.content)||void 0===M?void 0:M.metaData.mimetype,""),{l1:null===(F=this.content)||void 0===F?void 0:F.metaData.identifier},[]),this.location.back()}playerEvents(u){var k,M;null!=u&&null!==(k=u.detail)&&void 0!==k&&null!==(k=k.edata)&&void 0!==k&&k.type&&"EXIT"===(null==u||null===(M=u.detail)||void 0===M||null===(M=M.edata)||void 0===M?void 0:M.type)&&this.location.back()}populateCData(){var u,k,M,F,q;this.cdata=[{id:null===(u=this.content)||void 0===u?void 0:u.metaData.mimetype,type:"MimeType"}],null!==(k=this.content)&&void 0!==k&&k.metaData.category&&this.cdata.push({id:null===(F=this.content)||void 0===F?void 0:F.metaData.category,type:"Category"}),null!==(M=this.content)&&void 0!==M&&M.metaData.language&&this.cdata.push({id:null===(q=this.content)||void 0===q?void 0:q.metaData.language,type:"Language"}),this.pageId&&this.cdata.push({id:this.pageId,type:"SourcePage"})}}return(S=Y).\u0275fac=function(u){return new(u||S)(b.rXU(ye.Ix),b.rXU(de.Ux),b.rXU(we.aZ),b.rXU(J.up),b.rXU(Te.O),b.rXU(de.H0),b.rXU(Re.OD))},S.\u0275cmp=b.VBU({type:S,selectors:[["app-player"]],viewQuery:function(u,k){if(1&u&&(b.GBs(be,5),b.GBs(Ue,5)),2&u){let M;b.mGM(M=b.lsd())&&(k.pdf=M.first),b.mGM(M=b.lsd())&&(k.video=M.first)}},decls:6,vars:5,consts:[["pdf",""],["video",""],["id","playerFullscreen",1,"player-fullscreen"],["slot","fixed","vertical","top","horizontal","start","size","small",4,"ngIf"],["class","pdf-player",4,"ngIf"],["class","video-player",4,"ngIf"],[4,"ngIf"],["slot","fixed","vertical","top","horizontal","start","size","small"],["color","danger","size","small",3,"click"],["name","close"],[1,"pdf-player"],[1,"video-player"],["id","player",1,"plyr__video-embed"],["title","","allowfullscreen","","allow","autoplay",3,"src"],["title","External Website",1,"iframeCss",3,"src"]],template:function(u,k){1&u&&(b.j41(0,"div",2),b.DNE(1,$e,3,0,"ion-fab",3)(2,Fe,2,0,"div",4)(3,He,2,0,"div",5)(4,l,3,1,"div",6)(5,ke,2,1,"div",6),b.k0s()),2&u&&(b.R7$(),b.Y8G("ngIf",k.playerType),b.R7$(),b.Y8G("ngIf","pdf"===k.playerType),b.R7$(),b.Y8G("ngIf","video"===k.playerType),b.R7$(),b.Y8G("ngIf","youtube"===k.playerType),b.R7$(),b.Y8G("ngIf","link"===k.playerType))},dependencies:[we.bT,me.Q8,me.YW,me.iq],styles:['.player-fullscreen[_ngcontent-%COMP%], .player-fullscreen[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .pdf-player[_ngcontent-%COMP%], .video-player[_ngcontent-%COMP%]{height:100%}iframe[_ngcontent-%COMP%]{width:100%;height:100%}ion-fab[_ngcontent-%COMP%]{top:.2rem!important;left:.2rem!important}.iframeCss[_ngcontent-%COMP%]{width:"100%";height:"500px";border:"1px solid #ccc";padding:"10px";border-radius:"5px";margin-top:"10px"}']}),Y})()}];let Ve=(()=>{var S;class Y{}return(S=Y).\u0275fac=function(u){return new(u||S)},S.\u0275mod=b.$C({type:S}),S.\u0275inj=b.G2t({imports:[ye.iI.forChild(V),ye.iI]}),Y})(),R=(()=>{var S;class Y{}return(S=Y).\u0275fac=function(u){return new(u||S)},S.\u0275mod=b.$C({type:S}),S.\u0275inj=b.G2t({imports:[we.MD,Ie.YN,me.bv,Ve]}),Y})()},5331:function(tt){"object"==typeof navigator&&(tt.exports=function(){"use strict";function p(e,i,t){return(i="symbol"==typeof(a=function(n,r){if("object"!=typeof n||null===n)return n;var o=n[Symbol.toPrimitive];if(void 0!==o){var c=o.call(n,"string");if("object"!=typeof c)return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(i))?a:String(a))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e;var a}function j(e,i){for(var t=0;t(t=100/c.width*(a.clientX-c.left))?t=0:100t?t-=(100-2*t)*d:50i){var t=(a="".concat(i).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0;return parseFloat(e.toFixed(t))}var a;return Math.round(e/i)*i}(t/100*(r-n),o)}},{key:"set",value:function(i){e.enabled&&B_event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),function(t,s){if(t&&s){var a=new Event(s,{bubbles:!0});t.dispatchEvent(a)}}(i.target,"touchend"===i.type?"change":"input"))}}],s=[{key:"setup",value:function(i){var t=1null!=e?e.constructor:null,J=(e,i)=>!!(e&&i&&e instanceof i),Te=e=>null==e,Re=e=>de(e)===Object,be=e=>de(e)===String,Ue=e=>"function"==typeof e,$e=e=>Array.isArray(e),Fe=e=>J(e,NodeList),He=e=>Te(e)||(be(e)||$e(e)||Fe(e))&&!e.length||Re(e)&&!Object.keys(e).length;var l={nullOrUndefined:Te,object:Re,number:e=>de(e)===Number&&!Number.isNaN(e),string:be,boolean:e=>de(e)===Boolean,function:Ue,array:$e,weakMap:e=>J(e,WeakMap),nodeList:Fe,element:e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,textNode:e=>de(e)===Text,event:e=>J(e,Event),keyboardEvent:e=>J(e,KeyboardEvent),cue:e=>J(e,window.TextTrackCue)||J(e,window.VTTCue),track:e=>J(e,TextTrack)||!Te(e)&&be(e.kind),promise:e=>J(e,Promise)&&Ue(e.then),url:e=>{if(J(e,window.URL))return!0;if(!be(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!He(new URL(i).hostname)}catch{return!1}},empty:He};const ke=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>void 0!==e.style[s]);return!!l.string(t)&&i[t]})();function _e(e,i){setTimeout(()=>{try{e.hidden=!0,e.hidden=!1}catch{}},i)}var V={isIE:!!window.document.documentMode,isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function Ve(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function R(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),R(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),R(e,...i)):e}function S(e,i){Array.from(e.length?e:[e]).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;n.appendChild(s),o?r.insertBefore(n,o):r.appendChild(n)})}function Y(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&Y(s,i),l.string(t)&&(s.innerText=t),s}function u(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function k(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(k):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function M(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function F(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function q(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=R({},i);return e.split(",").forEach(a=>{const n=a.trim(),r=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,d=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":t.class=l.string(s.class)?`${s.class} ${r}`:r;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=d}}),R(s,t)}function K(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function A(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>A(s,i,t));if(l.element(e)){let s="toggle";return void 0!==t&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function Q(e,i){return l.element(e)&&e.classList.contains(i)}function _(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function D(e){return this.elements.container.querySelector(e)}function Z(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const ne={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},L={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=L[e]||"html5"!==i;return{api:t,ui:t&&L.rangeInput}},pip:!(V.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(ne).includes(t)&&(t+=`; codecs="${ne[e]}"`);try{return!(!t||!this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==ke,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ae=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function le(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=n;ae&&(o={passive:a,capture:n}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function P(e,i="",t,s=!0,a=!1){le.call(this,e,i,t,!0,s,a)}function ue(e,i="",t,s=!0,a=!1){le.call(this,e,i,t,!1,s,a)}function fe(e,i="",t,s=!0,a=!1){const n=(...r)=>{ue(e,i,n,s,a),t.apply(this,r)};le.call(this,e,i,n,!0,s,a)}function v(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Ce(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Pe(){return new Promise(e=>this.ready?setTimeout(e,0):P.call(this,this.elements.container,"ready",e)).then(()=>{})}function H(e){l.promise(e)&&e.then(null,()=>{})}function ee(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function at(e){return!!(l.array(e)||l.string(e)&&e.includes(":"))&&(l.array(e)?e:e.split(":")).map(Number).every(l.number)}function qe(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,r)=>0===r?n:s(r,n%r),a=s(i,t);return[i/a,t/a]}function Ke(e){const i=s=>at(s)?s.split(":").map(Number):null;let t=i(e);if(null===t&&(t=i(this.config.ratio)),null===t&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),null===t&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return qe(t)}function ve(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ke.call(this,e);if(!l.array(t))return{};const[s,a]=qe(t),n=100/s*a;if(st(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-n)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:t}}function lt(e,i,t=.05){const s=e/i,a=it(Object.keys(nt),s);return Math.abs(a-s)<=t?nt[a]:[e,i]}const he={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||L.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:he.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||ve.call(e),Object.defineProperty(e.media,"quality",{get(){const i=he.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=he.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),("none"!==n||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||H(e.play())}),e.media.load())}v.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(k(he.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ge(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}const Se=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),rt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function Tt(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const ot={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},z={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=Ve(i.i18n,e);return l.empty(t)?Object.keys(ot).includes(e)?ot[e]:"":(Object.entries({"{seektime}":i.seekTime,"{title}":i.title}).forEach(([a,n])=>{t=Se(t,a,n)}),t)}};class Ae{constructor(i){p(this,"get",t=>{if(!Ae.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),p(this,"set",t=>{if(!Ae.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),R(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Ee(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if("text"===i)try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function ct(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let a=!1;const n=()=>null!==document.getElementById(i),r=(o,c)=>{o.innerHTML=c,s&&n()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=Ae.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const d=window.localStorage.getItem(`${t}-${i}`);if(a=null!==d,a){const g=JSON.parse(d);r(c,g.content)}}Ee(e).then(d=>{if(!l.empty(d)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:d}))}catch{}r(c,d)}}).catch(()=>{})}}const dt=e=>Math.trunc(e/60/60%60,10);function Be(e=0,i=!1,t=!1){if(!l.number(e))return Be(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=dt(e);const n=(e=>Math.trunc(e/60%60,10))(e),r=(e=>Math.trunc(e%60,10))(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const m={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||V.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=D.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:D.call(this,this.config.selectors.buttons.pause),restart:D.call(this,this.config.selectors.buttons.restart),rewind:D.call(this,this.config.selectors.buttons.rewind),fastForward:D.call(this,this.config.selectors.buttons.fastForward),mute:D.call(this,this.config.selectors.buttons.mute),pip:D.call(this,this.config.selectors.buttons.pip),airplay:D.call(this,this.config.selectors.buttons.airplay),settings:D.call(this,this.config.selectors.buttons.settings),captions:D.call(this,this.config.selectors.buttons.captions),fullscreen:D.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=D.call(this,this.config.selectors.progress),this.elements.inputs={seek:D.call(this,this.config.selectors.inputs.seek),volume:D.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:D.call(this,this.config.selectors.display.buffer),currentTime:D.call(this,this.config.selectors.display.currentTime),duration:D.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=m.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Y(n,R(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(r),n},createLabel(e,i={}){const t=z.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=R({},i);let s=function wt(e=""){let i=e.toString();return i=function(t=""){let s=t.toString();return s=Se(s,"-"," "),s=Se(s,"_"," "),s=rt(s),Se(s," ","")}(i),i.charAt(0).toLowerCase()+i.slice(1)}(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(a[r]=t[r],delete t[r])}),"button"!==a.element||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||R(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=y(a.element);return a.toggle?(n.appendChild(m.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(m.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(m.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(m.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(m.createIcon.call(this,a.icon)),n.appendChild(m.createLabel.call(this,a.label))),R(t,q(this.config.selectors.buttons[s],t)),Y(n,t),"play"===s?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=y("input",R(q(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":z.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,m.updateRangeFill.call(this,t),b.setup(t),t},createProgress(e,i){const t=y("progress",R(q(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if("volume"!==e){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?z.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=q(this.config.selectors.display[e],i),s=y("div",R(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":z.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){P.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),"keydown"===t.type))return;const s=_(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))m.showMenuPanel.call(this,i,!0);else{let a;" "!==t.key&&("ArrowDown"===t.key||s&&"ArrowRight"===t.key?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),Z.call(this,a,!0))}},!1),P.call(this,e,"keyup",t=>{"Return"===t.key&&m.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const r=q(this.config.selectors.inputs[t]),o=y("button",R(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":n,value:e})),c=y("span");c.innerHTML=s,l.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>"true"===o.getAttribute("aria-checked"),set(d){d&&Array.from(o.parentNode.children).filter(g=>_(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",d?"true":"false")}}),this.listeners.bind(o,"click keyup",d=>{if(!l.keyboardEvent(d)||" "===d.key){switch(d.preventDefault(),d.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}m.showMenuPanel.call(this,"home",l.keyboardEvent(d))}},t,!1),m.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?Be(e,dt(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=m.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&m.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,i=0){l.element(e)&&(e.value=i,m.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(n,r)=>{const o=l.number(r)?r:0,c=l.element(n)?n:this.elements.display.buffer;if(l.element(c)){c.value=o;const d=c.getElementsByTagName("span")[0];l.element(d)&&(d.childNodes[0].nodeValue=o)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":a=this.duration,i=0===(s=this.currentTime)||0===a||Number.isNaN(s)||Number.isNaN(a)?0:(s/a*100).toFixed(2),"timeupdate"===e.type&&m.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}var s,a},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&"range"===i.getAttribute("type")){if(_(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=m.formatTime(this.currentTime),s=m.formatTime(this.duration),a=z.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(_(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(V.isWebKit||V.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=g=>A(s,a,g);if(this.touch)return void n(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!Q(s,a))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=m.formatTime(c);const d=null===(i=this.config.markers)||void 0===i||null===(t=i.points)||void 0===t?void 0:t.find(({time:g})=>g===Math.round(c));d&&s.insertAdjacentHTML("afterbegin",`${d.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;m.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&"timeupdate"===e.type&&this.media.seeking||m.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return K(this.elements.display.currentTime,!0),void K(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&m.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&m.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&m.setMarkers.call(this),m.updateSeekTooltip.call(this)},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if("captions"===e)a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=m.getLabel.call(this,e,a);const r=n&&n.querySelector(`[value="${a}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return 1===i?z.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=z.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return rt(i);case"captions":return I.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=ee(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(m.toggleMenuButton.call(this,i,s),M(t),m.checkMenu.call(this),!s)return;const a=n=>{const r=z.get(`qualityBadge.${n}`,this.config);return r.length?m.createBadge.call(this,r):null};this.options.quality.sort((n,r)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(r)?1:-1}).forEach(n=>{m.createMenuItem.call(this,{value:n,list:t,type:i,title:m.getLabel.call(this,"quality",n),badge:a(n)})}),m.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=I.getTracks.call(this),s=!!t.length;if(m.toggleMenuButton.call(this,e,s),M(i),m.checkMenu.call(this),!s)return;const a=t.map((n,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:I.getLabel.call(this,n),badge:n.language&&m.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:z.get("disabled",this.config),list:i,type:"language"}),a.forEach(m.createMenuItem.bind(this)),m.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;m.toggleMenuButton.call(this,e,t),M(i),m.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{m.createMenuItem.call(this,{value:s,list:i,type:e,title:m.getLabel.call(this,"speed",s)})}),m.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);K(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');Z.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&"Escape"===e.key)a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(n);if(r||!r&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),K(i,!a),A(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?m.focusFirstMenuItem.call(this,null,!0):a||s||Z.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return k(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(L.transitions&&!L.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=m.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",ue.call(this,s,ke,r))};P.call(this,s,ke,r),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}K(a,!0),K(t,!1),m.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=m;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const d=y("div",q(this.config.selectors.controls.wrapper));this.elements.controls=d;const g={class:"plyr__controls__item"};return ee(l.array(this.config.controls)?this.config.controls:[]).forEach(w=>{if("restart"===w&&d.appendChild(t.call(this,"restart",g)),"rewind"===w&&d.appendChild(t.call(this,"rewind",g)),"play"===w&&d.appendChild(t.call(this,"play",g)),"fast-forward"===w&&d.appendChild(t.call(this,"fast-forward",g)),"progress"===w){const h=y("div",{class:`${g.class} plyr__progress__container`}),T=y("div",q(this.config.selectors.progress));if(T.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),T.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const x=y("span",{class:this.config.classNames.tooltip},"00:00");T.appendChild(x),this.elements.display.seekTooltip=x}this.elements.progress=T,h.appendChild(this.elements.progress),d.appendChild(h)}if("current-time"===w&&d.appendChild(n.call(this,"currentTime",g)),"duration"===w&&d.appendChild(n.call(this,"duration",g)),"mute"===w||"volume"===w){let{volume:h}=this.elements;l.element(h)&&d.contains(h)||(h=y("div",R({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=h,d.appendChild(h)),"mute"===w&&h.appendChild(t.call(this,"mute")),"volume"!==w||V.isIos||V.isIPadOS||h.appendChild(a.call(this,"volume",R({max:1,step:.05,value:this.config.volume},{id:`plyr-volume-${e.id}`})))}if("captions"===w&&d.appendChild(t.call(this,"captions",g)),"settings"===w&&!l.empty(this.config.settings)){const h=y("div",R({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const T=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),x=y("div"),N=y("div",{id:`plyr-settings-${e.id}-home`}),U=y("div",{role:"menu"});N.appendChild(U),x.appendChild(N),this.elements.settings.panels.home=N,this.config.settings.forEach(C=>{const $=y("button",R(q(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,$,C),P.call(this,$,"click",()=>{c.call(this,C,!1)});const f=y("span",null,z.get(C,this.config)),E=y("span",{class:this.config.classNames.menu.value});E.innerHTML=e[C],f.appendChild(E),$.appendChild(f),U.appendChild($);const W=y("div",{id:`plyr-settings-${e.id}-${C}`,hidden:""}),X=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});X.appendChild(y("span",{"aria-hidden":!0},z.get(C,this.config))),X.appendChild(y("span",{class:this.config.classNames.hidden},z.get("menuBack",this.config))),P.call(this,W,"keydown",ie=>{"ArrowLeft"===ie.key&&(ie.preventDefault(),ie.stopPropagation(),c.call(this,"home",!0))},!1),P.call(this,X,"click",()=>{c.call(this,"home",!1)}),W.appendChild(X),W.appendChild(y("div",{role:"menu"})),x.appendChild(W),this.elements.settings.buttons[C]=$,this.elements.settings.panels[C]=W}),T.appendChild(x),h.appendChild(T),d.appendChild(h),this.elements.settings.popup=T,this.elements.settings.menu=h}if("pip"===w&&L.pip&&d.appendChild(t.call(this,"pip",g)),"airplay"===w&&L.airplay&&d.appendChild(t.call(this,"airplay",g)),"download"===w){const h=R({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:T}=this.config.urls;!l.url(T)&&this.isEmbed&&R(h,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(t.call(this,"download",h))}"fullscreen"===w&&d.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,he.getQualityOptions.call(this)),o.call(this),d},inject(){if(this.config.loadSprite){const a=m.getIconUrl.call(this);a.cors&&ct(a.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let s,t=!0;if(l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=m.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:I.getLabel.call(this)}),t=!1),t&&l.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([r,o])=>{n=Se(n,`{${r}}`,o)}),n})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||m.findElements.call(this),!l.empty(this.elements.buttons)){const a=n=>{const r=this.config.classNames.controlPressed;n.setAttribute("aria-pressed","false"),Object.defineProperty(n,"pressed",{configurable:!0,enumerable:!0,get:()=>Q(n,r),set(o=!1){A(n,r,o),n.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{l.array(n)||l.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(V.isEdge&&_e(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,o=G.call(this,`${n.controls.wrapper} ${n.labels} .${a.hidden}`);Array.from(o).forEach(c=>{A(c,this.config.classNames.hidden,!1),A(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=null===(e=this.config.markers)||void 0===e||null===(i=e.points)||void 0===i?void 0:i.filter(({time:c})=>c>0&&cA(n,r,c);t.forEach(c=>{const d=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";n&&(d.addEventListener("mouseenter",()=>{c.label||(n.style.left=g,n.innerHTML=c.label,o(!0))}),d.addEventListener("mouseleave",()=>{o(!1)})),d.addEventListener("click",()=>{this.currentTime=c.time}),d.style.left=g,a.appendChild(d)}),s.appendChild(a),this.config.tooltips.seek||(n=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function ut(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ht(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const I={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!L.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&m.setCaptionsMenu.call(this));var e,i;if(l.element(this.elements.captions)||(this.elements.captions=y("div",q(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),i=this.elements.wrapper,l.element(e=this.elements.captions)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)),V.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(r=>{const o=r.getAttribute("src"),c=ut(o);null!==c&&c.hostname!==window.location.href.hostname&&["http:","https:"].includes(c.protocol)&&Ee(o,"blob").then(d=>{r.setAttribute("src",window.URL.createObjectURL(d))}).catch(()=>{k(r)})})}const t=ee((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let s=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===s&&([s]=t);let a=this.storage.get("captions");l.boolean(a)||({active:a}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:a,language:s,languages:t}),this.isHTML5&&P.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",I.update.bind(this)),setTimeout(I.update.bind(this),0)},update(){const e=I.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),P.call(this,r,"cuechange",()=>I.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(I.setLanguage.call(this,t),I.toggle.call(this,i&&n)),this.elements&&A(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&m.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=I.getTracks.call(this),r=I.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void I.set.call(this,n.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),A(this.elements.container,s,a),this.captions.toggled=a,m.updateSetting.call(this,"captions"),v.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=I.getTracks.call(this);if(-1!==e)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,m.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),v.call(this,this.media,"languagechange")}I.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&I.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else I.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=I.getTracks.call(this),a=I.findTrack.call(this,[t]);I.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=I.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),a=Array.from(t).sort((r,o)=>s(o)-s(r));let n;return e.every(r=>(n=a.find(o=>o.language===r),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return I.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&L.textTracks&&this.captions.toggled&&(i=I.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?z.get("enabled",this.config):e.language.toUpperCase():i.label:z.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=I.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(Tt)}const t=i.map(s=>s.trim()).join("\n");if(t!==this.elements.captions.innerHTML){M(this.elements.captions);const s=y("span",q(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),v.call(this,this.media,"cuechange")}}},pt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},mt="picture-in-picture",pe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Xe=()=>{};class At{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Xe}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Xe}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Xe}}class te{constructor(i){p(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active),v.call(this.player,this.target===this.player.media?this.target:this.player.elements.container,this.active?"enterfullscreen":"exitfullscreen",!0)}),p(this,"toggleFallback",(t=!1)=>{var s,a;if(t?this.scrollPosition={x:null!==(s=window.scrollX)&&void 0!==s?s:0,y:null!==(a=window.scrollY)&&void 0!==a?a:0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",A(this.target,this.player.config.classNames.fullscreen.fallback,t),V.isIos){let n=document.head.querySelector('meta[name="viewport"]');const r="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const o=l.string(n.content)&&n.content.includes(r);t?(this.cleanupViewport=!o,o||(n.content+=`,${r}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(c=>c.trim()!==r).join(","))}this.onChange()}),p(this,"trapFocus",t=>{if(V.isIos||V.isIPadOS||!this.active||"Tab"!==t.key)return;const s=document.activeElement,a=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,r=a[a.length-1];s!==r||t.shiftKey?s===n&&t.shiftKey&&(r.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}),p(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":te.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");A(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),p(this,"enter",()=>{this.supported&&(V.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!te.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),p(this,"exit",()=>{this.supported&&(V.isIos&&this.player.config.fullscreen.iosNative?(this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),H(this.player.play())):!te.nativeSupported||this.forceFallback?this.toggleFallback(!1):this.prefix?l.empty(this.prefix)||document[`${this.prefix}${"moz"===this.prefix?"Cancel":"Exit"}${this.property}`]():(document.cancelFullScreen||document.exitFullscreen).call(document))}),p(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=te.prefix,this.property=te.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===i.config.fullscreen.fallback,this.player.elements.fullscreen=i.config.fullscreen.container&&function(t,s){const{prototype:a}=Element;return(a.closest||function(){let n=this;do{if(_.matches(n,s))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null}).call(t,s)}(this.player.elements.container,i.config.fullscreen.container),P.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),P.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),P.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return te.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`])||(i=t,0))),i}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,te.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||te.nativeSupported||!V.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!te.nativeSupported||this.forceFallback)return Q(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){var i;return V.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(i=this.player.elements.fullscreen)&&void 0!==i?i:this.player.elements.container}}function We(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const O={addStyleHook(){A(this.elements.container,this.config.selectors.container.replace(".",""),!0),A(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void O.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(m.inject.call(this),this.listeners.controls()),O.toggleNativeControls.call(this),this.isHTML5&&I.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,m.updateVolume.call(this),m.timeUpdate.call(this),m.durationUpdate.call(this),O.checkPlaying.call(this),A(this.elements.container,this.config.classNames.pip.supported,L.pip&&this.isHTML5&&this.isVideo),A(this.elements.container,this.config.classNames.airplay.supported,L.airplay&&this.isHTML5),A(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{v.call(this,this.media,"ready")},0),O.setTitle.call(this),this.poster&&O.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&m.durationUpdate.call(this),this.config.mediaMetadata&&m.setMediaMetadata.call(this)},setTitle(){let e=z.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=D.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=z.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){A(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Pe.call(this).then(()=>We(e)).catch(t=>{throw e===this.poster&&O.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),O.togglePoster.call(this,!0),e)))},checkPlaying(e){A(this.elements.container,this.config.classNames.playing,this.playing),A(this.elements.container,this.config.classNames.paused,this.paused),A(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",z.get(this.playing?"pause":"play",this.config))}),l.event(e)&&"timeupdate"===e.type||O.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{A(this.elements.container,this.config.classNames.loading,this.loading),O.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class Et{constructor(i){p(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,A(s.container,t.config.classNames.isTouch,!0)}),p(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&le.call(s,window,"keydown keyup",this.handleKey,t,!1),le.call(s,document.body,"click",this.toggleMenu,t),fe.call(s,document.body,"touchstart",this.firstTouch)}),p(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&P.call(t,a.container,"keydown keyup",this.handleKey,!1),P.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:d}=a;d&&"enterfullscreen"===c.type&&(d.pressed=!1,d.hover=!1);let g=0;["touchstart","touchmove","mousemove"].includes(c.type)&&(O.toggleControls.call(t,!0),g=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>O.toggleControls.call(t,!1),g)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=a.wrapper,{active:d}=t.fullscreen,[g,w]=Ke.call(t),h=st(`aspect-ratio: ${g} / ${w}`);if(!d)return void(h?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null));const[T,x]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],N=T/x>g/w;h?(c.style.width=N?"auto":"100%",c.style.height=N?"100%":"auto"):(c.style.maxWidth=N?x/w*g+"px":null,c.style.margin=N?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(r,50)};P.call(t,a.container,"enterfullscreen exitfullscreen",c=>{const{target:d}=t.fullscreen;d===a.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(r(),("enterfullscreen"===c.type?P:ue).call(t,window,"resize",o)))})}),p(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(P.call(t,t.media,"timeupdate seeking seeked",n=>m.timeUpdate.call(t,n)),P.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>m.durationUpdate.call(t,n)),P.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),P.call(t,t.media,"progress playing seeking seeked",n=>m.updateProgress.call(t,n)),P.call(t,t.media,"volumechange",n=>m.updateVolume.call(t,n)),P.call(t,t.media,"playing play pause ended emptied timeupdate",n=>O.checkPlaying.call(t,n)),P.call(t,t.media,"waiting canplay seeked playing",n=>O.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=D.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;P.call(t,s.container,"click",r=>{([s.container,n].includes(r.target)||n.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{H(t.play())},"play")):this.proxy(r,()=>{H(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&P.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),P.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),P.call(t,t.media,"ratechange",()=>{m.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),P.call(t,t.media,"qualitychange",n=>{m.updateSetting.call(t,"quality",null,n.detail.quality)}),P.call(t,t.media,"ready qualitychange",()=>{m.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");P.call(t,t.media,a,n=>{let{detail:r={}}=n;"error"===n.type&&(r=t.media.error),v.call(t,s.container,n.type,!0,r)})}),p(this,"proxy",(t,s,a)=>{const{player:n}=this,r=n.config.listeners[a];let o=!0;l.function(r)&&(o=r.call(n,t)),!1!==o&&l.function(s)&&s.call(n,t)}),p(this,"bind",(t,s,a,n,r=!0)=>{const{player:o}=this,d=l.function(o.config.listeners[n]);P.call(o,t,s,g=>this.proxy(g,a,n),r&&!d)}),p(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=V.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{H(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{v.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),m.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{[" ","Enter"].includes(n.key)&&("Enter"!==n.key?(n.preventDefault(),n.stopPropagation(),m.toggleMenu.call(t,n)):m.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",n=>{"Escape"===n.key&&m.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const r=s.progress.getBoundingClientRect();n.currentTarget.setAttribute("seek-value",100/r.width*(n.pageX-r.left))}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const r=n.currentTarget,o="play-on-seeked";if(l.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),d=["mouseup","touchend","keyup"].includes(n.type);c&&d?(r.removeAttribute(o),H(t.play())):!d&&t.playing&&(r.setAttribute(o,""),t.pause())}),V.isIos){const n=G.call(t,'input[type="range"]');Array.from(n).forEach(r=>this.bind(r,a,o=>_e(o.target)))}this.bind(s.inputs.seek,a,n=>{const r=n.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>m.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(n)}),V.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",r=>m.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,m.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&"mouseenter"===n.type}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&"mouseenter"===r.type)})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:r}=t;A(s.controls,n.classNames.noTransition,!0),O.toggleControls.call(t,!0),setTimeout(()=>{A(s.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>O.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",n=>{const r=n.webkitDirectionInvertedFromDevice,[o,c]=[n.deltaX,-n.deltaY].map(w=>r?-w:w),d=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(d/50);const{volume:g}=t.media;(1===d&&g<1||-1===d&&g>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:a,type:n,altKey:r,ctrlKey:o,metaKey:c,shiftKey:d}=i,g="keydown"===n,w=g&&a===this.lastKey;var h;if(!(r||o||c||d)&&a)if(g){const T=document.activeElement;if(l.element(T)){const{editable:x}=t.config.selectors,{seek:N}=s.inputs;if(T!==N&&_(T,x)||" "===i.key&&_(T,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":w||(h=parseInt(a,10),t.currentTime=t.duration/10*h);break;case" ":case"k":w||H(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":w||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":w||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===a&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){m.toggleMenu.call(this.player,i)}}typeof globalThis<"u"||typeof window<"u"||typeof global<"u"&&global;var i,Mt=((i={exports:{}}).exports=function(){var t=function(){},s={},a={},n={};function o(h,T){if(h){var x=n[h];if(a[h]=T,x)for(;x.length;)x[0](h,T),x.splice(0,1)}}function c(h,T){h.call&&(h={success:h}),T.length?(h.error||t)(T):(h.success||t)(h)}function d(h,T,x,N){var U,C,$=document,f=x.async,E=(x.numRetries||0)+1,W=x.before||t,X=h.replace(/[\?|#].*$/,""),ie=h.replace(/^(css|img)!/,"");N=N||0,/(^css!|\.css$)/.test(X)?((C=$.createElement("link")).rel="stylesheet",C.href=ie,(U="hideFocus"in C)&&C.relList&&(U=0,C.rel="preload",C.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(X)?(C=$.createElement("img")).src=ie:((C=$.createElement("script")).src=h,C.async=void 0===f||f),C.onload=C.onerror=C.onbeforeload=function(re){var Ye=re.type[0];if(U)try{C.sheet.cssText.length||(Ye="e")}catch(Lt){18!=Lt.code&&(Ye="e")}if("e"==Ye){if((N+=1){Mt(e,{success:i,error:t})})}function Me(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}const Je={setup(){const e=this;A(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,ve.call(e),l.object(window.Vimeo)?Je.ready.call(e):Qe(e.config.urls.vimeo.sdk).then(()=>{Je.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...a}=i;let n=e.media.getAttribute("src"),r="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=function(f){const E=f.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return E&&5===E.length?E[4]:null}(n);const o=r?{h:r}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const c=ht({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...a}),d=l.empty(g=n)?null:l.number(Number(g))?g:g.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:g;var g;const w=y("iframe"),h=Ge(e.config.urls.vimeo.iframe,d,c);if(w.setAttribute("src",h),w.setAttribute("allowfullscreen",""),w.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||w.setAttribute("referrerPolicy",s),t||!i.customControls)w.setAttribute("data-poster",e.poster),e.media=F(w,e.media);else{const f=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(w),e.media=F(f,e.media)}i.customControls||Ee(Ge(e.config.urls.vimeo.api,h)).then(f=>{!l.empty(f)&&f.thumbnail_url&&O.setPoster.call(e,f.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(w,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Me.call(e,!0),e.embed.play()),e.media.pause=()=>(Me.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:T}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>T,set(f){const{embed:E,media:W,paused:X,volume:ie}=e,re=X&&!E.hasPlayed;W.seeking=!0,v.call(e,W,"seeking"),Promise.resolve(re&&E.setVolume(0)).then(()=>E.setCurrentTime(f)).then(()=>re&&E.pause()).then(()=>re&&E.setVolume(ie)).catch(()=>{})}});let x=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>x,set(f){e.embed.setPlaybackRate(f).then(()=>{x=f,v.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:N}=e.config;Object.defineProperty(e.media,"volume",{get:()=>N,set(f){e.embed.setVolume(f).then(()=>{N=f,v.call(e,e.media,"volumechange")})}});let{muted:U}=e.config;Object.defineProperty(e.media,"muted",{get:()=>U,set(f){const E=!!l.boolean(f)&&f;e.embed.setMuted(!!E||e.config.muted).then(()=>{U=E,v.call(e,e.media,"volumechange")})}});let C,{loop:$}=e.config;Object.defineProperty(e.media,"loop",{get:()=>$,set(f){const E=l.boolean(f)?f:e.config.loop.active;e.embed.setLoop(E).then(()=>{$=E})}}),e.embed.getVideoUrl().then(f=>{C=f,m.setDownloadUrl.call(e)}).catch(f=>{this.debug.warn(f)}),Object.defineProperty(e.media,"currentSrc",{get:()=>C}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(f=>{const[E,W]=f;e.embed.ratio=lt(E,W),ve.call(this)}),e.embed.setAutopause(e.config.autopause).then(f=>{e.config.autopause=f}),e.embed.getVideoTitle().then(f=>{e.config.title=f,O.setTitle.call(this)}),e.embed.getCurrentTime().then(f=>{T=f,v.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(f=>{e.media.duration=f,v.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(f=>{e.media.textTracks=f,I.setup.call(e)}),e.embed.on("cuechange",({cues:f=[]})=>{const E=f.map(W=>function(X){const ie=document.createDocumentFragment(),re=document.createElement("div");return ie.appendChild(re),re.innerHTML=X,ie.firstChild.innerText}(W.text));I.updateCues.call(e,E)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(f=>{Me.call(e,!f),f||v.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{v.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{v.call(e,e.media,"playing")}),e.embed.on("play",()=>{Me.call(e,!0),v.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Me.call(e,!1)}),e.embed.on("timeupdate",f=>{e.media.seeking=!1,T=f.seconds,v.call(e,e.media,"timeupdate")}),e.embed.on("progress",f=>{e.media.buffered=f.percent,v.call(e,e.media,"progress"),1===parseInt(f.percent,10)&&v.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(E=>{E!==e.media.duration&&(e.media.duration=E,v.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,v.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,v.call(e,e.media,"ended")}),e.embed.on("error",f=>{e.media.error=f,v.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>O.build.call(e),0)}};function xe(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}function xt(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const ze={setup(){if(A(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))ze.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),ze.ready.call(this)},Qe(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){Ee(Ge(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:a}=i;this.config.title=t,O.setTitle.call(this),this.embed.ratio=lt(a,s)}ve.call(this)}).catch(()=>{ve.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=l.empty(n=s)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n;var n;const r=y("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":i.customControls?e.poster:void 0});if(e.media=F(r,e.media),i.customControls){const o=c=>`https://i.ytimg.com/vi/${a}/${c}default.jpg`;We(o("maxres"),121).catch(()=>We(o("sd"),121)).catch(()=>We(o("hq"))).then(c=>O.setPoster.call(e,c.src)).then(c=>{c.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:xt(i),playerVars:R({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const c=o.data;e.media.error={code:c,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[c]||"An unknown error occurred"},v.call(e,e.media,"error")}},onPlaybackRateChange(o){e.media.playbackRate=o.target.getPlaybackRate(),v.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const c=o.target;ze.getTitle.call(e,a),e.media.play=()=>{xe.call(e,!0),c.playVideo()},e.media.pause=()=>{xe.call(e,!1),c.pauseVideo()},e.media.stop=()=>{c.stopVideo()},e.media.duration=c.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(c.getCurrentTime()),set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,v.call(e,e.media,"seeking"),c.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>c.getPlaybackRate(),set(h){c.setPlaybackRate(h)}});let{volume:d}=e.config;Object.defineProperty(e.media,"volume",{get:()=>d,set(h){d=h,c.setVolume(100*d),v.call(e,e.media,"volumechange")}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(h){const T=l.boolean(h)?h:g;g=T,c[T?"mute":"unMute"](),c.setVolume(100*d),v.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>c.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const w=c.getAvailablePlaybackRates();e.options.speed=w.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),v.call(e,e.media,"timeupdate"),v.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=c.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBufferedO.build.call(e),50)},onStateChange(o){const c=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,v.call(e,e.media,"seeked")),o.data){case-1:v.call(e,e.media,"timeupdate"),e.media.buffered=c.getVideoLoadedFraction(),v.call(e,e.media,"progress");break;case 0:xe.call(e,!1),e.media.loop?(c.stopVideo(),c.playVideo()):v.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(xe.call(e,!0),v.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{v.call(e,e.media,"timeupdate")},50),e.media.duration!==c.getDuration()&&(e.media.duration=c.getDuration(),v.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),xe.call(e,!1);break;case 3:v.call(e,e.media,"waiting")}v.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},ft={setup(){this.media?(A(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),A(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&A(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),S(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?he.setup.call(this):this.isYouTube?ze.setup.call(this):this.isVimeo&&Je.setup.call(this)):this.debug.warn("No media element found!")}};class Nt{constructor(i){p(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():Qe(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),p(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),p(this,"setupIMA",()=>{this.elements.container=y("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),p(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),p(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=Be(Math.max(this.manager.getRemainingTime(),0)),a=`${z.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)},100)}),p(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),p(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(0!==t&&-1!==t&&t{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((r=>{v.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`)}}),p(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),p(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,r)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),p(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),p(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,H(this.player.media.play())}),p(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),p(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),p(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),p(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),p(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),p(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),p(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${ht({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}function yt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}const It=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);n&&(s.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+ +`0.${n[4]}`,s.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+ +`0.${n[9]}`)}}),s.text&&i.push(s)}),i},bt=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class Ze{constructor(i){p(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),p(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,r)=>n.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(n).then(a)}})),p(this,"getThumbnail",t=>new Promise(s=>{Ee(t).then(a=>{const n={frames:It(a),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{n.height=r.naturalHeight,n.width=r.naturalWidth,this.thumbnails.push(n),s()},r.src=n.urlPrefix+n.frames[0].text})})),p(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var s,a;const n=this.player.elements.progress.getBoundingClientRect();this.seekTime=this.player.media.duration*(100/n.width*(t.pageX-n.left)/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Be(this.seekTime);const o=null===(s=this.player.config.markers)||void 0===s||null===(a=s.points)||void 0===a?void 0:a.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}
`)}this.showImageAtCurrentTime()}}),p(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),p(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),p(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):fe.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),p(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),p(this,"render",()=>{this.elements.thumb.container=y("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=y("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=y("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=y("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=y("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),p(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),p(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,r)=>{this.loadedImages.includes(n.frames[t].text)&&(a=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),p(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,r=a.frames[s],o=a.frames[s].text,c=n+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const d=new Image;d.src=c,d.dataset.index=s,d.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),d.onload=()=>this.showImage(d,r,t,s,o,!0),this.loadingImage=d,this.removeOldImages(d)}}),p(this,"showImage",(t,s,a,n,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${n}. qual: ${a}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,r))}),p(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if("img"!==s.tagName.toLowerCase())return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),p(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let r;r=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const d=c.text;if(d!==n&&!this.loadedImages.includes(d)){o=!0,this.player.debug.log(`Preloading thumb filename: ${d}`);const{urlPrefix:g}=this.thumbnails[0],w=g+d,h=new Image;h.src=w,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${d}`),this.loadedImages.includes(d)||this.loadedImages.push(d),a()}}}),o||a()}},300)})),p(this,"getHigherQuality",(t,s,a,n)=>{if(t{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),p(this,"toggleThumbContainer",(t=!1,s=!1)=>{this.elements.thumb.container.classList.toggle(this.player.config.classNames.previewThumbnails.thumbContainerShown,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),p(this,"toggleScrubbingContainer",(t=!1)=>{this.elements.scrubbing.container.classList.toggle(this.player.config.classNames.previewThumbnails.scrubbingContainerShown,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),p(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),p(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),p(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,o=this.mousePosX-t.left-a.clientWidth/2,c=yt(o,s.left-t.left+10,s.right-t.left-a.clientWidth-10);a.style.left=`${c}px`,a.style.setProperty("--preview-arrow-offset",o-c+"px")}),p(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),p(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*a+"px",t.style.width=t.naturalWidth*a+"px",t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=bt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const et={insertElements(e,i){l.string(i)?u(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{u(e,this.media,t)})},change(e){Ve(e,"sources.length")?(he.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],k(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=pe.html5,src:a}]=i,n="html5"===s?t:"div",r="html5"===s?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:L.check(t,s,this.config.playsinline),media:y(n,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),O.addStyleHook.call(this),this.isHTML5&&et.insertElements.call(this,"source",i),this.config.title=e.title,ft.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&et.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&O.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Ne{constructor(i,t){if(p(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>H(this.media.play())),this.media.play()):null),p(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),p(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),p(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),p(this,"restart",()=>{this.currentTime=0}),p(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),p(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),p(this,"increaseVolume",o=>{this.volume=(this.media.muted?0:this.volume)+(l.number(o)?o:0)}),p(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),p(this,"airplay",()=>{L.airplay&&this.media.webkitShowPlaybackTargetPicker()}),p(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=Q(this.elements.container,this.config.classNames.hideControls),g=A(this.elements.container,this.config.classNames.hideControls,void 0===o?void 0:!o);return g&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&m.toggleMenu.call(this,!1),g!==c&&v.call(this,this.media,g?"controlshidden":"controlsshown"),!g}return!1}),p(this,"on",(o,c)=>{P.call(this,this.elements.container,o,c)}),p(this,"once",(o,c)=>{fe.call(this,this.elements.container,o,c)}),p(this,"off",(o,c)=>{ue(this.elements.container,o,c)}),p(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const d=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(k(this.elements.buttons.play),k(this.elements.captions),k(this.elements.controls),k(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(Ce.call(this),he.cancelRequests.call(this),F(this.elements.original,this.elements.container),v.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(O.toggleNativeControls.call(this,!0),d()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&l.function(this.embed.destroy)&&this.embed.destroy(),d()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(d),setTimeout(d,200))}),p(this,"supports",o=>L.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=L.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=R({},pt,Ne.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new At(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",L),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!L.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,r=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(r=ut(n.getAttribute("src")),this.provider=(o=r.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(o)?pe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(o)?pe.vimeo:null),this.elements.container=this.media,this.media=n,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(pe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=a,this.provider=pe.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}var o;this.supported=L.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Et(this),this.storage=new Ae(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=y("div"),S(this.media,this.elements.container)),O.migrateStyles.call(this),O.addStyleHook.call(this),ft.setup.call(this),this.config.debug&&P.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new te(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&O.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Nt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>H(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===pe.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===pe.youtube}get isVimeo(){return this.provider===pe.vimeo}get isVideo(){return"video"===this.type}get isAudio(){return"audio"===this.type}get playing(){return!(!this.ready||this.paused||this.ended)}get paused(){return!!this.media.paused}get stopped(){return!(!this.paused||0!==this.currentTime)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!(this.isHTML5&&!this.isAudio&&!this.media.mozHasAudio&&!this.media.webkitAudioDecodedByteCount&&(!this.media.audioTracks||!this.media.audioTracks.length))}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=yt(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const r=it(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${r} instead`),a=r,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){et.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,m.setDownloadUrl.call(this))}set poster(i){this.isVideo?O.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=qe(Ke.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&at(i)?(this.config.ratio=qe(i),ve.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){I.toggle.call(this,i,!1)}set currentTrack(i){I.set.call(this,i,!1),I.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){I.setLanguage.call(this,i,!1)}get language(){return(I.getCurrentTrack.call(this)||{}).language}set pip(i){if(!L.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?mt:"inline"),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return L.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===mt:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(this))}static supported(i,t){return L.check(i,t)}static loadSprite(i,t){return ct(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new Ne(a,t))}}return Ne.defaults=JSON.parse(JSON.stringify(pt)),Ne}())}}]); \ No newline at end of file diff --git a/www/8761.783f7b6e1b8d63de.js b/www/8761.783f7b6e1b8d63de.js deleted file mode 100644 index 34d4231..0000000 --- a/www/8761.783f7b6e1b8d63de.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8761],{8761:(H,v,o)=>{o.r(v),o.d(v,{QrScanResultPageModule:()=>J});var g=o(177),P=o(9417),c=o(8974),u=o(3021),m=o(467),C=o(8666),R=o(7420),y=o(56),S=o(9441),M=o(2849),D=o(3649),t=o(4438),O=o(2904),T=o(444),x=o(5173),b=o(2297),G=o(4254),f=o(5402);const Q=()=>[0,1,2,3,4,5,6,7,8];function k(n,s){1&n&&(t.j41(0,"ion-item")(1,"div",5)(2,"div",6),t.nrm(3,"app-skeleton-item",7),t.k0s(),t.j41(4,"div",8)(5,"div",9),t.nrm(6,"app-skeleton-item",10),t.k0s(),t.j41(7,"div",11),t.nrm(8,"app-skeleton-item",10),t.k0s()()()())}function I(n,s){1&n&&(t.j41(0,"ion-list",3),t.DNE(1,k,9,0,"ion-item",4),t.k0s()),2&n&&(t.R7$(),t.Y8G("ngForOf",t.lJ4(1,Q)))}function $(n,s){1&n&&(t.j41(0,"div",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"CONTENT_IS_BEING_ADDED")))}function w(n,s){1&n&&(t.j41(0,"div",17)(1,"div",18),t.nrm(2,"img",19),t.j41(3,"div",20),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",18),t.nrm(7,"img",21),t.j41(8,"div",20),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()),2&n&&(t.R7$(4),t.JRh(t.bMT(5,2,"Make a Story")),t.R7$(5),t.JRh(t.bMT(10,4,"Ask a Doubt")))}function j(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/Audio.png",t.B4B)}}function B(n,s){if(1&n&&t.nrm(0,"img",28),2&n){const e=t.XpG(2).$implicit;t.Y8G("appThumbnail",null==e?null:e.metaData)}}function F(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/Video.png",t.B4B)}}function E(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/PDF.png",t.B4B)}}function A(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",5)(1,"div",22),t.bIt("click",function(i){t.eBV(e);const r=t.XpG().$implicit,d=t.XpG(2);return t.Njj(d.playContent(i,r))}),t.DNE(2,j,1,1,"img",23)(3,B,1,1,"img",24)(4,F,1,1,"img",23)(5,E,1,1,"img",23),t.k0s(),t.j41(6,"div",8)(7,"div",25),t.EFF(8),t.k0s(),t.j41(9,"ion-icon",26),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,r=t.XpG(2);return t.Njj(r.moreOtions(i))}),t.k0s()()()}if(2&n){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.AUDIO),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.YOUTUBE&&!e.play),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.MP4||e.metaData.mimetype===a.mimeType.WEBM),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.PDF),t.R7$(3),t.JRh(null==e.metaData?null:e.metaData.name)}}function X(n,s){if(1&n&&(t.j41(0,"div",14),t.DNE(1,w,11,6,"div",15)(2,A,10,5,"div",16),t.k0s()),2&n){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!e.metaData||!e.metaData.name),t.R7$(),t.Y8G("ngIf",e.metaData&&e.metaData.name)}}function Y(n,s){if(1&n&&(t.j41(0,"div"),t.DNE(1,X,3,2,"div",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.configContents)}}const N=[{path:"",component:(()=>{var n;class s{constructor(a,i,r,d,l,z){var p;this.headerService=a,this.location=i,this.modalCtrl=r,this.contentService=d,this.router=l,this.telemetryGeneratorService=z,this.optModalOpen=!1,this.showSheenAnimation=!0,this.scanText="",this.mimeType=y.Cc,this.navigated=!1;let _=null===(p=this.router.getCurrentNavigation())||void 0===p?void 0:p.extras;var h;_&&(this.scanText=null===(h=_.state)||void 0===h?void 0:h.scannedData,console.log("scan text ",this.scanText))}tabViewWillEnter(){this.headerService.showHeader("QR Scan Result",!0,[]),this.headerService.showStatusBar(!1)}ngOnInit(){this.headerService.headerEventEmitted$.subscribe(a=>{"back"==a&&!this.navigated&&(this.navigated=!0,this.location.back())}),this.configContents=[]}ionViewWillEnter(){this.navigated=!1,this.headerService.showHeader("QR Scan Result",!0,[]),this.headerService.showStatusBar(!1),this.contentService.getContents(this.scanText).then(a=>{this.showSheenAnimation=!1,console.log("Result: ",a),this.configContents=a}).catch(a=>{this.showSheenAnimation=!1})}ngOnDestroy(){var a=this;return(0,m.A)(function*(){const i=yield a.modalCtrl.getTop();i&&i.dismiss()})()}playContent(a,i){var r=this;return(0,m.A)(function*(){r.contentService.markContentAsViewed(i),yield r.router.navigate(["/player"],{state:{content:i}})})()}moreOtions(a){var i=this;return(0,m.A)(function*(){let r;i.optModalOpen||(i.optModalOpen=!0,r=yield i.modalCtrl.create({component:M.q,componentProps:{content:a},cssClass:"sheet-modal",breakpoints:[.25],showBackdrop:!1,initialBreakpoint:.25,handle:!1,handleBehavior:"none"}),yield r.present()),r.onDidDismiss().then(function(){var d=(0,m.A)(function*(l){i.optModalOpen=!1,l.data&&"addToPitara"===l.data.type?i.addContentToMyPitara(l.data.content||a):l.data&&"like"==l.data.type&&(i.contentService.likeContent(l.data.content||a,"guest",!0),l.data.content.metaData.isLiked&&(yield C.Q.play({assetId:"windchime"}),(0,R.A)({startVelocity:30,particleCount:400,spread:360,ticks:60,origin:{y:.5,x:.5},colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"]})),i.telemetryGeneratorService.generateInteractTelemetry("TOUCH","content-liked","qr-scan-result","qr-scan-result",new D.$i(null==a?void 0:a.metaData.identifier,null==a?void 0:a.metaData.mimetype,"")))});return function(l){return d.apply(this,arguments)}}())})()}addContentToMyPitara(a){var i=this;return(0,m.A)(function*(){const r=yield i.modalCtrl.create({component:S.$,componentProps:{content:a},cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield r.present(),r.onWillDismiss().then(d=>{})})()}}return(n=s).\u0275fac=function(a){return new(a||n)(t.rXU(O.Ux),t.rXU(g.aZ),t.rXU(c.W3),t.rXU(T.f),t.rXU(u.Ix),t.rXU(x.O))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-qr-scan-result"]],decls:4,vars:3,consts:[["class","m-n",4,"ngIf"],["class","text-not-available",4,"ngIf"],[4,"ngIf"],[1,"m-n"],[4,"ngFor","ngForOf"],[1,"card"],["item-start","",1,"card__img"],["height","15rem","width","22rem","radius","16px"],[1,"card__metadata"],[2,"width","90%"],["height","12px","width","100%"],[2,"padding-left","1.5rem","width","10%"],[1,"text-not-available"],["class","cards-container",4,"ngFor","ngForOf"],[1,"cards-container"],["class","bot-section",4,"ngIf"],["class","card",4,"ngIf"],[1,"bot-section"],[1,"image"],["src","assets/images/Story_bot.svg","alt",""],[1,"image-title"],["src","assets/images/Question_bot.svg","alt",""],[1,"card__img",3,"click"],["alt","",3,"src",4,"ngIf"],["appThumbnail","","alt","",3,"appThumbnail",4,"ngIf"],[1,"card__title"],["aria-hidden","true","src","assets/icon/kabab-icon.svg",3,"click"],["alt","",3,"src"],["appThumbnail","","alt","",3,"appThumbnail"]],template:function(a,i){1&a&&(t.j41(0,"ion-content"),t.DNE(1,I,2,2,"ion-list",0)(2,$,3,3,"div",1)(3,Y,2,1,"div",2),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",i.showSheenAnimation),t.R7$(),t.Y8G("ngIf",!i.configContents.length&&!i.showSheenAnimation),t.R7$(),t.Y8G("ngIf",!i.showSheenAnimation&&i.configContents.length>0))},dependencies:[g.Sq,g.bT,c.W9,c.iq,c.uz,c.nf,b.O,G.g,f.D9],styles:[".cards-container[_ngcontent-%COMP%]{padding:.2rem 1rem}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 1rem 1rem}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{position:relative}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .image-title[_ngcontent-%COMP%]{position:absolute;bottom:.625rem;color:var(--ion-color-primary-contrast);left:0;right:0;text-align:center}.card[_ngcontent-%COMP%]{position:relative;padding-bottom:1rem}.card__img[_ngcontent-%COMP%]{height:194px;width:100%;overflow:hidden}.card__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:100%;height:100%;border-radius:1rem}.card__metadata[_ngcontent-%COMP%]{padding-top:.5rem;display:flex;align-items:center;justify-content:space-between}.card__metadata[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{height:1.75rem;width:1.75rem}.card__action-btns[_ngcontent-%COMP%]{display:flex;align-items:center}.card__action-btns[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;margin-right:1rem}.card__action-btns[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]:last-child{margin-left:auto;margin-right:0}.card__title[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;width:90%;text-transform:capitalize;word-break:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.no-data[_ngcontent-%COMP%]{text-align:center}#content-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(5,1fr);grid-column-gap:0px;grid-row-gap:0px}@media (max-width: 700px){#content-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,1fr);grid-template-rows:repeat(5,1fr);grid-column-gap:0px;grid-row-gap:0px}}ion-content[_ngcontent-%COMP%]{--padding-top: 5rem !important}ion-list[_ngcontent-%COMP%]{background-color:transparent}ion-item[_ngcontent-%COMP%]{--background: transparent}.text-not-available[_ngcontent-%COMP%]{position:absolute;left:30%;right:0;top:20%;transform:translate(-20%,-20%);text-align:center;color:var(--ion-color-medium);font-size:.75rem}"]}),s})()}];let U=(()=>{var n;class s{}return(n=s).\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[u.iI.forChild(N),u.iI]}),s})();var V=o(5553),W=o(3721);let J=(()=>{var n;class s{}return(n=s).\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[g.MD,P.YN,c.bv,U,f.h,V.h,W.h]}),s})()}}]); \ No newline at end of file diff --git a/www/8761.89535521ee240b3a.js b/www/8761.89535521ee240b3a.js new file mode 100644 index 0000000..2b5c19d --- /dev/null +++ b/www/8761.89535521ee240b3a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8761],{8761:(H,v,o)=>{o.r(v),o.d(v,{QrScanResultPageModule:()=>J});var g=o(177),P=o(9417),c=o(8974),u=o(3021),m=o(467),C=o(8666),y=o(7420),R=o(56),S=o(9441),M=o(2849),D=o(3649),t=o(4438),O=o(2904),T=o(444),x=o(5173),b=o(2297),G=o(4254),f=o(5402);const Q=()=>[0,1,2,3,4,5,6,7,8];function k(n,s){1&n&&(t.j41(0,"ion-item")(1,"div",5)(2,"div",6),t.nrm(3,"app-skeleton-item",7),t.k0s(),t.j41(4,"div",8)(5,"div",9),t.nrm(6,"app-skeleton-item",10),t.k0s(),t.j41(7,"div",11),t.nrm(8,"app-skeleton-item",10),t.k0s()()()())}function I(n,s){1&n&&(t.j41(0,"ion-list",3),t.DNE(1,k,9,0,"ion-item",4),t.k0s()),2&n&&(t.R7$(),t.Y8G("ngForOf",t.lJ4(1,Q)))}function $(n,s){1&n&&(t.j41(0,"div",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"CONTENT_IS_BEING_ADDED")))}function w(n,s){1&n&&(t.j41(0,"div",17)(1,"div",18),t.nrm(2,"img",19),t.j41(3,"div",20),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",18),t.nrm(7,"img",21),t.j41(8,"div",20),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()),2&n&&(t.R7$(4),t.JRh(t.bMT(5,2,"Make a Story")),t.R7$(5),t.JRh(t.bMT(10,4,"Ask a Doubt")))}function j(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/Audio.png",t.B4B)}}function B(n,s){if(1&n&&t.nrm(0,"img",28),2&n){const e=t.XpG(2).$implicit;t.Y8G("appThumbnail",null==e?null:e.metaData)}}function F(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/Video.png",t.B4B)}}function E(n,s){if(1&n&&t.nrm(0,"img",27),2&n){const e=t.XpG(2).$implicit;t.Y8G("src",null!=e&&null!=e.metaData&&e.metaData.thumbnail&&!e.metaData.identifier.startsWith("do_")?null==e||null==e.metaData?null:e.metaData.thumbnail:"assets/images/PDF.png",t.B4B)}}function A(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",5)(1,"div",22),t.bIt("click",function(i){t.eBV(e);const r=t.XpG().$implicit,d=t.XpG(2);return t.Njj(d.playContent(i,r))}),t.DNE(2,j,1,1,"img",23)(3,B,1,1,"img",24)(4,F,1,1,"img",23)(5,E,1,1,"img",23),t.k0s(),t.j41(6,"div",8)(7,"div",25),t.EFF(8),t.k0s(),t.j41(9,"ion-icon",26),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,r=t.XpG(2);return t.Njj(r.moreOtions(i))}),t.k0s()()()}if(2&n){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.AUDIO),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.YOUTUBE&&!e.play),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.MP4||e.metaData.mimetype===a.mimeType.WEBM),t.R7$(),t.Y8G("ngIf",e.metaData.mimetype===a.mimeType.PDF),t.R7$(3),t.JRh(null==e.metaData?null:e.metaData.name)}}function X(n,s){if(1&n&&(t.j41(0,"div",14),t.DNE(1,w,11,6,"div",15)(2,A,10,5,"div",16),t.k0s()),2&n){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!e.metaData||!e.metaData.name),t.R7$(),t.Y8G("ngIf",e.metaData&&e.metaData.name)}}function Y(n,s){if(1&n&&(t.j41(0,"div"),t.DNE(1,X,3,2,"div",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.configContents)}}const N=[{path:"",component:(()=>{var n;class s{constructor(a,i,r,d,l,z){var p;this.headerService=a,this.location=i,this.modalCtrl=r,this.contentService=d,this.router=l,this.telemetryGeneratorService=z,this.optModalOpen=!1,this.showSheenAnimation=!0,this.scanText="",this.mimeType=R.Cc,this.navigated=!1;let _=null===(p=this.router.getCurrentNavigation())||void 0===p?void 0:p.extras;var h;_&&(this.scanText=null===(h=_.state)||void 0===h?void 0:h.scannedData)}tabViewWillEnter(){this.headerService.showHeader("QR Scan Result",!0,[]),this.headerService.showStatusBar(!1)}ngOnInit(){this.headerService.headerEventEmitted$.subscribe(a=>{"back"==a&&!this.navigated&&(this.navigated=!0,this.location.back())}),this.configContents=[]}ionViewWillEnter(){this.navigated=!1,this.headerService.showHeader("QR Scan Result",!0,[]),this.headerService.showStatusBar(!1),this.contentService.getContents(this.scanText).then(a=>{this.showSheenAnimation=!1,this.configContents=a}).catch(a=>{this.showSheenAnimation=!1})}ngOnDestroy(){var a=this;return(0,m.A)(function*(){const i=yield a.modalCtrl.getTop();i&&i.dismiss()})()}playContent(a,i){var r=this;return(0,m.A)(function*(){r.contentService.markContentAsViewed(i),yield r.router.navigate(["/player"],{state:{content:i}})})()}moreOtions(a){var i=this;return(0,m.A)(function*(){let r;i.optModalOpen||(i.optModalOpen=!0,r=yield i.modalCtrl.create({component:M.q,componentProps:{content:a},cssClass:"sheet-modal",breakpoints:[.25],showBackdrop:!1,initialBreakpoint:.25,handle:!1,handleBehavior:"none"}),yield r.present()),r.onDidDismiss().then(function(){var d=(0,m.A)(function*(l){i.optModalOpen=!1,l.data&&"addToPitara"===l.data.type?i.addContentToMyPitara(l.data.content||a):l.data&&"like"==l.data.type&&(i.contentService.likeContent(l.data.content||a,"guest",!0),l.data.content.metaData.isLiked&&(yield C.Q.play({assetId:"windchime"}),(0,y.A)({startVelocity:30,particleCount:400,spread:360,ticks:60,origin:{y:.5,x:.5},colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"]})),i.telemetryGeneratorService.generateInteractTelemetry("TOUCH","content-liked","qr-scan-result","qr-scan-result",new D.$i(null==a?void 0:a.metaData.identifier,null==a?void 0:a.metaData.mimetype,"")))});return function(l){return d.apply(this,arguments)}}())})()}addContentToMyPitara(a){var i=this;return(0,m.A)(function*(){const r=yield i.modalCtrl.create({component:S.$,componentProps:{content:a},cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield r.present(),r.onWillDismiss().then(d=>{})})()}}return(n=s).\u0275fac=function(a){return new(a||n)(t.rXU(O.Ux),t.rXU(g.aZ),t.rXU(c.W3),t.rXU(T.f),t.rXU(u.Ix),t.rXU(x.O))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-qr-scan-result"]],decls:4,vars:3,consts:[["class","m-n",4,"ngIf"],["class","text-not-available",4,"ngIf"],[4,"ngIf"],[1,"m-n"],[4,"ngFor","ngForOf"],[1,"card"],["item-start","",1,"card__img"],["height","15rem","width","22rem","radius","16px"],[1,"card__metadata"],[2,"width","90%"],["height","12px","width","100%"],[2,"padding-left","1.5rem","width","10%"],[1,"text-not-available"],["class","cards-container",4,"ngFor","ngForOf"],[1,"cards-container"],["class","bot-section",4,"ngIf"],["class","card",4,"ngIf"],[1,"bot-section"],[1,"image"],["src","assets/images/Story_bot.svg","alt",""],[1,"image-title"],["src","assets/images/Question_bot.svg","alt",""],[1,"card__img",3,"click"],["alt","",3,"src",4,"ngIf"],["appThumbnail","","alt","",3,"appThumbnail",4,"ngIf"],[1,"card__title"],["aria-hidden","true","src","assets/icon/kabab-icon.svg",3,"click"],["alt","",3,"src"],["appThumbnail","","alt","",3,"appThumbnail"]],template:function(a,i){1&a&&(t.j41(0,"ion-content"),t.DNE(1,I,2,2,"ion-list",0)(2,$,3,3,"div",1)(3,Y,2,1,"div",2),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",i.showSheenAnimation),t.R7$(),t.Y8G("ngIf",!i.configContents.length&&!i.showSheenAnimation),t.R7$(),t.Y8G("ngIf",!i.showSheenAnimation&&i.configContents.length>0))},dependencies:[g.Sq,g.bT,c.W9,c.iq,c.uz,c.nf,b.O,G.g,f.D9],styles:[".cards-container[_ngcontent-%COMP%]{padding:.2rem 1rem}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 1rem 1rem}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{position:relative}.cards-container[_ngcontent-%COMP%] .bot-section[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .image-title[_ngcontent-%COMP%]{position:absolute;bottom:.625rem;color:var(--ion-color-primary-contrast);left:0;right:0;text-align:center}.card[_ngcontent-%COMP%]{position:relative;padding-bottom:1rem}.card__img[_ngcontent-%COMP%]{height:194px;width:100%;overflow:hidden}.card__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:100%;height:100%;border-radius:1rem}.card__metadata[_ngcontent-%COMP%]{padding-top:.5rem;display:flex;align-items:center;justify-content:space-between}.card__metadata[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{height:1.75rem;width:1.75rem}.card__action-btns[_ngcontent-%COMP%]{display:flex;align-items:center}.card__action-btns[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;margin-right:1rem}.card__action-btns[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]:last-child{margin-left:auto;margin-right:0}.card__title[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;width:90%;text-transform:capitalize;word-break:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.no-data[_ngcontent-%COMP%]{text-align:center}#content-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(5,1fr);grid-column-gap:0px;grid-row-gap:0px}@media (max-width: 700px){#content-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,1fr);grid-template-rows:repeat(5,1fr);grid-column-gap:0px;grid-row-gap:0px}}ion-content[_ngcontent-%COMP%]{--padding-top: 5rem !important}ion-list[_ngcontent-%COMP%]{background-color:transparent}ion-item[_ngcontent-%COMP%]{--background: transparent}.text-not-available[_ngcontent-%COMP%]{position:absolute;left:30%;right:0;top:20%;transform:translate(-20%,-20%);text-align:center;color:var(--ion-color-medium);font-size:.75rem}"]}),s})()}];let U=(()=>{var n;class s{}return(n=s).\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[u.iI.forChild(N),u.iI]}),s})();var V=o(5553),W=o(3721);let J=(()=>{var n;class s{}return(n=s).\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[g.MD,P.YN,c.bv,U,f.h,V.h,W.h]}),s})()}}]); \ No newline at end of file diff --git a/www/assets/appConfig/inclued.json b/www/assets/appConfig/inclued.json index 03e5983..3dbcd93 100644 --- a/www/assets/appConfig/inclued.json +++ b/www/assets/appConfig/inclued.json @@ -71,13 +71,18 @@ "titleCode": [ "en", "hi", "mr"], "en": { - "teacherTaraBotName": "Teachers" + "teacherTaraBotName": "Teachers", + "teacherBotMsg": "Hi, it's IncluEd here \n \n Need tips on understanding disabilities, managing behaviour, or making learning more inclusive? Just ask! I'll share quick and easy advice to support every student. Let's make teaching a bit easier together!" }, "hi": { - "teacherTaraBotName": "टीचर" + "teacherTaraBotName": "टीचर", + "teacherBotMsg": "नमस्ते, यह IncluEd है \n \n विकलांगताओं को समझने, व्यवहार प्रबंधन या अधिक समावेशी शिक्षण पर सुझाव चाहिए? बस पूछें! मैं शीघ्र और आसान सलाह साझा करूंगा जिससे हर छात्र को समर्थन मिलेगा. चलिए, मिलकर शिक्षण को थोड़ा आसान बनाते हैं!" + }, "mr": { - "teacherTaraBotName": "शिक्षक" + "teacherTaraBotName": "शिक्षक", + "teacherBotMsg": "हाय, इथे IncluEd आहे \n \n विकलांगतेचा समजून घेणे, वर्तन व्यवस्थापन किंवा अधिक समावेशक शिक्षण याबाबत टिप्स पाहिजेत का? फक्त विचारा! मी लवकर आणि सोपे सल्ले देईन जे प्रत्येक विद्यार्थ्याला मदत करतील. चला, एकत्रितपणे शिक्षण थोडे सोपे करूया!" + }, "footerText": "Developed with ❤️ by Tekdi Technologies ", "headerColor": "#A71028", diff --git a/www/assets/appConfig/localhost.json b/www/assets/appConfig/localhost.json index 3db9f7a..2e82a5d 100644 --- a/www/assets/appConfig/localhost.json +++ b/www/assets/appConfig/localhost.json @@ -53,12 +53,12 @@ { "id": "en", "label": "English", - "default": false + "default": true }, { "id": "hi", "label": "हिंदी", - "default": true + "default": false } ], "titleCode": [ diff --git a/www/index.html b/www/index.html index b60b7e8..f49c085 100644 --- a/www/index.html +++ b/www/index.html @@ -51,7 +51,7 @@ #installButton { display: none; /* Initially hide the button */ position: fixed; - bottom: 20px; + bottom: 80px; right: 20px; padding: 10px 20px; background-color: #007bff; @@ -69,6 +69,6 @@ - + \ No newline at end of file diff --git a/www/main.7b4c0c867c94f61e.js b/www/main.7b4c0c867c94f61e.js new file mode 100644 index 0000000..6083305 --- /dev/null +++ b/www/main.7b4c0c867c94f61e.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{8941:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>S});const S=(0,E(5083).F3)("App",{web:()=>E.e(9303).then(E.bind(E,9303)).then(p=>new p.AppWeb)})},5083:(Ce,ee,E)=>{"use strict";E.d(ee,{EA:()=>se,E_:()=>L,F3:()=>w,Ii:()=>A,pX:()=>n});var a=E(467);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var _=function(o){return o.Unimplemented="UNIMPLEMENTED",o.Unavailable="UNAVAILABLE",o}(_||{});class F extends Error{constructor(l,s,h){super(l),this.message=l,this.code=s,this.data=h}}const m=o=>{var l,s,h,v,y;const d=o.CapacitorCustomPlatform||null,r=o.Capacitor||{},f=r.Plugins=r.Plugins||{},k=o.CapacitorPlatforms,V=(null===(l=null==k?void 0:k.currentPlatform)||void 0===l?void 0:l.getPlatform)||(()=>null!==d?d.name:(o=>{var l,s;return null!=o&&o.androidBridge?"android":null!==(s=null===(l=null==o?void 0:o.webkit)||void 0===l?void 0:l.messageHandlers)&&void 0!==s&&s.bridge?"ios":"web"})(o)),oe=(null===(s=null==k?void 0:k.currentPlatform)||void 0===s?void 0:s.isNativePlatform)||(()=>"web"!==V()),De=(null===(h=null==k?void 0:k.currentPlatform)||void 0===h?void 0:h.isPluginAvailable)||(re=>{const ne=pe.get(re);return!!(null!=ne&&ne.platforms.has(V())||ae(re))}),ae=(null===(v=null==k?void 0:k.currentPlatform)||void 0===v?void 0:v.getPluginHeader)||(re=>{var ne;return null===(ne=r.PluginHeaders)||void 0===ne?void 0:ne.find(G=>G.name===re)}),pe=new Map,_e=(null===(y=null==k?void 0:k.currentPlatform)||void 0===y?void 0:y.registerPlugin)||((re,ne={})=>{const G=pe.get(re);if(G)return console.warn(`Capacitor plugin "${re}" already registered. Cannot register plugins twice.`),G.proxy;const ge=V(),xt=ae(re);let Qe;const rt=function(){var Cn=(0,a.A)(function*(){return!Qe&&ge in ne?Qe=Qe="function"==typeof ne[ge]?yield ne[ge]():ne[ge]:null!==d&&!Qe&&"web"in ne&&(Qe=Qe="function"==typeof ne.web?yield ne.web():ne.web),Qe});return function(){return Cn.apply(this,arguments)}}(),mt=Cn=>{let St;const Ft=(...bn)=>{const bt=rt().then(wt=>{const Dn=((Cn,St)=>{var Ft,bn;if(!xt){if(Cn)return null===(bn=Cn[St])||void 0===bn?void 0:bn.bind(Cn);throw new F(`"${re}" plugin is not implemented on ${ge}`,_.Unimplemented)}{const bt=null==xt?void 0:xt.methods.find(wt=>St===wt.name);if(bt)return"promise"===bt.rtype?wt=>r.nativePromise(re,St.toString(),wt):(wt,Dn)=>r.nativeCallback(re,St.toString(),wt,Dn);if(Cn)return null===(Ft=Cn[St])||void 0===Ft?void 0:Ft.bind(Cn)}})(wt,Cn);if(Dn){const Bt=Dn(...bn);return St=null==Bt?void 0:Bt.remove,Bt}throw new F(`"${re}.${Cn}()" is not implemented on ${ge}`,_.Unimplemented)});return"addListener"===Cn&&(bt.remove=(0,a.A)(function*(){return St()})),bt};return Ft.toString=()=>`${Cn.toString()}() { [capacitor code] }`,Object.defineProperty(Ft,"name",{value:Cn,writable:!1,configurable:!1}),Ft},ft=mt("addListener"),un=mt("removeListener"),At=(Cn,St)=>{const Ft=ft({eventName:Cn},St),bn=function(){var wt=(0,a.A)(function*(){const Dn=yield Ft;un({eventName:Cn,callbackId:Dn},St)});return function(){return wt.apply(this,arguments)}}(),bt=new Promise(wt=>Ft.then(()=>wt({remove:bn})));return bt.remove=(0,a.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield bn()}),bt},It=new Proxy({},{get(Cn,St){switch(St){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return xt?At:ft;case"removeListener":return un;default:return mt(St)}}});return f[re]=It,pe.set(re,{name:re,proxy:It,platforms:new Set([...Object.keys(ne),...xt?[ge]:[]])}),It});return r.convertFileSrc||(r.convertFileSrc=re=>re),r.getPlatform=V,r.handleError=re=>o.console.error(re),r.isNativePlatform=oe,r.isPluginAvailable=De,r.pluginMethodNoop=(re,ne,G)=>Promise.reject(`${G} does not have an implementation of "${ne}".`),r.registerPlugin=_e,r.Exception=F,r.DEBUG=!!r.DEBUG,r.isLoggingEnabled=!!r.isLoggingEnabled,r.platform=r.getPlatform(),r.isNative=r.isNativePlatform(),r},A=(o=>o.Capacitor=m(o))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),w=A.registerPlugin;class L{constructor(l){this.listeners={},this.windowListeners={},l&&(console.warn(`Capacitor WebPlugin "${l.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=l)}addListener(l,s){var h=this;this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push(s);const y=this.windowListeners[l];y&&!y.registered&&this.addWindowListener(y);const d=function(){var f=(0,a.A)(function*(){return h.removeListener(l,s)});return function(){return f.apply(this,arguments)}}(),r=Promise.resolve({remove:d});return Object.defineProperty(r,"remove",{value:(f=(0,a.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield d()}),function(){return f.apply(this,arguments)})}),r;var f}removeAllListeners(){var l=this;return(0,a.A)(function*(){l.listeners={};for(const s in l.windowListeners)l.removeWindowListener(l.windowListeners[s]);l.windowListeners={}})()}notifyListeners(l,s){const h=this.listeners[l];h&&h.forEach(v=>v(s))}hasListeners(l){return!!this.listeners[l].length}registerWindowListener(l,s){this.windowListeners[s]={registered:!1,windowEventName:l,pluginEventName:s,handler:h=>{this.notifyListeners(s,h)}}}unimplemented(l="not implemented"){return new A.Exception(l,_.Unimplemented)}unavailable(l="not available"){return new A.Exception(l,_.Unavailable)}removeListener(l,s){var h=this;return(0,a.A)(function*(){const v=h.listeners[l];if(!v)return;const y=v.indexOf(s);h.listeners[l].splice(y,1),h.listeners[l].length||h.removeWindowListener(h.windowListeners[l])})()}addWindowListener(l){window.addEventListener(l.windowEventName,l.handler),l.registered=!0}removeWindowListener(l){l&&(window.removeEventListener(l.windowEventName,l.handler),l.registered=!1)}}const P=o=>encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),U=o=>o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class j extends L{getCookies(){return(0,a.A)(function*(){const l=document.cookie,s={};return l.split(";").forEach(h=>{if(h.length<=0)return;let[v,y]=h.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");v=U(v).trim(),y=U(y).trim(),s[v]=y}),s})()}setCookie(l){return(0,a.A)(function*(){try{const s=P(l.key),h=P(l.value),v=`; expires=${(l.expires||"").replace("expires=","")}`,y=(l.path||"/").replace("path=",""),d=null!=l.url&&l.url.length>0?`domain=${l.url}`:"";document.cookie=`${s}=${h||""}${v}; path=${y}; ${d};`}catch(s){return Promise.reject(s)}})()}deleteCookie(l){return(0,a.A)(function*(){try{document.cookie=`${l.key}=; Max-Age=0`}catch(s){return Promise.reject(s)}})()}clearCookies(){return(0,a.A)(function*(){try{const l=document.cookie.split(";")||[];for(const s of l)document.cookie=s.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(l){return Promise.reject(l)}})()}clearAllCookies(){var l=this;return(0,a.A)(function*(){try{yield l.clearCookies()}catch(s){return Promise.reject(s)}})()}}w("CapacitorCookies",{web:()=>new j});const ie=function(){var o=(0,a.A)(function*(l){return new Promise((s,h)=>{const v=new FileReader;v.onload=()=>{const y=v.result;s(y.indexOf(",")>=0?y.split(",")[1]:y)},v.onerror=y=>h(y),v.readAsDataURL(l)})});return function(s){return o.apply(this,arguments)}}(),se=(o,l={})=>{const s=Object.assign({method:o.method||"GET",headers:o.headers},l),v=((o={})=>{const l=Object.keys(o);return Object.keys(o).map(v=>v.toLocaleLowerCase()).reduce((v,y,d)=>(v[y]=o[l[d]],v),{})})(o.headers)["content-type"]||"";if("string"==typeof o.data)s.body=o.data;else if(v.includes("application/x-www-form-urlencoded")){const y=new URLSearchParams;for(const[d,r]of Object.entries(o.data||{}))y.set(d,r);s.body=y.toString()}else if(v.includes("multipart/form-data")){const y=new FormData;if(o.data instanceof FormData)o.data.forEach((r,f)=>{y.append(f,r)});else for(const r of Object.keys(o.data))y.append(r,o.data[r]);s.body=y;const d=new Headers(s.headers);d.delete("content-type"),s.headers=d}else(v.includes("application/json")||"object"==typeof o.data)&&(s.body=JSON.stringify(o.data));return s};class g extends L{request(l){return(0,a.A)(function*(){const s=se(l,l.webFetchExtra),h=((o,l=!0)=>o?Object.entries(o).reduce((h,v)=>{const[y,d]=v;let r,f;return Array.isArray(d)?(f="",d.forEach(k=>{r=l?encodeURIComponent(k):k,f+=`${y}=${r}&`}),f.slice(0,-1)):(r=l?encodeURIComponent(d):d,f=`${y}=${r}`),`${h}&${f}`},"").substr(1):null)(l.params,l.shouldEncodeUrlParams),v=h?`${l.url}?${h}`:l.url,y=yield fetch(v,s),d=y.headers.get("content-type")||"";let f,k,{responseType:r="text"}=y.ok?l:{};switch(d.includes("application/json")&&(r="json"),r){case"arraybuffer":case"blob":k=yield y.blob(),f=yield ie(k);break;case"json":f=yield y.json();break;default:f=yield y.text()}const I={};return y.headers.forEach((V,J)=>{I[J]=V}),{data:f,headers:I,status:y.status,url:y.url}})()}get(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"GET"}))})()}post(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"POST"}))})()}put(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"PUT"}))})()}patch(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"PATCH"}))})()}delete(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"DELETE"}))})()}}const n=w("CapacitorHttp",{web:()=>new g})},9316:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>S});const S=(0,E(5083).F3)("Device",{web:()=>E.e(8622).then(E.bind(E,8622)).then(p=>new p.DeviceWeb)})},1889:(Ce,ee,E)=>{"use strict";E.d(ee,{Wi:()=>S,__:()=>a});var a=function(c){return c.Documents="DOCUMENTS",c.Data="DATA",c.Library="LIBRARY",c.Cache="CACHE",c.External="EXTERNAL",c.ExternalStorage="EXTERNAL_STORAGE",c}(a||{}),S=function(c){return c.UTF8="utf8",c.ASCII="ascii",c.UTF16="utf16",c}(S||{})},2739:(Ce,ee,E)=>{"use strict";E.d(ee,{YA:()=>p,__:()=>S.__});var a=E(5083),S=E(1889);const p=(0,a.F3)("Filesystem",{web:()=>E.e(2937).then(E.bind(E,2937)).then(O=>new O.FilesystemWeb)})},9182:(Ce,ee,E)=>{"use strict";E.d(ee,{_n:()=>S,kn:()=>a});var a=function(c){return c.Heavy="HEAVY",c.Medium="MEDIUM",c.Light="LIGHT",c}(a||{}),S=function(c){return c.Success="SUCCESS",c.Warning="WARNING",c.Error="ERROR",c}(S||{})},6598:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>S});const S=(0,E(5083).F3)("Network",{web:()=>E.e(3780).then(E.bind(E,3780)).then(p=>new p.NetworkWeb)})},1656:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>p,r:()=>m});const p=(te,se)=>{te.componentOnReady?te.componentOnReady().then(g=>se(g)):m(()=>se(te))},m=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te)},6031:(Ce,ee,E)=>{"use strict";E.d(ee,{L:()=>a,a:()=>S,b:()=>p,c:()=>O,d:()=>c,g:()=>te});const a="ionViewWillEnter",S="ionViewDidEnter",p="ionViewWillLeave",O="ionViewDidLeave",c="ionViewWillUnload",te=se=>se.classList.contains("ion-page")?se:se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||se},3503:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>$});var a=E(8476),S=E(5638);let p;const c=L=>L.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D=L=>(void 0===p&&(p=void 0===L.style.animationName&&void 0!==L.style.webkitAnimationName?"-webkit-":""),p),C=(L,M,P)=>{const U=M.startsWith("animation")?D(L):"";L.style.setProperty(U+M,P)},_=(L,M)=>{const P=M.startsWith("animation")?D(L):"";L.style.removeProperty(P+M)},m=[],R=(L=[],M)=>{if(void 0!==M){const P=Array.isArray(M)?M:[M];return[...L,...P]}return L},$=L=>{let M,P,U,j,W,ie,n,r,f,k,I,ve,De,me=[],te=[],se=[],g=!1,o={},l=[],s=[],h={},v=0,y=!1,d=!1,V=!0,J=!1,oe=!0,Q=!1;const ae=L,tt=[],ke=[],pe=[],Ie=[],_e=[],re=[],ne=[],G=[],ge=[],xt=[],Qe=[],rt="function"==typeof AnimationEffect||void 0!==a.w&&"function"==typeof a.w.AnimationEffect,rn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rt,ft=()=>Qe,St=(gt,zt)=>{const ye=zt.findIndex(Ke=>Ke.c===gt);ye>-1&&zt.splice(ye,1)},bn=(gt,zt)=>((null!=zt&&zt.oneTimeCallback?ke:tt).push({c:gt,o:zt}),De),wt=()=>{if(rn)Qe.forEach(gt=>{gt.cancel()}),Qe.length=0;else{const gt=Ie.slice();(0,S.r)(()=>{gt.forEach(zt=>{_(zt,"animation-name"),_(zt,"animation-duration"),_(zt,"animation-timing-function"),_(zt,"animation-iteration-count"),_(zt,"animation-delay"),_(zt,"animation-play-state"),_(zt,"animation-fill-mode"),_(zt,"animation-direction")})})}},Dn=()=>{re.forEach(gt=>{null!=gt&>.parentNode&>.parentNode.removeChild(gt)}),re.length=0},je=()=>void 0!==W?W:n?n.getFill():"both",it=()=>void 0!==f?f:void 0!==ie?ie:n?n.getDirection():"normal",Pe=()=>y?"linear":void 0!==U?U:n?n.getEasing():"linear",Se=()=>d?0:void 0!==k?k:void 0!==P?P:n?n.getDuration():0,ze=()=>void 0!==j?j:n?n.getIterations():1,Et=()=>void 0!==I?I:void 0!==M?M:n?n.getDelay():0,Fn=()=>{0!==v&&(v--,0===v&&((()=>{wn(),ge.forEach(dt=>dt()),xt.forEach(dt=>dt());const gt=V?1:0,zt=l,ye=s,Ke=h;Ie.forEach(dt=>{const pt=dt.classList;zt.forEach(Yt=>pt.add(Yt)),ye.forEach(Yt=>pt.remove(Yt));for(const Yt in Ke)Ke.hasOwnProperty(Yt)&&C(dt,Yt,Ke[Yt])}),k=void 0,f=void 0,I=void 0,tt.forEach(dt=>dt.c(gt,De)),ke.forEach(dt=>dt.c(gt,De)),ke.length=0,oe=!0,V&&(J=!0),V=!0})(),n&&n.animationFinish()))},kn=(gt=!0)=>{Dn();const zt=(L=>(L.forEach(M=>{for(const P in M)if(M.hasOwnProperty(P)){const U=M[P];if("easing"===P)M["animation-timing-function"]=U,delete M[P];else{const j=c(P);j!==P&&(M[j]=U,delete M[P])}}}),L))(me);Ie.forEach(ye=>{if(zt.length>0){const Ke=((L=[])=>L.map(M=>{const P=M.offset,U=[];for(const j in M)M.hasOwnProperty(j)&&"offset"!==j&&U.push(`${j}: ${M[j]};`);return`${100*P}% { ${U.join(" ")} }`}).join(" "))(zt);ve=void 0!==L?L:(L=>{let M=m.indexOf(L);return M<0&&(M=m.push(L)-1),`ion-animation-${M}`})(Ke);const dt=((L,M,P)=>{var U;const j=(L=>{const M=void 0!==L.getRootNode?L.getRootNode():L;return M.head||M})(P),W=D(P),ie=j.querySelector("#"+L);if(ie)return ie;const me=(null!==(U=P.ownerDocument)&&void 0!==U?U:document).createElement("style");return me.id=L,me.textContent=`@${W}keyframes ${L} { ${M} } @${W}keyframes ${L}-alt { ${M} }`,j.appendChild(me),me})(ve,Ke,ye);re.push(dt),C(ye,"animation-duration",`${Se()}ms`),C(ye,"animation-timing-function",Pe()),C(ye,"animation-delay",`${Et()}ms`),C(ye,"animation-fill-mode",je()),C(ye,"animation-direction",it());const pt=ze()===1/0?"infinite":ze().toString();C(ye,"animation-iteration-count",pt),C(ye,"animation-play-state","paused"),gt&&C(ye,"animation-name",`${dt.id}-alt`),(0,S.r)(()=>{C(ye,"animation-name",dt.id||null)})}})},Xn=(gt=!0)=>{(()=>{ne.forEach(Ke=>Ke()),G.forEach(Ke=>Ke());const gt=te,zt=se,ye=o;Ie.forEach(Ke=>{const dt=Ke.classList;gt.forEach(pt=>dt.add(pt)),zt.forEach(pt=>dt.remove(pt));for(const pt in ye)ye.hasOwnProperty(pt)&&C(Ke,pt,ye[pt])})})(),me.length>0&&(rn?(Ie.forEach(gt=>{const zt=gt.animate(me,{id:ae,delay:Et(),duration:Se(),easing:Pe(),iterations:ze(),fill:je(),direction:it()});zt.pause(),Qe.push(zt)}),Qe.length>0&&(Qe[0].onfinish=()=>{Fn()})):kn(gt)),g=!0},jn=gt=>{if(gt=Math.min(Math.max(gt,0),.9999),rn)Qe.forEach(zt=>{zt.currentTime=zt.effect.getComputedTiming().delay+Se()*gt,zt.pause()});else{const zt=`-${Se()*gt}ms`;Ie.forEach(ye=>{me.length>0&&(C(ye,"animation-delay",zt),C(ye,"animation-play-state","paused"))})}},$e=gt=>{Qe.forEach(zt=>{zt.effect.updateTiming({delay:Et(),duration:Se(),easing:Pe(),iterations:ze(),fill:je(),direction:it()})}),void 0!==gt&&jn(gt)},lt=(gt=!0,zt)=>{(0,S.r)(()=>{Ie.forEach(ye=>{C(ye,"animation-name",ve||null),C(ye,"animation-duration",`${Se()}ms`),C(ye,"animation-timing-function",Pe()),C(ye,"animation-delay",void 0!==zt?`-${zt*Se()}ms`:`${Et()}ms`),C(ye,"animation-fill-mode",je()||null),C(ye,"animation-direction",it()||null);const Ke=ze()===1/0?"infinite":ze().toString();C(ye,"animation-iteration-count",Ke),gt&&C(ye,"animation-name",`${ve}-alt`),(0,S.r)(()=>{C(ye,"animation-name",ve||null)})})})},Tt=(gt=!1,zt=!0,ye)=>(gt&&_e.forEach(Ke=>{Ke.update(gt,zt,ye)}),rn?$e(ye):lt(zt,ye),De),qt=()=>{g&&(rn?Qe.forEach(gt=>{gt.pause()}):Ie.forEach(gt=>{C(gt,"animation-play-state","paused")}),Q=!0)},Tn=()=>{r=void 0,Fn()},wn=()=>{r&&clearTimeout(r)},Fe=gt=>new Promise(zt=>{null!=gt&>.sync&&(d=!0,bn(()=>d=!1,{oneTimeCallback:!0})),g||Xn(),J&&(rn?(jn(0),$e()):lt(),J=!1),oe&&(v=_e.length+1,oe=!1);const ye=()=>{St(Ke,ke),zt()},Ke=()=>{St(ye,pe),zt()};bn(Ke,{oneTimeCallback:!0}),((gt,zt)=>{pe.push({c:gt,o:{oneTimeCallback:!0}})})(ye),_e.forEach(dt=>{dt.play()}),rn?(Qe.forEach(gt=>{gt.play()}),(0===me.length||0===Ie.length)&&Fn()):(()=>{if(wn(),(0,S.r)(()=>{Ie.forEach(gt=>{me.length>0&&C(gt,"animation-play-state","running")})}),0===me.length||0===Ie.length)Fn();else{const gt=Et()||0,zt=Se()||0,ye=ze()||1;isFinite(ye)&&(r=setTimeout(Tn,gt+zt*ye+100)),((L,M)=>{let P;const U={passive:!0},W=ie=>{L===ie.target&&(P&&P(),wn(),(0,S.r)(()=>{Ie.forEach(gt=>{_(gt,"animation-duration"),_(gt,"animation-delay"),_(gt,"animation-play-state")}),(0,S.r)(Fn)}))};L&&(L.addEventListener("webkitAnimationEnd",W,U),L.addEventListener("animationend",W,U),P=()=>{L.removeEventListener("webkitAnimationEnd",W,U),L.removeEventListener("animationend",W,U)})})(Ie[0])}})(),Q=!1}),Ct=(gt,zt)=>{const ye=me[0];return void 0===ye||void 0!==ye.offset&&0!==ye.offset?me=[{offset:0,[gt]:zt},...me]:ye[gt]=zt,De};return De={parentAnimation:n,elements:Ie,childAnimations:_e,id:ae,animationFinish:Fn,from:Ct,to:(gt,zt)=>{const ye=me[me.length-1];return void 0===ye||void 0!==ye.offset&&1!==ye.offset?me=[...me,{offset:1,[gt]:zt}]:ye[gt]=zt,De},fromTo:(gt,zt,ye)=>Ct(gt,zt).to(gt,ye),parent:gt=>(n=gt,De),play:Fe,pause:()=>(_e.forEach(gt=>{gt.pause()}),qt(),De),stop:()=>{_e.forEach(gt=>{gt.stop()}),g&&(wt(),g=!1),y=!1,d=!1,oe=!0,f=void 0,k=void 0,I=void 0,v=0,J=!1,V=!0,Q=!1,pe.forEach(gt=>gt.c(0,De)),pe.length=0},destroy:gt=>(_e.forEach(zt=>{zt.destroy(gt)}),(gt=>{wt(),gt&&Dn()})(gt),Ie.length=0,_e.length=0,me.length=0,tt.length=0,ke.length=0,g=!1,oe=!0,De),keyframes:gt=>{const zt=me!==gt;return me=gt,zt&&(gt=>{rn?ft().forEach(zt=>{const ye=zt.effect;if(ye.setKeyframes)ye.setKeyframes(gt);else{const Ke=new KeyframeEffect(ye.target,gt,ye.getTiming());zt.effect=Ke}}):kn()})(me),De},addAnimation:gt=>{if(null!=gt)if(Array.isArray(gt))for(const zt of gt)zt.parent(De),_e.push(zt);else gt.parent(De),_e.push(gt);return De},addElement:gt=>{if(null!=gt)if(1===gt.nodeType)Ie.push(gt);else if(gt.length>=0)for(let zt=0;zt(W=gt,Tt(!0),De),direction:gt=>(ie=gt,Tt(!0),De),iterations:gt=>(j=gt,Tt(!0),De),duration:gt=>(!rn&&0===gt&&(gt=1),P=gt,Tt(!0),De),easing:gt=>(U=gt,Tt(!0),De),delay:gt=>(M=gt,Tt(!0),De),getWebAnimations:ft,getKeyframes:()=>me,getFill:je,getDirection:it,getDelay:Et,getIterations:ze,getEasing:Pe,getDuration:Se,afterAddRead:gt=>(ge.push(gt),De),afterAddWrite:gt=>(xt.push(gt),De),afterClearStyles:(gt=[])=>{for(const zt of gt)h[zt]="";return De},afterStyles:(gt={})=>(h=gt,De),afterRemoveClass:gt=>(s=R(s,gt),De),afterAddClass:gt=>(l=R(l,gt),De),beforeAddRead:gt=>(ne.push(gt),De),beforeAddWrite:gt=>(G.push(gt),De),beforeClearStyles:(gt=[])=>{for(const zt of gt)o[zt]="";return De},beforeStyles:(gt={})=>(o=gt,De),beforeRemoveClass:gt=>(se=R(se,gt),De),beforeAddClass:gt=>(te=R(te,gt),De),onFinish:bn,isRunning:()=>0!==v&&!Q,progressStart:(gt=!1,zt)=>(_e.forEach(ye=>{ye.progressStart(gt,zt)}),qt(),y=gt,g||Xn(),Tt(!1,!0,zt),De),progressStep:gt=>(_e.forEach(zt=>{zt.progressStep(gt)}),jn(gt),De),progressEnd:(gt,zt,ye)=>(y=!1,_e.forEach(Ke=>{Ke.progressEnd(gt,zt,ye)}),void 0!==ye&&(k=ye),J=!1,V=!0,0===gt?(f="reverse"===it()?"normal":"reverse","reverse"===f&&(V=!1),rn?(Tt(),jn(1-zt)):(I=(1-zt)*Se()*-1,Tt(!1,!1))):1===gt&&(rn?(Tt(),jn(zt)):(I=zt*Se()*-1,Tt(!1,!1))),void 0!==gt&&!n&&Fe(),De)}}},464:(Ce,ee,E)=>{"use strict";E.d(ee,{E:()=>B,a:()=>a,s:()=>_});const a=m=>{try{if(m instanceof C)return m.value;if(!O()||"string"!=typeof m||""===m)return m;if(m.includes("onload="))return"";const T=document.createDocumentFragment(),A=document.createElement("div");T.appendChild(A),A.innerHTML=m,D.forEach(L=>{const M=T.querySelectorAll(L);for(let P=M.length-1;P>=0;P--){const U=M[P];U.parentNode?U.parentNode.removeChild(U):T.removeChild(U);const j=p(U);for(let W=0;W{if(m.nodeType&&1!==m.nodeType)return;if(typeof NamedNodeMap<"u"&&!(m.attributes instanceof NamedNodeMap))return void m.remove();for(let A=m.attributes.length-1;A>=0;A--){const w=m.attributes.item(A),R=w.name;if(!c.includes(R.toLowerCase())){m.removeAttribute(R);continue}const $=w.value,L=m[R];(null!=$&&$.toLowerCase().includes("javascript:")||null!=L&&L.toLowerCase().includes("javascript:"))&&m.removeAttribute(R)}const T=p(m);for(let A=0;Anull!=m.children?m.children:m.childNodes,O=()=>{var m;const T=window,A=null===(m=null==T?void 0:T.Ionic)||void 0===m?void 0:m.config;return!A||(A.get?A.get("sanitizerEnabled",!0):!0===A.sanitizerEnabled||void 0===A.sanitizerEnabled)},c=["class","id","href","src","name","slot"],D=["script","style","iframe","meta","link","object","embed"];class C{constructor(T){this.value=T}}const _=m=>{const T=window,A=T.Ionic;if(!A||!A.config||"Object"===A.config.constructor.name)return T.Ionic=T.Ionic||{},T.Ionic.config=Object.assign(Object.assign({},T.Ionic.config),m),T.Ionic.config},B=!1},5938:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>c,a:()=>p,d:()=>O});var a=E(467),S=E(5638);const p=function(){var D=(0,a.A)(function*(C,_,F,B,m,T){var A;if(C)return C.attachViewToDom(_,F,m,B);if(!(T||"string"==typeof F||F instanceof HTMLElement))throw new Error("framework delegate is missing");const w="string"==typeof F?null===(A=_.ownerDocument)||void 0===A?void 0:A.createElement(F):F;return B&&B.forEach(R=>w.classList.add(R)),m&&Object.assign(w,m),_.appendChild(w),yield new Promise(R=>(0,S.c)(w,R)),w});return function(_,F,B,m,T,A){return D.apply(this,arguments)}}(),O=(D,C)=>{if(C){if(D)return D.removeViewFromDom(C.parentElement,C);C.remove()}return Promise.resolve()},c=()=>{let D,C;return{attachViewToDom:function(){var B=(0,a.A)(function*(m,T,A={},w=[]){var R,$;let L;if(D=m,T){const P="string"==typeof T?null===(R=D.ownerDocument)||void 0===R?void 0:R.createElement(T):T;w.forEach(U=>P.classList.add(U)),Object.assign(P,A),D.appendChild(P),L=P,yield new Promise(U=>(0,S.c)(P,U))}else if(D.children.length>0&&("ION-MODAL"===D.tagName||"ION-POPOVER"===D.tagName)&&!(L=D.children[0]).classList.contains("ion-delegate-host")){const U=null===($=D.ownerDocument)||void 0===$?void 0:$.createElement("div");U.classList.add("ion-delegate-host"),w.forEach(j=>U.classList.add(j)),U.append(...D.children),D.appendChild(U),L=U}const M=document.querySelector("ion-app")||document.body;return C=document.createComment("ionic teleport"),D.parentNode.insertBefore(C,D),M.appendChild(D),null!=L?L:D});return function(T,A){return B.apply(this,arguments)}}(),removeViewFromDom:()=>(D&&C&&(C.parentNode.insertBefore(D,C),C.remove()),Promise.resolve())}}},8221:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>c});class S{constructor(C,_,F,B,m){this.id=_,this.name=F,this.disableScroll=m,this.priority=1e6*B+_,this.ctrl=C}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const C=this.ctrl.capture(this.name,this.id,this.priority);return C&&this.disableScroll&&this.ctrl.disableScroll(this.id),C}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class p{constructor(C,_,F,B){this.id=_,this.disable=F,this.disableScroll=B,this.ctrl=C}block(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.disableGesture(C,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.enableGesture(C,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const O="backdrop-no-scroll",c=new class a{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(C){var _;return new S(this,this.newID(),C.name,null!==(_=C.priority)&&void 0!==_?_:0,!!C.disableScroll)}createBlocker(C={}){return new p(this,this.newID(),C.disable,!!C.disableScroll)}start(C,_,F){return this.canStart(C)?(this.requestedStart.set(_,F),!0):(this.requestedStart.delete(_),!1)}capture(C,_,F){if(!this.start(C,_,F))return!1;const B=this.requestedStart;let m=-1e4;if(B.forEach(T=>{m=Math.max(m,T)}),m===F){this.capturedId=_,B.clear();const T=new CustomEvent("ionGestureCaptured",{detail:{gestureName:C}});return document.dispatchEvent(T),!0}return B.delete(_),!1}release(C){this.requestedStart.delete(C),this.capturedId===C&&(this.capturedId=void 0)}disableGesture(C,_){let F=this.disabledGestures.get(C);void 0===F&&(F=new Set,this.disabledGestures.set(C,F)),F.add(_)}enableGesture(C,_){const F=this.disabledGestures.get(C);void 0!==F&&F.delete(_)}disableScroll(C){this.disabledScroll.add(C),1===this.disabledScroll.size&&document.body.classList.add(O)}enableScroll(C){this.disabledScroll.delete(C),0===this.disabledScroll.size&&document.body.classList.remove(O)}canStart(C){return!(void 0!==this.capturedId||this.isDisabled(C))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(C){const _=this.disabledGestures.get(C);return!!(_&&_.size>0)}newID(){return this.gestureId++,this.gestureId}}},3113:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{MENU_BACK_BUTTON_PRIORITY:()=>F,OVERLAY_BACK_BUTTON_PRIORITY:()=>_,blockHardwareBackButton:()=>D,shouldUseCloseWatcher:()=>c,startHardwareBackButton:()=>C});var a=E(467),S=E(8476),p=E(611);E(4363);const c=()=>p.c.get("experimentalCloseWatcher",!1)&&void 0!==S.w&&"CloseWatcher"in S.w,D=()=>{document.addEventListener("backbutton",()=>{})},C=()=>{const B=document;let m=!1;const T=()=>{if(m)return;let A=0,w=[];const R=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(M,P){w.push({priority:M,handler:P,id:A++})}}});B.dispatchEvent(R);const $=function(){var M=(0,a.A)(function*(P){try{if(null!=P&&P.handler){const U=P.handler(L);null!=U&&(yield U)}}catch(U){console.error(U)}});return function(U){return M.apply(this,arguments)}}(),L=()=>{if(w.length>0){let M={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};w.forEach(P=>{P.priority>=M.priority&&(M=P)}),m=!0,w=w.filter(P=>P.id!==M.id),$(M).then(()=>m=!1)}};L()};if(c()){let A;const w=()=>{null==A||A.destroy(),A=new S.w.CloseWatcher,A.onclose=()=>{T(),w()}};w()}else B.addEventListener("backbutton",T)},_=100,F=99},5638:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>_,b:()=>F,c:()=>p,d:()=>$,e:()=>R,f:()=>w,g:()=>B,h:()=>A,i:()=>C,j:()=>W,k:()=>c,l:()=>L,m:()=>O,n:()=>T,o:()=>M,p:()=>j,q:()=>ie,r:()=>m,s:()=>me,t:()=>a,u:()=>P,v:()=>U});const a=(te,se=0)=>new Promise(g=>{S(te,se,g)}),S=(te,se=0,g)=>{let n,o;const l={passive:!0},h=()=>{n&&n()},v=y=>{(void 0===y||te===y.target)&&(h(),g(y))};return te&&(te.addEventListener("webkitTransitionEnd",v,l),te.addEventListener("transitionend",v,l),o=setTimeout(v,se+500),n=()=>{void 0!==o&&(clearTimeout(o),o=void 0),te.removeEventListener("webkitTransitionEnd",v,l),te.removeEventListener("transitionend",v,l)}),h},p=(te,se)=>{te.componentOnReady?te.componentOnReady().then(g=>se(g)):m(()=>se(te))},O=te=>void 0!==te.componentOnReady,c=(te,se=[])=>{const g={};return se.forEach(n=>{te.hasAttribute(n)&&(null!==te.getAttribute(n)&&(g[n]=te.getAttribute(n)),te.removeAttribute(n))}),g},D=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],C=(te,se)=>{let g=D;return se&&se.length>0&&(g=g.filter(n=>!se.includes(n))),c(te,g)},_=(te,se,g,n)=>{var o;if(typeof window<"u"){const l=window,s=null===(o=null==l?void 0:l.Ionic)||void 0===o?void 0:o.config;if(s){const h=s.get("_ael");if(h)return h(te,se,g,n);if(s._ael)return s._ael(te,se,g,n)}}return te.addEventListener(se,g,n)},F=(te,se,g,n)=>{var o;if(typeof window<"u"){const l=window,s=null===(o=null==l?void 0:l.Ionic)||void 0===o?void 0:o.config;if(s){const h=s.get("_rel");if(h)return h(te,se,g,n);if(s._rel)return s._rel(te,se,g,n)}}return te.removeEventListener(se,g,n)},B=(te,se=te)=>te.shadowRoot||se,m=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te),T=te=>!!te.shadowRoot&&!!te.attachShadow,A=te=>{const se=te.closest("ion-item");return se?se.querySelector("ion-label"):null},w=te=>{if(te.focus(),te.classList.contains("ion-focusable")){const se=te.closest("ion-app");se&&se.setFocus([te])}},R=(te,se)=>{let g;const n=te.getAttribute("aria-labelledby"),o=te.id;let l=null!==n&&""!==n.trim()?n:se+"-lbl",s=null!==n&&""!==n.trim()?document.getElementById(n):A(te);return s?(null===n&&(s.id=l),g=s.textContent,s.setAttribute("aria-hidden","true")):""!==o.trim()&&(s=document.querySelector(`label[for="${o}"]`),s&&(""!==s.id?l=s.id:s.id=l=`${o}-lbl`,g=s.textContent)),{label:s,labelId:l,labelText:g}},$=(te,se,g,n,o)=>{if(te||T(se)){let l=se.querySelector("input.aux-input");l||(l=se.ownerDocument.createElement("input"),l.type="hidden",l.classList.add("aux-input"),se.appendChild(l)),l.disabled=o,l.name=g,l.value=n||""}},L=(te,se,g)=>Math.max(te,Math.min(se,g)),M=(te,se)=>{if(!te){const g="ASSERT: "+se;throw console.error(g),new Error(g)}},P=te=>te.timeStamp||Date.now(),U=te=>{if(te){const se=te.changedTouches;if(se&&se.length>0){const g=se[0];return{x:g.clientX,y:g.clientY}}if(void 0!==te.pageX)return{x:te.pageX,y:te.pageY}}return{x:0,y:0}},j=te=>{const se="rtl"===document.dir;switch(te){case"start":return se;case"end":return!se;default:throw new Error(`"${te}" is not a valid value for [side]. Use "start" or "end" instead.`)}},W=(te,se)=>{const g=te._original||te;return{_original:te,emit:ie(g.emit.bind(g),se)}},ie=(te,se=0)=>{let g;return(...n)=>{clearTimeout(g),g=setTimeout(te,se,...n)}},me=(te,se)=>{if(null!=te||(te={}),null!=se||(se={}),te===se)return!0;const g=Object.keys(te);if(g.length!==Object.keys(se).length)return!1;for(const n of g)if(!(n in se)||te[n]!==se[n])return!1;return!0}},405:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{GESTURE_CONTROLLER:()=>a.G,createGesture:()=>F});var a=E(8221);const S=(A,w,R,$)=>{const L=p(A)?{capture:!!$.capture,passive:!!$.passive}:!!$.capture;let M,P;return A.__zone_symbol__addEventListener?(M="__zone_symbol__addEventListener",P="__zone_symbol__removeEventListener"):(M="addEventListener",P="removeEventListener"),A[M](w,R,L),()=>{A[P](w,R,L)}},p=A=>{if(void 0===O)try{const w=Object.defineProperty({},"passive",{get:()=>{O=!0}});A.addEventListener("optsTest",()=>{},w)}catch{O=!1}return!!O};let O;const C=A=>A instanceof Document?A:A.ownerDocument,F=A=>{let w=!1,R=!1,$=!0,L=!1;const M=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},A),P=M.canStart,U=M.onWillStart,j=M.onStart,W=M.onEnd,ie=M.notCaptured,me=M.onMove,te=M.threshold,se=M.passive,g=M.blurOnStart,n={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},o=((A,w,R)=>{const $=R*(Math.PI/180),L="x"===A,M=Math.cos($),P=w*w;let U=0,j=0,W=!1,ie=0;return{start(me,te){U=me,j=te,ie=0,W=!0},detect(me,te){if(!W)return!1;const se=me-U,g=te-j,n=se*se+g*g;if(nM?1:l<-M?-1:0,W=!1,!0},isGesture:()=>0!==ie,getDirection:()=>ie}})(M.direction,M.threshold,M.maxAngle),l=a.G.createGesture({name:A.gestureName,priority:A.gesturePriority,disableScroll:A.disableScroll}),v=()=>{w&&(L=!1,me&&me(n))},y=()=>!!l.capture()&&(w=!0,$=!1,n.startX=n.currentX,n.startY=n.currentY,n.startTime=n.currentTime,U?U(n).then(r):r(),!0),r=()=>{g&&(()=>{if(typeof document<"u"){const J=document.activeElement;null!=J&&J.blur&&J.blur()}})(),j&&j(n),$=!0},f=()=>{w=!1,R=!1,L=!1,$=!0,l.release()},k=J=>{const oe=w,ve=$;if(f(),ve){if(B(n,J),oe)return void(W&&W(n));ie&&ie(n)}},I=((A,w,R,$,L)=>{let M,P,U,j,W,ie,me,te=0;const se=d=>{te=Date.now()+2e3,w(d)&&(!P&&R&&(P=S(A,"touchmove",R,L)),U||(U=S(d.target,"touchend",n,L)),j||(j=S(d.target,"touchcancel",n,L)))},g=d=>{te>Date.now()||w(d)&&(!ie&&R&&(ie=S(C(A),"mousemove",R,L)),me||(me=S(C(A),"mouseup",o,L)))},n=d=>{l(),$&&$(d)},o=d=>{s(),$&&$(d)},l=()=>{P&&P(),U&&U(),j&&j(),P=U=j=void 0},s=()=>{ie&&ie(),me&&me(),ie=me=void 0},h=()=>{l(),s()},v=(d=!0)=>{d?(M||(M=S(A,"touchstart",se,L)),W||(W=S(A,"mousedown",g,L))):(M&&M(),W&&W(),M=W=void 0,h())};return{enable:v,stop:h,destroy:()=>{v(!1),$=R=w=void 0}}})(M.el,J=>{const oe=T(J);return!(R||!$||(m(J,n),n.startX=n.currentX,n.startY=n.currentY,n.startTime=n.currentTime=oe,n.velocityX=n.velocityY=n.deltaX=n.deltaY=0,n.event=J,P&&!1===P(n))||(l.release(),!l.start()))&&(R=!0,0===te?y():(o.start(n.startX,n.startY),!0))},J=>{w?!L&&$&&(L=!0,B(n,J),requestAnimationFrame(v)):(B(n,J),o.detect(n.currentX,n.currentY)&&(!o.isGesture()||!y())&&V())},k,{capture:!1,passive:se}),V=()=>{f(),I.stop(),ie&&ie(n)};return{enable(J=!0){J||(w&&k(void 0),f()),I.enable(J)},destroy(){l.destroy(),I.destroy()}}},B=(A,w)=>{if(!w)return;const R=A.currentX,$=A.currentY,L=A.currentTime;m(w,A);const M=A.currentX,P=A.currentY,j=(A.currentTime=T(w))-L;if(j>0&&j<100){const ie=(P-$)/j;A.velocityX=(M-R)/j*.7+.3*A.velocityX,A.velocityY=.7*ie+.3*A.velocityY}A.deltaX=M-A.startX,A.deltaY=P-A.startY,A.event=w},m=(A,w)=>{let R=0,$=0;if(A){const L=A.changedTouches;if(L&&L.length>0){const M=L[0];R=M.clientX,$=M.clientY}else void 0!==A.pageX&&(R=A.pageX,$=A.pageY)}w.currentX=R,w.currentY=$},T=A=>A.timeStamp||Date.now()},5384:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>A});var a=E(467),S=E(8476),p=E(3113),O=E(4929),c=E(5638),D=E(611),C=E(3503);const _=w=>(0,C.c)().duration(w?400:300),F=w=>{let R,$;const L=w.width+8,M=(0,C.c)(),P=(0,C.c)();w.isEndSide?(R=L+"px",$="0px"):(R=-L+"px",$="0px"),M.addElement(w.menuInnerEl).fromTo("transform",`translateX(${R})`,`translateX(${$})`);const j="ios"===(0,D.b)(w),W=j?.2:.25;return P.addElement(w.backdropEl).fromTo("opacity",.01,W),_(j).addAnimation([M,P])},B=w=>{let R,$;const L=(0,D.b)(w),M=w.width;w.isEndSide?(R=-M+"px",$=M+"px"):(R=M+"px",$=-M+"px");const P=(0,C.c)().addElement(w.menuInnerEl).fromTo("transform",`translateX(${$})`,"translateX(0px)"),U=(0,C.c)().addElement(w.contentEl).fromTo("transform","translateX(0px)",`translateX(${R})`),j=(0,C.c)().addElement(w.backdropEl).fromTo("opacity",.01,.32);return _("ios"===L).addAnimation([P,U,j])},m=w=>{const R=(0,D.b)(w),$=w.width*(w.isEndSide?-1:1)+"px",L=(0,C.c)().addElement(w.contentEl).fromTo("transform","translateX(0px)",`translateX(${$})`);return _("ios"===R).addAnimation(L)},A=(()=>{const w=new Map,R=[],$=function(){var f=(0,a.A)(function*(k){const I=yield ie(k,!0);return!!I&&I.open()});return function(I){return f.apply(this,arguments)}}(),L=function(){var f=(0,a.A)(function*(k){const I=yield void 0!==k?ie(k,!0):me();return void 0!==I&&I.close()});return function(I){return f.apply(this,arguments)}}(),M=function(){var f=(0,a.A)(function*(k){const I=yield ie(k,!0);return!!I&&I.toggle()});return function(I){return f.apply(this,arguments)}}(),P=function(){var f=(0,a.A)(function*(k,I){const V=yield ie(I);return V&&(V.disabled=!k),V});return function(I,V){return f.apply(this,arguments)}}(),U=function(){var f=(0,a.A)(function*(k,I){const V=yield ie(I);return V&&(V.swipeGesture=k),V});return function(I,V){return f.apply(this,arguments)}}(),j=function(){var f=(0,a.A)(function*(k){if(null!=k){const I=yield ie(k);return void 0!==I&&I.isOpen()}return void 0!==(yield me())});return function(I){return f.apply(this,arguments)}}(),W=function(){var f=(0,a.A)(function*(k){const I=yield ie(k);return!!I&&!I.disabled});return function(I){return f.apply(this,arguments)}}(),ie=function(){var f=(0,a.A)(function*(k,I=!1){if(yield r(),"start"===k||"end"===k){const J=R.filter(ve=>ve.side===k&&!ve.disabled);if(J.length>=1)return J.length>1&&I&&(0,O.p)(`menuController queried for a menu on the "${k}" side, but ${J.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,J.map(ve=>ve.el)),J[0].el;const oe=R.filter(ve=>ve.side===k);if(oe.length>=1)return oe.length>1&&I&&(0,O.p)(`menuController queried for a menu on the "${k}" side, but ${oe.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,oe.map(ve=>ve.el)),oe[0].el}else if(null!=k)return d(J=>J.menuId===k);return d(J=>!J.disabled)||(R.length>0?R[0].el:void 0)});return function(I){return f.apply(this,arguments)}}(),me=function(){var f=(0,a.A)(function*(){return yield r(),h()});return function(){return f.apply(this,arguments)}}(),te=function(){var f=(0,a.A)(function*(){return yield r(),v()});return function(){return f.apply(this,arguments)}}(),se=function(){var f=(0,a.A)(function*(){return yield r(),y()});return function(){return f.apply(this,arguments)}}(),g=(f,k)=>{w.set(f,k)},l=function(){var f=(0,a.A)(function*(k,I,V){if(y())return!1;if(I){const J=yield me();J&&k.el!==J&&(yield J.setOpen(!1,!1))}return k._setOpen(I,V)});return function(I,V,J){return f.apply(this,arguments)}}(),h=()=>d(f=>f._isOpen),v=()=>R.map(f=>f.el),y=()=>R.some(f=>f.isAnimating),d=f=>{const k=R.find(f);if(void 0!==k)return k.el},r=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(f=>new Promise(k=>(0,c.c)(f,k))));return g("reveal",m),g("push",B),g("overlay",F),null==S.d||S.d.addEventListener("ionBackButton",f=>{const k=h();k&&f.detail.register(p.MENU_BACK_BUTTON_PRIORITY,()=>k.close())}),{registerAnimation:g,get:ie,getMenus:te,getOpen:me,isEnabled:W,swipeGesture:U,isAnimating:se,isOpen:j,enable:P,toggle:M,close:L,open:$,_getOpenSync:h,_createAnimation:(f,k)=>{const I=w.get(f);if(!I)throw new Error("animation not registered");return I(k)},_register:f=>{R.indexOf(f)<0&&R.push(f)},_unregister:f=>{const k=R.indexOf(f);k>-1&&R.splice(k,1)},_setOpen:l}})()},4929:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S,b:()=>p,p:()=>a});const a=(O,...c)=>console.warn(`[Ionic Warning]: ${O}`,...c),S=(O,...c)=>console.error(`[Ionic Error]: ${O}`,...c),p=(O,...c)=>console.error(`<${O.tagName.toLowerCase()}> must be used inside ${c.join(" or ")}.`)},4363:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>T,H:()=>y,a:()=>Tn,b:()=>On,c:()=>ve,d:()=>tt,e:()=>gt,f:()=>ae,g:()=>De,h:()=>h,i:()=>it,j:()=>A,r:()=>Gn,w:()=>zt});var a=E(467);let O,c,D,C=!1,_=!1,F=!1,B=!1,m=!1;const T={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},A=ye=>{const Ke=new URL(ye,Qt.$resourcesUrl$);return Ke.origin!==Zt.location.origin?Ke.href:Ke.pathname},U="s-id",j="sty-id",W="c-id",me="slot-fb{display:contents}slot-fb[hidden]{display:none}",te="http://www.w3.org/1999/xlink",se={},l=ye=>"object"==(ye=typeof ye)||"function"===ye;function s(ye){var Ke,dt,pt;return null!==(pt=null===(dt=null===(Ke=ye.head)||void 0===Ke?void 0:Ke.querySelector('meta[name="csp-nonce"]'))||void 0===dt?void 0:dt.getAttribute("content"))&&void 0!==pt?pt:void 0}const h=(ye,Ke,...dt)=>{let pt=null,Yt=null,$t=null,an=!1,ln=!1;const xn=[],cn=_n=>{for(let Sn=0;Sn<_n.length;Sn++)pt=_n[Sn],Array.isArray(pt)?cn(pt):null!=pt&&"boolean"!=typeof pt&&((an="function"!=typeof ye&&!l(pt))&&(pt=String(pt)),an&&ln?xn[xn.length-1].$text$+=pt:xn.push(an?v(null,pt):pt),ln=an)};if(cn(dt),Ke){Ke.key&&(Yt=Ke.key),Ke.name&&($t=Ke.name);{const _n=Ke.className||Ke.class;_n&&(Ke.class="object"!=typeof _n?_n:Object.keys(_n).filter(Sn=>_n[Sn]).join(" "))}}if("function"==typeof ye)return ye(null===Ke?{}:Ke,xn,r);const nn=v(ye,null);return nn.$attrs$=Ke,xn.length>0&&(nn.$children$=xn),nn.$key$=Yt,nn.$name$=$t,nn},v=(ye,Ke)=>({$flags$:0,$tag$:ye,$text$:Ke,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),y={},r={forEach:(ye,Ke)=>ye.map(f).forEach(Ke),map:(ye,Ke)=>ye.map(f).map(Ke).map(k)},f=ye=>({vattrs:ye.$attrs$,vchildren:ye.$children$,vkey:ye.$key$,vname:ye.$name$,vtag:ye.$tag$,vtext:ye.$text$}),k=ye=>{if("function"==typeof ye.vtag){const dt=Object.assign({},ye.vattrs);return ye.vkey&&(dt.key=ye.vkey),ye.vname&&(dt.name=ye.vname),h(ye.vtag,dt,...ye.vchildren||[])}const Ke=v(ye.vtag,ye.vtext);return Ke.$attrs$=ye.vattrs,Ke.$children$=ye.vchildren,Ke.$key$=ye.vkey,Ke.$name$=ye.vname,Ke},V=(ye,Ke,dt,pt,Yt,$t,an)=>{let ln,xn,cn,nn;if(1===$t.nodeType){for(ln=$t.getAttribute(W),ln&&(xn=ln.split("."),(xn[0]===an||"0"===xn[0])&&(cn={$flags$:0,$hostId$:xn[0],$nodeId$:xn[1],$depth$:xn[2],$index$:xn[3],$tag$:$t.tagName.toLowerCase(),$elm$:$t,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},Ke.push(cn),$t.removeAttribute(W),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn,ye=cn,pt&&"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$))),nn=$t.childNodes.length-1;nn>=0;nn--)V(ye,Ke,dt,pt,Yt,$t.childNodes[nn],an);if($t.shadowRoot)for(nn=$t.shadowRoot.childNodes.length-1;nn>=0;nn--)V(ye,Ke,dt,pt,Yt,$t.shadowRoot.childNodes[nn],an)}else if(8===$t.nodeType)xn=$t.nodeValue.split("."),(xn[1]===an||"0"===xn[1])&&(ln=xn[0],cn={$flags$:0,$hostId$:xn[1],$nodeId$:xn[2],$depth$:xn[3],$index$:xn[4],$elm$:$t,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===ln?(cn.$elm$=$t.nextSibling,cn.$elm$&&3===cn.$elm$.nodeType&&(cn.$text$=cn.$elm$.textContent,Ke.push(cn),$t.remove(),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn,pt&&"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$))):cn.$hostId$===an&&("s"===ln?(cn.$tag$="slot",$t["s-sn"]=xn[5]?cn.$name$=xn[5]:"",$t["s-sr"]=!0,pt&&(cn.$elm$=qt.createElement(cn.$tag$),cn.$name$&&cn.$elm$.setAttribute("name",cn.$name$),$t.parentNode.insertBefore(cn.$elm$,$t),$t.remove(),"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$)),dt.push(cn),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn):"r"===ln&&(pt?$t.remove():(Yt["s-cr"]=$t,$t["s-cn"]=!0))));else if(ye&&"style"===ye.$tag$){const _n=v(null,$t.textContent);_n.$elm$=$t,_n.$index$="0",ye.$children$=[_n]}},J=(ye,Ke)=>{if(1===ye.nodeType){let dt=0;for(;dtkt.push(ye),De=ye=>kn(ye).$modeName$,ae=ye=>kn(ye).$hostElement$,tt=(ye,Ke,dt)=>{const pt=ae(ye);return{emit:Yt=>ke(pt,Ke,{bubbles:!!(4&dt),composed:!!(2&dt),cancelable:!!(1&dt),detail:Yt})}},ke=(ye,Ke,dt)=>{const pt=Qt.ce(Ke,dt);return ye.dispatchEvent(pt),pt},pe=new WeakMap,Ie=(ye,Ke,dt)=>{let pt=Mt.get(ye);Ge&&dt?(pt=pt||new CSSStyleSheet,"string"==typeof pt?pt=Ke:pt.replaceSync(Ke)):pt=Ke,Mt.set(ye,pt)},_e=(ye,Ke,dt)=>{var pt;const Yt=ne(Ke,dt),$t=Mt.get(Yt);if(ye=11===ye.nodeType?ye:qt,$t)if("string"==typeof $t){let ln,an=pe.get(ye=ye.head||ye);if(an||pe.set(ye,an=new Set),!an.has(Yt)){if(ye.host&&(ln=ye.querySelector(`[${j}="${Yt}"]`)))ln.innerHTML=$t;else{ln=qt.createElement("style"),ln.innerHTML=$t;const xn=null!==(pt=Qt.$nonce$)&&void 0!==pt?pt:s(qt);null!=xn&&ln.setAttribute("nonce",xn),ye.insertBefore(ln,ye.querySelector("link"))}4&Ke.$flags$&&(ln.innerHTML+=me),an&&an.add(Yt)}}else ye.adoptedStyleSheets.includes($t)||(ye.adoptedStyleSheets=[...ye.adoptedStyleSheets,$t]);return Yt},ne=(ye,Ke)=>"sc-"+(Ke&&32&ye.$flags$?ye.$tagName$+"-"+Ke:ye.$tagName$),G=ye=>ye.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ge=(ye,Ke,dt,pt,Yt,$t)=>{if(dt!==pt){let an=jn(ye,Ke),ln=Ke.toLowerCase();if("class"===Ke){const xn=ye.classList,cn=Qe(dt),nn=Qe(pt);xn.remove(...cn.filter(_n=>_n&&!nn.includes(_n))),xn.add(...nn.filter(_n=>_n&&!cn.includes(_n)))}else if("style"===Ke){for(const xn in dt)(!pt||null==pt[xn])&&(xn.includes("-")?ye.style.removeProperty(xn):ye.style[xn]="");for(const xn in pt)(!dt||pt[xn]!==dt[xn])&&(xn.includes("-")?ye.style.setProperty(xn,pt[xn]):ye.style[xn]=pt[xn])}else if("key"!==Ke)if("ref"===Ke)pt&&pt(ye);else if(an||"o"!==Ke[0]||"n"!==Ke[1]){const xn=l(pt);if((an||xn&&null!==pt)&&!Yt)try{if(ye.tagName.includes("-"))ye[Ke]=pt;else{const nn=null==pt?"":pt;"list"===Ke?an=!1:(null==dt||ye[Ke]!=nn)&&(ye[Ke]=nn)}}catch{}let cn=!1;ln!==(ln=ln.replace(/^xlink\:?/,""))&&(Ke=ln,cn=!0),null==pt||!1===pt?(!1!==pt||""===ye.getAttribute(Ke))&&(cn?ye.removeAttributeNS(te,Ke):ye.removeAttribute(Ke)):(!an||4&$t||Yt)&&!xn&&(pt=!0===pt?"":pt,cn?ye.setAttributeNS(te,Ke,pt):ye.setAttribute(Ke,pt))}else if(Ke="-"===Ke[2]?Ke.slice(3):jn(Zt,ln)?ln.slice(2):ln[2]+Ke.slice(3),dt||pt){const xn=Ke.endsWith(rt);Ke=Ke.replace(rn,""),dt&&Qt.rel(ye,Ke,dt,xn),pt&&Qt.ael(ye,Ke,pt,xn)}}},xt=/\s/,Qe=ye=>ye?ye.split(xt):[],rt="Capture",rn=new RegExp(rt+"$"),mt=(ye,Ke,dt,pt)=>{const Yt=11===Ke.$elm$.nodeType&&Ke.$elm$.host?Ke.$elm$.host:Ke.$elm$,$t=ye&&ye.$attrs$||se,an=Ke.$attrs$||se;for(pt of ft(Object.keys($t)))pt in an||ge(Yt,pt,$t[pt],void 0,dt,Ke.$flags$);for(pt of ft(Object.keys(an)))ge(Yt,pt,$t[pt],an[pt],dt,Ke.$flags$)};function ft(ye){return ye.includes("ref")?[...ye.filter(Ke=>"ref"!==Ke),"ref"]:ye}const un=(ye,Ke,dt,pt)=>{var Yt;const $t=Ke.$children$[dt];let ln,xn,cn,an=0;if(C||(F=!0,"slot"===$t.$tag$&&(O&&pt.classList.add(O+"-s"),$t.$flags$|=$t.$children$?2:1)),null!==$t.$text$)ln=$t.$elm$=qt.createTextNode($t.$text$);else if(1&$t.$flags$)ln=$t.$elm$=qt.createTextNode("");else{if(B||(B="svg"===$t.$tag$),ln=$t.$elm$=qt.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&$t.$flags$?"slot-fb":$t.$tag$),B&&"foreignObject"===$t.$tag$&&(B=!1),mt(null,$t,B),(ye=>null!=ye)(O)&&ln["s-si"]!==O&&ln.classList.add(ln["s-si"]=O),$t.$children$)for(an=0;an<$t.$children$.length;++an)xn=un(ye,$t,an,ln),xn&&ln.appendChild(xn);"svg"===$t.$tag$?B=!1:"foreignObject"===ln.tagName&&(B=!0)}return ln["s-hn"]=D,3&$t.$flags$&&(ln["s-sr"]=!0,ln["s-cr"]=c,ln["s-sn"]=$t.$name$||"",ln["s-rf"]=null===(Yt=$t.$attrs$)||void 0===Yt?void 0:Yt.ref,cn=ye&&ye.$children$&&ye.$children$[dt],cn&&cn.$tag$===$t.$tag$&&ye.$elm$&&At(ye.$elm$,!1)),ln},At=(ye,Ke)=>{Qt.$flags$|=1;const dt=Array.from(ye.childNodes);for(let pt=dt.length-1;pt>=0;pt--){const Yt=dt[pt];Yt["s-hn"]!==D&&Yt["s-ol"]&&(bt(Yt).insertBefore(Yt,bn(Yt)),Yt["s-ol"].remove(),Yt["s-ol"]=void 0,Yt["s-sh"]=void 0,F=!0),Ke&&At(Yt,Ke)}Qt.$flags$&=-2},It=(ye,Ke,dt,pt,Yt,$t)=>{let ln,an=ye["s-cr"]&&ye["s-cr"].parentNode||ye;for(an.shadowRoot&&an.tagName===D&&(an=an.shadowRoot);Yt<=$t;++Yt)pt[Yt]&&(ln=un(null,dt,Yt,ye),ln&&(pt[Yt].$elm$=ln,an.insertBefore(ln,bn(Ke))))},Cn=(ye,Ke,dt)=>{for(let pt=Ke;pt<=dt;++pt){const Yt=ye[pt];if(Yt){const $t=Yt.$elm$;Nt(Yt),$t&&(_=!0,$t["s-ol"]?$t["s-ol"].remove():At($t,!0),$t.remove())}}},Ft=(ye,Ke,dt=!1)=>ye.$tag$===Ke.$tag$&&("slot"===ye.$tag$?ye.$name$===Ke.$name$:!!dt||ye.$key$===Ke.$key$),bn=ye=>ye&&ye["s-ol"]||ye,bt=ye=>(ye["s-ol"]?ye["s-ol"]:ye).parentNode,wt=(ye,Ke,dt=!1)=>{const pt=Ke.$elm$=ye.$elm$,Yt=ye.$children$,$t=Ke.$children$,an=Ke.$tag$,ln=Ke.$text$;let xn;null===ln?(B="svg"===an||"foreignObject"!==an&&B,"slot"===an&&!C||mt(ye,Ke,B),null!==Yt&&null!==$t?((ye,Ke,dt,pt,Yt=!1)=>{let X,Ue,$t=0,an=0,ln=0,xn=0,cn=Ke.length-1,nn=Ke[0],_n=Ke[cn],Sn=pt.length-1,Pn=pt[0],hr=pt[Sn];for(;$t<=cn&&an<=Sn;)if(null==nn)nn=Ke[++$t];else if(null==_n)_n=Ke[--cn];else if(null==Pn)Pn=pt[++an];else if(null==hr)hr=pt[--Sn];else if(Ft(nn,Pn,Yt))wt(nn,Pn,Yt),nn=Ke[++$t],Pn=pt[++an];else if(Ft(_n,hr,Yt))wt(_n,hr,Yt),_n=Ke[--cn],hr=pt[--Sn];else if(Ft(nn,hr,Yt))("slot"===nn.$tag$||"slot"===hr.$tag$)&&At(nn.$elm$.parentNode,!1),wt(nn,hr,Yt),ye.insertBefore(nn.$elm$,_n.$elm$.nextSibling),nn=Ke[++$t],hr=pt[--Sn];else if(Ft(_n,Pn,Yt))("slot"===nn.$tag$||"slot"===hr.$tag$)&&At(_n.$elm$.parentNode,!1),wt(_n,Pn,Yt),ye.insertBefore(_n.$elm$,nn.$elm$),_n=Ke[--cn],Pn=pt[++an];else{for(ln=-1,xn=$t;xn<=cn;++xn)if(Ke[xn]&&null!==Ke[xn].$key$&&Ke[xn].$key$===Pn.$key$){ln=xn;break}ln>=0?(Ue=Ke[ln],Ue.$tag$!==Pn.$tag$?X=un(Ke&&Ke[an],dt,ln,ye):(wt(Ue,Pn,Yt),Ke[ln]=void 0,X=Ue.$elm$),Pn=pt[++an]):(X=un(Ke&&Ke[an],dt,an,ye),Pn=pt[++an]),X&&bt(nn.$elm$).insertBefore(X,bn(nn.$elm$))}$t>cn?It(ye,null==pt[Sn+1]?null:pt[Sn+1].$elm$,dt,pt,an,Sn):an>Sn&&Cn(Ke,$t,cn)})(pt,Yt,Ke,$t,dt):null!==$t?(null!==ye.$text$&&(pt.textContent=""),It(pt,null,Ke,$t,0,$t.length-1)):null!==Yt&&Cn(Yt,0,Yt.length-1),B&&"svg"===an&&(B=!1)):(xn=pt["s-cr"])?xn.parentNode.textContent=ln:ye.$text$!==ln&&(pt.data=ln)},Dn=ye=>{const Ke=ye.childNodes;for(const dt of Ke)if(1===dt.nodeType){if(dt["s-sr"]){const pt=dt["s-sn"];dt.hidden=!1;for(const Yt of Ke)if(Yt!==dt)if(Yt["s-hn"]!==dt["s-hn"]||""!==pt){if(1===Yt.nodeType&&(pt===Yt.getAttribute("slot")||pt===Yt["s-sn"])){dt.hidden=!0;break}}else if(1===Yt.nodeType||3===Yt.nodeType&&""!==Yt.textContent.trim()){dt.hidden=!0;break}}Dn(dt)}},Bt=[],Lt=ye=>{let Ke,dt,pt;for(const Yt of ye.childNodes){if(Yt["s-sr"]&&(Ke=Yt["s-cr"])&&Ke.parentNode){dt=Ke.parentNode.childNodes;const $t=Yt["s-sn"];for(pt=dt.length-1;pt>=0;pt--)if(Ke=dt[pt],!Ke["s-cn"]&&!Ke["s-nr"]&&Ke["s-hn"]!==Yt["s-hn"])if(Wt(Ke,$t)){let an=Bt.find(ln=>ln.$nodeToRelocate$===Ke);_=!0,Ke["s-sn"]=Ke["s-sn"]||$t,an?(an.$nodeToRelocate$["s-sh"]=Yt["s-hn"],an.$slotRefNode$=Yt):(Ke["s-sh"]=Yt["s-hn"],Bt.push({$slotRefNode$:Yt,$nodeToRelocate$:Ke})),Ke["s-sr"]&&Bt.map(ln=>{Wt(ln.$nodeToRelocate$,Ke["s-sn"])&&(an=Bt.find(xn=>xn.$nodeToRelocate$===Ke),an&&!ln.$slotRefNode$&&(ln.$slotRefNode$=an.$slotRefNode$))})}else Bt.some(an=>an.$nodeToRelocate$===Ke)||Bt.push({$nodeToRelocate$:Ke})}1===Yt.nodeType&&Lt(Yt)}},Wt=(ye,Ke)=>1===ye.nodeType?null===ye.getAttribute("slot")&&""===Ke||ye.getAttribute("slot")===Ke:ye["s-sn"]===Ke||""===Ke,Nt=ye=>{ye.$attrs$&&ye.$attrs$.ref&&ye.$attrs$.ref(null),ye.$children$&&ye.$children$.map(Nt)},zn=(ye,Ke)=>{Ke&&!ye.$onRenderResolve$&&Ke["s-p"]&&Ke["s-p"].push(new Promise(dt=>ye.$onRenderResolve$=dt))},Ut=(ye,Ke)=>{if(ye.$flags$|=16,!(4&ye.$flags$))return zn(ye,ye.$ancestorComponent$),zt(()=>He(ye,Ke));ye.$flags$|=512},He=(ye,Ke)=>{const pt=ye.$lazyInstance$;let Yt;return Ke&&(ye.$flags$|=256,ye.$queuedListeners$&&(ye.$queuedListeners$.map(([$t,an])=>Se(pt,$t,an)),ye.$queuedListeners$=void 0),Yt=Se(pt,"componentWillLoad")),Yt=Be(Yt,()=>Se(pt,"componentWillRender")),Be(Yt,()=>Me(ye,pt,Ke))},Be=(ye,Ke)=>Ae(ye)?ye.then(Ke):Ke(),Ae=ye=>ye instanceof Promise||ye&&ye.then&&"function"==typeof ye.then,Me=function(){var ye=(0,a.A)(function*(Ke,dt,pt){var Yt;const $t=Ke.$hostElement$,ln=$t["s-rc"];pt&&(ye=>{const Ke=ye.$cmpMeta$,dt=ye.$hostElement$,pt=Ke.$flags$,$t=_e(dt.shadowRoot?dt.shadowRoot:dt.getRootNode(),Ke,ye.$modeName$);10&pt&&(dt["s-sc"]=$t,dt.classList.add($t+"-h"),2&pt&&dt.classList.add($t+"-s"))})(Ke);Ze(Ke,dt,$t,pt),ln&&(ln.map(cn=>cn()),$t["s-rc"]=void 0);{const cn=null!==(Yt=$t["s-p"])&&void 0!==Yt?Yt:[],nn=()=>je(Ke);0===cn.length?nn():(Promise.all(cn).then(nn),Ke.$flags$|=4,cn.length=0)}});return function(dt,pt,Yt){return ye.apply(this,arguments)}}(),Ze=(ye,Ke,dt,pt)=>{try{Ke=Ke.render&&Ke.render(),ye.$flags$&=-17,ye.$flags$|=2,((ye,Ke,dt=!1)=>{var pt,Yt,$t,an;const ln=ye.$hostElement$,xn=ye.$cmpMeta$,cn=ye.$vnode$||v(null,null),nn=(ye=>ye&&ye.$tag$===y)(Ke)?Ke:h(null,null,Ke);if(D=ln.tagName,xn.$attrsToReflect$&&(nn.$attrs$=nn.$attrs$||{},xn.$attrsToReflect$.map(([_n,Sn])=>nn.$attrs$[Sn]=ln[_n])),dt&&nn.$attrs$)for(const _n of Object.keys(nn.$attrs$))ln.hasAttribute(_n)&&!["key","ref","style","class"].includes(_n)&&(nn.$attrs$[_n]=ln[_n]);if(nn.$tag$=null,nn.$flags$|=4,ye.$vnode$=nn,nn.$elm$=cn.$elm$=ln.shadowRoot||ln,O=ln["s-sc"],C=!!(1&xn.$flags$),c=ln["s-cr"],_=!1,wt(cn,nn,dt),Qt.$flags$|=1,F){Lt(nn.$elm$);for(const _n of Bt){const Sn=_n.$nodeToRelocate$;if(!Sn["s-ol"]){const Pn=qt.createTextNode("");Pn["s-nr"]=Sn,Sn.parentNode.insertBefore(Sn["s-ol"]=Pn,Sn)}}for(const _n of Bt){const Sn=_n.$nodeToRelocate$,Pn=_n.$slotRefNode$;if(Pn){const hr=Pn.parentNode;let X=Pn.nextSibling;{let Ue=null===(pt=Sn["s-ol"])||void 0===pt?void 0:pt.previousSibling;for(;Ue;){let le=null!==(Yt=Ue["s-nr"])&&void 0!==Yt?Yt:null;if(le&&le["s-sn"]===Sn["s-sn"]&&hr===le.parentNode){for(le=le.nextSibling;le===Sn||null!=le&&le["s-sr"];)le=null==le?void 0:le.nextSibling;if(!le||!le["s-nr"]){X=le;break}}Ue=Ue.previousSibling}}(!X&&hr!==Sn.parentNode||Sn.nextSibling!==X)&&Sn!==X&&(!Sn["s-hn"]&&Sn["s-ol"]&&(Sn["s-hn"]=Sn["s-ol"].parentNode.nodeName),hr.insertBefore(Sn,X),1===Sn.nodeType&&(Sn.hidden=null!==($t=Sn["s-ih"])&&void 0!==$t&&$t)),Sn&&"function"==typeof Pn["s-rf"]&&Pn["s-rf"](Sn)}else 1===Sn.nodeType&&(dt&&(Sn["s-ih"]=null!==(an=Sn.hidden)&&void 0!==an&&an),Sn.hidden=!0)}}_&&Dn(nn.$elm$),Qt.$flags$&=-2,Bt.length=0,c=void 0})(ye,Ke,pt)}catch(Yt){$e(Yt,ye.$hostElement$)}return null},je=ye=>{const dt=ye.$hostElement$,Yt=ye.$lazyInstance$,$t=ye.$ancestorComponent$;Se(Yt,"componentDidRender"),64&ye.$flags$?Se(Yt,"componentDidUpdate"):(ye.$flags$|=64,ze(dt),Se(Yt,"componentDidLoad"),ye.$onReadyResolve$(dt),$t||Pe()),ye.$onInstanceResolve$(dt),ye.$onRenderResolve$&&(ye.$onRenderResolve$(),ye.$onRenderResolve$=void 0),512&ye.$flags$&&vn(()=>Ut(ye,!1)),ye.$flags$&=-517},it=ye=>{{const Ke=kn(ye),dt=Ke.$hostElement$.isConnected;return dt&&2==(18&Ke.$flags$)&&Ut(Ke,!1),dt}},Pe=ye=>{ze(qt.documentElement),vn(()=>ke(Zt,"appload",{detail:{namespace:"ionic"}}))},Se=(ye,Ke,dt)=>{if(ye&&ye[Ke])try{return ye[Ke](dt)}catch(pt){$e(pt)}},ze=ye=>ye.classList.add("hydrated"),st=(ye,Ke,dt)=>{var pt;const Yt=ye.prototype;if(Ke.$members$){ye.watchers&&(Ke.$watchers$=ye.watchers);const $t=Object.entries(Ke.$members$);if($t.map(([an,[ln]])=>{31&ln||2&dt&&32&ln?Object.defineProperty(Yt,an,{get(){return((ye,Ke)=>kn(this).$instanceValues$.get(Ke))(0,an)},set(xn){((ye,Ke,dt,pt)=>{const Yt=kn(ye),$t=Yt.$hostElement$,an=Yt.$instanceValues$.get(Ke),ln=Yt.$flags$,xn=Yt.$lazyInstance$;dt=((ye,Ke)=>null==ye||l(ye)?ye:4&Ke?"false"!==ye&&(""===ye||!!ye):2&Ke?parseFloat(ye):1&Ke?String(ye):ye)(dt,pt.$members$[Ke][0]);const cn=Number.isNaN(an)&&Number.isNaN(dt);if((!(8&ln)||void 0===an)&&dt!==an&&!cn&&(Yt.$instanceValues$.set(Ke,dt),xn)){if(pt.$watchers$&&128&ln){const _n=pt.$watchers$[Ke];_n&&_n.map(Sn=>{try{xn[Sn](dt,an,Ke)}catch(Pn){$e(Pn,$t)}})}2==(18&ln)&&Ut(Yt,!1)}})(this,an,xn,Ke)},configurable:!0,enumerable:!0}):1&dt&&64&ln&&Object.defineProperty(Yt,an,{value(...xn){var cn;const nn=kn(this);return null===(cn=null==nn?void 0:nn.$onInstancePromise$)||void 0===cn?void 0:cn.then(()=>{var _n;return null===(_n=nn.$lazyInstance$)||void 0===_n?void 0:_n[an](...xn)})}})}),1&dt){const an=new Map;Yt.attributeChangedCallback=function(ln,xn,cn){Qt.jmp(()=>{var nn;const _n=an.get(ln);if(this.hasOwnProperty(_n))cn=this[_n],delete this[_n];else{if(Yt.hasOwnProperty(_n)&&"number"==typeof this[_n]&&this[_n]==cn)return;if(null==_n){const Sn=kn(this),Pn=null==Sn?void 0:Sn.$flags$;if(Pn&&!(8&Pn)&&128&Pn&&cn!==xn){const hr=Sn.$lazyInstance$,X=null===(nn=Ke.$watchers$)||void 0===nn?void 0:nn[ln];null==X||X.forEach(Ue=>{null!=hr[Ue]&&hr[Ue].call(hr,cn,xn,ln)})}return}}this[_n]=(null!==cn||"boolean"!=typeof this[_n])&&cn})},ye.observedAttributes=Array.from(new Set([...Object.keys(null!==(pt=Ke.$watchers$)&&void 0!==pt?pt:{}),...$t.filter(([ln,xn])=>15&xn[0]).map(([ln,xn])=>{var cn;const nn=xn[1]||ln;return an.set(nn,ln),512&xn[0]&&(null===(cn=Ke.$attrsToReflect$)||void 0===cn||cn.push([ln,nn])),nn})]))}}return ye},en=function(){var ye=(0,a.A)(function*(Ke,dt,pt,Yt){let $t;if(!(32&dt.$flags$)){if(dt.$flags$|=32,pt.$lazyBundleId$){if($t=Tt(pt),$t.then){const nn=()=>{};$t=yield $t,nn()}$t.isProxied||(pt.$watchers$=$t.watchers,st($t,pt,2),$t.isProxied=!0);const cn=()=>{};dt.$flags$|=8;try{new $t(dt)}catch(nn){$e(nn)}dt.$flags$&=-9,dt.$flags$|=128,cn(),yt(dt.$lazyInstance$)}else $t=Ke.constructor,customElements.whenDefined(pt.$tagName$).then(()=>dt.$flags$|=128);if($t.style){let cn=$t.style;"string"!=typeof cn&&(cn=cn[dt.$modeName$=(ye=>kt.map(Ke=>Ke(ye)).find(Ke=>!!Ke))(Ke)]);const nn=ne(pt,dt.$modeName$);if(!Mt.has(nn)){const _n=()=>{};Ie(nn,cn,!!(1&pt.$flags$)),_n()}}}const an=dt.$ancestorComponent$,ln=()=>Ut(dt,!0);an&&an["s-rc"]?an["s-rc"].push(ln):ln()});return function(dt,pt,Yt,$t){return ye.apply(this,arguments)}}(),yt=ye=>{Se(ye,"connectedCallback")},Kt=ye=>{const Ke=ye["s-cr"]=qt.createComment("");Ke["s-cn"]=!0,ye.insertBefore(Ke,ye.firstChild)},Pt=ye=>{Se(ye,"disconnectedCallback")},Rt=function(){var ye=(0,a.A)(function*(Ke){if(!(1&Qt.$flags$)){const dt=kn(Ke);dt.$rmListeners$&&(dt.$rmListeners$.map(pt=>pt()),dt.$rmListeners$=void 0),null!=dt&&dt.$lazyInstance$?Pt(dt.$lazyInstance$):null!=dt&&dt.$onReadyPromise$&&dt.$onReadyPromise$.then(()=>Pt(dt.$lazyInstance$))}});return function(dt){return ye.apply(this,arguments)}}(),On=(ye,Ke={})=>{var dt;const Yt=[],$t=Ke.exclude||[],an=Zt.customElements,ln=qt.head,xn=ln.querySelector("meta[charset]"),cn=qt.createElement("style"),nn=[],_n=qt.querySelectorAll(`[${j}]`);let Sn,Pn=!0,hr=0;for(Object.assign(Qt,Ke),Qt.$resourcesUrl$=new URL(Ke.resourcesUrl||"./",qt.baseURI).href,Qt.$flags$|=2;hr<_n.length;hr++)Ie(_n[hr].getAttribute(j),G(_n[hr].innerHTML),!0);let X=!1;if(ye.map(Ue=>{Ue[1].map(le=>{var Ye;const _t={$flags$:le[0],$tagName$:le[1],$members$:le[2],$listeners$:le[3]};4&_t.$flags$&&(X=!0),_t.$members$=le[2],_t.$listeners$=le[3],_t.$attrsToReflect$=[],_t.$watchers$=null!==(Ye=le[4])&&void 0!==Ye?Ye:{};const Nn=_t.$tagName$,pr=class extends HTMLElement{constructor(wr){super(wr),Xn(wr=this,_t),1&_t.$flags$&&wr.attachShadow({mode:"open",delegatesFocus:!!(16&_t.$flags$)})}connectedCallback(){Sn&&(clearTimeout(Sn),Sn=null),Pn?nn.push(this):Qt.jmp(()=>(ye=>{if(!(1&Qt.$flags$)){const Ke=kn(ye),dt=Ke.$cmpMeta$,pt=()=>{};if(1&Ke.$flags$)An(ye,Ke,dt.$listeners$),null!=Ke&&Ke.$lazyInstance$?yt(Ke.$lazyInstance$):null!=Ke&&Ke.$onReadyPromise$&&Ke.$onReadyPromise$.then(()=>yt(Ke.$lazyInstance$));else{let Yt;if(Ke.$flags$|=1,Yt=ye.getAttribute(U),Yt){if(1&dt.$flags$){const $t=_e(ye.shadowRoot,dt,ye.getAttribute("s-mode"));ye.classList.remove($t+"-h",$t+"-s")}((ye,Ke,dt,pt)=>{const $t=ye.shadowRoot,an=[],xn=$t?[]:null,cn=pt.$vnode$=v(Ke,null);Qt.$orgLocNodes$||J(qt.body,Qt.$orgLocNodes$=new Map),ye[U]=dt,ye.removeAttribute(U),V(cn,an,[],xn,ye,ye,dt),an.map(nn=>{const _n=nn.$hostId$+"."+nn.$nodeId$,Sn=Qt.$orgLocNodes$.get(_n),Pn=nn.$elm$;Sn&&wn&&""===Sn["s-en"]&&Sn.parentNode.insertBefore(Pn,Sn.nextSibling),$t||(Pn["s-hn"]=Ke,Sn&&(Pn["s-ol"]=Sn,Pn["s-ol"]["s-nr"]=Pn)),Qt.$orgLocNodes$.delete(_n)}),$t&&xn.map(nn=>{nn&&$t.appendChild(nn)})})(ye,dt.$tagName$,Yt,Ke)}Yt||12&dt.$flags$&&Kt(ye);{let $t=ye;for(;$t=$t.parentNode||$t.host;)if(1===$t.nodeType&&$t.hasAttribute("s-id")&&$t["s-p"]||$t["s-p"]){zn(Ke,Ke.$ancestorComponent$=$t);break}}dt.$members$&&Object.entries(dt.$members$).map(([$t,[an]])=>{if(31&an&&ye.hasOwnProperty($t)){const ln=ye[$t];delete ye[$t],ye[$t]=ln}}),en(ye,Ke,dt)}pt()}})(this))}disconnectedCallback(){Qt.jmp(()=>Rt(this))}componentOnReady(){return kn(this).$onReadyPromise$}};_t.$lazyBundleId$=Ue[0],!$t.includes(Nn)&&!an.get(Nn)&&(Yt.push(Nn),an.define(Nn,st(pr,_t,1)))})}),Yt.length>0&&(X&&(cn.textContent+=me),cn.textContent+=Yt+"{visibility:hidden}.hydrated{visibility:inherit}",cn.innerHTML.length)){cn.setAttribute("data-styles","");const Ue=null!==(dt=Qt.$nonce$)&&void 0!==dt?dt:s(qt);null!=Ue&&cn.setAttribute("nonce",Ue),ln.insertBefore(cn,xn?xn.nextSibling:ln.firstChild)}Pn=!1,nn.length?nn.map(Ue=>Ue.connectedCallback()):Qt.jmp(()=>Sn=setTimeout(Pe,30))},An=(ye,Ke,dt,pt)=>{dt&&dt.map(([Yt,$t,an])=>{const ln=Mn(ye,Yt),xn=Bn(Ke,an),cn=Wn(Yt);Qt.ael(ln,$t,xn,cn),(Ke.$rmListeners$=Ke.$rmListeners$||[]).push(()=>Qt.rel(ln,$t,xn,cn))})},Bn=(ye,Ke)=>dt=>{try{256&ye.$flags$?ye.$lazyInstance$[Ke](dt):(ye.$queuedListeners$=ye.$queuedListeners$||[]).push([Ke,dt])}catch(pt){$e(pt)}},Mn=(ye,Ke)=>4&Ke?qt:8&Ke?Zt:16&Ke?qt.body:ye,Wn=ye=>Kn?{passive:!!(1&ye),capture:!!(2&ye)}:!!(2&ye),Fn=new WeakMap,kn=ye=>Fn.get(ye),Gn=(ye,Ke)=>Fn.set(Ke.$lazyInstance$=ye,Ke),Xn=(ye,Ke)=>{const dt={$flags$:0,$hostElement$:ye,$cmpMeta$:Ke,$instanceValues$:new Map};return dt.$onInstancePromise$=new Promise(pt=>dt.$onInstanceResolve$=pt),dt.$onReadyPromise$=new Promise(pt=>dt.$onReadyResolve$=pt),ye["s-p"]=[],ye["s-rc"]=[],An(ye,dt,Ke.$listeners$),Fn.set(ye,dt)},jn=(ye,Ke)=>Ke in ye,$e=(ye,Ke)=>(0,console.error)(ye,Ke),lt=new Map,Tt=(ye,Ke,dt)=>{const pt=ye.$tagName$.replace(/-/g,"_"),Yt=ye.$lazyBundleId$,$t=lt.get(Yt);return $t?$t[pt]:E(8996)(`./${Yt}.entry.js`).then(an=>(lt.set(Yt,an),an[pt]),$e)},Mt=new Map,kt=[],Zt=typeof window<"u"?window:{},qt=Zt.document||{head:{}},Qt={$flags$:0,$resourcesUrl$:"",jmp:ye=>ye(),raf:ye=>requestAnimationFrame(ye),ael:(ye,Ke,dt,pt)=>ye.addEventListener(Ke,dt,pt),rel:(ye,Ke,dt,pt)=>ye.removeEventListener(Ke,dt,pt),ce:(ye,Ke)=>new CustomEvent(ye,Ke)},Tn=ye=>{Object.assign(Qt,ye)},wn=!0,Kn=(()=>{let ye=!1;try{qt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ye=!0}}))}catch{}return ye})(),Ge=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),et=[],Fe=[],qe=(ye,Ke)=>dt=>{ye.push(dt),m||(m=!0,Ke&&4&Qt.$flags$?vn(Gt):Qt.raf(Gt))},Ct=ye=>{for(let Ke=0;Ke{Ct(et),Ct(Fe),(m=et.length>0)&&Qt.raf(Gt)},vn=ye=>Promise.resolve(void 0).then(ye),gt=qe(et,!1),zt=qe(Fe,!0)},8476:(Ce,ee,E)=>{"use strict";E.d(ee,{d:()=>S,w:()=>a});const a=typeof window<"u"?window:void 0,S=typeof document<"u"?document:void 0},7555:(Ce,ee,E)=>{"use strict";E.d(ee,{b:()=>D,c:()=>C,d:()=>_,e:()=>te,g:()=>n,l:()=>ie,s:()=>se,t:()=>m,w:()=>me});var a=E(467),S=E(4363),p=E(5638);const D="ionViewWillLeave",C="ionViewDidLeave",_="ionViewWillUnload",m=o=>new Promise((l,s)=>{(0,S.w)(()=>{T(o),A(o).then(h=>{h.animation&&h.animation.destroy(),w(o),l(h)},h=>{w(o),s(h)})})}),T=o=>{const l=o.enteringEl,s=o.leavingEl;g(l,s,o.direction),o.showGoBack?l.classList.add("can-go-back"):l.classList.remove("can-go-back"),se(l,!1),l.style.setProperty("pointer-events","none"),s&&(se(s,!1),s.style.setProperty("pointer-events","none"))},A=function(){var o=(0,a.A)(function*(l){const s=yield R(l);return s&&S.B.isBrowser?$(s,l):L(l)});return function(s){return o.apply(this,arguments)}}(),w=o=>{const l=o.enteringEl,s=o.leavingEl;l.classList.remove("ion-page-invisible"),l.style.removeProperty("pointer-events"),void 0!==s&&(s.classList.remove("ion-page-invisible"),s.style.removeProperty("pointer-events"))},R=function(){var o=(0,a.A)(function*(l){return l.leavingEl&&l.animated&&0!==l.duration?l.animationBuilder?l.animationBuilder:"ios"===l.mode?(yield Promise.resolve().then(E.bind(E,4569))).iosTransitionAnimation:(yield Promise.resolve().then(E.bind(E,2942))).mdTransitionAnimation:void 0});return function(s){return o.apply(this,arguments)}}(),$=function(){var o=(0,a.A)(function*(l,s){yield M(s,!0);const h=l(s.baseEl,s);j(s.enteringEl,s.leavingEl);const v=yield U(h,s);return s.progressCallback&&s.progressCallback(void 0),v&&W(s.enteringEl,s.leavingEl),{hasCompleted:v,animation:h}});return function(s,h){return o.apply(this,arguments)}}(),L=function(){var o=(0,a.A)(function*(l){const s=l.enteringEl,h=l.leavingEl;return yield M(l,!1),j(s,h),W(s,h),{hasCompleted:!0}});return function(s){return o.apply(this,arguments)}}(),M=function(){var o=(0,a.A)(function*(l,s){(void 0!==l.deepWait?l.deepWait:s)&&(yield Promise.all([te(l.enteringEl),te(l.leavingEl)])),yield P(l.viewIsReady,l.enteringEl)});return function(s,h){return o.apply(this,arguments)}}(),P=function(){var o=(0,a.A)(function*(l,s){l&&(yield l(s))});return function(s,h){return o.apply(this,arguments)}}(),U=(o,l)=>{const s=l.progressCallback,h=new Promise(v=>{o.onFinish(y=>v(1===y))});return s?(o.progressStart(!0),s(o)):o.play(),h},j=(o,l)=>{ie(l,D),ie(o,"ionViewWillEnter")},W=(o,l)=>{ie(o,"ionViewDidEnter"),ie(l,C)},ie=(o,l)=>{if(o){const s=new CustomEvent(l,{bubbles:!1,cancelable:!1});o.dispatchEvent(s)}},me=()=>new Promise(o=>(0,p.r)(()=>(0,p.r)(()=>o()))),te=function(){var o=(0,a.A)(function*(l){const s=l;if(s){if(null!=s.componentOnReady){if(null!=(yield s.componentOnReady()))return}else if(null!=s.__registerHost)return void(yield new Promise(v=>(0,p.r)(v)));yield Promise.all(Array.from(s.children).map(te))}});return function(s){return o.apply(this,arguments)}}(),se=(o,l)=>{l?(o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden")):(o.hidden=!1,o.removeAttribute("aria-hidden"),o.classList.remove("ion-page-hidden"))},g=(o,l,s)=>{void 0!==o&&(o.style.zIndex="back"===s?"99":"101"),void 0!==l&&(l.style.zIndex="100")},n=o=>o.classList.contains("ion-page")?o:o.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||o},611:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>m,b:()=>v,c:()=>p,i:()=>y});var a=E(4363);class S{constructor(){this.m=new Map}reset(r){this.m=new Map(Object.entries(r))}get(r,f){const k=this.m.get(r);return void 0!==k?k:f}getBoolean(r,f=!1){const k=this.m.get(r);return void 0===k?f:"string"==typeof k?"true"===k:!!k}getNumber(r,f){const k=parseFloat(this.m.get(r));return isNaN(k)?void 0!==f?f:NaN:k}set(r,f){this.m.set(r,f)}}const p=new S,_="ionic:",F="ionic-persist-config",m=(d,r)=>("string"==typeof d&&(r=d,d=void 0),(d=>T(d))(d).includes(r)),T=(d=window)=>{if(typeof d>"u")return[];d.Ionic=d.Ionic||{};let r=d.Ionic.platforms;return null==r&&(r=d.Ionic.platforms=A(d),r.forEach(f=>d.document.documentElement.classList.add(`plt-${f}`))),r},A=d=>{const r=p.get("platform");return Object.keys(s).filter(f=>{const k=null==r?void 0:r[f];return"function"==typeof k?k(d):s[f](d)})},R=d=>!!(o(d,/iPad/i)||o(d,/Macintosh/i)&&W(d)),M=d=>o(d,/android|sink/i),W=d=>l(d,"(any-pointer:coarse)"),me=d=>te(d)||se(d),te=d=>!!(d.cordova||d.phonegap||d.PhoneGap),se=d=>{const r=d.Capacitor;return!(null==r||!r.isNative)},o=(d,r)=>r.test(d.navigator.userAgent),l=(d,r)=>{var f;return null===(f=d.matchMedia)||void 0===f?void 0:f.call(d,r).matches},s={ipad:R,iphone:d=>o(d,/iPhone/i),ios:d=>o(d,/iPhone|iPod/i)||R(d),android:M,phablet:d=>{const r=d.innerWidth,f=d.innerHeight,k=Math.min(r,f),I=Math.max(r,f);return k>390&&k<520&&I>620&&I<800},tablet:d=>{const r=d.innerWidth,f=d.innerHeight,k=Math.min(r,f),I=Math.max(r,f);return R(d)||(d=>M(d)&&!o(d,/mobile/i))(d)||k>460&&k<820&&I>780&&I<1400},cordova:te,capacitor:se,electron:d=>o(d,/electron/i),pwa:d=>{var r;return!!(null!==(r=d.matchMedia)&&void 0!==r&&r.call(d,"(display-mode: standalone)").matches||d.navigator.standalone)},mobile:W,mobileweb:d=>W(d)&&!me(d),desktop:d=>!W(d),hybrid:me};let h;const v=d=>d&&(0,a.g)(d)||h,y=(d={})=>{if(typeof window>"u")return;const r=window.document,f=window,k=f.Ionic=f.Ionic||{},I={};d._ael&&(I.ael=d._ael),d._rel&&(I.rel=d._rel),d._ce&&(I.ce=d._ce),(0,a.a)(I);const V=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(d=>{try{const r=d.sessionStorage.getItem(F);return null!==r?JSON.parse(r):{}}catch{return{}}})(f)),{persistConfig:!1}),k.config),(d=>{const r={};return d.location.search.slice(1).split("&").map(f=>f.split("=")).map(([f,k])=>[decodeURIComponent(f),decodeURIComponent(k)]).filter(([f])=>((d,r)=>d.substr(0,r.length)===r)(f,_)).map(([f,k])=>[f.slice(6),k]).forEach(([f,k])=>{r[f]=k}),r})(f)),d);p.reset(V),p.getBoolean("persistConfig")&&((d,r)=>{try{d.sessionStorage.setItem(F,JSON.stringify(r))}catch{return}})(f,V),T(f),k.config=p,k.mode=h=p.get("mode",r.documentElement.getAttribute("mode")||(m(f,"ios")?"ios":"md")),p.set("mode",h),r.documentElement.setAttribute("mode",h),r.documentElement.classList.add(h),p.getBoolean("_testing")&&p.set("animated",!1);const J=ve=>{var De;return null===(De=ve.tagName)||void 0===De?void 0:De.startsWith("ION-")},oe=ve=>["ios","md"].includes(ve);(0,a.c)(ve=>{for(;ve;){const De=ve.mode||ve.getAttribute("mode");if(De){if(oe(De))return De;J(ve)&&console.warn('Invalid ionic mode: "'+De+'", expected: "ios" or "md"')}ve=ve.parentElement}return h})}},4569:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{iosTransitionAnimation:()=>A,shadow:()=>C});var a=E(3503),S=E(7555);E(8476),E(4363);const D=R=>document.querySelector(`${R}.ion-cloned-element`),C=R=>R.shadowRoot||R,_=R=>{const $="ION-TABS"===R.tagName?R:R.querySelector("ion-tabs"),L="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=$){const M=$.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=M?M.querySelector(L):null}return R.querySelector(L)},F=(R,$)=>{const L="ION-TABS"===R.tagName?R:R.querySelector("ion-tabs");let M=[];if(null!=L){const P=L.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=P&&(M=P.querySelectorAll("ion-buttons"))}else M=R.querySelectorAll("ion-buttons");for(const P of M){const U=P.closest("ion-header"),j=U&&!U.classList.contains("header-collapse-condense-inactive"),W=P.querySelector("ion-back-button"),ie=P.classList.contains("buttons-collapse");if(null!==W&&("start"===P.slot||""===P.slot)&&(ie&&j&&$||!ie))return W}return null},m=(R,$,L,M,P,U,j,W,ie)=>{var me,te;const se=$?`calc(100% - ${P.right+4}px)`:P.left-4+"px",g=$?"right":"left",n=$?"left":"right",o=$?"right":"left",l=(null===(me=U.textContent)||void 0===me?void 0:me.trim())===(null===(te=W.textContent)||void 0===te?void 0:te.trim()),h=(ie.height-w)/j.height,v=l?`scale(${ie.width/j.width}, ${h})`:`scale(${h})`,y="scale(1)",r=C(M).querySelector("ion-icon").getBoundingClientRect(),f=$?r.width/2-(r.right-P.right)+"px":P.left-r.width/2+"px",k=$?`-${window.innerWidth-P.right}px`:`${P.left}px`,I=`${ie.top}px`,V=`${P.top}px`,ve=L?[{offset:0,transform:`translate3d(${k}, ${V}, 0)`},{offset:1,transform:`translate3d(${f}, ${I}, 0)`}]:[{offset:0,transform:`translate3d(${f}, ${I}, 0)`},{offset:1,transform:`translate3d(${k}, ${V}, 0)`}],ae=L?[{offset:0,opacity:1,transform:y},{offset:1,opacity:0,transform:v}]:[{offset:0,opacity:0,transform:v},{offset:1,opacity:1,transform:y}],pe=L?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],Ie=(0,a.c)(),_e=(0,a.c)(),re=(0,a.c)(),ne=D("ion-back-button"),G=C(ne).querySelector(".button-text"),ge=C(ne).querySelector("ion-icon");ne.text=M.text,ne.mode=M.mode,ne.icon=M.icon,ne.color=M.color,ne.disabled=M.disabled,ne.style.setProperty("display","block"),ne.style.setProperty("position","fixed"),_e.addElement(ge),Ie.addElement(G),re.addElement(ne),re.beforeStyles({position:"absolute",top:"0px",[o]:"0px"}).keyframes(ve),Ie.beforeStyles({"transform-origin":`${g} top`}).beforeAddWrite(()=>{M.style.setProperty("display","none"),ne.style.setProperty(g,se)}).afterAddWrite(()=>{M.style.setProperty("display",""),ne.style.setProperty("display","none"),ne.style.removeProperty(g)}).keyframes(ae),_e.beforeStyles({"transform-origin":`${n} center`}).keyframes(pe),R.addAnimation([Ie,_e,re])},T=(R,$,L,M,P,U,j,W)=>{var ie,me;const te=$?"right":"left",se=$?`calc(100% - ${P.right}px)`:`${P.left}px`,n=`${P.top}px`,l=$?`-${window.innerWidth-W.right-8}px`:W.x-8+"px",h=W.y-2+"px",v=(null===(ie=j.textContent)||void 0===ie?void 0:ie.trim())===(null===(me=M.textContent)||void 0===me?void 0:me.trim()),d=W.height/(U.height-w),r="scale(1)",f=v?`scale(${W.width/U.width}, ${d})`:`scale(${d})`,V=L?[{offset:0,opacity:0,transform:`translate3d(${l}, ${h}, 0) ${f}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${n}, 0) ${r}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${n}, 0) ${r}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${l}, ${h}, 0) ${f}`}],J=D("ion-title"),oe=(0,a.c)();J.innerText=M.innerText,J.size=M.size,J.color=M.color,oe.addElement(J),oe.beforeStyles({"transform-origin":`${te} top`,height:`${P.height}px`,display:"",position:"relative",[te]:se}).beforeAddWrite(()=>{M.style.setProperty("opacity","0")}).afterAddWrite(()=>{M.style.setProperty("opacity",""),J.style.setProperty("display","none")}).keyframes(V),R.addAnimation(oe)},A=(R,$)=>{var L;try{const M="cubic-bezier(0.32,0.72,0,1)",P="opacity",U="transform",j="0%",ie="rtl"===R.ownerDocument.dir,me=ie?"-99.5%":"99.5%",te=ie?"33%":"-33%",se=$.enteringEl,g=$.leavingEl,n="back"===$.direction,o=se.querySelector(":scope > ion-content"),l=se.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),s=se.querySelectorAll(":scope > ion-header > ion-toolbar"),h=(0,a.c)(),v=(0,a.c)();if(h.addElement(se).duration((null!==(L=$.duration)&&void 0!==L?L:0)||540).easing($.easing||M).fill("both").beforeRemoveClass("ion-page-invisible"),g&&null!=R){const f=(0,a.c)();f.addElement(R),h.addAnimation(f)}if(o||0!==s.length||0!==l.length?(v.addElement(o),v.addElement(l)):v.addElement(se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),h.addAnimation(v),n?v.beforeClearStyles([P]).fromTo("transform",`translateX(${te})`,`translateX(${j})`).fromTo(P,.8,1):v.beforeClearStyles([P]).fromTo("transform",`translateX(${me})`,`translateX(${j})`),o){const f=C(o).querySelector(".transition-effect");if(f){const k=f.querySelector(".transition-cover"),I=f.querySelector(".transition-shadow"),V=(0,a.c)(),J=(0,a.c)(),oe=(0,a.c)();V.addElement(f).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),J.addElement(k).beforeClearStyles([P]).fromTo(P,0,.1),oe.addElement(I).beforeClearStyles([P]).fromTo(P,.03,.7),V.addAnimation([J,oe]),v.addAnimation([V])}}const y=se.querySelector("ion-header.header-collapse-condense"),{forward:d,backward:r}=((R,$,L,M,P)=>{const U=F(M,L),j=_(P),W=_(M),ie=F(P,L),me=null!==U&&null!==j&&!L,te=null!==W&&null!==ie&&L;if(me){const se=j.getBoundingClientRect(),g=U.getBoundingClientRect(),n=C(U).querySelector(".button-text"),o=n.getBoundingClientRect(),s=C(j).querySelector(".toolbar-title").getBoundingClientRect();T(R,$,L,j,se,s,n,o),m(R,$,L,U,g,n,o,j,s)}else if(te){const se=W.getBoundingClientRect(),g=ie.getBoundingClientRect(),n=C(ie).querySelector(".button-text"),o=n.getBoundingClientRect(),s=C(W).querySelector(".toolbar-title").getBoundingClientRect();T(R,$,L,W,se,s,n,o),m(R,$,L,ie,g,n,o,W,s)}return{forward:me,backward:te}})(h,ie,n,se,g);if(s.forEach(f=>{const k=(0,a.c)();k.addElement(f),h.addAnimation(k);const I=(0,a.c)();I.addElement(f.querySelector("ion-title"));const V=(0,a.c)(),J=Array.from(f.querySelectorAll("ion-buttons,[menuToggle]")),oe=f.closest("ion-header"),ve=null==oe?void 0:oe.classList.contains("header-collapse-condense-inactive");let De;De=J.filter(n?pe=>{const Ie=pe.classList.contains("buttons-collapse");return Ie&&!ve||!Ie}:pe=>!pe.classList.contains("buttons-collapse")),V.addElement(De);const Q=(0,a.c)();Q.addElement(f.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const ae=(0,a.c)();ae.addElement(C(f).querySelector(".toolbar-background"));const tt=(0,a.c)(),ke=f.querySelector("ion-back-button");if(ke&&tt.addElement(ke),k.addAnimation([I,V,Q,ae,tt]),V.fromTo(P,.01,1),Q.fromTo(P,.01,1),n)ve||I.fromTo("transform",`translateX(${te})`,`translateX(${j})`).fromTo(P,.01,1),Q.fromTo("transform",`translateX(${te})`,`translateX(${j})`),tt.fromTo(P,.01,1);else if(y||I.fromTo("transform",`translateX(${me})`,`translateX(${j})`).fromTo(P,.01,1),Q.fromTo("transform",`translateX(${me})`,`translateX(${j})`),ae.beforeClearStyles([P,"transform"]),(null==oe?void 0:oe.translucent)?ae.fromTo("transform",ie?"translateX(-100%)":"translateX(100%)","translateX(0px)"):ae.fromTo(P,.01,"var(--opacity)"),d||tt.fromTo(P,.01,1),ke&&!d){const Ie=(0,a.c)();Ie.addElement(C(ke).querySelector(".button-text")).fromTo("transform",ie?"translateX(-100px)":"translateX(100px)","translateX(0px)"),k.addAnimation(Ie)}}),g){const f=(0,a.c)(),k=g.querySelector(":scope > ion-content"),I=g.querySelectorAll(":scope > ion-header > ion-toolbar"),V=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(k||0!==I.length||0!==V.length?(f.addElement(k),f.addElement(V)):f.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),h.addAnimation(f),n){f.beforeClearStyles([P]).fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)");const J=(0,S.g)(g);h.afterAddWrite(()=>{"normal"===h.getDirection()&&J.style.setProperty("display","none")})}else f.fromTo("transform",`translateX(${j})`,`translateX(${te})`).fromTo(P,1,.8);if(k){const J=C(k).querySelector(".transition-effect");if(J){const oe=J.querySelector(".transition-cover"),ve=J.querySelector(".transition-shadow"),De=(0,a.c)(),Q=(0,a.c)(),ae=(0,a.c)();De.addElement(J).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Q.addElement(oe).beforeClearStyles([P]).fromTo(P,.1,0),ae.addElement(ve).beforeClearStyles([P]).fromTo(P,.7,.03),De.addAnimation([Q,ae]),f.addAnimation([De])}}I.forEach(J=>{const oe=(0,a.c)();oe.addElement(J);const ve=(0,a.c)();ve.addElement(J.querySelector("ion-title"));const De=(0,a.c)(),Q=J.querySelectorAll("ion-buttons,[menuToggle]"),ae=J.closest("ion-header"),tt=null==ae?void 0:ae.classList.contains("header-collapse-condense-inactive"),ke=Array.from(Q).filter(G=>{const ge=G.classList.contains("buttons-collapse");return ge&&!tt||!ge});De.addElement(ke);const pe=(0,a.c)(),Ie=J.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Ie.length>0&&pe.addElement(Ie);const _e=(0,a.c)();_e.addElement(C(J).querySelector(".toolbar-background"));const re=(0,a.c)(),ne=J.querySelector("ion-back-button");if(ne&&re.addElement(ne),oe.addAnimation([ve,De,pe,re,_e]),h.addAnimation(oe),re.fromTo(P,.99,0),De.fromTo(P,.99,0),pe.fromTo(P,.99,0),n){if(tt||ve.fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)").fromTo(P,.99,0),pe.fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)"),_e.beforeClearStyles([P,"transform"]),(null==ae?void 0:ae.translucent)?_e.fromTo("transform","translateX(0px)",ie?"translateX(-100%)":"translateX(100%)"):_e.fromTo(P,"var(--opacity)",0),ne&&!r){const ge=(0,a.c)();ge.addElement(C(ne).querySelector(".button-text")).fromTo("transform",`translateX(${j})`,`translateX(${(ie?-124:124)+"px"})`),oe.addAnimation(ge)}}else tt||ve.fromTo("transform",`translateX(${j})`,`translateX(${te})`).fromTo(P,.99,0).afterClearStyles([U,P]),pe.fromTo("transform",`translateX(${j})`,`translateX(${te})`).afterClearStyles([U,P]),re.afterClearStyles([P]),ve.afterClearStyles([P]),De.afterClearStyles([P])})}return h}catch(M){throw M}},w=10},2942:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{mdTransitionAnimation:()=>c});var a=E(3503),S=E(7555);E(8476),E(4363);const c=(D,C)=>{var _,F,B;const m="40px",A="back"===C.direction,R=C.leavingEl,$=(0,S.g)(C.enteringEl),L=$.querySelector("ion-toolbar"),M=(0,a.c)();if(M.addElement($).fill("both").beforeRemoveClass("ion-page-invisible"),A?M.duration((null!==(_=C.duration)&&void 0!==_?_:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):M.duration((null!==(F=C.duration)&&void 0!==F?F:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${m})`,"translateY(0px)").fromTo("opacity",.01,1),L){const P=(0,a.c)();P.addElement(L),M.addAnimation(P)}if(R&&A){M.duration((null!==(B=C.duration)&&void 0!==B?B:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const P=(0,a.c)();P.addElement((0,S.g)(R)).onFinish(U=>{1===U&&P.elements.length>0&&P.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)",`translateY(${m})`).fromTo("opacity",1,0),M.addAnimation(P)}return M}},5516:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>De,G:()=>Q,O:()=>ae,a:()=>T,b:()=>A,c:()=>L,d:()=>tt,e:()=>ke,f:()=>y,g:()=>r,h:()=>I,i:()=>J,j:()=>P,k:()=>U,l:()=>w,m:()=>R,n:()=>me,o:()=>h,s:()=>ve,t:()=>M});var a=E(467),S=E(8476),p=E(3113),O=E(611),c=E(5938),D=E(5638),C=E(4929);let _=0,F=0;const B=new WeakMap,m=_e=>({create:re=>j(_e,re),dismiss:(re,ne,G)=>o(document,re,ne,_e,G),getTop:()=>(0,a.A)(function*(){return h(document,_e)})()}),T=m("ion-alert"),A=m("ion-action-sheet"),w=m("ion-loading"),R=m("ion-modal"),L=m("ion-popover"),M=m("ion-toast"),P=_e=>{typeof document<"u"&&n(document);const re=_++;_e.overlayIndex=re},U=_e=>(_e.hasAttribute("id")||(_e.id="ion-overlay-"+ ++F),_e.id),j=(_e,re)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(_e).then(()=>{const ne=document.createElement(_e);return ne.classList.add("overlay-hidden"),Object.assign(ne,Object.assign(Object.assign({},re),{hasController:!0})),f(document).appendChild(ne),new Promise(G=>(0,D.c)(ne,G))}):Promise.resolve(),W='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',me=(_e,re)=>{const ne=_e.querySelector(W);se(ne,re)},te=(_e,re)=>{const ne=Array.from(_e.querySelectorAll(W));se(ne.length>0?ne[ne.length-1]:null,re)},se=(_e,re)=>{let ne=_e;const G=null==_e?void 0:_e.shadowRoot;G&&(ne=G.querySelector(W)||_e),ne?(0,D.f)(ne):re.focus()},n=_e=>{0===_&&(_=1,_e.addEventListener("focus",re=>{((_e,re)=>{const ne=h(re,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),G=_e.target;ne&&G&&!ne.classList.contains("ion-disable-focus-trap")&&(ne.shadowRoot?(()=>{if(ne.contains(G))ne.lastFocus=G;else if("ION-TOAST"===G.tagName)se(ne.lastFocus,ne);else{const Qe=ne.lastFocus;me(ne,ne),Qe===re.activeElement&&te(ne,ne),ne.lastFocus=re.activeElement}})():(()=>{if(ne===G)ne.lastFocus=void 0;else if("ION-TOAST"===G.tagName)se(ne.lastFocus,ne);else{const Qe=(0,D.g)(ne);if(!Qe.contains(G))return;const rt=Qe.querySelector(".ion-overlay-wrapper");if(!rt)return;if(rt.contains(G)||G===Qe.querySelector("ion-backdrop"))ne.lastFocus=G;else{const rn=ne.lastFocus;me(rt,ne),rn===re.activeElement&&te(rt,ne),ne.lastFocus=re.activeElement}}})())})(re,_e)},!0),_e.addEventListener("ionBackButton",re=>{const ne=h(_e);null!=ne&&ne.backdropDismiss&&re.detail.register(p.OVERLAY_BACK_BUTTON_PRIORITY,()=>{ne.dismiss(void 0,De)})}),(0,p.shouldUseCloseWatcher)()||_e.addEventListener("keydown",re=>{if("Escape"===re.key){const ne=h(_e);null!=ne&&ne.backdropDismiss&&ne.dismiss(void 0,De)}}))},o=(_e,re,ne,G,ge)=>{const xt=h(_e,G,ge);return xt?xt.dismiss(re,ne):Promise.reject("overlay does not exist")},s=(_e,re)=>((_e,re)=>(void 0===re&&(re="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(_e.querySelectorAll(re)).filter(ne=>ne.overlayIndex>0)))(_e,re).filter(ne=>!(_e=>_e.classList.contains("overlay-hidden"))(ne)),h=(_e,re,ne)=>{const G=s(_e,re);return void 0===ne?G[G.length-1]:G.find(ge=>ge.id===ne)},v=(_e=!1)=>{const ne=f(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");ne&&(_e?ne.setAttribute("aria-hidden","true"):ne.removeAttribute("aria-hidden"))},y=function(){var _e=(0,a.A)(function*(re,ne,G,ge,xt){var Qe,rt;if(re.presented)return;v(!0),pe(re.el),re.presented=!0,re.willPresent.emit(),null===(Qe=re.willPresentShorthand)||void 0===Qe||Qe.emit();const rn=(0,O.b)(re),mt=re.enterAnimation?re.enterAnimation:O.c.get(ne,"ios"===rn?G:ge);(yield k(re,mt,re.el,xt))&&(re.didPresent.emit(),null===(rt=re.didPresentShorthand)||void 0===rt||rt.emit()),"ION-TOAST"!==re.el.tagName&&d(re.el),re.keyboardClose&&(null===document.activeElement||!re.el.contains(document.activeElement))&&re.el.focus(),re.el.removeAttribute("aria-hidden")});return function(ne,G,ge,xt,Qe){return _e.apply(this,arguments)}}(),d=function(){var _e=(0,a.A)(function*(re){let ne=document.activeElement;if(!ne)return;const G=null==ne?void 0:ne.shadowRoot;G&&(ne=G.querySelector(W)||ne),yield re.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&ne.focus()});return function(ne){return _e.apply(this,arguments)}}(),r=function(){var _e=(0,a.A)(function*(re,ne,G,ge,xt,Qe,rt){var rn,mt;if(!re.presented)return!1;void 0!==S.d&&1===s(S.d).length&&v(!1),re.presented=!1;try{re.el.style.setProperty("pointer-events","none"),re.willDismiss.emit({data:ne,role:G}),null===(rn=re.willDismissShorthand)||void 0===rn||rn.emit({data:ne,role:G});const ft=(0,O.b)(re),un=re.leaveAnimation?re.leaveAnimation:O.c.get(ge,"ios"===ft?xt:Qe);G!==Q&&(yield k(re,un,re.el,rt)),re.didDismiss.emit({data:ne,role:G}),null===(mt=re.didDismissShorthand)||void 0===mt||mt.emit({data:ne,role:G}),(B.get(re)||[]).forEach(It=>It.destroy()),B.delete(re),re.el.classList.add("overlay-hidden"),re.el.style.removeProperty("pointer-events"),void 0!==re.el.lastFocus&&(re.el.lastFocus=void 0)}catch(ft){console.error(ft)}return re.el.remove(),Ie(),!0});return function(ne,G,ge,xt,Qe,rt,rn){return _e.apply(this,arguments)}}(),f=_e=>_e.querySelector("ion-app")||_e.body,k=function(){var _e=(0,a.A)(function*(re,ne,G,ge){G.classList.remove("overlay-hidden");const Qe=ne(re.el,ge);(!re.animated||!O.c.getBoolean("animated",!0))&&Qe.duration(0),re.keyboardClose&&Qe.beforeAddWrite(()=>{const rn=G.ownerDocument.activeElement;null!=rn&&rn.matches("input,ion-input, ion-textarea")&&rn.blur()});const rt=B.get(re)||[];return B.set(re,[...rt,Qe]),yield Qe.play(),!0});return function(ne,G,ge,xt){return _e.apply(this,arguments)}}(),I=(_e,re)=>{let ne;const G=new Promise(ge=>ne=ge);return V(_e,re,ge=>{ne(ge.detail)}),G},V=(_e,re,ne)=>{const G=ge=>{(0,D.b)(_e,re,G),ne(ge)};(0,D.a)(_e,re,G)},J=_e=>"cancel"===_e||_e===De,oe=_e=>_e(),ve=(_e,re)=>{if("function"==typeof _e)return O.c.get("_zoneGate",oe)(()=>{try{return _e(re)}catch(G){throw G}})},De="backdrop",Q="gesture",ae=39,tt=_e=>{let ne,re=!1;const G=(0,c.C)(),ge=(rt=!1)=>{if(ne&&!rt)return{delegate:ne,inline:re};const{el:rn,hasController:mt,delegate:ft}=_e;return re=null!==rn.parentNode&&!mt,ne=re?ft||G:ft,{inline:re,delegate:ne}};return{attachViewToDom:function(){var rt=(0,a.A)(function*(rn){const{delegate:mt}=ge(!0);if(mt)return yield mt.attachViewToDom(_e.el,rn);const{hasController:ft}=_e;if(ft&&void 0!==rn)throw new Error("framework delegate is missing");return null});return function(mt){return rt.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:rt}=ge();rt&&void 0!==_e.el&&rt.removeViewFromDom(_e.el.parentElement,_e.el)}}},ke=()=>{let _e;const re=()=>{_e&&(_e(),_e=void 0)};return{addClickListener:(G,ge)=>{re();const xt=void 0!==ge?document.getElementById(ge):null;xt?_e=((rt,rn)=>{const mt=()=>{rn.present()};return rt.addEventListener("click",mt),()=>{rt.removeEventListener("click",mt)}})(xt,G):(0,C.p)(`A trigger element with the ID "${ge}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,G)},removeClickListener:re}},pe=_e=>{var re;if(void 0===S.d)return;const ne=s(S.d);for(let G=ne.length-1;G>=0;G--){const ge=ne[G],xt=null!==(re=ne[G+1])&&void 0!==re?re:_e;(xt.hasAttribute("aria-hidden")||"ION-TOAST"!==xt.tagName)&&ge.setAttribute("aria-hidden","true")}},Ie=()=>{if(void 0===S.d)return;const _e=s(S.d);for(let re=_e.length-1;re>=0;re--){const ne=_e[re];if(ne.removeAttribute("aria-hidden"),"ION-TOAST"!==ne.tagName)break}}},1288:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>M,b:()=>rn,c:()=>W,f:()=>pe,g:()=>j,h:()=>$,p:()=>zn,r:()=>Ft});var a=E(467);let p,O,c=!1,D=!1;const B={},w=Pe=>"object"==(Pe=typeof Pe)||"function"===Pe;function R(Pe){var Se,ze,Et;return null!==(Et=null===(ze=null===(Se=Pe.head)||void 0===Se?void 0:Se.querySelector('meta[name="csp-nonce"]'))||void 0===ze?void 0:ze.getAttribute("content"))&&void 0!==Et?Et:void 0}const $=(Pe,Se,...ze)=>{let Et=null,Je=!1,st=!1;const en=[],yt=Kt=>{for(let Pt=0;PtKt[Pt]).join(" "))}const vt=L(Pe,null);return vt.$attrs$=Se,en.length>0&&(vt.$children$=en),vt},L=(Pe,Se)=>({$flags$:0,$tag$:Pe,$text$:Se,$elm$:null,$children$:null,$attrs$:null}),M={},j=Pe=>St(Pe).$hostElement$,W=(Pe,Se,ze)=>{const Et=j(Pe);return{emit:Je=>ie(Et,Se,{bubbles:!!(4&ze),composed:!!(2&ze),cancelable:!!(1&ze),detail:Je})}},ie=(Pe,Se,ze)=>{const Et=Ot.ce(Se,ze);return Pe.dispatchEvent(Et),Et},me=new WeakMap,n=(Pe,Se)=>"sc-"+Pe.$tagName$,o=(Pe,Se,ze,Et,Je,st)=>{if(ze!==Et){let en=bt(Pe,Se),yt=Se.toLowerCase();if("class"===Se){const vt=Pe.classList,Kt=s(ze),Pt=s(Et);vt.remove(...Kt.filter(Rt=>Rt&&!Pt.includes(Rt))),vt.add(...Pt.filter(Rt=>Rt&&!Kt.includes(Rt)))}else if("style"===Se){for(const vt in ze)(!Et||null==Et[vt])&&(vt.includes("-")?Pe.style.removeProperty(vt):Pe.style[vt]="");for(const vt in Et)(!ze||Et[vt]!==ze[vt])&&(vt.includes("-")?Pe.style.setProperty(vt,Et[vt]):Pe.style[vt]=Et[vt])}else if("ref"===Se)Et&&Et(Pe);else if(en||"o"!==Se[0]||"n"!==Se[1]){const vt=w(Et);if((en||vt&&null!==Et)&&!Je)try{if(Pe.tagName.includes("-"))Pe[Se]=Et;else{const Kt=null==Et?"":Et;"list"===Se?en=!1:(null==ze||Pe[Se]!=Kt)&&(Pe[Se]=Kt)}}catch{}null==Et||!1===Et?(!1!==Et||""===Pe.getAttribute(Se))&&Pe.removeAttribute(Se):(!en||4&st||Je)&&!vt&&Pe.setAttribute(Se,Et=!0===Et?"":Et)}else Se="-"===Se[2]?Se.slice(3):bt(Wt,yt)?yt.slice(2):yt[2]+Se.slice(3),ze&&Ot.rel(Pe,Se,ze,!1),Et&&Ot.ael(Pe,Se,Et,!1)}},l=/\s/,s=Pe=>Pe?Pe.split(l):[],h=(Pe,Se,ze,Et)=>{const Je=11===Se.$elm$.nodeType&&Se.$elm$.host?Se.$elm$.host:Se.$elm$,st=Pe&&Pe.$attrs$||B,en=Se.$attrs$||B;for(Et in st)Et in en||o(Je,Et,st[Et],void 0,ze,Se.$flags$);for(Et in en)o(Je,Et,st[Et],en[Et],ze,Se.$flags$)},v=(Pe,Se,ze,Et)=>{const Je=Se.$children$[ze];let en,yt,st=0;if(null!==Je.$text$)en=Je.$elm$=Nt.createTextNode(Je.$text$);else{if(c||(c="svg"===Je.$tag$),en=Je.$elm$=Nt.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",Je.$tag$),c&&"foreignObject"===Je.$tag$&&(c=!1),h(null,Je,c),(Pe=>null!=Pe)(p)&&en["s-si"]!==p&&en.classList.add(en["s-si"]=p),Je.$children$)for(st=0;st{let yt,en=Pe;for(en.shadowRoot&&en.tagName===O&&(en=en.shadowRoot);Je<=st;++Je)Et[Je]&&(yt=v(null,ze,Je),yt&&(Et[Je].$elm$=yt,en.insertBefore(yt,Se)))},d=(Pe,Se,ze)=>{for(let Et=Se;Et<=ze;++Et){const Je=Pe[Et];if(Je){const st=Je.$elm$;I(Je),st&&st.remove()}}},f=(Pe,Se)=>Pe.$tag$===Se.$tag$,k=(Pe,Se)=>{const ze=Se.$elm$=Pe.$elm$,Et=Pe.$children$,Je=Se.$children$,st=Se.$tag$,en=Se.$text$;null===en?(c="svg"===st||"foreignObject"!==st&&c,h(Pe,Se,c),null!==Et&&null!==Je?((Pe,Se,ze,Et)=>{let On,Je=0,st=0,en=Se.length-1,yt=Se[0],vt=Se[en],Kt=Et.length-1,Pt=Et[0],Rt=Et[Kt];for(;Je<=en&&st<=Kt;)null==yt?yt=Se[++Je]:null==vt?vt=Se[--en]:null==Pt?Pt=Et[++st]:null==Rt?Rt=Et[--Kt]:f(yt,Pt)?(k(yt,Pt),yt=Se[++Je],Pt=Et[++st]):f(vt,Rt)?(k(vt,Rt),vt=Se[--en],Rt=Et[--Kt]):f(yt,Rt)?(k(yt,Rt),Pe.insertBefore(yt.$elm$,vt.$elm$.nextSibling),yt=Se[++Je],Rt=Et[--Kt]):f(vt,Pt)?(k(vt,Pt),Pe.insertBefore(vt.$elm$,yt.$elm$),vt=Se[--en],Pt=Et[++st]):(On=v(Se&&Se[st],ze,st),Pt=Et[++st],On&&yt.$elm$.parentNode.insertBefore(On,yt.$elm$));Je>en?y(Pe,null==Et[Kt+1]?null:Et[Kt+1].$elm$,ze,Et,st,Kt):st>Kt&&d(Se,Je,en)})(ze,Et,Se,Je):null!==Je?(null!==Pe.$text$&&(ze.textContent=""),y(ze,null,Se,Je,0,Je.length-1)):null!==Et&&d(Et,0,Et.length-1),c&&"svg"===st&&(c=!1)):Pe.$text$!==en&&(ze.data=en)},I=Pe=>{Pe.$attrs$&&Pe.$attrs$.ref&&Pe.$attrs$.ref(null),Pe.$children$&&Pe.$children$.map(I)},J=(Pe,Se)=>{Se&&!Pe.$onRenderResolve$&&Se["s-p"]&&Se["s-p"].push(new Promise(ze=>Pe.$onRenderResolve$=ze))},oe=(Pe,Se)=>{if(Pe.$flags$|=16,!(4&Pe.$flags$))return J(Pe,Pe.$ancestorComponent$),it(()=>ve(Pe,Se));Pe.$flags$|=512},ve=(Pe,Se)=>{const Et=Pe.$lazyInstance$;return Se&&(Pe.$flags$|=256,Pe.$queuedListeners$&&(Pe.$queuedListeners$.map(([st,en])=>_e(Et,st,en)),Pe.$queuedListeners$=void 0)),De(void 0,()=>ae(Pe,Et,Se))},De=(Pe,Se)=>Q(Pe)?Pe.then(Se):Se(),Q=Pe=>Pe instanceof Promise||Pe&&Pe.then&&"function"==typeof Pe.then,ae=function(){var Pe=(0,a.A)(function*(Se,ze,Et){var Je;const st=Se.$hostElement$,yt=st["s-rc"];Et&&(Pe=>{const Se=Pe.$cmpMeta$,ze=Pe.$hostElement$,Et=Se.$flags$,st=((Pe,Se,ze,Et)=>{var Je;let st=n(Se);const en=Lt.get(st);if(Pe=11===Pe.nodeType?Pe:Nt,en)if("string"==typeof en){let vt,yt=me.get(Pe=Pe.head||Pe);if(yt||me.set(Pe,yt=new Set),!yt.has(st)){{vt=Nt.createElement("style"),vt.innerHTML=en;const Kt=null!==(Je=Ot.$nonce$)&&void 0!==Je?Je:R(Nt);null!=Kt&&vt.setAttribute("nonce",Kt),Pe.insertBefore(vt,Pe.querySelector("link"))}yt&&yt.add(st)}}else Pe.adoptedStyleSheets.includes(en)||(Pe.adoptedStyleSheets=[...Pe.adoptedStyleSheets,en]);return st})(ze.shadowRoot?ze.shadowRoot:ze.getRootNode(),Se);10&Et&&(ze["s-sc"]=st,ze.classList.add(st+"-h"))})(Se);tt(Se,ze),yt&&(yt.map(Kt=>Kt()),st["s-rc"]=void 0);{const Kt=null!==(Je=st["s-p"])&&void 0!==Je?Je:[],Pt=()=>ke(Se);0===Kt.length?Pt():(Promise.all(Kt).then(Pt),Se.$flags$|=4,Kt.length=0)}});return function(ze,Et,Je){return Pe.apply(this,arguments)}}(),tt=(Pe,Se,ze)=>{try{Se=Se.render(),Pe.$flags$&=-17,Pe.$flags$|=2,((Pe,Se)=>{const ze=Pe.$hostElement$,Et=Pe.$vnode$||L(null,null),Je=(Pe=>Pe&&Pe.$tag$===M)(Se)?Se:$(null,null,Se);O=ze.tagName,Je.$tag$=null,Je.$flags$|=4,Pe.$vnode$=Je,Je.$elm$=Et.$elm$=ze.shadowRoot||ze,p=ze["s-sc"],k(Et,Je)})(Pe,Se)}catch(Et){wt(Et,Pe.$hostElement$)}return null},ke=Pe=>{const ze=Pe.$hostElement$,Je=Pe.$lazyInstance$,st=Pe.$ancestorComponent$;64&Pe.$flags$||(Pe.$flags$|=64,re(ze),_e(Je,"componentDidLoad"),Pe.$onReadyResolve$(ze),st||Ie()),Pe.$onInstanceResolve$(ze),Pe.$onRenderResolve$&&(Pe.$onRenderResolve$(),Pe.$onRenderResolve$=void 0),512&Pe.$flags$&&je(()=>oe(Pe,!1)),Pe.$flags$&=-517},pe=Pe=>{{const Se=St(Pe),ze=Se.$hostElement$.isConnected;return ze&&2==(18&Se.$flags$)&&oe(Se,!1),ze}},Ie=Pe=>{re(Nt.documentElement),je(()=>ie(Wt,"appload",{detail:{namespace:"ionicpwaelements"}}))},_e=(Pe,Se,ze)=>{if(Pe&&Pe[Se])try{return Pe[Se](ze)}catch(Et){wt(Et)}},re=Pe=>Pe.classList.add("hydrated"),ge=(Pe,Se,ze)=>{if(Se.$members$){const Et=Object.entries(Se.$members$),Je=Pe.prototype;if(Et.map(([st,[en]])=>{31&en||2&ze&&32&en?Object.defineProperty(Je,st,{get(){return((Pe,Se)=>St(this).$instanceValues$.get(Se))(0,st)},set(yt){((Pe,Se,ze,Et)=>{const Je=St(Pe),st=Je.$instanceValues$.get(Se),en=Je.$flags$,yt=Je.$lazyInstance$;ze=((Pe,Se)=>null==Pe||w(Pe)?Pe:4&Se?"false"!==Pe&&(""===Pe||!!Pe):2&Se?parseFloat(Pe):1&Se?String(Pe):Pe)(ze,Et.$members$[Se][0]);const vt=Number.isNaN(st)&&Number.isNaN(ze);(!(8&en)||void 0===st)&&ze!==st&&!vt&&(Je.$instanceValues$.set(Se,ze),yt&&2==(18&en)&&oe(Je,!1))})(this,st,yt,Se)},configurable:!0,enumerable:!0}):1&ze&&64&en&&Object.defineProperty(Je,st,{value(...yt){const vt=St(this);return vt.$onInstancePromise$.then(()=>vt.$lazyInstance$[st](...yt))}})}),1&ze){const st=new Map;Je.attributeChangedCallback=function(en,yt,vt){Ot.jmp(()=>{const Kt=st.get(en);if(this.hasOwnProperty(Kt))vt=this[Kt],delete this[Kt];else if(Je.hasOwnProperty(Kt)&&"number"==typeof this[Kt]&&this[Kt]==vt)return;this[Kt]=(null!==vt||"boolean"!=typeof this[Kt])&&vt})},Pe.observedAttributes=Et.filter(([en,yt])=>15&yt[0]).map(([en,yt])=>{const vt=yt[1]||en;return st.set(vt,en),vt})}}return Pe},xt=function(){var Pe=(0,a.A)(function*(Se,ze,Et,Je,st){if(!(32&ze.$flags$)){ze.$flags$|=32;{if((st=Bt(Et)).then){const Kt=()=>{};st=yield st,Kt()}st.isProxied||(ge(st,Et,2),st.isProxied=!0);const vt=()=>{};ze.$flags$|=8;try{new st(ze)}catch(Kt){wt(Kt)}ze.$flags$&=-9,vt()}if(st.style){let vt=st.style;const Kt=n(Et);if(!Lt.has(Kt)){const Pt=()=>{};((Pe,Se,ze)=>{let Et=Lt.get(Pe);Ut&&ze?(Et=Et||new CSSStyleSheet,"string"==typeof Et?Et=Se:Et.replaceSync(Se)):Et=Se,Lt.set(Pe,Et)})(Kt,vt,!!(1&Et.$flags$)),Pt()}}}const en=ze.$ancestorComponent$,yt=()=>oe(ze,!0);en&&en["s-rc"]?en["s-rc"].push(yt):yt()});return function(ze,Et,Je,st,en){return Pe.apply(this,arguments)}}(),rn=(Pe,Se={})=>{var ze;const Je=[],st=Se.exclude||[],en=Wt.customElements,yt=Nt.head,vt=yt.querySelector("meta[charset]"),Kt=Nt.createElement("style"),Pt=[];let Rt,On=!0;Object.assign(Ot,Se),Ot.$resourcesUrl$=new URL(Se.resourcesUrl||"./",Nt.baseURI).href,Pe.map(An=>{An[1].map(Bn=>{const Mn={$flags$:Bn[0],$tagName$:Bn[1],$members$:Bn[2],$listeners$:Bn[3]};Mn.$members$=Bn[2],Mn.$listeners$=Bn[3];const Wn=Mn.$tagName$,Ln=class extends HTMLElement{constructor(Fn){super(Fn),bn(Fn=this,Mn),1&Mn.$flags$&&Fn.attachShadow({mode:"open"})}connectedCallback(){Rt&&(clearTimeout(Rt),Rt=null),On?Pt.push(this):Ot.jmp(()=>(Pe=>{if(!(1&Ot.$flags$)){const Se=St(Pe),ze=Se.$cmpMeta$,Et=()=>{};if(1&Se.$flags$)mt(Pe,Se,ze.$listeners$);else{Se.$flags$|=1;{let Je=Pe;for(;Je=Je.parentNode||Je.host;)if(Je["s-p"]){J(Se,Se.$ancestorComponent$=Je);break}}ze.$members$&&Object.entries(ze.$members$).map(([Je,[st]])=>{if(31&st&&Pe.hasOwnProperty(Je)){const en=Pe[Je];delete Pe[Je],Pe[Je]=en}}),xt(Pe,Se,ze)}Et()}})(this))}disconnectedCallback(){Ot.jmp(()=>(Pe=>{if(!(1&Ot.$flags$)){const Se=St(this),ze=Se.$lazyInstance$;Se.$rmListeners$&&(Se.$rmListeners$.map(Et=>Et()),Se.$rmListeners$=void 0),_e(ze,"disconnectedCallback")}})())}componentOnReady(){return St(this).$onReadyPromise$}};Mn.$lazyBundleId$=An[0],!st.includes(Wn)&&!en.get(Wn)&&(Je.push(Wn),en.define(Wn,ge(Ln,Mn,1)))})});{Kt.innerHTML=Je+"{visibility:hidden}.hydrated{visibility:inherit}",Kt.setAttribute("data-styles","");const An=null!==(ze=Ot.$nonce$)&&void 0!==ze?ze:R(Nt);null!=An&&Kt.setAttribute("nonce",An),yt.insertBefore(Kt,vt?vt.nextSibling:yt.firstChild)}On=!1,Pt.length?Pt.map(An=>An.connectedCallback()):Ot.jmp(()=>Rt=setTimeout(Ie,30))},mt=(Pe,Se,ze,Et)=>{ze&&ze.map(([Je,st,en])=>{const yt=un(Pe,Je),vt=ft(Se,en),Kt=At(Je);Ot.ael(yt,st,vt,Kt),(Se.$rmListeners$=Se.$rmListeners$||[]).push(()=>Ot.rel(yt,st,vt,Kt))})},ft=(Pe,Se)=>ze=>{try{256&Pe.$flags$?Pe.$lazyInstance$[Se](ze):(Pe.$queuedListeners$=Pe.$queuedListeners$||[]).push([Se,ze])}catch(Et){wt(Et)}},un=(Pe,Se)=>16&Se?Nt.body:Pe,At=Pe=>!!(2&Pe),Cn=new WeakMap,St=Pe=>Cn.get(Pe),Ft=(Pe,Se)=>Cn.set(Se.$lazyInstance$=Pe,Se),bn=(Pe,Se)=>{const ze={$flags$:0,$hostElement$:Pe,$cmpMeta$:Se,$instanceValues$:new Map};return ze.$onInstancePromise$=new Promise(Et=>ze.$onInstanceResolve$=Et),ze.$onReadyPromise$=new Promise(Et=>ze.$onReadyResolve$=Et),Pe["s-p"]=[],Pe["s-rc"]=[],mt(Pe,ze,Se.$listeners$),Cn.set(Pe,ze)},bt=(Pe,Se)=>Se in Pe,wt=(Pe,Se)=>(0,console.error)(Pe,Se),Dn=new Map,Bt=(Pe,Se,ze)=>{const Et=Pe.$tagName$.replace(/-/g,"_"),Je=Pe.$lazyBundleId$,st=Dn.get(Je);if(st)return st[Et];if(!ze||!BUILD.hotModuleReplacement){const en=yt=>(Dn.set(Je,yt),yt[Et]);switch(Je){case"pwa-action-sheet":return E.e(6301).then(E.bind(E,6301)).then(en,wt);case"pwa-camera-modal":return E.e(2982).then(E.bind(E,2982)).then(en,wt);case"pwa-toast":return E.e(3574).then(E.bind(E,3574)).then(en,wt);case"pwa-camera-modal-instance":return E.e(5640).then(E.bind(E,5640)).then(en,wt);case"pwa-camera":return E.e(6086).then(E.bind(E,6086)).then(en,wt)}}return E(5235)(`./${Je}.entry.js`).then(en=>(Dn.set(Je,en),en[Et]),wt)},Lt=new Map,Wt=typeof window<"u"?window:{},Nt=Wt.document||{head:{}},Ot={$flags$:0,$resourcesUrl$:"",jmp:Pe=>Pe(),raf:Pe=>requestAnimationFrame(Pe),ael:(Pe,Se,ze,Et)=>Pe.addEventListener(Se,ze,Et),rel:(Pe,Se,ze,Et)=>Pe.removeEventListener(Se,ze,Et),ce:(Pe,Se)=>new CustomEvent(Pe,Se)},zn=Pe=>Promise.resolve(Pe),Ut=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),He=[],Be=[],Ae=(Pe,Se)=>ze=>{Pe.push(ze),D||(D=!0,Se&&4&Ot.$flags$?je(Ze):Ot.raf(Ze))},Me=Pe=>{for(let Se=0;Se{Me(He),Me(Be),(D=He.length>0)&&Ot.raf(Ze)},je=Pe=>zn().then(Pe),it=Ae(Be,!0)},3172:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>S,c:()=>a});const a={production:!0},S={api:{BASE_URL:"https://school-api-prod.tekdinext.com/",BASE_URL_BOT:"https://aibot-prod.tekdinext.com/",TELEMETRY_BASE_URL:"https://school-api-prod.tekdinext.com/",CONFIG:"seeker/configuration",PAGE_SEARCH_API:"content/search",CONTEXT_SEARCH:"api/aiutility/v1/context",CONTENT_SEARCH_API:"content/search",TELEMETRY_SYNC:"telemetry/v1/telemetry",BOT_QUERY_API:"v1/query",SEARCH_API:"content/search",CONFIRM_API:"confirm",BOT_SAKHI_API_PATH:"v1/query",BOT_ACTIVITY_API_PATH:"api/activitybot/v1/query",REGISTER_DEVICE_API_PATH:"api/registerMobileDevice",KEY:"myjp-0.1",SECRET:"7tVOEu0xj0zYQiYtCYbauEkNC3NBXCpM"},telmetry:{PRODUCER_ID:"dev.ejp.mobileapp",PRODUCER_PID:"mobileapp"}}},56:(Ce,ee,E)=>{"use strict";E.d(ee,{B$:()=>S,Cc:()=>a,Hs:()=>D,K:()=>O,Th:()=>C,Zm:()=>B,cM:()=>_,z5:()=>c});let a=(()=>{var m;class T{}return(m=T).PDF="application/pdf",m.MP4="video/mp4",m.YOUTUBE="video/x-youtube",m.AUDIO="audio/mp3",m.WEBM="video/webm",m.LINK="text/html",T})();const S={dbName:"digital_jaddu_pitara.db",version:3};let O=(()=>{var m;class T{}return(m=T).DATE_TYPE="DATE",m.TEXT_TYPE="TEXT",m.INT_TYPE="INTEGER",m.REAL_TYPE="REAL",m.COMMA_SEP=",",m.SPACE=" ",m.MAX_NUM_OF_EVENTS=1e3,m.MAX_NUM_OF_PROCESSED_EVENTS=1,m.ERROR="DB_ERROR",m.BLOB_TYPE="BLOB",m.NOT_NULL="NOT NULL",m.NULL="NULL",T})(),c=(()=>{var m;class T{}return(m=T).COLLECTION="application/vnd.ekstep.content-collection",m.VIDEO="video/mp4",m.VIDEOS=["video/mp4","video/webm","video/x-m4v","video/quicktime"],m.PDF="application/pdf",m.AUDIOS="audio/mp3",m.RECOEDED_AUDIO="audio/wav",m.AUDIO=["audio/mp3","audio/mp4","audio/mpeg","audio/ogg","audio/webm","audio/x-wav","audio/wav"],m.INTERACTION=["application/vnd.ekstep.ecml-archive","application/vnd.ekstep.html-archive","application/vnd.android.package-archive","application/vnd.ekstep.content-archive","application/vnd.ekstep.plugin-archive","application/vnd.ekstep.h5p-archive"],m.DOCS=["application/pdf","application/epub","application/msword"],m.ALL=["video/mp4","video/x-youtube","video/webm","application/pdf","application/epub","application/pdf","application/epub","application/vnd.ekstep.ecml-archive","application/vnd.ekstep.h5p-archive","application/vnd.ekstep.html-archive"],m.YOUTUBE="video/x-youtube",T})();const D=[{name:"content deatil",code:"contentDetail",pattern:"(?:/(?:resources/play/content|play/content|play/quiz)/(?\\w+))",route:"content-details"},{name:"Textbook content detail",code:"textbookContentDetail",pattern:"(?:/play/(?:collection)/(?\\w+)\\?(?=.*\\bcontentId\\b=(?([^&]*)).*))",route:"collection-detail-etb",priority:1},{name:"Course Detail",code:"courseDetail",pattern:"(?:/(?:explore-course|learn)/course/(?\\w+))",route:"enrolled-course-details",priority:3}];var C=function(m){return m.YES="Yes",m.NO="No",m}(C||{}),_=function(m){return m.COURSE="Course",m.COURSE_UNIT="CourseUnit",m.E_TEXTBOOK="eTextBook",m.EXPLANATION_RESOURCE="ExplanationResource",m.EXPLANATION_VIDEO="Explanation Video",m.TEXTBOOK="TextBook",m.TEXTBOOK_UNIT="TextBookUnit",m.COLLECTION="Collection",m.TV_LESSION="TVLesson",m.RESOURCE="Resource",m}(_||{});let B=(()=>{var m;class T{}return(m=T).TEACHER="teacher",m.STORY="story",m.PARENT="parent",T})()},319:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>O});var a=E(4438),S=E(8974),p=E(5402);let O=(()=>{var c;class D{constructor(_){this.modalCtrl=_}ngOnInit(){}confirm(_){switch(_){case"exit":this.modalCtrl.dismiss(!0);break;case"cancel":this.modalCtrl.dismiss(!1)}}}return(c=D).\u0275fac=function(_){return new(_||c)(a.rXU(S.W3))},c.\u0275cmp=a.VBU({type:c,selectors:[["app-app-exit"]],decls:13,vars:9,consts:[[1,"inner-content"],["slot","start"],[1,"buttons"],["slot","end","shape","round","fill","outline",1,"btn-info","exit",3,"click"],["slot","end","shape","round",1,"btn-info",3,"click"]],template:function(_,F){1&_&&(a.j41(0,"div",0)(1,"ion-toolbar")(2,"ion-buttons",1)(3,"ion-button"),a.EFF(4),a.nI1(5,"translate"),a.k0s()()(),a.j41(6,"ion-toolbar",2)(7,"ion-button",3),a.bIt("click",function(){return F.confirm("exit")}),a.EFF(8),a.nI1(9,"translate"),a.k0s(),a.j41(10,"ion-button",4),a.bIt("click",function(){return F.confirm("cancel")}),a.EFF(11),a.nI1(12,"translate"),a.k0s()()()),2&_&&(a.R7$(4),a.JRh(a.bMT(5,3,"Exit the app?")),a.R7$(4),a.JRh(a.bMT(9,5,"Exit")),a.R7$(3),a.JRh(a.bMT(12,7,"Cancel")))},dependencies:[S.Jm,S.QW,S.ai,p.D9],styles:[".buttons[_ngcontent-%COMP%]{padding:0 1rem}ion-button[_ngcontent-%COMP%]{text-wrap:wrap}.btn-info[_ngcontent-%COMP%]{width:40%;color:var(--ion-color-primary-contrast);--background: var(--ion-color-tertiary);font-size:.75rem;font-family:Noto Sans;font-weight:700;text-transform:uppercase;line-height:19.6px;word-wrap:break-word;padding:5px;text-wrap:wrap;text-align:center}.exit[_ngcontent-%COMP%]{--color: var(--ion-color-tertiary);--background: white}ion-modal[_ngcontent-%COMP%]{--height: 50%;--border-radius: 1rem;--box-shadow: 0 .625rem .938rem -.188rem rgb(0 0 0 / .1), 0 .25rem .375rem -.25rem rgb(0 0 0 / .1)}ion-modal[_ngcontent-%COMP%]::part(backdrop){background:#d1d5db;opacity:1}"]}),D})()},5553:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>C});var a=E(177),S=E(9417),p=E(8974),O=E(5402),c=E(2904),D=E(4438);let C=(()=>{var _;class F{}return(_=F).\u0275fac=function(m){return new(m||_)},_.\u0275mod=D.$C({type:_}),_.\u0275inj=D.G2t({providers:[c.a0,c.H0,c.n$],imports:[a.MD,S.YN,S.X1,p.bv,S.X1,O.h.forChild()]}),F})()},6198:(Ce,ee,E)=>{"use strict";E.d(ee,{g:()=>p});var a=E(4412),S=E(4438);let p=(()=>{var O;class c{constructor(){this.languageSubject=new a.t(localStorage.getItem("DJPData.lang")||"en"),this.currentLanguage$=this.languageSubject.asObservable()}setLanguage(C){localStorage.setItem("DJPData.lang",C),this.languageSubject.next(C)}}return(O=c).\u0275fac=function(C){return new(C||O)},O.\u0275prov=S.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),c})()},446:(Ce,ee,E)=>{"use strict";E.d(ee,{g:()=>D});const c="../assets/appConfig/"+new URL(document.baseURI).hostname.split(".")[0]+".json",D=fetch(c).then(C=>{if(!C.ok)throw new Error("Network response was not ok");return C.json()}).then(C=>C).catch(C=>{console.error("There was a problem with the fetch operation:",C)})},3721:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>S});var a=E(4438);let S=(()=>{var p;class O{}return(p=O).\u0275fac=function(D){return new(D||p)},p.\u0275mod=a.$C({type:p}),p.\u0275inj=a.G2t({}),O})()},1984:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>S});var a=E(467);class S{constructor(){this._isInitialised=!1,this.config={},this.botMsg={}}static getInstance(){return S._instance||(S._instance=new S),S._instance}isInitialised(){return this._isInitialised}getConfig(){return this.config}init(O){var c=this;return(0,a.A)(function*(){c._isInitialised=!0,c.config={authentication:{bearerToken:""},deviceInfo:{did:O}}})()}getSakhiResponse(){return this.botMsg}setSakhiResponse(O){var c=this;return(0,a.A)(function*(){c.botMsg={storySakhi:O.story,teacherSakhi:O.teacher,paretSakhi:O.parent}})()}}},2700:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>o});var a=E(467),S=E(6648),p=E(3028),O=E(9437),c=E(7673),D=E(8810),C=E(1984),_=E(8141),F=E(985),B=E(7374),m=E(3172);let T=(()=>{var l;class s{constructor(v,y){this.apiService=v,this.utilService=y,this.getJWTToken=(d,r)=>new Promise((f,k)=>{window.FilePath.getJWTToken(d,r,f,I=>{console.error(`${d} could not be resolved by the plugin: ${I.message}`),k(I)})})}refreshAuthToken(){return(0,S.H)(this.getBearerTokenFromKong())}getMobileDeviceConsumerKey(){var v=this;return(0,a.A)(function*(){return yield v.utilService.getDeviceId()})()}buildGetMobileDeviceConsumerSecretAPIRequest(v){var y=this;return(0,a.A)(function*(){return Promise.resolve((new F._g.Builder).withHost(m.$.api.BASE_URL).withPath(v).withType(F.kr.POST).withHeaders({"Content-Encoding":"gzip",Authorization:`Bearer ${yield y.generateMobileAppConsumerBearerToken()}`}).withBody({id:s.ID,ver:s.VERSION,ts:B().format(),request:{key:`${m.$.telmetry.PRODUCER_ID}-${yield y.getMobileDeviceConsumerKey()}`}}).build())})()}getBearerTokenFromKong(){var v=this;return(0,a.A)(function*(){return v.apiService.fetch(yield v.buildGetMobileDeviceConsumerSecretAPIRequest(m.$.api.REGISTER_DEVICE_API_PATH)).toPromise().then(y=>y.body.result.token).catch(y=>{throw y})})()}generateMobileAppConsumerBearerToken(){var v=this;return(0,a.A)(function*(){return yield v.getJWTToken(m.$.api.KEY,m.$.api.SECRET)})()}}return(l=s).VERSION="1.0",l.ID="org.myjp.device.register",s})();class A{constructor(s,h,v){this.storageService=s,this.apiService=h,this.utilService=v,this.apiTokenHandler=new T(this.apiService,this.utilService)}interceptResponse(s,h){var v=this;return h.responseCode===F.xl.HTTP_UNAUTHORISED&&"Unauthorized"===h.body.message||h.responseCode===F.xl.HTTP_FORBIDDEN?this.apiTokenHandler.refreshAuthToken().pipe((0,_.M)(function(){var y=(0,a.A)(function*(d){yield v.storageService.setData("api_token",d)});return function(d){return y.apply(this,arguments)}}()),(0,p.Z)(()=>this.apiService.fetch(s))):(0,c.of)(h)}}var w=E(6598),R=E(4438),$=E(3207);class L{constructor(){}interceptRequest(s){var h;const v=null===(h=C.f.getInstance().getConfig().authentication)||void 0===h?void 0:h.bearerToken;return v&&(s.headers.Authorization=`Bearer ${v}`),(0,c.of)(s)}}class M{constructor(s,h){this._code=h}getCode(){return this._code}}let P=(()=>{class s extends M{constructor(v,y){super(v,s.code),this.response=y,Object.setPrototypeOf(this,s.prototype)}static isInstance(v){return v.code&&v.code===s.code}}return s.code="HTTP_CLIENT_ERROR",s})(),U=(()=>{class s extends M{constructor(v,y){super(v,s.code),this.response=y,Object.setPrototypeOf(this,s.prototype)}static isInstance(v){return v.code&&v.code===s.code}}return s.code="HTTP_SERVER_ERROR",s})();var j=E(6421),W=E(5083),ie=E(1413);let me=(()=>{var l;class s{constructor(){this.http=W.pX}get(v,y,d,r){return this.invokeRequest(F.kr.GET,v+y,r,d)}patch(v,y,d,r){return this.invokeRequest(F.kr.PATCH,v+y,r,d)}post(v,y,d,r){return this.invokeRequest(F.kr.POST,v+y,r,d)}checkMimieType(v){const y=v;return y.endsWith(".mp3")?"audio/mp3":y.endsWith(".pdf")?"application/pdf":y.includes("youtube.com")||y.includes("youtu.be")?"video/x-youtube":y.endsWith(".mp4")?"video/mp4":"text/html"}invokeRequest(v,y,d,r){const f=new ie.B,k={url:y,method:v.toLowerCase(),headers:r};return v===F.kr.POST||v===F.kr.PATCH?k.data=d:(v===F.kr.GET||v===F.kr.DELETE)&&(k.params=d),this.http.request(k).then(I=>{I.data=I.data;let V=I.data;const J=[];if(V.data&&null!=V.data.djp_contents&&V.data.djp_contents.forEach(ve=>{let De=this.checkMimieType(null==ve?void 0:ve.url);J.push({agegroup:ve.agegroup,audience:ve.audience,bpp_id:ve.bpp_id,bpp_uri:ve.bpp_uri,competency:ve.competencies,category:ve.category,createdon:ve.createdon,curriculargoal:ve.curriculargoal,id:ve.item_id,identifier:ve.identifier,provider_id:ve.provider_id,provider_name:ve.provider_name,name:ve.name,description:ve.description,thumbnail:ve.thumbnail,domain:ve.domain,unique_id:ve.unique_id,language:ve.language,url:ve.url,sourceOrganisation:ve.sourceorg,midea:ve.midea,keywords:ve.keywords,lastupdatedon:ve.lastupdatedon,learningOutcomes:ve.learningOutcomes,status:ve.status,content_type:ve.content_type,mimetype:De})}),J){let ve;var oe;ve=V.data&&null!=V.data.djp_contents?{body:{result:J,audioText:null==I||null===(oe=I.data)||void 0===oe?void 0:oe.audioText},responseCode:200,errorMesg:"",headers:I.headers,requestHeaders:k.headers}:{body:{result:I.data},responseCode:200,errorMesg:"",headers:I.headers,requestHeaders:k.headers},f.next(ve),f.complete()}}).catch(I=>{console.error("error",I);const V={body:{},responseCode:I.status,errorMesg:"SERVER_ERROR",headers:I.headers,requestHeaders:k.headers};try{try{I.body=JSON.parse(I.error)}catch(J){if(V.body=I.error,I.status<=0)throw J}f.error(new Error)}catch{f.error(new Error),f.complete()}}),f}}return(l=s).\u0275fac=function(v){return new(v||l)},l.\u0275prov=R.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})();var te=E(5402);let se=(()=>{var l;class s{constructor(v,y){this.http=v,this.translate=y,this.requestInterceptors=[],this.responseInterceptors=[]}getBearerTokenInjectRequestInterceptor(){return this.bearerTokenInjectRequestInterceptor||(this.bearerTokenInjectRequestInterceptor=new L),this.bearerTokenInjectRequestInterceptor}fetch(v){var y=this;v.headers={...v.getHeaders(),...this.addGlobalHeader(v.language)},this.buildInterceptorsFromRequest(v);const d=(0,a.A)(function*(){let r;v=yield y.interceptRequest(v);try{switch(v.getType()){case F.kr.GET:r=yield(0,$.s)(y.http.get(v.getHost()||"this.host",v.getPath(),v.headers,v.getParameters()));break;case F.kr.PATCH:r=yield(0,$.s)(y.http.patch(v.getHost()||"this.host",v.getPath(),v.headers,v.body));break;case F.kr.POST:r=yield(0,$.s)(y.http.post(v.getHost()||"this.host",v.getPath(),v.headers,v.getBody()));break;default:throw new Error("Unsupported type")}return yield y.interceptResponse(v,r)}catch(f){const k=I=>{if(I.responseCode>=400&&I.responseCode<=499)throw new P(`\n ${v.host+v.path} -\n ${I.errorMesg||""}\n `,I);if(I.responseCode>=500&&I.responseCode<=599)throw new U(`\n ${v.host+v.path} -\n ${I.errorMesg||""}\n `,I);return I};if(!P.isInstance(f)&&!U.isInstance(f))throw f;try{return r=yield y.interceptResponse(v,f.response),k(r)}catch(I){if(I.responseCode)return k(I);throw I}}})();return(0,S.H)(d)}addGlobalHeader(v){var y,d;let r=v||this.translate.currentLang;return{Accept:"application/json","Content-Type":"application/json","Access-Control-Allow-Origin":"*","X-device-id":null===(y=C.f.getInstance().getConfig().deviceInfo)||void 0===y?void 0:y.did,"X-Source":"mobileapp","X-Request-ID":(0,j.A)(),"X-CONSUMER-ID":null===(d=C.f.getInstance().getConfig().deviceInfo)||void 0===d?void 0:d.did,...r?{"x-preferred-language":r}:{}}}interceptRequest(v){var y=this;return(0,a.A)(function*(){const d=[];for(const r of y.requestInterceptors)d.push(r);for(const r of v.requestInterceptors)d.push(r);for(const r of d)v=yield(0,$.s)(r.interceptRequest(v));return v})()}interceptResponse(v,y){var d=this;return(0,a.A)(function*(){const r=[];for(const f of d.responseInterceptors)r.push(f);for(const f of v.getResponseInterceptors())r.push(f);for(const f of r)y=yield(0,$.s)(f.interceptResponse(v,y));if(y.responseCode!==F.xl.HTTP_SUCCESS)throw y;return y})()}buildInterceptorsFromRequest(v){v.withBearerToken&&-1===v.requestInterceptors.indexOf(this.bearerTokenInjectRequestInterceptor)&&v.requestInterceptors.push(this.getBearerTokenInjectRequestInterceptor())}}return(l=s).\u0275fac=function(v){return new(v||l)(R.KVO(me),R.KVO(te.c$))},l.\u0275prov=R.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})();var g=E(2904),n=E(8974);let o=(()=>{var l;class s{constructor(v,y,d,r){var f=this;this.httpService=v,this.storageService=y,this.utilService=d,this.toastController=r,this.connected=!0,this.language="",this.defaultRequestInterceptors=[],this.defaultResponseInterceptors=[],w.l.addListener("networkStatusChange",function(){var k=(0,a.A)(function*(I){f.connected=I.connected});return function(I){return k.apply(this,arguments)}}()),this.toastController.create({animated:!1}).then(k=>{k.present(),k.dismiss()}),this.storageService.getData("lang").then(k=>{this.language=k})}getBearerTokenRefreshInterceptor(){return this.bearerTokenRefreshInterceptor||(this.bearerTokenRefreshInterceptor=new A(this.storageService,this,this.utilService)),this.bearerTokenRefreshInterceptor}onInit(){return(0,S.H)(this.storageService.getData("api_token")).pipe((0,p.Z)(v=>v?(C.f.getInstance().getConfig().authentication.bearerToken=v,(0,c.of)(void 0)):new T(this,this.utilService).refreshAuthToken().pipe((0,p.Z)(y=>(C.f.getInstance().getConfig().authentication.bearerToken=y,(0,S.H)(this.storageService.setData("api_token",y)))),(0,O.W)(()=>(0,c.of)(void 0)))))}fetch(v){if(this.defaultRequestInterceptors.forEach(y=>{-1===v.getRequestInterceptors().indexOf(y)&&v.getRequestInterceptors().push(y)}),this.defaultResponseInterceptors.forEach(y=>{-1===v.getResponseInterceptors().indexOf(y)&&v.getResponseInterceptors().push(y)}),v.withBearerToken){const y=v.getResponseInterceptors().indexOf(this.getBearerTokenRefreshInterceptor());-1===y?v.getResponseInterceptors().push(this.bearerTokenRefreshInterceptor):v.getResponseInterceptors().splice(y,1)}return this.httpService.fetch(v).pipe((0,O.W)(y=>(0,D.$)(()=>y)))}setDefaultRequestInterceptors(v){this.defaultRequestInterceptors=v}setDefaultResponseInterceptors(v){this.defaultResponseInterceptors=v}}return(l=s).\u0275fac=function(v){return new(v||l)(R.KVO(se),R.KVO(g.n$),R.KVO(g.a0),R.KVO(n.K_))},l.\u0275prov=R.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})()},985:(Ce,ee,E)=>{"use strict";E.d(ee,{_g:()=>p,kr:()=>a,xl:()=>S});var a=function(O){return O.GET="GET",O.POST="POST",O.PATCH="PATCH",O.DELETE="DELETE",O.PUT="PUT",O}(a||{}),S=function(O){return O[O.HTTP_UNAUTHORISED=401]="HTTP_UNAUTHORISED",O[O.HTTP_FORBIDDEN=403]="HTTP_FORBIDDEN",O[O.HTTP_SUCCESS=200]="HTTP_SUCCESS",O[O.HTTP_BAD_REQUEST=400]="HTTP_BAD_REQUEST",O[O.HTTP_KONG_FAILURE=447]="HTTP_KONG_FAILURE",O[O.HTTP_INTERNAL_SERVER_ERROR=500]="HTTP_INTERNAL_SERVER_ERROR",O}(S||{});let p=(()=>{var O;class c{getWithBearerToken(){return this._withBearerToken}setWithBearerToken(C){this._withBearerToken=C}getBody(){return this._body}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.withBearerToken=!1,this.withUserToken=!1,this.headers={},this.body={},this.parameters={},this._responseInterceptors=[],this._withBearerToken=!1,this._headers={},this._body={},this._parameters={},this._withUserToken=!1,this._requestInterceptors=[]}setPath(C){this._path=C}getType(){return this._type}setResponseInterceptors(C){this._responseInterceptors=C}setHeaders(C){this._headers=C}setBody(C){this._body=C}getPath(){return this._path}setType(C){this._type=C}getResponseInterceptors(){return this._responseInterceptors}getHeaders(){return this._headers}getParameters(){return this._parameters}setParameters(C){this._parameters=C}getWithUserToken(){return this._withUserToken}setWithUserToken(C){this._withUserToken=C}getRequestInterceptors(){return this._requestInterceptors}getHost(){return this._host}}return(O=c).Builder=class{constructor(){this.request=new O}withHost(C){return this.request._host=C,this}withLanguge(C){return this.request.language=C,this}withPath(C){return this.request._path=C,this}withType(C){return this.request._type=C,this}withResponseInterceptor(C){return this.request._responseInterceptors.push(C),this}withRequestInterceptor(C){return this.request._requestInterceptors.push(C),this}withHeaders(C){return this.request._headers=C,this}withBody(C){return this.request._body=C,this}withParameters(C){return this.request._parameters=C,this}withBearerToken(C){return this.request.withBearerToken=C,this}withUserToken(C){return this.request.withUserToken=C,this}build(){if(!this.request._path)throw new Error("withPath() is required");if(!this.request._type)throw new Error("withType() is required");return this.request}},c})()},3568:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>m});var a=E(467),S=E(5083),p=function(T){return T.Dark="DARK",T.Light="LIGHT",T.Default="DEFAULT",T}(p||{}),O=function(T){return T.None="NONE",T.Slide="SLIDE",T.Fade="FADE",T}(O||{});const C=(0,S.F3)("StatusBar");var _=E(1413),F=E(8941),B=E(4438);let m=(()=>{var T;class A{constructor(){this.appName="",this.headerEvent=new _.B,this.headerEventEmitted$=this.headerEvent.asObservable(),this.headerConfig=new _.B,this.headerConfigEmitted$=this.headerConfig.asObservable(),this.deviceBackbtnConfig=new _.B,this.deviceBackbtnEmitted$=this.deviceBackbtnConfig.asObservable(),this.filterConfig=new _.B,this.filterConfigEmitted$=this.filterConfig.asObservable(),this.sideMenuItemEvent=new _.B,this.sideMenuItemEventEmitted$=this.sideMenuItemEvent.asObservable(),F.q.getInfo().then(R=>{this.appName=R.name})}filterEvent(R){this.filterConfig.next(R)}sidebarEvent(R){this.headerEvent.next(R.name)}sideMenuItemEvents(R){this.sideMenuItemEvent.next(null==R?void 0:R.filter)}updatePageConfig(R){this.headerConfig.next(R)}deviceBackBtnEvent(R){this.deviceBackbtnConfig.next(R)}hideHeader(){var R=this;return(0,a.A)(function*(){const $=R.getDefaultPageConfig();$.showHeader=!1,R.updatePageConfig($)})()}getDefaultPageConfig(){return{showHeader:!0,pageTitle:this.appName,showbackButton:!1,actionButtons:[""]}}showHeader(R,$,L){var M=this;return(0,a.A)(function*(){const P=M.getDefaultPageConfig();P.pageTitle=null!=R?R:M.appName,P.showbackButton=null!=$&&$,P.actionButtons=null!=L?L:[""],M.updatePageConfig(P)})()}hideStatusBar(){C.hide()}showStatusBar(R,$){C.show({animation:O.None}),C.setStyle({style:$?p.Dark:p.Light}),C.setBackgroundColor({color:null!=$?$:"#FFFAEE"}),C.setOverlaysWebView({overlay:R})}}return(T=A).\u0275fac=function(R){return new(R||T)},T.\u0275prov=B.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},4447:(Ce,ee,E)=>{"use strict";E.d(ee,{i:()=>A});var a=E(467),S=E(5083),p=function(w){return w[w.UNKNOWN=0]="UNKNOWN",w[w.UPDATE_NOT_AVAILABLE=1]="UPDATE_NOT_AVAILABLE",w[w.UPDATE_AVAILABLE=2]="UPDATE_AVAILABLE",w[w.UPDATE_IN_PROGRESS=3]="UPDATE_IN_PROGRESS",w}(p||{});const D=(0,S.F3)("AppUpdate",{web:()=>E.e(5959).then(E.bind(E,5959)).then(w=>new w.AppUpdateWeb)});var C=E(4438),_=E(8974),F=E(5402);let B=(()=>{var w;class R{constructor(L){this.popoverCtrl=L}ngOnInit(){}handleButtonAction(L){this.popoverCtrl.dismiss(L)}}return(w=R).\u0275fac=function(L){return new(L||w)(C.rXU(_.IE))},w.\u0275cmp=C.VBU({type:w,selectors:[["app-app-update"]],decls:18,vars:12,consts:[["lines","none"],["slot","end"],[3,"click"]],template:function(L,M){1&L&&(C.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C.EFF(3),C.nI1(4,"translate"),C.k0s()(),C.j41(5,"ion-content")(6,"ion-item",0)(7,"ion-label"),C.EFF(8),C.nI1(9,"translate"),C.k0s()()(),C.j41(10,"ion-toolbar")(11,"ion-buttons",1)(12,"ion-button",2),C.bIt("click",function(){return M.handleButtonAction("cancel")}),C.EFF(13),C.nI1(14,"translate"),C.k0s(),C.j41(15,"ion-button",2),C.bIt("click",function(){return M.handleButtonAction("restart")}),C.EFF(16),C.nI1(17,"translate"),C.k0s()()()()),2&L&&(C.R7$(3),C.JRh(C.bMT(4,4,"Update Downloaded")),C.R7$(5),C.SpI(" ",C.bMT(9,6,"The update has been downloaded. Would you like to restart the app to complete the update now?")," "),C.R7$(5),C.JRh(C.bMT(14,8,"Later")),C.R7$(3),C.JRh(C.bMT(17,10,"Restart Now")))},dependencies:[_.Jm,_.QW,_.W9,_.eU,_.uz,_.he,_.BC,_.ai,F.D9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0px !important}ion-button[_ngcontent-%COMP%]{color:var(--ion-color-primary)}"]}),R})();var m=E(3021),T=E(4517);let A=(()=>{var w;class R{constructor(L,M,P){this.router=L,this.platform=M,this.popoverController=P,this.forDeepLink=!1,this.showListPage=!1}checkForUpdate(){var L=this;return(0,a.A)(function*(){const M=yield D.getAppUpdateInfo();M.updateAvailability===p.UPDATE_AVAILABLE&&L.platform.is("android")&&(M.immediateUpdateAllowed?yield D.performImmediateUpdate():M.flexibleUpdateAllowed&&(yield D.startFlexibleUpdate(),D.addListener("onFlexibleUpdateStateChange",(0,a.A)(function*(){let P=yield L.popoverController.create({component:B,cssClass:"update-modal",translucent:!0,dismissOnSelect:!0});yield P.present(),P.onDidDismiss().then(U=>{"restart"==U.data&&D.completeFlexibleUpdate()})}))))})()}}return(w=R).\u0275fac=function(L){return new(L||w)(C.KVO(m.Ix),C.KVO(T.OD),C.KVO(_.IE))},w.\u0275prov=C.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}),R})()},6011:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>c});var a=E(467),S=E(4438),p=E(4591),O=E(1765);let c=(()=>{var D;class C{constructor(F,B){this.dbService=F,this.telemetryService=B}initialize(){var F=this;return(0,a.A)(function*(){yield F.dbService.initializePlugin()})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.a),S.KVO(O.H))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},4999:(Ce,ee,E)=>{"use strict";E.d(ee,{O:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="chat",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_MESSAGE="message",p.COLUMN_NAME_BOT_TYPE="bot_type",p.COLUMN_NAME_FROM_ME="from_me",p.COLUMN_NAME_REACTIONS="reactions",p.COLUMN_NAME_REQUEST_ID="request_id",p.COLUMN_NAME_MEDIA_TYPE="media_type",p.COLUMN_NAME_MEDIA_DATA="media_data",p.COLUMN_NAME_MEDIA_PATH="media_path",p.COLUMN_NAME_DURATION="duration",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT"+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MESSAGE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_BOT_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_FROM_ME+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_REACTIONS+a.K.SPACE+a.K.INT_TYPE+" DEFAULT -1"+a.K.COMMA_SEP+p.COLUMN_NAME_REQUEST_ID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_DATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_PATH+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_DURATION+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_MESSAGE},\n ${p.COLUMN_NAME_BOT_TYPE},\n ${p.COLUMN_NAME_FROM_ME},\n ${p.COLUMN_NAME_MEDIA_TYPE},\n ${p.COLUMN_NAME_MEDIA_DATA},\n ${p.COLUMN_NAME_MEDIA_PATH},\n ${p.COLUMN_NAME_DURATION},\n ${p.COLUMN_NAME_TIME_STAMP},\n ${p.COLUMN_NAME_REACTIONS}) \n VALUES (?,?,?,?,?,?,?,?,?,?)`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p}(S||{})},3871:(Ce,ee,E)=>{"use strict";E.d(ee,{d:()=>c});var a=E(467),S=E(4438),p=E(3486);let c=(()=>{var D;class C{constructor(F){this.storageService=F}initStorage(){var F=this;return(0,a.A)(function*(){const B=(new Date).getTime()+36e5;(yield F.storageService.getData("firstTimeLoad"))||(yield F.storageService.setData("firstTimeLoad","true")),(yield F.storageService.getData("validTimeStamp"))||F.storageService.setData("validTimeStamp",JSON.stringify(B))})()}getCacheTimeout(){var F=this;return(0,a.A)(function*(){let B=yield F.storageService.getData("firstTimeLoad"),m=(new Date).getTime(),T=yield F.storageService.getData("validTimeStamp");return m>JSON.parse(T)?(F.storageService.removeData("validTimeStamp"),F.initStorage(),!0):"true"===B&&(yield F.storageService.setData("firstTimeLoad","false"),!0)})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.n))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},3696:(Ce,ee,E)=>{"use strict";E.d(ee,{w:()=>B});var a=E(467),S=E(3172),p=E(985),O=E(3207),c=E(6354),D=E(9437),C=E(446),_=E(4438),F=E(2700);let B=(()=>{var m;class T{constructor(w){this.apiService=w,C.g.then(R=>{this.configVariables=R}).catch(R=>{console.error("Failed to load configuration:",R)})}getConfigMeta(){var w=this;return(0,a.A)(function*(){const R=(new p._g.Builder).withHost(S.$.api.BASE_URL).withPath(S.$.api.CONFIG).withType(p.kr.GET).withBearerToken(!0).build();return(0,O.s)(w.apiService.fetch(R)).then($=>{if(null!=$&&$.body.result)return null==$?void 0:$.body.result}).catch($=>{console.log("err ",$)})})()}getAllContent(w,R){var $=this;return(0,a.A)(function*(){let L={language:R,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}};const M=(new p._g.Builder).withHost(S.$.api.BASE_URL).withPath(S.$.api.PAGE_SEARCH_API).withType(p.kr.POST).withBearerToken(!0).withBody(L).withLanguge(R).build();return(0,O.s)($.apiService.fetch(M).pipe((0,c.T)(P=>P.body.result),(0,D.W)(P=>{throw P})))})()}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.G))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},444:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>R});var a=E(467),S=E(532),p=E(5396),O=E(4870);class c{static mapContentToRecentlyViewedContentEntry(L,M,P){return{[p.a.COLUMN_NAME_IDENTIFIER]:P,[p.a.COLUMN_NAME_CONTENT_IDENTIFIER]:L.metaData.identifier,[p.a.COLUMN_NAME_UID]:M,[p.a.COLUMN_NAME_CONTENT_METADATA]:JSON.stringify(L.metaData),[p.a.COLUMN_NAME_MIME_TYPE]:L.metaData.mimetype,[p.a.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(L,M){return[L.metaData.identifier,M,L.metaData.mimetype,Date.now()]}}class D{static mapContentRVCtoRecentlyViedContent(L,M){const P=JSON.parse(L.content_metadata);return P.isLiked=!!L.reaction_identifier,L.content_metadata=JSON.stringify(P),L.metadata=L.content_metadata,{uid:L.uid,rvIdentifier:M,contentIdentifier:L.identifier,source:L.source,sourceType:L.source_type,metaData:JSON.parse(L.content_metadata)}}}var C=E(6421),_=E(56),F=E(985),B=E(3207),m=E(742),T=E(4438),A=E(2904),w=E(2700);let R=(()=>{var $;class L{constructor(P,U){this.dbService=P,this.apiService=U,this.results=[]}deleteAllContents(){return this.dbService.remove(S.a.deleteQuery(),{source:"djp"})}saveContents(P){const U=[];return P.map(j=>{U.push({statement:S.a.insertQuery(),values:O.Z.mapContentToValues(j)})}),this.dbService.executeSet(U)}getRecentlyViewedContent(P){var U=this;return(0,a.A)(function*(){const j=`SELECT rvc.* ,c.*, cr.content_identifier as reaction_identifier\n FROM ${p.a.TABLE_NAME} rvc\n LEFT JOIN ${S.a.TABLE_NAME} c ON rvc.content_identifier=c.identifier \n LEFT JOIN ${m.S.TABLE_NAME} cr ON rvc.content_identifier = reaction_identifier \n where rvc.uid='${P}' ORDER BY rvc.ts DESC`,W=yield U.dbService.executeQuery(j),ie=[];return null==W||W.map(me=>{ie.push(D.mapContentRVCtoRecentlyViedContent(me,(0,C.A)()))}),Promise.resolve(ie)})()}getAllContent(){var P=this;return(0,a.A)(function*(){const j=[];return P.dbService.readDbData(`SELECT c.*, cr.content_identifier from ${S.a.TABLE_NAME} c LEFT JOIN ${m.S.TABLE_NAME} cr ON c.identifier = cr.content_identifier WHERE ${S.a.COLUMN_NAME_SOURCE} NOT IN ('local', 'dialcode') ORDER BY ${S.a.COLUMN_NAME_TIME_STAMP}`).then(W=>(W.map(ie=>{const me=JSON.parse(ie.metadata);ie.metaData=me,j.push(ie)}),Promise.resolve(j)))})()}likeContent(P,U,j){var W=this;return(0,a.A)(function*(){return j?W.dbService.readDbData(m.S.readQuery(),{content_identifier:P.metaData.identifier}).then(ie=>{const me=ie?m.S.updateQuery():m.S.insertQuery(),te=ie?{content_identifier:P.metaData.identifier,uid:U}:void 0;return W.dbService.save(me,O.Z.mapContentReactionEntry(P.metaData.identifier,"guest"),te)}):W.dbService.remove(m.S.deleteQuery(),{content_identifier:P.metaData.identifier,uid:U})})()}markContentAsViewed(P){var U=this;return(0,a.A)(function*(){return(yield U.dbService.readDbData(S.a.readQuery(),{identifier:P.metaData.identifier}))||(yield U.dbService.executeSet([{statement:S.a.insertQuery(),values:O.Z.mapContentToValues(P)}])),U.dbService.readDbData(p.a.readQuery(),{content_identifier:P.metaData.identifier}).then(W=>{const ie=W?p.a.updateQuery():p.a.insertQuery(),me=W?{identifier:P.metaData.identifier}:void 0;return U.dbService.save(ie,c.mapContentToRecentlyViewedContentEntry(P,"guest",(0,C.A)()),me)})})()}searchContentInDiksha(P){let U={request:{filters:{channel:"",primaryCategory:["Collection","Resource","Content Playlist","Course","Course Assessment","Digital Textbook","eTextbook","Explanation Content","Learning Resource","Practice Question Set","Teacher Resource","Textbook Unit","LessonPlan","FocusSpot","Learning Outcome Definition","Curiosity Questions","MarkingSchemeRubric","ExplanationResource","ExperientialResource","Practice Resource","TVLesson","Question paper"],visibility:["Default","Parent"]},limit:100,query:P,sort_by:{lastPublishedOn:"desc"},fields:["name","appIcon","mimeType","gradeLevel","identifier","medium","pkgVersion","board","subject","resourceType","primaryCategory","contentType","channel","organisation","trackable"],softConstraints:{badgeAssertions:98,channel:100},mode:"soft",facets:["se_boards","se_gradeLevels","se_subjects","se_mediums","primaryCategory"],offset:0}};const j=(new F._g.Builder).withHost("https://diksha.gov.in/").withPath("api/content/v1/search").withType(F.kr.POST).withBody(U).build();return(0,B.s)(this.apiService.fetch(j))}getCollectionHierarchy(P){const U=(new F._g.Builder).withHost("https://diksha.gov.in/action/content/v3/hierarchy/").withPath(`${P}`).withType(F.kr.GET).build();return(0,B.s)(this.apiService.fetch(U))}getContents(P){return this.searchContentInDiksha(P).then(U=>{var j;return null!==(j=U.body.result)&&void 0!==j&&null!==(j=j.content)&&void 0!==j&&j.length?this.getCollectionHierarchy(U.body.result.content[0].identifier):""}).then(U=>{this.results=[];const j=[];return U&&(this.showAllChild(U.body.result.content),this.results.map(W=>{j.push({source:"dialcode",sourceType:"Diksha",metaData:{identifier:null==W?void 0:W.identifier,name:null==W?void 0:W.name,thumbnail:null==W?void 0:W.posterImage,description:null==W?void 0:W.name,mimetype:(null==W?void 0:W.mimetype)||(null==W?void 0:W.mimeType),url:null==W?void 0:W.streamingUrl,focus:null==W?void 0:W.focus,keyword:null==W?void 0:W.keyword,domain:null==W?void 0:W.domain,curriculargoal:null==W?void 0:W.curriculargoal,competencies:null==W?void 0:W.competencies,language:null==W?void 0:W.language,category:null==W?void 0:W.category,audience:null==W?void 0:W.audience,status:null==W?void 0:W.status,createdon:null==W?void 0:W.createdOn,lastupdatedon:(null==W?void 0:W.lastupdatedon)||(null==W?void 0:W.lastUpdatedOn),artifactUrl:null==W?void 0:W.artifactUrl}})})),j}).catch(U=>{throw console.error(U),U})}showAllChild(P){let U=_.z5.VIDEOS;U.indexOf(_.z5.PDF)>-1||U.push(_.z5.PDF),void 0!==P.children&&P.children.length?P.children.forEach(j=>{this.showAllChild(j)}):U.indexOf(P.mimeType)>-1&&this.results.push(P)}readDikshaContents(P){const U=(new F._g.Builder).withHost("https://diksha.gov.in/api/content/v1/read/").withPath(`${P}`).withType(F.kr.GET).build();return(0,B.s)(this.apiService.fetch(U))}}return($=L).\u0275fac=function(P){return new(P||$)(T.KVO(A.at),T.KVO(w.G))},$.\u0275prov=T.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),L})()},742:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="content_reactions",p._ID="_id",p.COLUMN_NAME_CONTENT_IDENTIFIER="content_identifier",p.COLUMN_NAME_REACTION_IDENTIFIER="reaction_identifier",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL"+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.insertQueryWithColoumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_CONTENT_IDENTIFIER},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?)`,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p}(S||{})},532:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_SOURCE="source",p.COLUMN_NAME_SOURCE_TYPE="source_type",p.COLUMN_NAME_METADATA="metadata",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+NaN+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_METADATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_SOURCE},\n ${p.COLUMN_NAME_SOURCE_TYPE},\n ${p.COLUMN_NAME_METADATA},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?,?,?)`,p}(S||{})},5396:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="recently_viewed_content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_CONTENT_IDENTIFIER="content_identifier",p.COLUMN_NAME_CONTENT_METADATA="content_metadata",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_MIME_TYPE="mime_type",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY"+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_METADATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MIME_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.deleteTable=()=>"DROP TABLE IF EXISTS"+p.TABLE_NAME,p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_CONTENT_IDENTIFIER},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_CONTENT_METADATA},\n ${p.COLUMN_NAME_MIME_TYPE},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?,?,?,?)`,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p}(S||{})},4870:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>p});var a=E(742),S=E(532);class p{static mapContentToContentEntry(c){return{[S.a.COLUMN_NAME_IDENTIFIER]:c.metaData.identifier,[S.a.COLUMN_NAME_SOURCE]:c.source,[S.a.COLUMN_NAME_SOURCE_TYPE]:c.sourceType,[S.a.COLUMN_NAME_METADATA]:JSON.stringify(c.metaData),[S.a.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(c){return[c.metaData.identifier,c.source,c.sourceType,JSON.stringify(c.metaData),Date.now()]}static mapContentReactionEntry(c,D){return{[a.S.COLUMN_NAME_CONTENT_IDENTIFIER]:c,[a.S.COLUMN_NAME_UID]:D,[a.S.COLUMN_NAME_TIME_STAMP]:Date.now()}}}},4591:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>$});var a=E(467),S=E(5083);class p{constructor(M){this.sqlite=M,this._connectionDict=new Map}initWebStore(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.initWebStore(),Promise.resolve()}catch(P){return Promise.reject(P)}})()}saveToStore(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.saveToStore({database:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}saveToLocalDisk(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.saveToLocalDisk({database:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}getFromLocalDiskToStore(M){var P=this;return(0,a.A)(function*(){const U=null==M||M;try{return yield P.sqlite.getFromLocalDiskToStore({overwrite:U}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}echo(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.echo({value:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isSecretStored(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isSecretStored();return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}setEncryptionSecret(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.setEncryptionSecret({passphrase:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}changeEncryptionSecret(M,P){var U=this;return(0,a.A)(function*(){try{return yield U.sqlite.changeEncryptionSecret({passphrase:M,oldpassphrase:P}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}clearEncryptionSecret(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.clearEncryptionSecret(),Promise.resolve()}catch(P){return Promise.reject(P)}})()}checkEncryptionSecret(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.checkEncryptionSecret({passphrase:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}addUpgradeStatement(M,P){var U=this;return(0,a.A)(function*(){try{return M.endsWith(".db")&&(M=M.slice(0,-3)),yield U.sqlite.addUpgradeStatement({database:M,upgrade:P}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}createConnection(M,P,U,j,W){var ie=this;return(0,a.A)(function*(){try{M.endsWith(".db")&&(M=M.slice(0,-3)),yield ie.sqlite.createConnection({database:M,encrypted:P,mode:U,version:j,readonly:W});const me=new O(M,W,ie.sqlite);return ie._connectionDict.set(W?`RO_${M}`:`RW_${M}`,me),Promise.resolve(me)}catch(me){return Promise.reject(me)}})()}closeConnection(M,P){var U=this;return(0,a.A)(function*(){try{return M.endsWith(".db")&&(M=M.slice(0,-3)),yield U.sqlite.closeConnection({database:M,readonly:P}),U._connectionDict.delete(P?`RO_${M}`:`RW_${M}`),Promise.resolve()}catch(j){return Promise.reject(j)}})()}isConnection(M,P){var U=this;return(0,a.A)(function*(){const j={};return M.endsWith(".db")&&(M=M.slice(0,-3)),j.result=U._connectionDict.has(P?`RO_${M}`:`RW_${M}`),Promise.resolve(j)})()}retrieveConnection(M,P){var U=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));const j=P?`RO_${M}`:`RW_${M}`;if(U._connectionDict.has(j)){const W=U._connectionDict.get(j);return typeof W<"u"?Promise.resolve(W):Promise.reject(`Connection ${M} is undefined`)}return Promise.reject(`Connection ${M} does not exist`)})()}getNCDatabasePath(M,P){var U=this;return(0,a.A)(function*(){try{const j=yield U.sqlite.getNCDatabasePath({path:M,database:P});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}createNCConnection(M,P){var U=this;return(0,a.A)(function*(){try{yield U.sqlite.createNCConnection({databasePath:M,version:P});const j=new O(M,!0,U.sqlite);return U._connectionDict.set(`RO_${M})`,j),Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}closeNCConnection(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.closeNCConnection({databasePath:M}),P._connectionDict.delete(`RO_${M})`),Promise.resolve()}catch(U){return Promise.reject(U)}})()}isNCConnection(M){var P=this;return(0,a.A)(function*(){const U={};return U.result=P._connectionDict.has(`RO_${M})`),Promise.resolve(U)})()}retrieveNCConnection(M){var P=this;return(0,a.A)(function*(){if(P._connectionDict.has(M)){const j=P._connectionDict.get(`RO_${M})`);return typeof j<"u"?Promise.resolve(j):Promise.reject(`Connection ${M} is undefined`)}return Promise.reject(`Connection ${M} does not exist`)})()}isNCDatabase(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.isNCDatabase({databasePath:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}retrieveAllConnections(){var M=this;return(0,a.A)(function*(){return M._connectionDict})()}closeAllConnections(){var M=this;return(0,a.A)(function*(){const P=new Map;try{for(const U of M._connectionDict.keys()){const j=U.substring(3),W="RO_"===U.substring(0,3);yield M.sqlite.closeConnection({database:j,readonly:W}),P.set(U,null)}for(const U of P.keys())M._connectionDict.delete(U);return Promise.resolve()}catch(U){return Promise.reject(U)}})()}checkConnectionsConsistency(){var M=this;return(0,a.A)(function*(){try{const P=[...M._connectionDict.keys()],U=[],j=[];for(const ie of P)U.push(ie.substring(0,2)),j.push(ie.substring(3));const W=yield M.sqlite.checkConnectionsConsistency({dbNames:j,openModes:U});return W.result||(M._connectionDict=new Map),Promise.resolve(W)}catch(P){return M._connectionDict=new Map,Promise.reject(P)}})()}importFromJson(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.importFromJson({jsonstring:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isJsonValid(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.isJsonValid({jsonstring:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}copyFromAssets(M){var P=this;return(0,a.A)(function*(){const U=null==M||M;try{return yield P.sqlite.copyFromAssets({overwrite:U}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}getFromHTTPRequest(M,P){var U=this;return(0,a.A)(function*(){const j=null==P||P;try{return yield U.sqlite.getFromHTTPRequest({url:M,overwrite:j}),Promise.resolve()}catch(W){return Promise.reject(W)}})()}isDatabaseEncrypted(M){var P=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));try{const U=yield P.sqlite.isDatabaseEncrypted({database:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isInConfigEncryption(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isInConfigEncryption();return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}isInConfigBiometricAuth(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isInConfigBiometricAuth();return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}isDatabase(M){var P=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));try{const U=yield P.sqlite.isDatabase({database:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}getDatabaseList(){var M=this;return(0,a.A)(function*(){try{const U=(yield M.sqlite.getDatabaseList()).values;return U.sort(),Promise.resolve({values:U})}catch(P){return Promise.reject(P)}})()}getMigratableDbList(M){var P=this;return(0,a.A)(function*(){const U=M||"default";try{const j=yield P.sqlite.getMigratableDbList({folderPath:U});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}addSQLiteSuffix(M,P){var U=this;return(0,a.A)(function*(){const j=M||"default",W=P||[];try{const ie=yield U.sqlite.addSQLiteSuffix({folderPath:j,dbNameList:W});return Promise.resolve(ie)}catch(ie){return Promise.reject(ie)}})()}deleteOldDatabases(M,P){var U=this;return(0,a.A)(function*(){const j=M||"default",W=P||[];try{const ie=yield U.sqlite.deleteOldDatabases({folderPath:j,dbNameList:W});return Promise.resolve(ie)}catch(ie){return Promise.reject(ie)}})()}moveDatabasesAndAddSuffix(M,P){var U=this;return(0,a.A)(function*(){return U.sqlite.moveDatabasesAndAddSuffix({folderPath:M||"default",dbNameList:P||[]})})()}}class O{constructor(M,P,U){this.dbName=M,this.readonly=P,this.sqlite=U}getConnectionDBName(){return this.dbName}getConnectionReadOnly(){return this.readonly}open(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.open({database:M.dbName,readonly:M.readonly}),Promise.resolve()}catch(P){return Promise.reject(P)}})()}close(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.close({database:M.dbName,readonly:M.readonly}),Promise.resolve()}catch(P){return Promise.reject(P)}})()}beginTransaction(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.beginTransaction({database:M.dbName});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}commitTransaction(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.commitTransaction({database:M.dbName});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}rollbackTransaction(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.rollbackTransaction({database:M.dbName});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}isTransactionActive(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isTransactionActive({database:M.dbName});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}loadExtension(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.loadExtension({database:P.dbName,path:M,readonly:P.readonly}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}enableLoadExtension(M){var P=this;return(0,a.A)(function*(){try{return yield P.sqlite.enableLoadExtension({database:P.dbName,toggle:M,readonly:P.readonly}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}getUrl(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.getUrl({database:M.dbName,readonly:M.readonly});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}getVersion(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.getVersion({database:M.dbName,readonly:M.readonly});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}getTableList(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.getTableList({database:M.dbName,readonly:M.readonly});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}execute(M,P=!0,U=!0){var j=this;return(0,a.A)(function*(){try{if(j.readonly)return Promise.reject("not allowed in read-only mode");{const W=yield j.sqlite.execute({database:j.dbName,statements:M,transaction:P,readonly:!1,isSQL92:U});return Promise.resolve(W)}}catch(W){return Promise.reject(W)}})()}query(M,P,U=!0){var j=this;return(0,a.A)(function*(){let W;try{return W=P&&P.length>0?yield j.sqlite.query({database:j.dbName,statement:M,values:P,readonly:j.readonly,isSQL92:!0}):yield j.sqlite.query({database:j.dbName,statement:M,values:[],readonly:j.readonly,isSQL92:U}),W=yield j.reorderRows(W),Promise.resolve(W)}catch(ie){return Promise.reject(ie)}})()}run(M,P,U=!0,j="no",W=!0){var ie=this;return(0,a.A)(function*(){let me;try{return ie.readonly?Promise.reject("not allowed in read-only mode"):(me=P&&P.length>0?yield ie.sqlite.run({database:ie.dbName,statement:M,values:P,transaction:U,readonly:!1,returnMode:j,isSQL92:!0}):yield ie.sqlite.run({database:ie.dbName,statement:M,values:[],transaction:U,readonly:!1,returnMode:j,isSQL92:W}),me.changes=yield ie.reorderRows(me.changes),Promise.resolve(me))}catch(te){return Promise.reject(te)}})()}executeSet(M,P=!0,U="no",j=!0){var W=this;return(0,a.A)(function*(){let ie;try{return W.readonly?Promise.reject("not allowed in read-only mode"):(ie=yield W.sqlite.executeSet({database:W.dbName,set:M,transaction:P,readonly:!1,returnMode:U,isSQL92:j}),ie.changes=yield W.reorderRows(ie.changes),Promise.resolve(ie))}catch(me){return Promise.reject(me)}})()}isExists(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isDBExists({database:M.dbName,readonly:M.readonly});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}isTable(M){var P=this;return(0,a.A)(function*(){try{const U=yield P.sqlite.isTableExists({database:P.dbName,table:M,readonly:P.readonly});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isDBOpen(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.isDBOpen({database:M.dbName,readonly:M.readonly});return Promise.resolve(P)}catch(P){return Promise.reject(P)}})()}delete(){var M=this;return(0,a.A)(function*(){try{return M.readonly?Promise.reject("not allowed in read-only mode"):(yield M.sqlite.deleteDatabase({database:M.dbName,readonly:!1}),Promise.resolve())}catch(P){return Promise.reject(P)}})()}createSyncTable(){var M=this;return(0,a.A)(function*(){try{if(M.readonly)return Promise.reject("not allowed in read-only mode");{const P=yield M.sqlite.createSyncTable({database:M.dbName,readonly:!1});return Promise.resolve(P)}}catch(P){return Promise.reject(P)}})()}setSyncDate(M){var P=this;return(0,a.A)(function*(){try{return P.readonly?Promise.reject("not allowed in read-only mode"):(yield P.sqlite.setSyncDate({database:P.dbName,syncdate:M,readonly:!1}),Promise.resolve())}catch(U){return Promise.reject(U)}})()}getSyncDate(){var M=this;return(0,a.A)(function*(){try{const P=yield M.sqlite.getSyncDate({database:M.dbName,readonly:M.readonly});let U="";return P.syncDate>0&&(U=new Date(1e3*P.syncDate).toISOString()),Promise.resolve(U)}catch(P){return Promise.reject(P)}})()}exportToJson(M,P=!1){var U=this;return(0,a.A)(function*(){try{const j=yield U.sqlite.exportToJson({database:U.dbName,jsonexportmode:M,readonly:U.readonly,encrypted:P});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}deleteExportedRows(){var M=this;return(0,a.A)(function*(){try{return M.readonly?Promise.reject("not allowed in read-only mode"):(yield M.sqlite.deleteExportedRows({database:M.dbName,readonly:!1}),Promise.resolve())}catch(P){return Promise.reject(P)}})()}executeTransaction(M,P=!0){var U=this;return(0,a.A)(function*(){let j=0,W=!1;if(U.readonly)return Promise.reject("not allowed in read-only mode");if(yield U.sqlite.beginTransaction({database:U.dbName}),W=yield U.sqlite.isTransactionActive({database:U.dbName}),!W)return Promise.reject("After Begin Transaction, no transaction active");try{for(const te of M){if("object"!=typeof te||!("statement"in te))throw new Error("Error a task.statement must be provided");if("values"in te&&te.values&&te.values.length>0){const se=te.statement.toUpperCase().includes("RETURNING")?"all":"no",g=yield U.sqlite.run({database:U.dbName,statement:te.statement,values:te.values,transaction:!1,readonly:!1,returnMode:se,isSQL92:P});if(g.changes.changes<0)throw new Error("Error in transaction method run ");j+=g.changes.changes}else{const se=yield U.sqlite.execute({database:U.dbName,statements:te.statement,transaction:!1,readonly:!1});if(se.changes.changes<0)throw new Error("Error in transaction method execute ");j+=se.changes.changes}}return j+=(yield U.sqlite.commitTransaction({database:U.dbName})).changes.changes,Promise.resolve({changes:{changes:j}})}catch(ie){const me=ie.message?ie.message:ie;return yield U.sqlite.rollbackTransaction({database:U.dbName}),Promise.reject(me)}})()}reorderRows(M){return(0,a.A)(function*(){const P=M;if(null!=M&&M.values&&"object"==typeof M.values[0]&&Object.keys(M.values[0]).includes("ios_columns")){const U=M.values[0].ios_columns,j=[];for(let W=1;WE.e(4612).then(E.bind(E,4612)).then(L=>new L.CapacitorSQLiteWeb),electron:()=>window.CapacitorCustomPlatform.plugins.CapacitorSQLite});var D=E(56),C=E(1503),_=E(2798),F=E(5396),B=E(2814),m=E(532),T=E(5870),A=E(742),w=E(4999),R=E(4438);let $=(()=>{var L;class M{constructor(){}initializePlugin(){var U=this;return(0,a.A)(function*(){return U.platform=S.Ii.getPlatform(),U.sqlitePlugin=c,U.sqliteConnection=new p(U.sqlitePlugin),"web"===U.platform&&(yield U.initWebStore()),yield U.openDatabase(D.B$.dbName,!1,"no-encryption",D.B$.version,!1),yield U.createTable(B.C.getCreateEntry()),yield U.createTable(T.K.getCreateEntry()),yield U.createTable(m.a.getCreateEntry()),yield U.createTable(F.a.getCreateEntry()),yield U.createTable(_.J.getCreateEntry()),yield U.createTable(C.y.getCreateEntry()),yield U.createTable(A.S.getCreateEntry()),yield U.createTable(w.O.getCreateEntry()),!0})()}initWebStore(){var U=this;return(0,a.A)(function*(){try{yield U.sqliteConnection.initWebStore()}catch(j){return Promise.reject(`initWebStore: ${j}`)}})()}openDatabase(U,j,W,ie,me){var te=this;return(0,a.A)(function*(){let se;const g=(yield te.sqliteConnection.checkConnectionsConsistency()).result;let n=(yield te.sqliteConnection.isConnection(U,me)).result;return se=g&&n?yield te.sqliteConnection.retrieveConnection(U,me):yield te.sqliteConnection.createConnection(U,j,W,ie,me),yield se.open(),te.sqliteDBConnection=se,!0})()}closeConnection(U,j){var W=this;return(0,a.A)(function*(){const ie=j||!1;return yield W.sqliteConnection.closeConnection(U,ie)})()}createTable(U){var j=this;return(0,a.A)(function*(){try{const W=(yield j.sqliteDBConnection.query(U)).values;return W.length>0?W:null}catch(W){return Promise.reject(`create table err: ${W.message?W.message:W}`)}})()}executeQuery(U){var j=this;return(0,a.A)(function*(){try{const W=(yield j.sqliteDBConnection.query(U)).values;return W.length>0?W:null}catch(W){return Promise.reject(`select table err: ${W.message?W.message:W}`)}})()}executeSet(U){var j=this;return(0,a.A)(function*(){try{return yield j.sqliteDBConnection.executeSet(U)}catch(W){return Promise.reject(`create table err: ${W.message?W.message:W}`)}})()}readDbData(U,j,W){var ie=this;return(0,a.A)(function*(){try{if(j){const me=Object.keys(j)[0],te=`${U} WHERE ${me}='${j[me]}' ${W||""}`,se=(yield ie.sqliteDBConnection.query(te)).values;return se.length>0?se:null}{const me=(yield ie.sqliteDBConnection.query(U)).values;return me.length>0?me:null}}catch(me){return Promise.reject(`readDbData err: ${me.message?me.message:me}`)}})()}save(U,j,W){var ie=this;return(0,a.A)(function*(){const me=!!W,te=Object.keys(j);let n,se="",g=[];for(const o of te)g.push(j[o]);if(me){Object.keys(W);const l=yield ie.setNameForUpdate(te,g);if(0===l.length)return Promise.reject("save: update no SET");se=`${U} ${l} WHERE ${ie.getWhereStatement(W)}`,yield ie.sqliteDBConnection.query(se)}else{const o=[];for(const l of te)o.push("?");if(se=`${U} (${te.toString()}) VALUES (${o.toString()});`,n=yield ie.sqliteDBConnection.run(se,g),1!=n.changes.changes)return Promise.reject("save: insert changes != 1")}})()}remove(U,j){var W=this;return(0,a.A)(function*(){Object.keys(j);const me=`${U} WHERE ${W.getWhereStatement(j)};`;return(yield W.sqliteDBConnection.run(me)).changes})()}getWhereStatement(U){let j="";const W=Object.keys(U);for(let ie=0;ie1?(W=W.slice(0,-1),W):Promise.reject("SetNameForUpdate: length = 0")})()}}return(L=M).\u0275fac=function(U){return new(U||L)},L.\u0275prov=R.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),M})()},2814:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="telemtry",p._ID="_id",p.COLUMN_EVENT_TYPE="event_type",p.COLUMN_EVENT="event",p.COLUMN_TIMESTAMP="timestamp",p.COLUMN_PRIORITY="priority",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL"+a.K.COMMA_SEP+p.COLUMN_EVENT_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_EVENT+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_TIMESTAMP+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_PRIORITY+a.K.SPACE+a.K.INT_TYPE+")",p.readDataEntries=()=>"SELECT * FROM "+p.TABLE_NAME,p.delteFromTable=()=>"DELETE FROM "+p.TABLE_NAME+" WHERE ",p.insertData=()=>"INSERT INTO "+p.TABLE_NAME,p.update=()=>"UPDATE "+p.TABLE_NAME+" SET ",p.deleteTable=()=>"DROP TABLE IF EXISTS "+p.TABLE_NAME,p}(S||{})},8402:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>D});var a=E(467),S=E(2739),p=E(4438),O=E(8974),c=E(5402);let D=(()=>{var C;class _{constructor(B,m){this.toastController=B,this.translate=m}downlaodContent(B){var m=this;return(0,a.A)(function*(){var T;m.presentToast("Downloading ....");let A=B.metaData.artifactUrl?B.metaData.artifactUrl.split("/"):B.metaData.url.split("/"),w=null!==(T=B.metaData.artifactUrl)&&void 0!==T?T:B.metaData.url;const $=yield(yield fetch(w)).blob(),L=yield m.convertBlobToBase64($);try{return yield S.YA.mkdir({path:"downloadedContents",directory:S.__.Data}),yield m.writeFileStorage(A,L)}catch{return yield m.writeFileStorage(A,L)}})()}writeFileStorage(B,m){var T=this;return(0,a.A)(function*(){try{let A=yield S.YA.writeFile({path:`downloadedContents/${B[B.length-1]}`,data:m,directory:S.__.Data});return yield T.toast.dismiss(),A.uri?yield T.presentToast("Downloaded successfully"):yield T.presentToast("Failed to download"),setTimeout((0,a.A)(function*(){yield T.toast.dismiss()}),100),A}catch(A){console.log("e ",A)}})()}presentToast(B){var m=this;return(0,a.A)(function*(){m.toast=yield m.toastController.create({message:m.translate.instant(B),position:"bottom",color:"dark"}),yield m.toast.present()})()}convertBlobToBase64(B){return new Promise((m,T)=>{const A=new FileReader;A.onerror=T,A.onload=()=>{m(A.result)},A.readAsDataURL(B)})}}return(C=_).\u0275fac=function(B){return new(B||C)(p.KVO(O.K_),p.KVO(c.c$))},C.\u0275prov=p.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),_})()},2904:(Ce,ee,E)=>{"use strict";E.d(ee,{Gf:()=>C.G,Ux:()=>c.U,F_:()=>o,dk:()=>w.d,we:()=>_.w,at:()=>S.a,XU:()=>A,Ze:()=>l.Z,MK:()=>f,hs:()=>F.h,XI:()=>R.X,Sc:()=>$.S,n$:()=>a.n,q4:()=>B.q,H0:()=>O.H,a0:()=>D.a});var a=E(3486),S=E(4591),O=(E(6011),E(1765)),c=E(3568),D=E(2342),C=E(2700),_=E(3696),F=E(8014),B=E(7594),m=E(467),T=E(4438);let A=(()=>{var k;class I{constructor(J,oe){this.apiService=J,this.preprocessService=oe}process(J){return(0,m.A)(function*(){})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(C.G),T.KVO(F.h))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})();var w=E(3871),R=E(9836),$=E(2186),L=E(3172),M=E(985),P=E(3207),U=E(6354),j=E(9437),W=E(56),ie=E(4999);class me{static mapChatToChatValues(I){return[I.identifier,I.message,I.botType,I.fromMe,I.mediaMimeType,I.mediaData,I.mediaUrl,I.duration,I.ts,I.reaction]}static mapChatToChatEntryToModel(I){return{identifier:I[ie.O.COLUMN_NAME_IDENTIFIER],message:I[ie.O.COLUMN_NAME_MESSAGE],messageType:I[ie.O.COLUMN_NAME_MEDIA_TYPE],botType:I[ie.O.COLUMN_NAME_BOT_TYPE],fromMe:I[ie.O.COLUMN_NAME_FROM_ME],mediaMimeType:I[ie.O.COLUMN_NAME_MEDIA_TYPE],mediaData:I[ie.O.COLUMN_NAME_MEDIA_DATA],mediaUrl:I[ie.O.COLUMN_NAME_MEDIA_PATH],duration:I[ie.O.COLUMN_NAME_DURATION],ts:I[ie.O.COLUMN_NAME_TIME_STAMP],reaction:I[ie.O.COLUMN_NAME_REACTIONS]}}}var te=E(2739),se=E(1626),g=E(446),n=E(5402);let o=(()=>{var k;class I{constructor(J,oe,ve){this.apiService=J,this.translate=oe,this.dbService=ve,g.g.then(De=>{this.domainConfig=De}).catch(De=>{console.error("Failed to load configuration:",De)})}getBotMessage(J,oe,ve,De){var Q=this;return(0,m.A)(function*(){let ae=Q.getBotApiPath(ve),tt={input:{},output:{format:J?"text":"audio"}};""!==J?tt.input={language:De,text:J,audio:"",context:localStorage.getItem("subDomain")+"_"+ve}:""!==oe&&(tt.input={language:De,audio:oe,text:"",context:localStorage.getItem("subDomain")+"_"+ve});let ke=(new se.Lr).set("Authorization","Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtb2JpbGVfZGV2aWNlIn0.W9cvngZh0_Y6hcGCBqS8MZOejkUxU9ptnJFji6VBHtA").set("Content-Type","application/json");const pe=ke.keys().reduce((_e,re)=>(_e[re]=ke.getAll(re),_e),{}),Ie=(new M._g.Builder).withHost(L.$.api.BASE_URL_BOT).withPath(ae).withType(M.kr.POST).withHeaders(pe).withBody(tt).withLanguge(De).build();return(0,P.s)(Q.apiService.fetch(Ie).pipe((0,U.T)(_e=>_e),(0,j.W)(_e=>{throw _e})))})()}getBotApiPath(J){switch(J){case W.Zm.STORY:case W.Zm.PARENT:case W.Zm.TEACHER:return L.$.api.BOT_ACTIVITY_API_PATH;default:return""}}saveChatMessage(J){const oe=[];return oe.push({statement:ie.O.insertQueryWithColumns(),values:me.mapChatToChatValues(J)}),this.dbService.executeSet(oe)}getAllChatMessages(J){return this.dbService.readDbData(ie.O.readQuery(),{bot_type:J}).then(oe=>{const ve=[];return oe&&oe.length>0&&oe.map(De=>{ve.push(me.mapChatToChatEntryToModel(De))}),ve})}updateMessageReactions(J,oe){return this.dbService.executeQuery(`UPDATE ${ie.O.TABLE_NAME}\n SET ${ie.O.COLUMN_NAME_REACTIONS} = ${oe}\n WHERE ${ie.O.COLUMN_NAME_IDENTIFIER} = '${J}';`)}deleteExpiredChatMessages(){var J=this;return(0,m.A)(function*(){const oe=yield te.YA.readdir({path:"",directory:te.__.Data});for(let ve=0;ve864e5&&(yield te.YA.deleteFile({path:De.uri,directory:te.__.Data})),J.dbService.executeQuery(`DELETE FROM ${ie.O.TABLE_NAME} WHERE ${ie.O.COLUMN_NAME_TIME_STAMP} <= strftime('%s', datetime('now', '-1 day'));`)}})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(C.G),T.KVO(n.c$),T.KVO(S.a))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})();var l=E(8402);const v=(0,E(5083).F3)("LocalNotifications",{web:()=>E.e(4224).then(E.bind(E,4224)).then(k=>new k.LocalNotificationsWeb)});var y=E(1413),d=E(3021),r=E(1113);let f=(()=>{var k;class I{constructor(J,oe){this.router=J,this.tabService=oe,this.notifEvent=new y.B,this.notificationEventEmitted$=this.notifEvent.asObservable()}initializeLocalNotif(J){var oe=this;return(0,m.A)(function*(){let ve=oe;try{var De,Q,ae,tt;"granted"!==(yield v.checkPermissions()).display&&(yield v.requestPermissions());let Ie={notifications:[{id:J.id,title:J.title,body:J.body,extra:J.extra,largeIcon:"res://drawable/ic_launcher",smallIcon:"res://drawable/ic_notification",schedule:{on:null===(De=J.schedule)||void 0===De?void 0:De.on,repeats:null===(Q=J.schedule)||void 0===Q?void 0:Q.repeats,every:null===(ae=J.schedule)||void 0===ae?void 0:ae.every,allowWhileIdle:null===(tt=J.schedule)||void 0===tt?void 0:tt.allowWhileIdle}}]};yield v.schedule(Ie)}catch(ke){console.log("Error on local notification ",ke)}yield v.addListener("localNotificationActionPerformed",function(){var ke=(0,m.A)(function*(pe){let Ie=ve.router.location._locationStrategy._platformLocation._location;"/parent-sakhi"!==Ie.pathname?(ve.tabService.hide(),"/"===Ie.pathname?setTimeout((0,m.A)(function*(){yield ve.router.navigate(["/parent-sakhi"],{state:{notif:pe.notification}})}),3e3):yield ve.router.navigate(["/parent-sakhi"],{state:{notif:pe.notification}})):oe.notifEvent.next(pe.notification)});return function(pe){return ke.apply(this,arguments)}}())})()}cancelNotification(J){return(0,m.A)(function*(){try{yield v.cancel({notifications:[{id:J}]})}catch(oe){console.log("Error on cancel local notification ",oe)}})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(d.Ix),T.KVO(r.q))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})()},1503:(Ce,ee,E)=>{"use strict";E.d(ee,{y:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="playlist_content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_PLAYLIST_IDENTIFIER="playlist_identifier",p.COLUMN_NAME_CONTENT_ID="content_id",p.COLUMN_NAME_CONTENT_METADATA="content_metadata",p.COLUMN_NAME_SOURCE_TYPE="type",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_PLAYLIST_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_ID+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_METADATA+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_PLAYLIST_IDENTIFIER},\n ${p.COLUMN_NAME_CONTENT_ID},\n ${p.COLUMN_NAME_CONTENT_METADATA},\n ${p.COLUMN_NAME_SOURCE_TYPE},\n ${p.COLUMN_NAME_TIME_STAMP}) \n VALUES (?,?,?,?,?,?)`,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.deleteQuery=()=>`DELETE FROM ${p.TABLE_NAME} WHERE \n ${p.COLUMN_NAME_IDENTIFIER} = ? AND \n ${p.COLUMN_NAME_PLAYLIST_IDENTIFIER} = ?`,p.deleteQueryOne=()=>`DELETE FROM ${p.TABLE_NAME}`,p.deleteTable=()=>"DROP TABLE IF EXISTS"+p.TABLE_NAME,p}(S||{})},2798:(Ce,ee,E)=>{"use strict";E.d(ee,{J:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="playlist",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_NAME="name",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_CONTENT_COUNT="content_count",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_NAME+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_COUNT+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_NAME},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_CONTENT_COUNT},\n ${p.COLUMN_NAME_TIME_STAMP}) \n VALUES (?,?,?,?,?)`,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p}(S||{})},7803:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>B});var a=E(467),S=E(2798);class p{static mapContentToPlayListEntry(T,A,w,R){return{[S.J.COLUMN_NAME_IDENTIFIER]:w,[S.J.COLUMN_NAME_NAME]:T,[S.J.COLUMN_NAME_UID]:A,[S.J.COLUMN_NAME_CONTENT_COUNT]:R,[S.J.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(T,A,w,R,$){return[T,A,w,$,R,Date.now()]}}var O=E(6421),c=E(1503),D=E(532),C=E(4870),_=E(4438),F=E(2904);let B=(()=>{var m;class T{constructor(w){this.dbService=w}createPlayList(w,R,$,L){const M=L?S.J.updateQuery():S.J.insertQuery(),P=L?{identifier:L}:void 0,U=!!L;return L||(L=(0,O.A)()),this.dbService.save(M,p.mapContentToPlayListEntry(w,R,L,$.length),P).then(()=>this.addContentToPlayList(L,$,U))}addContentToPlayList(w,R,$){var L=this;return(0,a.A)(function*(){const M=[];for(let j=0;jthis.getPlayListContents(w).then($=>Promise.resolve({identifier:R[0].identifier,name:R[0].name,uid:R[0].uid,playListcontentList:$})))}getPlayListContents(w){return this.dbService.executeQuery(`SELECT *\n FROM ${c.y.TABLE_NAME}\n WHERE ${c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER} = '${w}'\n ORDER BY ts DESC`).then($=>{const L=[];return $&&$.length&&$.map(M=>{L.push({[c.y._ID]:M[c.y._ID],[c.y.COLUMN_NAME_IDENTIFIER]:M[c.y.COLUMN_NAME_IDENTIFIER],[c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER]:M[c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER],[c.y.COLUMN_NAME_CONTENT_ID]:M[c.y.COLUMN_NAME_CONTENT_ID],[c.y.COLUMN_NAME_CONTENT_METADATA]:M[c.y.COLUMN_NAME_CONTENT_METADATA],[c.y.COLUMN_NAME_SOURCE_TYPE]:M[c.y.COLUMN_NAME_SOURCE_TYPE],[c.y.COLUMN_NAME_TIME_STAMP]:M[c.y.COLUMN_NAME_TIME_STAMP]})}),L})}deletePlayList(w){return this.dbService.remove(S.J.deleteQuery(),{identifier:w}).then(()=>this.dbService.remove(c.y.deleteQueryOne(),{playlist_identifier:w}))}deleteContentFromPlayList(w,R){const $=[];return R.map(L=>{$.push({statement:c.y.deleteQuery(),values:[L,w]})}),this.dbService.executeSet($)}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.at))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},9836:(Ce,ee,E)=>{"use strict";E.d(ee,{X:()=>F});var a=E(467),S=E(5293),p=E(5083),O=E(9182);const c=(0,p.F3)("Haptics",{web:()=>E.e(3558).then(E.bind(E,3558)).then(B=>new B.HapticsWeb)});var D=E(1413),C=E(4438),_=E(8974);let F=(()=>{var B;class m{constructor(A){this.gestureCtrl=A,this.searchEvent=new D.B,this.searchEventRecorded$=this.searchEvent.asObservable(),this.botEvent=new D.B,this.botEventRecorded$=this.botEvent.asObservable(),this.recordEvent=new D.B,this.startEndEvent$=this.recordEvent.asObservable(),this.recording=!1,this.cancelRecording=!1,this.duration=0,this.durationDisplay=""}ngOnInit(){}gestureControl(A){this.gestureCtrl.create({el:A.nativeElement,threshold:250,gestureName:"swipe",direction:"x",onStart:R=>{c.impact({style:O.kn.Light})},onMove:R=>{c.impact({style:O.kn.Light}),this.recordEvent.next(!1),this.cancelRecording=!0},onEnd:R=>{c.impact({style:O.kn.Light}),this.recording=!1,this.recordEvent.next(!1)}},!0).enable()}startRecognition(A){var w=this;return(0,a.A)(function*(){w.cancelRecording=!1,S.R.startRecording(),c.impact({style:O.kn.Light}),!w.recording&&(w.recording=!0,w.calculation(A),w.recordEvent.next(!0))})()}calculation(A){if(!this.recording)return this.duration=0,void(this.durationDisplay="");this.duration+=1;const w=Math.floor(this.duration/60),R=(this.duration%60).toString().padStart(2,"0");this.durationDisplay=`${w}:${R}`,setTimeout(()=>{this.calculation(A)},1e3)}stopRecognition(A){var w=this;return(0,a.A)(function*(){if(c.impact({style:O.kn.Light}),w.recordEvent.next(!1),w.recording)return yield S.R.stopRecording().then(function(){var R=(0,a.A)(function*($){if(w.recording=!1,!w.cancelRecording)return"search"==A?$.value.recordDataBase64:$});return function($){return R.apply(this,arguments)}}())})()}}return(B=m).\u0275fac=function(A){return new(A||B)(C.KVO(_.wH))},B.\u0275prov=C.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}),m})()},2186:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>B});var a=E(467),S=E(3207),p=E(6354),O=E(9437),c=E(3172),D=E(985),C=E(446),_=E(4438),F=E(2700);let B=(()=>{var m;class T{constructor(w){this.apiService=w,C.g.then(R=>{this.configVariables=R}).catch(R=>{console.error("Failed to load configuration:",R)})}postSearchContext(w,R){var $=this;return(0,a.A)(function*(){let L={};L=R?{audio:w.text,language:w.currentLang,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}}:{name:w.text,language:w.currentLang,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}};let M=JSON.stringify(L);const P=(new D._g.Builder).withHost(c.$.api.BASE_URL).withPath(c.$.api.CONTENT_SEARCH_API).withType(D.kr.POST).withBody(M).withBearerToken(!0).withLanguge(w.currentLang).build();return(0,S.s)($.apiService.fetch(P).pipe((0,p.T)(U=>U.body),(0,O.W)(U=>{throw U})))})()}postContentSearch(w,R){let $={name:null==w?void 0:w.name,category:null==w?void 0:w.category,language:R,request:{orderBy:{mimetype:"video/x-youtube"},filters:this.configVariables.defaultContentFilter[0]}};const L=(new D._g.Builder).withHost(c.$.api.BASE_URL).withPath(c.$.api.CONTENT_SEARCH_API).withType(D.kr.POST).withBody($).withBearerToken(!0).withLanguge(R).build();return(0,S.s)(this.apiService.fetch(L).pipe((0,p.T)(M=>M.body.result),(0,O.W)(M=>{throw M})))}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.G))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},8014:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>p});var a=E(1413),S=E(4438);let p=(()=>{var O;class c{constructor(){this.sourceEvent=new a.B,this.sourceProcessEmitted$=this.sourceEvent.asObservable()}sunbirdSrcProcess(C){this.contentConfig=[],C.forEach(_=>{this.contentConfig.push(_)}),this.sourceEvent.next(this.contentConfig)}}return(O=c).\u0275fac=function(C){return new(C||O)},O.\u0275prov=S.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),c})()},7594:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>c});var a=E(467),S=E(4438),p=E(2700),O=E(8014);let c=(()=>{var D;class C{constructor(F,B){this.apiService=F,this.preprocessService=B}process(F,B){return(0,a.A)(function*(){})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.G),S.KVO(O.h))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},3486:(Ce,ee,E)=>{"use strict";E.d(ee,{n:()=>c});var a=E(467);const p=(0,E(5083).F3)("Preferences",{web:()=>E.e(2924).then(E.bind(E,2924)).then(D=>new D.PreferencesWeb)});var O=E(4438);let c=(()=>{var D;class C{constructor(){}setData(F,B){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.set({key:F,value:B}).then(m=>!0).catch(m=>m)})()}getData(F){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.get({key:F}).then(B=>B.value).catch(B=>B)})()}removeData(F){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.remove({key:F}).then(B=>!0).catch(B=>B)})()}getStorageKeys(){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.keys().then(F=>F).catch(F=>F)})()}clearStorage(){return(0,a.A)(function*(){yield p.configure({group:C.groupPreferenceName}),yield p.clear().then(F=>!0).catch(F=>F)})()}}return(D=C).groupPreferenceName="DJPData",D.\u0275fac=function(F){return new(F||D)},D.\u0275prov=O.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},1113:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>S});var a=E(4438);let S=(()=>{var p;class O{constructor(){}hide(){let D=document.querySelectorAll(".tabbar"),C=document.querySelectorAll(".home-screen"),_=document.querySelectorAll(".scroll-content");null!==D&&null!==C&&(Object.keys(D).map(F=>{"translateY(5rem)"!==D[F].style.transform&&(D[F].style.transform="translateY(5rem)")}),Object.keys(C).map(F=>{"translateY(5.2rem)"!==C[F].style.transform&&(C[F].style.transform="translateY(5.2rem)")}),setTimeout(()=>{Object.keys(_).map(F=>{_[F].style.marginBottom="0"})}))}show(){let D=document.querySelectorAll(".tabbar"),C=document.querySelectorAll(".home-screen");null!==D&&null!==C&&(Object.keys(C).map(_=>{"rotate(-45deg)"!==C[_].style.transform&&(C[_].style.transform="rotate(-45deg)")}),Object.keys(D).map(_=>{"translateY(0px)"!==D[_].style.transform&&(D[_].style.transform="translateY(0px)")}))}}return(p=O).\u0275fac=function(D){return new(D||p)},p.\u0275prov=a.jDH({token:p,factory:p.\u0275fac}),O})()},5870:(Ce,ee,E)=>{"use strict";E.d(ee,{K:()=>S});var a=E(56),S=function(p){return p._ID="_id",p.TABLE_NAME="processed_telemetry",p.COLUMN_NAME_MSG_ID="msg_id",p.COLUMN_NAME_DATA="data",p.COLUMN_NAME_NUMBER_OF_EVENTS="event_count",p.COLUMN_NAME_PRIORITY="priority",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY,"+p.COLUMN_NAME_MSG_ID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_DATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_NUMBER_OF_EVENTS+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_PRIORITY+a.K.SPACE+a.K.INT_TYPE+" )",p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.getDeleteEntry=()=>"DROP TABLE IF EXISTS "+p.TABLE_NAME,p}(S||{})},2918:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>C});var a=E(8855),p=E(3172),O=E(3649),c=E(4438),D=E(2904);let C=(()=>{var _;class F{constructor(m){this.utilService=m}decorate(m,T,A,w,R,$,L){return m.mid||(m.mid=`${m.eid}:${a(JSON.stringify(m)).toString()}`),this.patchActor(m,A),this.patchContext(m,T,A,R,$,L),m.context.cdata&&(m.context.cdata=[...m.context.cdata,{id:T,type:"UserSession"}]),m}patchActor(m,T){m.actor||(m.actor=new O.Ag);const A=m.actor;A.id||(A.id=T),A.type||(A.type=O.Ag.TYPE_USER)}patchContext(m,T,A,w,R,$){m.context||(m.context=new O.ob),m.context=this.buildContext(T,A,R,m.context,w,$)}patchPData(m,T){m.pdata||(m.pdata=new O.zE);const A=m.pdata;A.id||(A.id=p.$.telmetry.PRODUCER_ID),A.pid=p.$.telmetry.PRODUCER_PID,A.ver||(A.ver=T)}prepare(m,T){return{event:JSON.stringify(m),event_type:m.eid,timestamp:Date.now(),priority:1}}buildContext(m,T,A,w,R,$){return w.channel=A,this.patchPData(w,R),w.env||(w.env="app"),w.sid=m,w.did=T,w.cdata=w.cdata?w.cdata.concat($||[]):$||[],w}}return(_=F).\u0275fac=function(m){return new(m||_)(c.KVO(D.a0))},_.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),F})()},3649:(Ce,ee,E)=>{"use strict";E.d(ee,{$i:()=>C,Ag:()=>a,Q$:()=>_,ob:()=>S,zE:()=>c});let a=(()=>{var F;class B{constructor(){this.id="",this.type=B.TYPE_USER}}return(F=B).TYPE_SYSTEM="System",F.TYPE_USER="User",B})();class S{}class c{ProducerData(){this.id="",this.pid="",this.ver=""}}class C{constructor(B,m,T){this.id=B,this.type=m,this.version=T}setRollup(B){this.rollup=B}}var _;!function(F){let B=(()=>{class L{constructor(P){this.ver=L.TELEMETRY_VERSION,this.eid=P,this.ets=Date.now(),this.actor=new a,this.context=new S,this.edata={}}}return L.TELEMETRY_VERSION="3.0",L})();F.Telemetry=B,F.Interact=(()=>{class L extends B{constructor(P,U,j,W,ie,me,te,se="",g="",n="",o={},l=[]){super(L.EID),this.edata={type:P,subtype:U,...j?{id:j}:{},...W?{pageid:W}:{},extra:{...ie?{pos:ie}:{},...me?{values:[me]}:{}}},this.context.cdata=l,this.context.env=te,se&&g&&(this.object=new C(se,g,n),o&&(this.object.rollup=o||{}))}}return L.EID="INTERACT",L})(),F.End=(()=>{class L extends B{constructor(P,U,j,W,ie,me,te="",se="",g="",n={},o=[]){super(L.EID),this.edata={...P?{type:P}:{},...j?{duration:j}:{},...W?{pageid:W}:{},...U?{mode:U}:{},...ie?{summaryList:ie}:{}},this.context.cdata=o,this.context.env=me,this.object=new C(te,se,g),this.object.rollup=n}}return L.EID="END",L})(),F.Start=(()=>{class L extends B{constructor(P="",U,j,W,ie,me,te,se="",g="",n="",o={},l=[]){super(L.EID),this.edata={...P?{type:P}:{type:""},...U?{dspec:U}:{},...j?{loc:j}:{},...W?{mode:W}:{},...ie?{mode:W}:{},...me?{pageid:me}:{}},this.context.cdata=l,this.context.env=te,se&&g&&(this.object=new C(se,g,n),o&&(this.object.rollup=o||{}))}}return L.EID="START",L})(),F.Impression=(()=>{class L extends B{constructor(P,U,j,W,ie,me="",te="",se="",g={},n=[]){super(L.EID),this.edata={...P?{type:P}:{type:""},...U?{subtype:U}:{},...j?{pageid:j}:{},...j?{uri:j}:{},...W?{visits:W}:{}},this.context.cdata=n,this.context.env=ie,me&&te&&(this.object=new C(me,te,se),g&&(this.object.rollup=g||{}))}}return L.EID="IMPRESSION",L})(),F.Search=(()=>{class L extends B{constructor(P,U,j,W,ie,me,te=0,se=[]){super(L.EID),this.edata={...P?{type:P}:{type:""},...U?{query:U}:{},...j?{filters:j}:{},...W?{sort:W}:{},...me?{correlationid:me}:{},...te?{size:te}:{}},this.context.cdata=se,this.context.env=ie}}return L.EID="SEARCH",L})()}(_||(_={}))},5173:(Ce,ee,E)=>{"use strict";E.d(ee,{O:()=>_});class a{constructor(){this.pos=[]}}class S{constructor(){this.env=""}}class p{constructor(){this.env=""}}class O{constructor(){this.env=""}}class c{}var D=E(4438),C=E(2904);let _=(()=>{var F;class B{constructor(T){this.telemetryService=T}generateInteractTelemetry(T,A,w,R,$,L,M,P,U){const j=new a;j.type=T,j.subType=A,j.pageId=R,j.id=U||R,j.env=w,null!==L&&(j.valueMap=L),void 0!==M&&(j.rollup=M),void 0!==P&&(j.correlationData=P),$&&$.id&&(j.objId=$.id),$&&$.type&&(j.objType=$.type),$&&$.version&&(j.objVer=$.version+""),this.telemetryService.interact(j).subscribe()}generateImpressionTelemetry(T,A,w,R,$,L,M,P,U){const j=new S;j.type=T,j.subType=A,j.pageId=w,j.env=R,j.objId=$||"",j.objType=L||"",j.objVer=M?M+"":"",void 0!==P&&(j.rollup=P),void 0!==U&&(j.correlationData=U),this.telemetryService.impression(j).subscribe()}generateEndTelemetry(T,A,w,R,$,L,M,P,U){const j=new O;j.type=T,j.pageId=w,j.env=R,j.mode=A,P&&(j.duration=P),$&&$.id&&(j.objId=$.id),$&&$.type&&(j.objType=$.type),$&&$.version&&(j.objVer=$.version+""),L&&(j.rollup=L),M&&(j.correlationData=M),U&&(j.summaryList=U),this.telemetryService.end(j).subscribe()}generateStartTelemetry(T,A,w,R,$){const L=new p;L.type=T,L.pageId=A,L.mode="play",w&&w.id&&(L.objId=w.id),w&&w.type&&(L.objType=w.type),w&&w.version&&(L.objVer=w.version+""),void 0!==R&&(L.rollup=R),void 0!==$&&(L.correlationData=$),this.telemetryService.start(L).subscribe()}generateSearchTelemetry(T,A,w,R,$,L,M,P){const U=new c;U.type=T,U.query=A,U.env=R,U.size=w,$&&(U.filters=$),L&&(U.sort=L),void 0!==P&&(U.correlationData=P),M&&(U.correlationid=M),this.telemetryService.search(U).subscribe()}genererateAppStartTelemetry(T){const A=new p;A.type="app",A.env="home",A.deviceSpecification=T,this.telemetryService.start(A).subscribe()}}return(F=B).\u0275fac=function(T){return new(T||F)(D.KVO(C.H0))},F.\u0275prov=D.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),B})()},1765:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>f});var a=E(2814),S=E(1985),p=E(8750);const{isArray:O}=Array;var D=E(983),C=E(4360),_=E(9326);var B=E(6648),m=E(3028),T=E(9030),A=E(7673),w=E(9316),R=E(9974),$=E(5412);function L(k,I=1/0,V){return I=(I||0)<1?1/0:I,(0,R.N)((J,oe)=>(0,$.h)(J,oe,k,I,void 0,!0,V))}var M=E(6649);function P(k,I){return(0,R.N)((0,M.S)(k,I,arguments.length>=2,!1,!0))}var U=E(3703),j=E(6354),W=E(9437),ie=E(7374),me=E(5870),te=E(6421);class se{process(I){if("object"!=typeof I)throw new Error('TelemetryEntriesToStringPreprocessor expects input of type "object"');return JSON.stringify(I)}}var g=E(3172),n=E(985);class o{constructor(I,V){this.dbService=I,this.apiService=V,this.preprocessors=[],this.preprocessors=[new se]}handle(I){return this.hasTelemetryThresholdCrossed().pipe((0,m.Z)(V=>V?this.processEventsBatch(I).pipe(L(J=>J?this.processEventsBatch(I):D.w),P(()=>{},void 0),(0,m.Z)(()=>this.handleProcessedEventsBatch()),L(J=>J.syncedEventCount?this.handleProcessedEventsBatch():D.w),P((J,oe)=>({syncedEventCount:J.syncedEventCount+oe.syncedEventCount,syncTime:Date.now(),syncedFileSize:J.syncedFileSize+oe.syncedFileSize,error:oe.error?oe.error:J.error}),{syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})):(0,A.of)({syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})))}processEventsBatch(I){return this.fetchEvents().pipe((0,m.Z)(V=>V?this.processEvents(V,I).pipe((0,m.Z)(J=>this.persistProcessedEvents(J,J.processedEventsSize).pipe((0,m.Z)(()=>this.deleteEvents(V)),(0,U.u)(V.length)))):(0,A.of)(0)))}hasTelemetryThresholdCrossed(){return(0,B.H)(this.dbService.executeQuery(`\n SELECT count(*) as COUNT FROM ${a.C.TABLE_NAME}`)).pipe((0,j.T)(I=>!0))}fetchEvents(){return(0,B.H)(this.dbService.executeQuery(`\n SELECT * FROM ${a.C.TABLE_NAME}\n WHERE ${a.C.COLUMN_PRIORITY} = (SELECT MIN (${a.C.COLUMN_PRIORITY})\n FROM ${a.C.TABLE_NAME})\n ORDER BY ${a.C.COLUMN_TIMESTAMP}\n LIMIT 200`))}processEvents(I,V){if(!I)return(0,A.of)({processedEventsSize:0});const J=(0,te.A)();return(0,A.of)({processedEvents:this.preprocessors.reduce((oe,ve)=>ve.process(oe),{id:"ekstep.telemetry",ver:"1.0",ts:ie().format("YYYY-MM-DDTHH:mm:ss[Z]"),events:I.map(oe=>JSON.parse(oe[a.C.COLUMN_EVENT])),params:{did:V,msgid:J,key:"",requesterId:""}}),processedEventsSize:I.length,messageId:J})}persistProcessedEvents({processedEvents:I,messageId:V},J){return I?(0,B.H)(this.dbService.save(me.K.insertQuery(),{[me.K.COLUMN_NAME_MSG_ID]:V,[me.K.COLUMN_NAME_NUMBER_OF_EVENTS]:J,[me.K.COLUMN_NAME_PRIORITY]:1,[me.K.COLUMN_NAME_DATA]:I})).pipe((0,U.u)(void 0)):(0,A.of)(void 0)}deleteEvents(I){return I.length?(0,B.H)(this.dbService.executeQuery(`\n DELETE FROM ${a.C.TABLE_NAME}\n WHERE ${a.C._ID} IN (${I.map(V=>V[a.C._ID]).join(",")})\n `)):(0,A.of)(void 0)}handleProcessedEventsBatch(I){return this.fetchProcessedEventsBatch().pipe((0,m.Z)(V=>this.syncProcessedEvent(V).pipe((0,m.Z)(J=>this.deleteProcessedEvent(V).pipe((0,U.u)(J||{syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})))))).pipe()}fetchProcessedEventsBatch(){return(0,B.H)(this.dbService.executeQuery(`SELECT * FROM ${me.K.TABLE_NAME} LIMIT 1`)).pipe((0,j.T)(I=>I&&I[0]))}syncProcessedEvent(I){if(!I)return(0,A.of)(void 0);const V=(new n._g.Builder).withHost(g.$.api.TELEMETRY_BASE_URL).withPath(g.$.api.TELEMETRY_SYNC).withType(n.kr.POST).withBearerToken(!0).withBody(JSON.parse(I[me.K.COLUMN_NAME_DATA])).build();return this.apiService.fetch(V).pipe((0,j.T)(()=>({syncedEventCount:I[me.K.COLUMN_NAME_NUMBER_OF_EVENTS],syncTime:Date.now(),syncedFileSize:0})),(0,W.W)(J=>(0,A.of)({syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0,error:J})))}deleteProcessedEvent(I){return I?(0,B.H)(this.dbService.executeQuery(`DELETE FROM ${me.K.TABLE_NAME} WHERE ${me.K._ID}='${I[me.K._ID]}'`)):(0,A.of)(void 0)}}var l=E(3649),s=E(4438),h=E(4591),v=E(3486),y=E(2342),d=E(2700),r=E(2918);let f=(()=>{var k;class I{constructor(J,oe,ve,De,Q){this.dbService=J,this.storageService=oe,this.utilService=ve,this.apiService=De,this.decorator=Q,this.deviceId="",w.p.getId().then(ae=>(this.deviceId=ae.identifier,this.deviceId))}start({type:J,deviceSpecification:oe,loc:ve,mode:De,duration:Q,pageId:ae,env:tt,objId:ke,objType:pe,objVer:Ie,rollup:_e,correlationData:re}){const ne=new l.Q$.Start(J,oe,ve,De,Q,ae,tt,ke,pe,Ie,_e,re);return this.decorateAndPersist(ne)}end({type:J,mode:oe,duration:ve,pageId:De,summaryList:Q,env:ae,objId:tt,objType:ke,objVer:pe,rollup:Ie,correlationData:_e}){const re=new l.Q$.End(J,oe,ve,De,Q,ae,tt,ke,pe,Ie,_e);return this.decorateAndPersist(re)}interact({type:J,subType:oe,id:ve,pageId:De,pos:Q,env:ae,rollup:tt,valueMap:ke,correlationData:pe,objId:Ie,objType:_e,objVer:re}){const ne=new l.Q$.Interact(J,oe,ve,De,Q,ke,ae,Ie,_e,re,tt,pe);return this.decorateAndPersist(ne)}impression({type:J,subType:oe,pageId:ve,env:De,objId:Q,objType:ae,objVer:tt,rollup:ke,correlationData:pe}){const Ie=new l.Q$.Impression(J,oe,ve,[],De,Q,ae,tt,ke,pe);return this.decorateAndPersist(Ie)}search({type:J,query:oe,filters:ve,sort:De,correlationid:Q,size:ae,env:tt,correlationData:ke}){const pe=new l.Q$.Search(J,oe,ve,De,tt,Q,ae,ke);return this.decorateAndPersist(pe)}decorateAndPersist(J){let oe="";const ve=localStorage.getItem("subDomain");return oe=null!=ve?ve:new URL(document.baseURI).hostname,function F(...k){const I=(0,_.ms)(k),V=function c(k){return 1===k.length&&O(k[0])?k[0]:k}(k);return V.length?new S.c(J=>{let oe=V.map(()=>[]),ve=V.map(()=>!1);J.add(()=>{oe=ve=null});for(let De=0;!J.closed&&De{if(oe[De].push(Q),oe.every(ae=>ae.length)){const ae=oe.map(tt=>tt.shift());J.next(I?I(...ae):ae),oe.some((tt,ke)=>!tt.length&&ve[ke])&&J.complete()}},()=>{ve[De]=!0,!oe[De].length&&J.complete()}));return()=>{oe=ve=null}}):D.w}((0,B.H)(this.utilService.getAppInfo()),(0,B.H)(this.utilService.getDeviceId())).pipe((0,m.Z)(De=>{const Q=De[0].version,ae=De[1];return(0,B.H)(this.storageService.getData("sid")).pipe((0,m.Z)(tt=>{const ke=this.decorator.prepare(this.decorator.decorate(J,null!=tt?tt:"",ae,(0,te.A)(),Q,oe,[]),1);return this.dbService.save(a.C.insertData(),ke)}))}))}saveTelemetry(J){return(0,T.v)(()=>{try{const oe=JSON.parse(J);return this.decorateAndPersist(oe)}catch(oe){return console.error(oe),(0,A.of)(!1)}})}sync(){return new o(this.dbService,this.apiService).handle(this.deviceId)}}return(k=I).\u0275fac=function(J){return new(J||k)(s.KVO(h.a),s.KVO(v.n),s.KVO(y.a),s.KVO(d.G),s.KVO(r.B))},k.\u0275prov=s.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})()},2342:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>B});var a=E(467),S=E(8941),p=E(9316),O=E(9986),D=E(5083),C=E(4438),_=E(5402),F=E(8974);let B=(()=>{var m;class T{constructor(w,R){this.translate=w,this.loadingCtrl=R}getDeviceSpec(){var w=this;return(0,a.A)(function*(){const R=yield p.p.getInfo(),$=yield w.getDeviceId();return{os:`${R.operatingSystem} ${R.osVersion}`,make:R.manufacturer,id:$}})()}getDeviceId(){return(0,a.A)(function*(){const w=yield p.p.getId();return O(w.identifier).toString()})()}getAppInfo(){return(0,a.A)(function*(){return"web"===D.Ii.getPlatform()?{name:"Web App",build:"1.0.0"}:yield S.q.getInfo()})()}translateMessage(w,R){let $="",L="";return L="object"==typeof R?R:{"%s":R},this.translate.get(w,L).subscribe(M=>{$=M}),$}getLoader(w,R){return this.loadingCtrl.create({message:R,duration:w||3e4,cssClass:R?"custom-loader-message-class":"custom-loader-class"})}}return(m=T).\u0275fac=function(w){return new(w||m)(C.KVO(_.c$),C.KVO(F.Xi))},m.\u0275prov=C.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},6313:(Ce,ee,E)=>{"use strict";var a=E(467),S=E(345),p=E(4438),O=E(3021),c=E(4517),D=E(8974),C=E(8941),_=E(5402),F=E(6198),B=E(2904),m=E(177),T=E(9417);function A(Ve,Re){if(1&Ve&&(p.j41(0,"ion-item")(1,"ion-label"),p.EFF(2),p.k0s(),p.nrm(3,"ion-radio",3),p.k0s()),2&Ve){const Le=Re.$implicit;p.R7$(2),p.JRh(Le.label),p.R7$(),p.FS9("value",Le.id)}}let w=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn){this.translateService=Te,this.navParams=ut,this.modalCtrl=Vt,this.languageService=dn,this.storage=fn,this.selectedLanguage=""}ngOnInit(){var Te=this;return(0,a.A)(function*(){Te.languages=[],Te.languages=Te.navParams.get("languages");let ut=yield Te.storage.getData("lang");console.log("current lang ",ut),Te.selectedLanguage=ut})()}languageSelected(Te){let ut=Te.detail.value;this.storage.setData("lang",ut),this.translateService.use(ut),this.selectedLanguage=ut,this.languageService.setLanguage(ut),this.dismissModal()}dismissModal(){this.modalCtrl.dismiss()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(_.c$),p.rXU(c.y8),p.rXU(D.W3),p.rXU(F.g),p.rXU(B.n$))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-langauge-select"]],decls:9,vars:5,consts:[[1,"lang-content"],[3,"ngModelChange","ionChange","ngModel"],[4,"ngFor","ngForOf"],["slot","start",3,"value"]],template:function(Te,ut){1&Te&&(p.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p.EFF(3),p.nI1(4,"translate"),p.k0s()()(),p.j41(5,"ion-content",0)(6,"ion-radio-group",1),p.mxI("ngModelChange",function(dn){return p.DH7(ut.selectedLanguage,dn)||(ut.selectedLanguage=dn),dn}),p.bIt("ionChange",function(dn){return ut.languageSelected(dn)}),p.j41(7,"ion-list"),p.DNE(8,A,4,2,"ion-item",2),p.k0s()()()),2&Te&&(p.R7$(3),p.JRh(p.bMT(4,3,"Select Language")),p.R7$(3),p.R50("ngModel",ut.selectedLanguage),p.R7$(2),p.Y8G("ngForOf",ut.languages))},dependencies:[m.Sq,T.BC,T.vS,D.W9,D.eU,D.uz,D.he,D.nf,D.KO,D.f0,D.BC,D.ai,D.uR,D.Je,_.D9],styles:[".lang-content[_ngcontent-%COMP%]{--background: var(--ion-color-primary-contrast);--padding-top: 0}ion-list[_ngcontent-%COMP%]{overflow-y:auto}ion-title[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:1rem}"]}),Re})();var R=E(4801),$=E.n(R);const L=["video"],M=["canvas"],P=["fileinput"];function U(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",13),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.reset())}),p.nrm(1,"ion-icon",14),p.EFF(2," Reset "),p.k0s()}}function j(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",15),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.stopScan())}),p.nrm(1,"ion-icon",16),p.EFF(2," Stop scan "),p.k0s()}}function W(Ve,Re){if(1&Ve&&(p.j41(0,"ion-card")(1,"ion-card-header")(2,"ion-card-title"),p.EFF(3,"QR Code"),p.k0s()(),p.j41(4,"ion-card-content"),p.EFF(5),p.k0s()()),2&Ve){const Le=p.XpG();p.R7$(5),p.SpI(" ",Le.scanResult," ")}}function ie(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div")(1,"ion-button",17),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.openLink())}),p.EFF(2),p.nI1(3,"translate"),p.k0s(),p.j41(4,"ion-button",18),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.close())}),p.EFF(5,"Close"),p.k0s()()}2&Ve&&(p.R7$(2),p.JRh(p.bMT(3,1,"OPEN_IN_BROWSER")))}function me(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div")(1,"ion-button",17),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.close())}),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}2&Ve&&(p.R7$(2),p.JRh(p.bMT(3,1,"CLOSE")))}let te=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn){this.navParams=Te,this.modalCtrl=ut,this.toastCtrl=Vt,this.loadingCtrl=dn,this.plt=fn,this.scanText="",this.isValidURL=!1,this.scanActive=!1,this.scanResult=null,this.loading=null,this.plt.is("ios")&&"standalone"in window.navigator&&window.navigator.standalone&&console.log("I am a an iOS PWA!")}ngOnInit(){this.scanText=this.navParams.get("scannedData"),this.isValidURL=this.isValidUrl()}openLink(){this.close(),window.open(this.scanText)}close(){this.modalCtrl.dismiss()}isValidUrl(){try{const Te=new URL(this.scanText);return"http:"===Te.protocol||"https:"===Te.protocol}catch{return!1}}ngAfterViewInit(){this.canvasElement=this.canvas.nativeElement,this.canvasContext=this.canvasElement.getContext("2d"),this.videoElement=this.video.nativeElement}showQrToast(){var Te=this;return(0,a.A)(function*(){(yield Te.toastCtrl.create({message:`Open ${Te.scanResult}?`,position:"top",buttons:[{text:"Open",handler:()=>{Te.scanResult&&window.open(Te.scanResult,"_system","location=yes")}}]})).present()})()}reset(){this.scanResult=null}startScan(){var Te=this;return(0,a.A)(function*(){const ut=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});Te.videoElement.srcObject=ut,Te.videoElement.setAttribute("playsinline",!0),Te.loading=yield Te.loadingCtrl.create({}),yield Te.loading.present(),Te.videoElement.play(),requestAnimationFrame(Te.scan.bind(Te))})()}stopScan(){this.scanActive=!1;const Te=this.videoElement.srcObject;Te&&(Te.getTracks().forEach(function(Vt){Vt.stop()}),this.videoElement.srcObject=null)}scan(){var Te=this;return(0,a.A)(function*(){try{if(yield navigator.mediaDevices.getUserMedia({video:!0}),Te.videoElement.readyState===Te.videoElement.HAVE_ENOUGH_DATA){Te.loading&&(yield Te.loading.dismiss(),Te.loading=null,Te.scanActive=!0),Te.canvasElement.height=Te.videoElement.videoHeight,Te.canvasElement.width=Te.videoElement.videoWidth,Te.canvasContext.drawImage(Te.videoElement,0,0,Te.canvasElement.width,Te.canvasElement.height);const Vt=Te.canvasContext.getImageData(0,0,Te.canvasElement.width,Te.canvasElement.height),dn=$()(Vt.data,Vt.width,Vt.height,{inversionAttempts:"dontInvert"});null!=dn&&dn.data?(Te.scanActive=!1,Te.scanResult=dn.data,Te.stopScan(),Te.showQrToast()):Te.scanActive&&requestAnimationFrame(Te.scan.bind(Te))}else requestAnimationFrame(Te.scan.bind(Te))}catch(ut){console.error("Error accessing camera:",ut)}})()}captureImage(){this.fileinput.nativeElement.click()}handleFile(Te){const ut=Te.target;if(ut instanceof HTMLInputElement&&ut.files&&ut.files.length>0){const dn=ut.files[0];var Vt=new Image;Vt.onload=()=>{this.canvasContext.drawImage(Vt,0,0,this.canvasElement.width,this.canvasElement.height);const fn=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Un=$()(fn.data,fn.width,fn.height,{inversionAttempts:"dontInvert"});Un&&(this.scanResult=Un.data,this.showQrToast())},Vt.src=URL.createObjectURL(dn)}}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(c.y8),p.rXU(D.W3),p.rXU(D.K_),p.rXU(D.Xi),p.rXU(c.OD))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-qrcode-popup"]],viewQuery:function(Te,ut){if(1&Te&&(p.GBs(L,5),p.GBs(M,5),p.GBs(P,5)),2&Te){let Vt;p.mGM(Vt=p.lsd())&&(ut.video=Vt.first),p.mGM(Vt=p.lsd())&&(ut.canvas=Vt.first),p.mGM(Vt=p.lsd())&&(ut.fileinput=Vt.first)}},decls:20,vars:7,consts:[["fileinput",""],["video",""],["canvas",""],[1,"inner-content"],["type","file","accept","image/*;capture=camera","hidden",""],["expand","full",3,"click"],["slot","start","name","camera"],["slot","start","name","qr-scanner"],["expand","full","color","warning",3,"click",4,"ngIf"],["width","100%",3,"hidden"],["hidden",""],["expand","full","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["expand","full","color","warning",3,"click"],["slot","start","name","refresh"],["expand","full","color","danger",3,"click"],["slot","start","name","close"],["expand","block",3,"click"],["fill","clear","expand","full",3,"click"]],template:function(Te,ut){if(1&Te){const Vt=p.RV6();p.j41(0,"div",3)(1,"h4"),p.EFF(2),p.k0s(),p.nrm(3,"input",4,0),p.j41(5,"ion-button",5),p.bIt("click",function(){return p.eBV(Vt),p.Njj(ut.captureImage())}),p.nrm(6,"ion-icon",6),p.EFF(7," Capture Image "),p.k0s(),p.j41(8,"ion-button",5),p.bIt("click",function(){return p.eBV(Vt),p.Njj(ut.startScan())}),p.nrm(9,"ion-icon",7),p.EFF(10," Start scan "),p.k0s(),p.DNE(11,U,3,0,"ion-button",8),p.nrm(12,"video",9,1)(14,"canvas",10,2),p.DNE(16,j,3,0,"ion-button",11)(17,W,6,1,"ion-card",12)(18,ie,6,3,"div",12)(19,me,4,3,"div",12),p.k0s()}2&Te&&(p.R7$(2),p.JRh(ut.scanText),p.R7$(9),p.Y8G("ngIf",ut.scanResult),p.R7$(),p.Y8G("hidden",!ut.scanActive),p.R7$(4),p.Y8G("ngIf",ut.scanActive),p.R7$(),p.Y8G("ngIf",ut.scanResult),p.R7$(),p.Y8G("ngIf",ut.isValidURL),p.R7$(),p.Y8G("ngIf",!ut.isValidURL))},dependencies:[m.bT,D.Jm,D.b_,D.I9,D.ME,D.tN,D.iq,_.D9],styles:["h4[_ngcontent-%COMP%]{text-align:center;color:var(--ion-color-medium);padding:.75rem 0;-webkit-user-select:auto;user-select:auto}ion-button[_ngcontent-%COMP%]{padding:0 .75rem .75rem;--border-radius: 2rem}"]}),Re})();var se=E(319),g=E(3568),n=E(8359);class o extends n.yU{constructor(Re,Le){super()}schedule(Re,Le=0){return this}}const l={setInterval(Ve,Re,...Le){const{delegate:Te}=l;return null!=Te&&Te.setInterval?Te.setInterval(Ve,Re,...Le):setInterval(Ve,Re,...Le)},clearInterval(Ve){const{delegate:Re}=l;return((null==Re?void 0:Re.clearInterval)||clearInterval)(Ve)},delegate:void 0};var s=E(7908),v=E(6129);class y{constructor(Re,Le=y.now){this.schedulerActionCtor=Re,this.now=Le}schedule(Re,Le=0,Te){return new this.schedulerActionCtor(this,Re).schedule(Te,Le)}}y.now=v.U.now;const r=new class d extends y{constructor(Re,Le=y.now){super(Re,Le),this.actions=[],this._active=!1}flush(Re){const{actions:Le}=this;if(this._active)return void Le.push(Re);let Te;this._active=!0;do{if(Te=Re.execute(Re.state,Re.delay))break}while(Re=Le.shift());if(this._active=!1,Te){for(;Re=Le.shift();)Re.unsubscribe();throw Te}}}(class h extends o{constructor(Re,Le){super(Re,Le),this.scheduler=Re,this.work=Le,this.pending=!1}schedule(Re,Le=0){var Te;if(this.closed)return this;this.state=Re;const ut=this.id,Vt=this.scheduler;return null!=ut&&(this.id=this.recycleAsyncId(Vt,ut,Le)),this.pending=!0,this.delay=Le,this.id=null!==(Te=this.id)&&void 0!==Te?Te:this.requestAsyncId(Vt,this.id,Le),this}requestAsyncId(Re,Le,Te=0){return l.setInterval(Re.flush.bind(Re,this),Te)}recycleAsyncId(Re,Le,Te=0){if(null!=Te&&this.delay===Te&&!1===this.pending)return Le;null!=Le&&l.clearInterval(Le)}execute(Re,Le){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Te=this._execute(Re,Le);if(Te)return Te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Re,Le){let ut,Te=!1;try{this.work(Re)}catch(Vt){Te=!0,ut=Vt||new Error("Scheduled action threw falsy error")}if(Te)return this.unsubscribe(),ut}unsubscribe(){if(!this.closed){const{id:Re,scheduler:Le}=this,{actions:Te}=Le;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(Te,this),null!=Re&&(this.id=this.recycleAsyncId(Le,Re,null)),this.delay=null,super.unsubscribe()}}}),f=r;var k=E(1985),I=E(9470);function J(Ve=0,Re,Le=f){let Te=-1;return null!=Re&&((0,I.m)(Re)?Le=Re:Te=Re),new k.c(ut=>{let Vt=function V(Ve){return Ve instanceof Date&&!isNaN(Ve)}(Ve)?+Ve-Le.now():Ve;Vt<0&&(Vt=0);let dn=0;return Le.schedule(function(){ut.closed||(ut.next(dn++),0<=Te?this.schedule(void 0,Te):ut.complete())},Vt)})}var ve=E(7673),De=E(8141),Q=E(5964),ae=E(9437),tt=E(3703);let ke=(()=>{var Ve;class Re{constructor(Te){this.telemetryService=Te,this.shouldSync=!1}start(Te){return this.shouldSync=!0,function oe(Ve=0,Re=r){return Ve<0&&(Ve=0),J(Ve,Ve,Re)}(Te).pipe((0,De.M)(ut=>{}),(0,Q.p)(()=>this.shouldSync),(0,De.M)(()=>this.telemetryService.sync().pipe((0,De.M)(ut=>{}),(0,ae.W)(ut=>(console.error(ut),(0,ve.of)(void 0)))).toPromise()),(0,tt.u)(void 0))}pause(){this.shouldSync=!1}continue(){this.shouldSync=!0}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(B.H0))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var pe=E(2771),Ie=E(1635),re=E(3726),ne={error:"cordova_not_available"},G={error:"plugin_not_installed"};function ge(Ve){if(typeof window<"u"&&window.angular){var Le=window.document,Te=window.angular.element(Le.querySelector("[ng-app]")||Le.body).injector();if(Te)return Te.get("$q")(function(Vt,dn){Ve(Vt,dn)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(Vt,dn){Ve(Vt,dn)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function mt(Ve,Re,Le){var Te,ut;"string"==typeof Ve?Te=Ve:(Te=Ve.constructor.getPluginRef(),Le=Ve.constructor.getPluginName(),ut=Ve.constructor.getPluginInstallName());var Vt=Cn(Te);return!(!Vt||Re&&typeof Vt[Re]>"u")||(typeof window>"u"||!window.cordova?(function bn(Ve,Re){typeof process>"u"&&console.warn(Re?"Native: tried calling "+Ve+"."+Re+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+Ve+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(Le,Re),ne):(function Ft(Ve,Re,Le){console.warn(Le?"Native: tried calling "+Ve+"."+Le+", but the "+Ve+" plugin is not installed.":"Native: tried accessing the "+Ve+" plugin but it's not installed."),Re&&console.warn("Install the "+Ve+" plugin: 'ionic cordova plugin add "+Re+"'")}(Le,ut,Re),G))}function At(Ve,Re,Le,Te,ut,Vt){void 0===Te&&(Te={}),Le=function un(Ve,Re,Le,Te){if(void 0===Re&&(Re={}),Re.sync)return Ve;if("reverse"===Re.callbackOrder)Ve.unshift(Te),Ve.unshift(Le);else if("node"===Re.callbackStyle)Ve.push(function(fn,Un){fn?Te(fn):Le(Un)});else if("object"===Re.callbackStyle&&Re.successName&&Re.errorName){var ut={};ut[Re.successName]=Le,ut[Re.errorName]=Te,Ve.push(ut)}else if(typeof Re.successIndex<"u"||typeof Re.errorIndex<"u"){var Vt=function(){Re.successIndex>Ve.length?Ve[Re.successIndex]=Le:Ve.splice(Re.successIndex,0,Le)},dn=function(){Re.errorIndex>Ve.length?Ve[Re.errorIndex]=Te:Ve.splice(Re.errorIndex,0,Te)};Re.successIndex>Re.errorIndex?(dn(),Vt()):(Vt(),dn())}else Ve.push(Le),Ve.push(Te);return Ve}(Le,Te,ut,Vt);var dn=mt(Ve,Re);if(!0===dn){var fn=Cn(Ve.constructor.getPluginRef());return fn[Re].apply(fn,Le)}return dn}function Cn(Ve){return typeof window<"u"?St(window,Ve):null}function St(Ve,Re){for(var Le=Re.split("."),Te=Ve,ut=0;ut"u"){var Ve=typeof window<"u"?window:{},Le=Date.now(),Te=!1;Ve.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-Le)+" ms"),Te=!0}),setTimeout(function(){!Te&&Ve.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}();var Be=function(Ve){function Re(){var Le=null!==Ve&&Ve.apply(this,arguments)||this;return Le.permission={ACCEPT_HANDOVER:"ACCEPT_HANDOVER",ACCESS_BACKGROUND_LOCATION:"ACCESS_BACKGROUND_LOCATION",ACCESS_COARSE_LOCATION:"ACCESS_COARSE_LOCATION",ACCESS_FINE_LOCATION:"ACCESS_FINE_LOCATION",ACCESS_MEDIA_LOCATION:"ACCESS_MEDIA_LOCATION",ACTIVITY_RECOGNITION:"ACTIVITY_RECOGNITION",ADD_VOICEMAIL:"ADD_VOICEMAIL",ANSWER_PHONE_CALLS:"ANSWER_PHONE_CALLS",BLUETOOTH_ADVERTISE:"BLUETOOTH_ADVERTISE",BLUETOOTH_CONNECT:"BLUETOOTH_CONNECT",BLUETOOTH_SCAN:"BLUETOOTH_SCAN",BODY_SENSORS:"BODY_SENSORS",BODY_SENSORS_BACKGROUND:"BODY_SENSORS_BACKGROUND",CALL_PHONE:"CALL_PHONE",CAMERA:"CAMERA",GET_ACCOUNTS:"GET_ACCOUNTS",NEARBY_WIFI_DEVICES:"NEARBY_WIFI_DEVICES",POST_NOTIFICATIONS:"POST_NOTIFICATIONS",PROCESS_OUTGOING_CALLS:"PROCESS_OUTGOING_CALLS",READ_CALENDAR:"READ_CALENDAR",READ_CALL_LOG:"READ_CALL_LOG",READ_CONTACTS:"READ_CONTACTS",READ_EXTERNAL_STORAGE:"READ_EXTERNAL_STORAGE",READ_MEDIA_AUDIO:"READ_MEDIA_AUDIO",READ_MEDIA_IMAGES:"READ_MEDIA_IMAGES",READ_MEDIA_VIDEO:"READ_MEDIA_VIDEO",READ_PHONE_NUMBERS:"READ_PHONE_NUMBERS",READ_PHONE_STATE:"READ_PHONE_STATE",READ_SMS:"READ_SMS",RECEIVE_MMS:"RECEIVE_MMS",RECEIVE_SMS:"RECEIVE_SMS",RECEIVE_WAP_PUSH:"RECEIVE_WAP_PUSH",RECORD_AUDIO:"RECORD_AUDIO",SEND_SMS:"SEND_SMS",USE_SIP:"USE_SIP",UWB_RANGING:"UWB_RANGING",WRITE_CALENDAR:"WRITE_CALENDAR",WRITE_CALL_LOG:"WRITE_CALL_LOG",WRITE_CONTACTS:"WRITE_CONTACTS",WRITE_EXTERNAL_STORAGE:"WRITE_EXTERNAL_STORAGE"},Le.locationAuthorizationMode={ALWAYS:"always",WHEN_IN_USE:"when_in_use"},Le.locationAccuracyAuthorization={FULL:"full",REDUCED:"reduced"},Le.permissionGroups={CALENDAR:["READ_CALENDAR","WRITE_CALENDAR"],CAMERA:["CAMERA"],CONTACTS:["READ_CONTACTS","WRITE_CONTACTS","GET_ACCOUNTS"],LOCATION:["ACCESS_FINE_LOCATION","ACCESS_COARSE_LOCATION"],MICROPHONE:["RECORD_AUDIO"],PHONE:["READ_PHONE_STATE","CALL_PHONE","ADD_VOICEMAIL","USE_SIP","PROCESS_OUTGOING_CALLS","READ_CALL_LOG","WRITE_CALL_LOG"],SENSORS:["BODY_SENSORS"],SMS:["SEND_SMS","RECEIVE_SMS","READ_SMS","RECEIVE_WAP_PUSH","RECEIVE_MMS"],STORAGE:["READ_EXTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE"],NEARBY_DEVICES:["BLUETOOTH_ADVERTISE","BLUETOOTH_SCAN","BLUETOOTH_CONNECT"]},Le.locationMode={HIGH_ACCURACY:"high_accuracy",DEVICE_ONLY:"device_only",BATTERY_SAVING:"battery_saving",LOCATION_OFF:"location_off"},Le.bluetoothState={UNKNOWN:"unknown",RESETTING:"resetting",UNSUPPORTED:"unsupported",UNAUTHORIZED:"unauthorized",POWERED_OFF:"powered_off",POWERED_ON:"powered_on",POWERING_OFF:"powering_off",POWERING_ON:"powering_on"},Le.photoLibraryAccessLevel={ADD_ONLY:"add_only",READ_WRITE:"read_write"},Le}return(0,Ie.C6)(Re,Ve),Re.prototype.isLocationAvailable=function(){return Wt(this,"isLocationAvailable",{},arguments)},Re.prototype.isWifiAvailable=function(){return Wt(this,"isWifiAvailable",{},arguments)},Re.prototype.isCameraAvailable=function(Le){return Wt(this,"isCameraAvailable",{callbackOrder:"reverse"},arguments)},Re.prototype.isBluetoothAvailable=function(){return Wt(this,"isBluetoothAvailable",{},arguments)},Re.prototype.switchToLocationSettings=function(){return Wt(this,"switchToLocationSettings",{sync:!0,platforms:["Android","Windows 10","iOS"]},arguments)},Re.prototype.switchToMobileDataSettings=function(){return Wt(this,"switchToMobileDataSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.switchToBluetoothSettings=function(){return Wt(this,"switchToBluetoothSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.switchToWifiSettings=function(){return Wt(this,"switchToWifiSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.isWifiEnabled=function(){return Wt(this,"isWifiEnabled",{platforms:["Android","Windows 10"]},arguments)},Re.prototype.setWifiState=function(Le){return Wt(this,"setWifiState",{callbackOrder:"reverse",platforms:["Android","Windows 10"]},arguments)},Re.prototype.setBluetoothState=function(Le){return Wt(this,"setBluetoothState",{callbackOrder:"reverse",platforms:["Android","Windows 10"]},arguments)},Re.prototype.enableDebug=function(){return Wt(this,"enableDebug",{platforms:["Android","iOS"]},arguments)},Re.prototype.isLocationEnabled=function(){return Wt(this,"isLocationEnabled",{platforms:["Android","iOS"]},arguments)},Re.prototype.isLocationAuthorized=function(){return Wt(this,"isLocationAuthorized",{},arguments)},Re.prototype.getLocationAuthorizationStatus=function(){return Wt(this,"getLocationAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.getLocationAuthorizationStatuses=function(){return Wt(this,"getLocationAuthorizationStatuses",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestLocationAuthorization=function(Le,Te){return Wt(this,"requestLocationAuthorization",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.isCameraPresent=function(){return Wt(this,"isCameraPresent",{platforms:["Android","iOS"]},arguments)},Re.prototype.isCameraAuthorized=function(Le){return Wt(this,"isCameraAuthorized",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.getCameraAuthorizationStatus=function(Le){return Wt(this,"getCameraAuthorizationStatus",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.requestCameraAuthorization=function(Le){return Wt(this,"requestCameraAuthorization",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.isMicrophoneAuthorized=function(){return Wt(this,"isMicrophoneAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getMicrophoneAuthorizationStatus=function(){return Wt(this,"getMicrophoneAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestMicrophoneAuthorization=function(){return Wt(this,"requestMicrophoneAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.isContactsAuthorized=function(){return Wt(this,"isContactsAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getContactsAuthorizationStatus=function(){return Wt(this,"getContactsAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestContactsAuthorization=function(){return Wt(this,"requestContactsAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.isCalendarAuthorized=function(){return Wt(this,"isCalendarAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getCalendarAuthorizationStatus=function(){return Wt(this,"getCalendarAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestCalendarAuthorization=function(){return Wt(this,"requestCalendarAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.switchToSettings=function(){return Wt(this,"switchToSettings",{platforms:["Android","iOS"]},arguments)},Re.prototype.getBluetoothState=function(){return Wt(this,"getBluetoothState",{platforms:["Android","iOS"]},arguments)},Re.prototype.registerBluetoothStateChangeHandler=function(Le){return Wt(this,"registerBluetoothStateChangeHandler",{platforms:["Android","iOS"],sync:!0},arguments)},Re.prototype.registerLocationStateChangeHandler=function(Le){return Wt(this,"registerLocationStateChangeHandler",{platforms:["Android","iOS"],sync:!0},arguments)},Re.prototype.getArchitecture=function(){return Wt(this,"getArchitecture",{platforms:["Android","iOS"]},arguments)},Re.prototype.getCurrentBatteryLevel=function(){return Wt(this,"getCurrentBatteryLevel",{platforms:["Android","iOS"]},arguments)},Re.prototype.restart=function(Le){return Wt(this,"restart",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.isGpsLocationAvailable=function(){return Wt(this,"isGpsLocationAvailable",{platforms:["Android"]},arguments)},Re.prototype.isGpsLocationEnabled=function(){return Wt(this,"isGpsLocationEnabled",{platforms:["Android"]},arguments)},Re.prototype.isNetworkLocationAvailable=function(){return Wt(this,"isNetworkLocationAvailable",{platforms:["Android"]},arguments)},Re.prototype.isNetworkLocationEnabled=function(){return Wt(this,"isNetworkLocationEnabled",{platforms:["Android"]},arguments)},Re.prototype.isAirplaneModeEnabled=function(){return Wt(this,"isAirplaneModeEnabled",{platforms:["Android"]},arguments)},Re.prototype.isMobileDataEnabled=function(){return Wt(this,"isMobileDataEnabled",{platforms:["Android"]},arguments)},Re.prototype.getLocationMode=function(){return Wt(this,"getLocationMode",{platforms:["Android"]},arguments)},Re.prototype.getDeviceOSVersion=function(){return Wt(this,"getDeviceOSVersion",{platforms:["Android"]},arguments)},Re.prototype.getBuildOSVersion=function(){return Wt(this,"getBuildOSVersion",{platforms:["Android"]},arguments)},Re.prototype.getPermissionAuthorizationStatus=function(Le){return Wt(this,"getPermissionAuthorizationStatus",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.getPermissionsAuthorizationStatus=function(Le){return Wt(this,"getPermissionsAuthorizationStatus",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.requestRuntimePermission=function(Le){return Wt(this,"requestRuntimePermission",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.requestRuntimePermissions=function(Le){return Wt(this,"requestRuntimePermissions",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.isRequestingPermission=function(){return Wt(this,"isRequestingPermission",{sync:!0},arguments)},Re.prototype.registerPermissionRequestCompleteHandler=function(Le){return Wt(this,"registerPermissionRequestCompleteHandler",{sync:!0},arguments)},Re.prototype.isBluetoothEnabled=function(){return Wt(this,"isBluetoothEnabled",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothSupport=function(){return Wt(this,"hasBluetoothSupport",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothLESupport=function(){return Wt(this,"hasBluetoothLESupport",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothLEPeripheralSupport=function(){return Wt(this,"hasBluetoothLEPeripheralSupport",{platforms:["Android"]},arguments)},Re.prototype.getBluetoothAuthorizationStatus=function(){return Wt(this,"getBluetoothAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.getBluetoothAuthorizationStatuses=function(){return Wt(this,"getBluetoothAuthorizationStatuses",{platforms:["Android"]},arguments)},Re.prototype.isExternalStorageAuthorized=function(){return Wt(this,"isExternalStorageAuthorized",{platforms:["Android"]},arguments)},Re.prototype.getExternalStorageAuthorizationStatus=function(){return Wt(this,"getExternalStorageAuthorizationStatus",{platforms:["Android"]},arguments)},Re.prototype.requestExternalStorageAuthorization=function(){return Wt(this,"requestExternalStorageAuthorization",{platforms:["Android"]},arguments)},Re.prototype.getExternalSdCardDetails=function(){return Wt(this,"getExternalSdCardDetails",{platforms:["Android"]},arguments)},Re.prototype.switchToWirelessSettings=function(){return Wt(this,"switchToWirelessSettings",{platforms:["Android"],sync:!0},arguments)},Re.prototype.switchToNFCSettings=function(){return Wt(this,"switchToNFCSettings",{platforms:["Android"],sync:!0},arguments)},Re.prototype.isNFCPresent=function(){return Wt(this,"isNFCPresent",{platforms:["Android"]},arguments)},Re.prototype.isNFCEnabled=function(){return Wt(this,"isNFCEnabled",{platforms:["Android"]},arguments)},Re.prototype.isNFCAvailable=function(){return Wt(this,"isNFCAvailable",{platforms:["Android"]},arguments)},Re.prototype.registerNFCStateChangeHandler=function(Le){return Wt(this,"registerNFCStateChangeHandler",{platforms:["Android"],sync:!0},arguments)},Re.prototype.isDataRoamingEnabled=function(){return Wt(this,"isDataRoamingEnabled",{platforms:["Android"]},arguments)},Re.prototype.isADBModeEnabled=function(){return Wt(this,"isADBModeEnabled",{platforms:["Android"]},arguments)},Re.prototype.isDeviceRooted=function(){return Wt(this,"isDeviceRooted",{platforms:["Android"]},arguments)},Re.prototype.isCameraRollAuthorized=function(Le){return Wt(this,"isCameraRollAuthorized",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.getCameraRollAuthorizationStatus=function(Le){return Wt(this,"getCameraRollAuthorizationStatus",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.requestCameraRollAuthorization=function(Le){return Wt(this,"requestCameraRollAuthorization",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.presentLimitedLibraryPicker=function(){return Wt(this,"presentLimitedLibraryPicker",{platforms:["iOS"]},arguments)},Re.prototype.isRemoteNotificationsEnabled=function(){return Wt(this,"isRemoteNotificationsEnabled",{platforms:["iOS","Android"]},arguments)},Re.prototype.isRegisteredForRemoteNotifications=function(){return Wt(this,"isRegisteredForRemoteNotifications",{platforms:["iOS"]},arguments)},Re.prototype.getRemoteNotificationsAuthorizationStatus=function(){return Wt(this,"getRemoteNotificationsAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestRemoteNotificationsAuthorization=function(Le,Te){return Wt(this,"requestRemoteNotificationsAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.getRemoteNotificationTypes=function(){return Wt(this,"getRemoteNotificationTypes",{platforms:["iOS"]},arguments)},Re.prototype.isRemindersAuthorized=function(){return Wt(this,"isRemindersAuthorized",{platforms:["iOS"]},arguments)},Re.prototype.getRemindersAuthorizationStatus=function(){return Wt(this,"getRemindersAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestRemindersAuthorization=function(){return Wt(this,"requestRemindersAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.isBackgroundRefreshAuthorized=function(){return Wt(this,"isBackgroundRefreshAuthorized",{platforms:["iOS"]},arguments)},Re.prototype.getBackgroundRefreshStatus=function(){return Wt(this,"getBackgroundRefreshStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestBluetoothAuthorization=function(){return Wt(this,"requestBluetoothAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.isMotionAvailable=function(){return Wt(this,"isMotionAvailable",{platforms:["iOS"]},arguments)},Re.prototype.isMotionRequestOutcomeAvailable=function(){return Wt(this,"isMotionRequestOutcomeAvailable",{platforms:["iOS"]},arguments)},Re.prototype.requestMotionAuthorization=function(){return Wt(this,"requestMotionAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.getMotionAuthorizationStatus=function(){return Wt(this,"getMotionAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.getLocationAccuracyAuthorization=function(){return Wt(this,"getLocationAccuracyAuthorization",{platforms:["iOS","Android"]},arguments)},Re.prototype.requestTemporaryFullAccuracyAuthorization=function(Le){return Wt(this,"requestTemporaryFullAccuracyAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.registerLocationAccuracyAuthorizationChangeHandler=function(Le){return Wt(this,"registerLocationAccuracyAuthorizationChangeHandler",{platforms:["iOS"],sync:!0},arguments)},Object.defineProperty(Re.prototype,"permissionStatus",{get:function(){return Ut(this,"permissionStatus")},set:function(Le){He(this,"permissionStatus",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"NFCState",{get:function(){return Ut(this,"NFCState")},set:function(Le){He(this,"NFCState",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"cpuArchitecture",{get:function(){return Ut(this,"cpuArchitecture")},set:function(Le){He(this,"cpuArchitecture",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"remoteNotificationType",{get:function(){return Ut(this,"remoteNotificationType")},set:function(Le){He(this,"remoteNotificationType",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"motionStatus",{get:function(){return Ut(this,"motionStatus")},set:function(Le){He(this,"motionStatus",Le)},enumerable:!1,configurable:!0}),Re.\u0275fac=(()=>{let Le;return function(ut){return(Le||(Le=p.xGo(Re)))(ut||Re)}})(),Re.\u0275prov=p.jDH({token:Re,factory:Re.\u0275fac}),Re.pluginName="Diagnostic",Re.plugin="cordova.plugins.diagnostic",Re.pluginRef="cordova.plugins.diagnostic",Re.repo="https://github.com/dpa99c/cordova-diagnostic-plugin",Re.platforms=["Android","iOS","Windows"],Re=(0,Ie.Cg)([],Re)}(Lt),Ae=function(Ve){return Ve.GRANTED="GRANTED",Ve.NOT_REQUESTED="NOT_REQUESTED",Ve.DENIED_ALWAYS="DENIED_ALWAYS",Ve.DENIED="DENIED",Ve.UNKNOWN="UNKNOWN",Ve}(Ae||{}),Me=function(Ve){return Ve.CAMERA="CAMERA",Ve.MICROPHONE="MICROPHONE",Ve}(Me||{});let Ze=(()=>{var Ve;class Re{constructor(Te,ut){this.platform=Te,this.diagnostic=ut}hasCameraPermission(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.diagnostic.getCameraAuthorizationStatus(!1);return Te.getPermissionStatus(ut)})()}hasMicrophonePermission(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.diagnostic.getMicrophoneAuthorizationStatus();return Te.getPermissionStatus(ut)})()}requestPermissions(Te){var ut=this;return(0,a.A)(function*(){if(ut.platform.is("android")){const Vt=[];Te.indexOf(Me.CAMERA)>=0&&Vt.push(ut.diagnostic.permission.CAMERA),Te.indexOf(Me.MICROPHONE)>=0&&Vt.push(ut.diagnostic.permission.RECORD_AUDIO),yield ut.diagnostic.requestRuntimePermissions(Vt)}else ut.platform.is("ios")?(Te.indexOf(Me.CAMERA)>=0&&(yield ut.diagnostic.requestCameraAuthorization(!1)),Te.indexOf(Me.MICROPHONE)>=0&&(yield ut.diagnostic.requestMicrophoneAuthorization())):console.warn("requesting permission in browser")})()}userRequestsPermissions(Te){var ut=this;return(0,a.A)(function*(){let Vt=!1;for(const dn of Te)Vt=(yield ut.canAskForPermission(dn))||Vt;Vt&&(yield ut.requestPermissions(Te))})()}canAskForPermission(Te){var ut=this;return(0,a.A)(function*(){let Vt=!0;return ut.platform.is("android")?Te===Me.CAMERA?Vt=(yield ut.hasCameraPermission())!==Ae.DENIED_ALWAYS:Te===Me.MICROPHONE&&(Vt=(yield ut.hasMicrophonePermission())!==Ae.DENIED_ALWAYS):ut.platform.is("ios")&&(Te===Me.CAMERA?Vt=(yield ut.hasCameraPermission())!==Ae.DENIED:Te===Me.MICROPHONE&&(Vt=(yield ut.hasMicrophonePermission())!==Ae.DENIED)),Vt})()}getPermissionStatus(Te){var ut=this;return(0,a.A)(function*(){return ut.isGranted(Te)?Ae.GRANTED:ut.isNotRequested(Te)?Ae.NOT_REQUESTED:ut.isDeniedAlways(Te)?Ae.DENIED_ALWAYS:ut.isDenied(Te)?Ae.DENIED:Ae.UNKNOWN})()}isGranted(Te){return Te===this.diagnostic.permissionStatus.GRANTED||Te===this.diagnostic.permissionStatus.GRANTED_WHEN_IN_USE}isNotRequested(Te){return Te===this.diagnostic.permissionStatus.NOT_REQUESTED}isDeniedAlways(Te){return Te===this.diagnostic.permissionStatus.DENIED_ALWAYS||Te===this.diagnostic.permissionStatus.RESTRICTED}isDenied(Te){return!(this.isGranted(Te)||this.isNotRequested(Te))}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(c.OD),p.KVO(Be))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var je=E(2342);let it=(()=>{var Ve;class Re{constructor(Te,ut,Vt){this.platform=Te,this.utilService=ut,this.permissionsService=Vt,this.hasCameras=!1,this.isActive=!1,this._hasCameraPermission=new pe.m,this.hasCameraPermission=this._hasCameraPermission.asObservable()}requestPermission(Te,ut){var Vt=this;return(0,a.A)(function*(){yield Vt.permissionsService.userRequestsPermissions([Me.CAMERA]),yield Vt.checkCameraPermissionsAndActivate(Te,ut)})()}checkCameraPermissionsAndActivate(Te,ut){var Vt=this;return(0,a.A)(function*(){(yield Vt.permissionsService.hasCameraPermission())===Ae.GRANTED?(document.body.style.backgroundColor="transparent",Vt._hasCameraPermission.next(!0),Vt.startScan(Te,ut)):Vt._hasCameraPermission.next(!1)})()}startScan(Te,ut=null){this.scan(Te,ut)}checkScan(Te){console.error(`The checkScan method needs to be overwritten. Ignoring text ${Te}`)}scan(Te,ut=null){var Vt=this;this.isActive=!0;let dn=this.utilService.translateMessage("SCAN_QR_INSTRUCTION");window.qrScanner.startScanner("Scan",dn,"#0b0b0b",dn,!1,this.platform.isRTL,function(){var fn=(0,a.A)(function*(Un){Te(Un),Vt.stopScanner()});return function(Un){return fn.apply(this,arguments)}}(),fn=>{this.stopScanner()})}stopScanner(){this.isActive&&setTimeout(()=>{window.qrScanner.stopScanner(),this.isActive=!1},100)}destroy(){window.qrScanner.stopScanner()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(c.OD),p.KVO(je.a),p.KVO(Ze))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var Pe=E(9030),Se=E(8810),ze=E(8793),Et=E(1413),Je=E(5343);const st=new k.c(Je.l);var yt=E(6365),vt=E(8750),Kt=E(983),Pt=E(9326),Rt=E(6648);function On(...Ve){const Re=(0,Pt.lI)(Ve),Le=(0,Pt.R0)(Ve,1/0),Te=Ve;return Te.length?1===Te.length?(0,vt.Tg)(Te[0]):(0,yt.U)(Le)((0,Rt.H)(Te,Re)):Kt.w}var An=E(6354),Bn=E(5558),Mn=E(17),Wn=E(8071),Ln=E(9974);const kn={connector:()=>new Et.B};function Gn(Ve,Re=kn){const{connector:Le}=Re;return(0,Ln.N)((Te,ut)=>{const Vt=Le();(0,vt.Tg)(Ve(function Fn(Ve){return new k.c(Re=>Ve.subscribe(Re))}(Vt))).subscribe(ut),ut.add(Te.subscribe(Vt))})}var $e=E(6697),lt=E(4360),Mt=E(3028);function kt(Ve,Re){return Re?Le=>(0,ze.x)(Re.pipe((0,$e.s)(1),function Tt(){return(0,Ln.N)((Ve,Re)=>{Ve.subscribe((0,lt._)(Re,Je.l))})}()),Le.pipe(kt(Ve))):(0,Mt.Z)((Le,Te)=>(0,vt.Tg)(Ve(Le,Te)).pipe((0,$e.s)(1),(0,tt.u)(Le)))}const qt="Service workers are disabled or not supported by this browser";class Tn{constructor(Re){if(this.serviceWorker=Re,Re){const Te=(0,re.R)(Re,"controllerchange").pipe((0,An.T)(()=>Re.controller)),ut=(0,Pe.v)(()=>(0,ve.of)(Re.controller)),Vt=(0,ze.x)(ut,Te);this.worker=Vt.pipe((0,Q.p)(Vn=>!!Vn)),this.registration=this.worker.pipe((0,Bn.n)(()=>Re.getRegistration()));const mr=(0,re.R)(Re,"message").pipe((0,An.T)(Vn=>Vn.data)).pipe((0,Q.p)(Vn=>Vn&&Vn.type)).pipe(function jn(Ve){return Ve?Re=>Gn(Ve)(Re):Re=>function Xn(Ve,Re){const Le=(0,Wn.T)(Ve)?Ve:()=>Ve;return(0,Wn.T)(Re)?Gn(Re,{connector:Le}):Te=>new Mn.G(Te,Le)}(new Et.B)(Re)}());mr.connect(),this.events=mr}else this.worker=this.events=this.registration=function Qt(Ve){return(0,Pe.v)(()=>(0,Se.$)(new Error(Ve)))}(qt)}postMessage(Re,Le){return this.worker.pipe((0,$e.s)(1),(0,De.M)(Te=>{Te.postMessage({action:Re,...Le})})).toPromise().then(()=>{})}postMessageWithOperation(Re,Le,Te){const ut=this.waitForOperationCompleted(Te),Vt=this.postMessage(Re,Le);return Promise.all([Vt,ut]).then(([,dn])=>dn)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Re){let Le;return Le="string"==typeof Re?Te=>Te.type===Re:Te=>Re.includes(Te.type),this.events.pipe((0,Q.p)(Le))}nextEventOfType(Re){return this.eventsOfType(Re).pipe((0,$e.s)(1))}waitForOperationCompleted(Re){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Q.p)(Le=>Le.nonce===Re),(0,$e.s)(1),(0,An.T)(Le=>{if(void 0!==Le.result)return Le.result;throw new Error(Le.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let wn=(()=>{var Ve;class Re{get isEnabled(){return this.sw.isEnabled}constructor(Te){if(this.sw=Te,this.pushManager=null,this.subscriptionChanges=new Et.B,!Te.isEnabled)return this.messages=st,this.notificationClicks=st,void(this.subscription=st);this.messages=this.sw.eventsOfType("PUSH").pipe((0,An.T)(Vt=>Vt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,An.T)(Vt=>Vt.data)),this.pushManager=this.sw.registration.pipe((0,An.T)(Vt=>Vt.pushManager));const ut=this.pushManager.pipe((0,Bn.n)(Vt=>Vt.getSubscription()));this.subscription=On(ut,this.subscriptionChanges)}requestSubscription(Te){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(qt));const ut={userVisibleOnly:!0};let Vt=this.decodeBase64(Te.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),dn=new Uint8Array(new ArrayBuffer(Vt.length));for(let fn=0;fnfn.subscribe(ut)),(0,$e.s)(1)).toPromise().then(fn=>(this.subscriptionChanges.next(fn),fn))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,$e.s)(1),(0,Bn.n)(ut=>{if(null===ut)throw new Error("Not subscribed to push notifications.");return ut.unsubscribe().then(Vt=>{if(!Vt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(qt))}decodeBase64(Te){return atob(Te)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(Tn))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac}),Re})(),Kn=(()=>{var Ve;class Re{get isEnabled(){return this.sw.isEnabled}constructor(Te){if(this.sw=Te,!Te.isEnabled)return this.versionUpdates=st,void(this.unrecoverable=st);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qt));const Te=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:Te},Te)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qt));const Te=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:Te},Te)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(Tn))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac}),Re})();const fr=new p.nKC("");function Ge(Ve,Re,Le,Te){return()=>{if(!(0,m.UE)(Te)||!("serviceWorker"in navigator)||!1===Le.enabled)return;let ut;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof Le.registrationStrategy)ut=Le.registrationStrategy();else{const[dn,...fn]=(Le.registrationStrategy||"registerWhenStable:30000").split(":");switch(dn){case"registerImmediately":ut=(0,ve.of)(null);break;case"registerWithDelay":ut=et(+fn[0]||0);break;case"registerWhenStable":ut=fn[0]?On(Fe(Ve),et(+fn[0])):Fe(Ve);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${Le.registrationStrategy}`)}}Ve.get(p.SKi).runOutsideAngular(()=>ut.pipe((0,$e.s)(1)).subscribe(()=>navigator.serviceWorker.register(Re,{scope:Le.scope}).catch(dn=>console.error("Service worker registration failed with:",dn))))}}function et(Ve){return(0,ve.of)(null).pipe(function Zt(Ve,Re=r){const Le=J(Ve,Re);return kt(()=>Le)}(Ve))}function Fe(Ve){return Ve.get(p.o8S).isStable.pipe((0,Q.p)(Le=>Le))}function qe(Ve,Re){return new Tn((0,m.UE)(Re)&&!1!==Ve.enabled?navigator.serviceWorker:void 0)}class Ct{}function Gt(Ve,Re={}){return(0,p.EmA)([wn,Kn,{provide:fr,useValue:Ve},{provide:Ct,useValue:Re},{provide:Tn,useFactory:qe,deps:[Ct,p.Agw]},{provide:p.hnV,useFactory:Ge,deps:[p.zZn,fr,Ct,p.Agw],multi:!0}])}let vn=(()=>{var Ve;class Re{static register(Te,ut={}){return{ngModule:Re,providers:[Gt(Te,ut)]}}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)},Ve.\u0275mod=p.$C({type:Ve}),Ve.\u0275inj=p.G2t({providers:[wn,Kn]}),Re})();var gt=E(446),zt=E(5173);const ye=(Ve,Re)=>({title_bb:Ve,animate_title:Re});function Ke(Ve,Re){if(1&Ve&&(p.j41(0,"ion-title",27),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.Y8G("ngClass",p.l_i(2,ye,null==Le.headerConfig?null:Le.headerConfig.showbackButton,(null==Le.headerConfig?null:Le.headerConfig.pageTitle)==Le.appName)),p.R7$(),p.JRh(null==Le.configVariables?null:Le.configVariables.siteName)}}function dt(Ve,Re){if(1&Ve&&(p.j41(0,"ion-title",28),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.headerConfig?null:Le.headerConfig.pageTitle)}}function pt(Ve,Re){1&Ve&&(p.nrm(0,"ion-input",29,0),p.nI1(2,"translate")),2&Ve&&p.Y8G("placeholder",p.bMT(2,1,"SEARCH_HINT"))}function Yt(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG(2);return p.Njj(Vt.emitEvent(ut,"edit"))}),p.nrm(1,"ion-icon",30),p.k0s()}}function $t(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",14)(1,"ion-buttons",15)(2,"ion-button",1),p.nrm(3,"ion-icon",16),p.k0s(),p.j41(4,"ion-button",17),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"back"))}),p.nrm(5,"ion-icon",18),p.k0s()(),p.DNE(6,Ke,2,5,"ion-title",19)(7,dt,2,1,"ion-title",20)(8,pt,3,3,"ion-input",21),p.j41(9,"ion-buttons",22)(10,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"search"))}),p.nrm(11,"ion-icon",24),p.k0s(),p.j41(12,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"profile"))}),p.nrm(13,"ion-icon",25),p.k0s()(),p.j41(14,"ion-buttons",22),p.DNE(15,Yt,2,0,"ion-button",26),p.k0s()()}if(2&Ve){const Le=p.XpG();p.R7$(2),p.Y8G("hidden",null==Le.headerConfig?null:Le.headerConfig.showbackButton),p.R7$(),p.FS9("src",null==Le.configVariables?null:Le.configVariables.tenantLogo),p.R7$(),p.Y8G("hidden",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton)),p.R7$(2),p.Y8G("ngIf",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton&&((null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("search"))>=0||(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0))),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig?null:Le.headerConfig.showbackButton)&&(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("search"))>=0),p.R7$(),p.Y8G("hidden",null==Le.headerConfig?null:Le.headerConfig.showbackButton),p.R7$(5),p.Y8G("hidden",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton)),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0)}}function an(Ve,Re){if(1&Ve&&(p.j41(0,"div",40),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(p.bMT(2,1,null==Le.headerConfig?null:Le.headerConfig.pageTitle))}}function ln(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.SpI(" ",null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].kathaSakhiBotName," ")}}function xn(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].parentTaraBotName)}}function cn(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].teacherTaraBotName)}}function nn(Ve,Re){1&Ve&&p.nrm(0,"img",41)}function _n(Ve,Re){1&Ve&&p.nrm(0,"img",42)}function Sn(Ve,Re){1&Ve&&p.nrm(0,"img",43)}function Pn(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",31)(1,"div",32),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"back"))}),p.nrm(2,"ion-icon",33),p.DNE(3,an,3,3,"div",34)(4,ln,2,1,"ion-label",35)(5,xn,2,1,"ion-label",35)(6,cn,2,1,"ion-label",35),p.j41(7,"div",36),p.DNE(8,nn,1,0,"img",37)(9,_n,1,0,"img",38)(10,Sn,1,0,"img",39),p.k0s()()()}if(2&Ve){const Le=p.XpG();p.R7$(),p.Y8G("ngClass","Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)||"Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)?"question-bot":""),p.R7$(2),p.Y8G("ngIf",!Le.isTitleChanged),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Katha Sakhi"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(2),p.Y8G("ngIf","Katha Sakhi"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf","Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf","Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle))}}function hr(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",23),p.bIt("click",function(){const ut=p.eBV(Le).$implicit,Vt=p.XpG(2);return p.Njj(Vt.handleFilter(ut))}),p.j41(1,"ion-chip",48),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}if(2&Ve){const Le=Re.$implicit,Te=p.XpG(2);p.R7$(),p.Y8G("ngClass",(null==Le?null:Le.label)==(null==Te.defaultFilter?null:Te.defaultFilter.label)?"active":""),p.R7$(),p.JRh(p.bMT(3,2,Le.label))}}function X(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",44)(1,"ion-chip",45),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.toggleMenu())}),p.nrm(2,"ion-icon",46),p.k0s(),p.DNE(3,hr,4,4,"div",47),p.k0s()}if(2&Ve){const Le=p.XpG();p.R7$(3),p.Y8G("ngForOf",Le.filters)}}function Ue(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-item",49),p.bIt("click",function(ut){const Vt=p.eBV(Le).$implicit,dn=p.XpG();return p.Njj(dn.emitSideMenuItemEvent(ut,Vt))}),p.j41(1,"ion-label",50),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}if(2&Ve){const Le=Re.$implicit,Te=p.XpG();p.R7$(),p.Y8G("ngClass",(null==Le?null:Le.label)==(null==Te.defaultFilter?null:Te.defaultFilter.label)?"active-label":""),p.R7$(),p.JRh(p.bMT(3,2,Le.label))}}let le=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn,Un,mr){this.utilService=Te,this.telemetryGeneratorService=ut,this.menuCtrl=Vt,this.headerService=dn,this.storage=fn,this.languageService=Un,this.modalCtrl=mr,this.headerConfig=!1,this.headerEvents=new p.bkB,this.sideMenuItemEvent=new p.bkB,this.isMenuOpen=!1,this.filters=[],this.appVersion="",this.appName="",this.isTitleChanged=!1,this.language="",C.q.getInfo().then(Vn=>{this.appVersion=`v${Vn.version}.${Vn.build}`,this.appName=Vn.name}),gt.g.then(Vn=>{this.configVariables=Vn}).catch(Vn=>{console.error("Failed to load configuration:",Vn)})}loadTabData(Te){this.language=Te,this.isTitleChanged=this.configVariables.titleCode.includes(Te)}ngOnInit(){var Te=this;return(0,a.A)(function*(){Te.defaultFilter={},Te.language=(yield Te.storage.getData("lang"))||"en",Te.isTitleChanged=Te.configVariables.titleCode.includes(Te.language),Te.languageSubscription=Te.languageService.currentLanguage$.subscribe(ut=>{Te.loadTabData(ut)}),Te.headerService.filterConfigEmitted$.subscribe(ut=>{Te.filters=[],Te.defaultFilter=ut.defaultFilter,Te.filters.push(ut.defaultFilter),ut.filter.forEach(Vt=>{Te.filters.push(Vt)})}),Te.appInfo=yield Te.utilService.getAppInfo()})()}scan(){var Te=this;return(0,a.A)(function*(){Te.telemetryGeneratorService.generateInteractTelemetry("TOUCH","qrscanner-clicked","home","home")})()}handleSearch(Te){var ut=this;return(0,a.A)(function*(){ut.emitEvent(Te,"search")})()}emitEvent(Te,ut){"scan"==ut&&this.scan(),this.headerEvents.emit({event:Te,name:ut})}toggleMenu(){var Te=this;return(0,a.A)(function*(){yield Te.menuCtrl.toggle(),Te.isMenuOpen=yield Te.menuCtrl.isEnabled()})()}emitSideMenuItemEvent(Te,ut){this.menuCtrl.close().then(()=>{this.handleFilter(ut)}).catch(Vt=>{this.handleFilter(ut)})}handleFilter(Te){this.defaultFilter=Te,this.sideMenuItemEvent.emit({filter:Te})}navigateToQRScreen(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.modalCtrl.create({component:te,cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield ut.present(),ut.onDidDismiss()})()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(B.a0),p.rXU(zt.O),p.rXU(D._t),p.rXU(B.Ux),p.rXU(B.n$),p.rXU(F.g),p.rXU(D.W3))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-application-header"]],inputs:{headerConfig:"headerConfig"},outputs:{headerEvents:"headerEvents",sideMenuItemEvent:"sideMenuItemEvent"},decls:22,vars:14,consts:[["searchInput",""],[3,"hidden"],[1,"custom-header"],["class","header-content",4,"ngIf"],["class","bot-back-panel",4,"ngIf"],["class","pills-container",4,"ngIf"],["contentId","mainContent","side","start","persistent","true",1,"sb-side-menu",3,"swipeGesture"],[1,"filter_title"],[1,"ion-padding"],[1,"sb-menu-list"],["lines","none",3,"click",4,"ngFor","ngForOf"],[1,"footer_menu"],["role","button","menuClose","",1,"sb-menu-item"],["role","button","menuClose",""],[1,"header-content"],["slot","start",1,"start-icon"],["aria-hidden","true",1,"pitara-icon",3,"src"],[3,"click","hidden"],["aria-hidden","true","src","assets/icon/back.svg",1,"back-btn"],["role","heading","aria-level","1",3,"ngClass",4,"ngIf"],["role","heading","aria-level","1",4,"ngIf"],["type","search",3,"placeholder",4,"ngIf"],["slot","end",3,"hidden"],[3,"click"],["aria-hidden","true","src","assets/icon/search.svg"],["aria-hidden","true","src","assets/icon/language-icon.svg"],[3,"click",4,"ngIf"],["role","heading","aria-level","1",3,"ngClass"],["role","heading","aria-level","1"],["type","search",3,"placeholder"],["aria-hidden","true","src","assets/icon/edit.svg",1,"edit-icon"],[1,"bot-back-panel"],[1,"bot-back-panel-container",3,"click","ngClass"],["aria-hidden","true","src","assets/icon/bot-back-icon.svg"],["class","bot-back-panel__title",4,"ngIf"],[4,"ngIf"],[1,"logo"],["src","../../../assets/images/story_sakhi.png","alt","",4,"ngIf"],["src","../../../assets/images/parent_sakhi.png","alt","",4,"ngIf"],["src","../../../assets/images/teacher_sakhi.png","alt","",4,"ngIf"],[1,"bot-back-panel__title"],["src","../../../assets/images/story_sakhi.png","alt",""],["src","../../../assets/images/parent_sakhi.png","alt",""],["src","../../../assets/images/teacher_sakhi.png","alt",""],[1,"pills-container"],[1,"pills",3,"click"],["aria-hidden","true","src","assets/icon/list.svg"],[3,"click",4,"ngFor","ngForOf"],[1,"pills",3,"ngClass"],["lines","none",3,"click"],["role","button","menuClose","",1,"sb-menu-item",3,"ngClass"]],template:function(Te,ut){1&Te&&(p.j41(0,"ion-header",1)(1,"ion-toolbar",2),p.DNE(2,$t,16,9,"div",3)(3,Pn,11,8,"div",4)(4,X,4,1,"div",5),p.k0s()(),p.j41(5,"ion-menu",6)(6,"ion-header")(7,"ion-toolbar")(8,"ion-title",7),p.EFF(9),p.nI1(10,"translate"),p.k0s()()(),p.j41(11,"ion-content",8)(12,"ion-list",9),p.DNE(13,Ue,4,4,"ion-item",10),p.k0s()(),p.j41(14,"ion-footer")(15,"div",11)(16,"ion-label",12),p.EFF(17),p.nI1(18,"translate"),p.k0s(),p.j41(19,"ion-label",13)(20,"span"),p.EFF(21),p.k0s()()()()()),2&Te&&(p.Y8G("hidden",!(null!=ut.headerConfig&&ut.headerConfig.showHeader)),p.R7$(2),p.Y8G("ngIf","bot"!==(null==ut.headerConfig?null:ut.headerConfig.actionButtons[0])),p.R7$(),p.Y8G("ngIf","bot"===(null==ut.headerConfig?null:ut.headerConfig.actionButtons[0])),p.R7$(),p.Y8G("ngIf",!(null!=ut.headerConfig&&ut.headerConfig.showbackButton)&&"My Jaadui Pitara"!==(null==ut.headerConfig?null:ut.headerConfig.pageTitle)),p.R7$(),p.Y8G("swipeGesture",!1),p.R7$(4),p.JRh(p.bMT(10,10,"All Categories")),p.R7$(4),p.Y8G("ngForOf",ut.filters),p.R7$(4),p.Lme("",p.bMT(18,12,"Version: ")," ",ut.appVersion,""),p.R7$(4),p.JRh(null==ut.configVariables?null:ut.configVariables.siteName))},dependencies:[m.YU,m.Sq,m.bT,D.Jm,D.QW,D.ZB,D.W9,D.M0,D.eU,D.iq,D.$w,D.uz,D.he,D.nf,D.oS,D.BC,D.ai,D.Gw,_.D9],styles:["ion-header[_ngcontent-%COMP%]{box-shadow:none} .toolbar-container{padding:0!important;min-height:auto}.active-label[_ngcontent-%COMP%]{color:var(--ion-color-primary)}ion-icon[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;margin-left:0}.start-icon[_ngcontent-%COMP%] ion-icon.pitara-icon[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem}.header-content[_ngcontent-%COMP%]{display:flex}.pills-container[_ngcontent-%COMP%]{display:grid;gap:.25rem;overflow-y:auto;overflow-x:auto;grid-auto-flow:column;padding:1rem .5rem;grid-auto-columns:max-content}.pills-container[_ngcontent-%COMP%] .pills[_ngcontent-%COMP%]{padding:.375rem .75rem;text-transform:capitalize;border-radius:.625rem;font-size:.75rem;width:max-content}.pills-container[_ngcontent-%COMP%] .pills.active[_ngcontent-%COMP%]{background-color:var(--ion-color-secondary-contrast);color:var(--ion-color-primary-contrast)}.pills-container[_ngcontent-%COMP%] .pills[_ngcontent-%COMP%] icon-icon[_ngcontent-%COMP%]{margin-left:0}.sb-side-menu[_ngcontent-%COMP%]{--max-width: 68%}.sb-side-menu[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: var(--ion-color-primary-contrast);--color: var(--ion-color-secondary-contrast);margin:0 0 0 1.5rem}.sb-side-menu[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .filter_title[_ngcontent-%COMP%]{width:100%!important}.sb-side-menu[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{display:flex;align-items:center}.sb-side-menu[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block}.sb-side-menu[_ngcontent-%COMP%] .sb-menu-list[_ngcontent-%COMP%]{padding:0!important}span[_ngcontent-%COMP%]{font-size:12px}.custom-header[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.custom-header[_ngcontent-%COMP%] .title_bb[_ngcontent-%COMP%]{color:#000}.bot-back-panel[_ngcontent-%COMP%]{padding-bottom:2rem;background:url(Doodles.5521a3972f72a279.svg) center center/cover no-repeat;background-color:#fffaee}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container[_ngcontent-%COMP%]{background:var(--ion-color-primary);height:4rem;padding:1rem;display:flex;align-items:center}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container.question-bot[_ngcontent-%COMP%]{background:var(--ion-color-tertiary)}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:var(--ion-color-primary-contrast)}.bot-back-panel__title[_ngcontent-%COMP%]{font-size:1rem;font-style:normal;font-weight:700;color:var(--ion-color-primary-contrast);padding:0 .5rem}.edit-icon[_ngcontent-%COMP%]{width:1.2rem;height:1.2rem}.back-btn[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.logo[_ngcontent-%COMP%]{position:absolute;right:0;top:-.5rem;width:7rem;cursor:pointer}ion-title[_ngcontent-%COMP%]{font-weight:700;padding:0 .5rem 0 0;font-size:.8rem;width:48%}.animate_title[_ngcontent-%COMP%]{background-image:linear-gradient(-225deg,#FCB915 5%,var(--ion-color-primary) 29%,var(--ion-color-primary-shade) 67%,#EC5050 100%);background-size:auto auto;background-clip:border-box;background-size:200% auto;background-clip:text;text-fill-color:transparent;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:_ngcontent-%COMP%_textclip 2s linear infinite;font-weight:700;padding:0 .5rem 0 0;font-size:.8rem}@keyframes _ngcontent-%COMP%_textclip{to{background-position:200% center}}.footer_menu[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;margin:.5rem 1.5rem}"]}),Re})();const Ye=["mainContent"];let _t=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn,Un,mr,Vn,lr,Or,ni,gi){this.headerService=Te,this.telemetryAutoSyncService=ut,this.scannerService=Vt,this.popoverCtrl=dn,this.modalCtrl=fn,this.router=Un,this.alertController=mr,this.location=Vn,this.route=lr,this.platform=Or,this.translate=ni,this.swUpdate=gi,this.langModalOpen=!1,this.count=0,this.optModalOpen=!1,this.languages=[],this.exitModalPresented=!1,this.environmentInjector=(0,p.WQX)(p.uvJ),this.initializeApp(),this.initialize()}initializeApp(){history.pushState(null,"",location.href),this.swUpdate.versionUpdates.subscribe(Te=>{switch(Te.type){case"VERSION_DETECTED":this.presentUpdateAlert();break;case"VERSION_READY":console.log(`Current app version: ${Te.currentVersion.hash}`);break;case"VERSION_INSTALLATION_FAILED":console.log(`Failed to install app version '${Te.version.hash}': ${Te.error}`)}})}initialize(){var Te=this;return(0,a.A)(function*(){window.onpopstate=(0,a.A)(function*(){history.pushState(null,"",location.href);const ut=yield Te.modalCtrl.getTop();ut&&ut.dismiss()})})()}presentExitConfirmationModal(){var Te=this;return(0,a.A)(function*(){let ut;Te.exitModalPresented=!0,setTimeout(()=>{Te.exitModalPresented=!1},4e3),Te.optModalOpen=!0,ut=yield Te.modalCtrl.create({component:se.Z,cssClass:"sheet-modal",breakpoints:[.2],showBackdrop:!1,backdropDismiss:!1,initialBreakpoint:.2,handle:!1,handleBehavior:"none"}),yield ut.present(),ut.onDidDismiss().then(Vt=>{Te.optModalOpen=!1,Vt.data&&Vt.data&&(window.close(),C.q.exitApp())})})()}presentUpdateAlert(){var Te=this;return(0,a.A)(function*(){yield(yield Te.alertController.create({header:Te.translate.instant("Update Available"),message:Te.translate.instant("A new version of the application is available. Load it?"),buttons:[{text:Te.translate.instant("Yes"),handler:()=>{window.location.reload()}}]})).present()})()}ngOnInit(){var Te=this;return(0,a.A)(function*(){history.pushState(null,document.title,window.location.href),Te.headerService.headerConfigEmitted$.subscribe(ut=>{Te.headerConfig=ut}),Te.headerService.filterConfigEmitted$.subscribe(ut=>{Te.languages=ut.languages}),Te.autoSyncTelemetry(),C.q.addListener("pause",()=>Te.telemetryAutoSyncService.pause()),C.q.addListener("resume",()=>Te.telemetryAutoSyncService.continue())})()}handleHeaderEvents(Te){var ut=this;return(0,a.A)(function*(){"scan"==Te.name?ut.scannerService.requestPermission(Vt=>{if("cancel"===Vt||"cancel_hw_back"===Vt||"cancel_nav_back"===Vt)return;let dn="";const fn=new RegExp("(/dial/(?[a-zA-Z0-9]+)|(/QR/\\?id=(?[a-zA-Z0-9]+)))").exec(Vt);fn&&fn.length>1&&(dn=null==fn?void 0:fn.groups[Object.keys(null==fn?void 0:fn.groups).find(Un=>!(null==fn||!fn.groups[Un]))]),dn?ut.router.navigate(["/qr-scan-result"],{state:{scannedData:dn}}):ut.handleInvalidQRcode(Vt)},Vt=>{console.warn(Vt)}):"profile"==Te.name?ut.langModalOpen||(ut.presentModal(Te),ut.langModalOpen=!0):"search"==Te.name&&ut.router.navigate(["/search"]),ut.headerService.sidebarEvent(Te)})()}presentModal(Te){var ut=this;return(0,a.A)(function*(){const Vt=yield ut.popoverCtrl.create({component:w,componentProps:{languages:ut.languages},cssClass:"lang-modal",event:Te,translucent:!0,dismissOnSelect:!0});yield Vt.present(),Vt.onDidDismiss().then(dn=>{ut.langModalOpen=!1,ut.headerService.sidebarEvent({name:"language"})})})()}menuItemAction(Te){var ut=this;return(0,a.A)(function*(){ut.headerService.sideMenuItemEvents(Te)})()}autoSyncTelemetry(){this.telemetryAutoSyncService.start(3e4).subscribe()}handleInvalidQRcode(Te){var ut=this;return(0,a.A)(function*(){const Vt=yield ut.modalCtrl.create({component:te,componentProps:{scannedData:Te},cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield Vt.present(),Vt.onDidDismiss()})()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(g.U),p.rXU(ke),p.rXU(it),p.rXU(D.IE),p.rXU(D.W3),p.rXU(O.Ix),p.rXU(D.hG),p.rXU(m.aZ),p.rXU(O.nX),p.rXU(c.OD),p.rXU(_.c$),p.rXU(Kn))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-root"]],viewQuery:function(Te,ut){if(1&Te&&p.GBs(Ye,5,D.Rg),2&Te){let Vt;p.mGM(Vt=p.lsd())&&(ut.routerOutlet=Vt.first)}},decls:8,vars:2,consts:[["ionRouterOutlet",""],[2,"z-index","1"],[3,"headerEvents","sideMenuItemEvent","headerConfig"],["contentId","mainContent"],["id","mainContent","main","",3,"swipeGesture"]],template:function(Te,ut){if(1&Te){const Vt=p.RV6();p.j41(0,"ion-app")(1,"div",1)(2,"app-application-header",2),p.bIt("headerEvents",function(fn){return p.eBV(Vt),p.Njj(ut.handleHeaderEvents(fn))})("sideMenuItemEvent",function(fn){return p.eBV(Vt),p.Njj(ut.menuItemAction(fn))}),p.k0s()(),p.j41(3,"ion-split-pane",3),p.nrm(4,"ion-router-outlet",4,0),p.k0s(),p.nrm(6,"ion-router-outlet")(7,"app-tabs"),p.k0s()}2&Te&&(p.R7$(2),p.Y8G("headerConfig",ut.headerConfig),p.R7$(2),p.Y8G("swipeGesture",!1))},dependencies:[D.U1,D.HP,D.Rg,le]}),Re})();const Nn=[{path:"",loadChildren:()=>E.e(786).then(E.bind(E,786)).then(Ve=>Ve.SplashPageModule),pathMatch:"full"},{path:"tabs",loadChildren:()=>E.e(5695).then(E.bind(E,5695)).then(Ve=>Ve.TabsPageModule)},{path:"home",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(4392)]).then(E.bind(E,4392)).then(Ve=>Ve.HomePageModule)},{path:"my-pitara",loadChildren:()=>Promise.all([E.e(2076),E.e(4567)]).then(E.bind(E,4567)).then(Ve=>Ve.MyPitaraPageModule)},{path:"story",loadChildren:()=>Promise.all([E.e(4503),E.e(2648)]).then(E.bind(E,2648)).then(Ve=>Ve.StoryPageModule)},{path:"player",loadChildren:()=>E.e(7916).then(E.bind(E,7916)).then(Ve=>Ve.PlayerPageModule)},{path:"teacher-sakhi",loadChildren:()=>Promise.all([E.e(4503),E.e(1177)]).then(E.bind(E,1177)).then(Ve=>Ve.TeacherSakhiPageModule)},{path:"view-all",loadChildren:()=>Promise.all([E.e(5006),E.e(6674),E.e(3119)]).then(E.bind(E,3119)).then(Ve=>Ve.ViewAllPageModule)},{path:"create-playlist",loadChildren:()=>Promise.all([E.e(6674),E.e(3066)]).then(E.bind(E,3066)).then(Ve=>Ve.CreatePlaylistPageModule)},{path:"search",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(1983)]).then(E.bind(E,1983)).then(Ve=>Ve.SearchPageModule)},{path:"qr-scan-result",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(8761)]).then(E.bind(E,8761)).then(Ve=>Ve.QrScanResultPageModule)},{path:"parent-sakhi",loadChildren:()=>Promise.all([E.e(4503),E.e(101)]).then(E.bind(E,101)).then(Ve=>Ve.ParentSakhiPageModule)},{path:"playlist-details",loadChildren:()=>Promise.all([E.e(2076),E.e(4294)]).then(E.bind(E,4294)).then(Ve=>Ve.PlaylistDetailsPageModule)}];let pr=(()=>{var Ve;class Re{}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)},Ve.\u0275mod=p.$C({type:Ve}),Ve.\u0275inj=p.G2t({imports:[O.iI.forRoot(Nn,{preloadingStrategy:O.Kp}),O.iI]}),Re})();var wr=E(5553);class qr{constructor(Re,Le="/assets/i18n/",Te=".json"){this.http=Re,this.prefix=Le,this.suffix=Te}getTranslation(Re){return this.http.get(`${this.prefix}${Re}${this.suffix}`)}}var Wr=E(1626),ei=E(3486),jr=E(4591),Vi=E(6011),Dr=E(1765),vi=E(444),$n=E(7803),mi=E(3696),Oi=E(3871),Di=E(2918),Ai=E(1113),ji=E(3721),Mi=E(8402),Hi=E(4447),Kr=E(3172);function wi(Ve){return new qr(Ve,"./assets/i18n/",".json")}function _i(Ve){return()=>Ve.initializePlugin()}let Po=(()=>{var Ve;class Re{constructor(Te,ut){this.translate=Te,this.storage=ut,this.findSiteSubDomain(),this.storage.getData("lang").then(Vt=>{this.translate.setDefaultLang(Vt||"hi"),Vt||this.setDefaultLanguage()}),gt.g.then(Vt=>{this.configVariables=Vt}).catch(Vt=>{console.error("Failed to load configuration:",Vt)})}setDefaultLanguage(){this.storage.setData("lang","hi"),this.translate.setDefaultLang("hi"),this.translate.use("hi");for(let dn=0;dn<(null===(Te=this.configVariables)||void 0===Te?void 0:Te.languages.length);dn++){var Te,ut;if(null!==(ut=this.configVariables)&&void 0!==ut&&ut.languages[dn].default){var Vt;let fn=null===(Vt=this.configVariables)||void 0===Vt?void 0:Vt.languages[dn].id;this.storage.setData("lang",fn),this.translate.setDefaultLang(fn),this.translate.use(fn)}}}findSiteSubDomain(){const Vt=new URL(document.baseURI).hostname.split(".");localStorage.setItem("subDomain",Vt[0]),this.setManifestFile(Vt[0])}setManifestFile(Te){var ut=document.createElement("link");ut.rel="manifest",ut.href=Te+".webmanifest",document.getElementsByTagName("head")[0].appendChild(ut)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(_.c$),p.KVO(ei.n))},Ve.\u0275mod=p.$C({type:Ve,bootstrap:[_t]}),Ve.\u0275inj=p.G2t({providers:[{provide:O.b,useClass:c.jM},ei.n,jr.a,Vi.H,Dr.H,ke,g.U,je.a,vi.f,$n.q,B.Gf,mi.w,B.hs,B.q4,B.XU,Oi.d,B.XI,Di.B,zt.O,it,Ze,Be,B.Sc,Ai.q,B.F_,Mi.Z,B.MK,Hi.i,Kn,{provide:p.hnV,useFactory:_i,deps:[jr.a],multi:!0}],imports:[S.Bb,D.bv.forRoot(),pr,Wr.q1,_.h.forRoot({loader:{provide:_.Wr,useFactory:wi,deps:[Wr.Qq]}}),wr.h,ji.h,vn.register("ngsw-worker.js",{enabled:Kr.c.production})]}),Re})();var Ir=E(1288),Bi=E(9657);const go=function(){var Ve=(0,a.A)(function*(Re,Le){if(!(typeof window>"u"))return yield,(0,Bi.b)([["jeep-sqlite",[[1,"jeep-sqlite",{autoSave:[516,"autosave"],typeOrm:[516,"typeorm"],wasmPath:[513,"wasmpath"],pickText:[513,"picktext"],saveText:[513,"savetext"],buttonOptions:[513,"buttonoptions"],innerAutoSave:[32],innerTypeOrm:[32],innerWasmPath:[32],innerPickText:[32],innerSaveText:[32],innerButtonOptions:[32],echo:[64],createConnection:[64],isConnection:[64],closeConnection:[64],open:[64],close:[64],getVersion:[64],beginTransaction:[64],commitTransaction:[64],rollbackTransaction:[64],isTransactionActive:[64],execute:[64],executeSet:[64],run:[64],query:[64],getTableList:[64],isDBExists:[64],isDBOpen:[64],deleteDatabase:[64],isStoreOpen:[64],copyFromAssets:[64],isTableExists:[64],createSyncTable:[64],getSyncDate:[64],setSyncDate:[64],isJsonValid:[64],importFromJson:[64],exportToJson:[64],deleteExportedRows:[64],addUpgradeStatement:[64],isDatabase:[64],getDatabaseList:[64],checkConnectionsConsistency:[64],saveToStore:[64],saveToLocalDisk:[64],getFromLocalDiskToStore:[64],getFromHTTPRequest:[64]},null,{autoSave:["parseAutoSave"],typeOrm:["parseTypeOrm"],wasmPath:["parseWasmPath"],pickText:["parsePickText"],saveText:["parseSaveText"],buttonOptions:["parseButtonOptions"]}]]]],Le)});return function(Le,Te){return Ve.apply(this,arguments)}}();var zi=E(5083);(0,p.SmG)(),"web"===zi.Ii.getPlatform()&&(window,typeof window>"u"?Promise.resolve():(0,Ir.p)().then(()=>(0,Ir.b)([["pwa-camera-modal",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],present:[64],dismiss:[64]}]]],["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],hidePicker:[4,"hide-picker"],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[16,"keyup","handleBackdropKeyUp"]]]]]],undefined)),go(window),window.addEventListener("DOMContentLoaded",(0,a.A)(function*(){const Ve=document.createElement("jeep-sqlite");document.body.appendChild(Ve),yield customElements.whenDefined("jeep-sqlite"),Ve.autoSave=!0}))),S.sG().bootstrapModule(Po).catch(Ve=>console.log(Ve))},1990:(Ce,ee,E)=>{var a=ee;a.bignum=E(6867),a.define=E(6626).define,a.base=E(5066),a.constants=E(7740),a.decoders=E(1558),a.encoders=E(2714)},6626:(Ce,ee,E)=>{var a=E(1990),S=E(1993);function O(c,D){this.name=c,this.body=D,this.decoders={},this.encoders={}}ee.define=function(D,C){return new O(D,C)},O.prototype._createNamed=function(D){var C;try{C=E(8326).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch{C=function(F){this._initNamed(F)}}return S(C,D),C.prototype._initNamed=function(F){D.call(this,F)},new C(this)},O.prototype._getDecoder=function(D){return this.decoders.hasOwnProperty(D=D||"der")||(this.decoders[D]=this._createNamed(a.decoders[D])),this.decoders[D]},O.prototype.decode=function(D,C,_){return this._getDecoder(C).decode(D,_)},O.prototype._getEncoder=function(D){return this.encoders.hasOwnProperty(D=D||"der")||(this.encoders[D]=this._createNamed(a.encoders[D])),this.encoders[D]},O.prototype.encode=function(D,C,_){return this._getEncoder(C).encode(D,_)}},7290:(Ce,ee,E)=>{var a=E(1993),S=E(5066).Reporter,p=E(3838).Buffer;function O(D,C){S.call(this,C),p.isBuffer(D)?(this.base=D,this.offset=0,this.length=D.length):this.error("Input not Buffer")}function c(D,C){if(Array.isArray(D))this.length=0,this.value=D.map(function(_){return _ instanceof c||(_=new c(_,C)),this.length+=_.length,_},this);else if("number"==typeof D){if(!(0<=D&&D<=255))return C.error("non-byte EncoderBuffer value");this.value=D,this.length=1}else if("string"==typeof D)this.value=D,this.length=p.byteLength(D);else{if(!p.isBuffer(D))return C.error("Unsupported type: "+typeof D);this.value=D,this.length=D.length}}a(O,S),ee.t=O,O.prototype.save=function(){return{offset:this.offset,reporter:S.prototype.save.call(this)}},O.prototype.restore=function(C){var _=new O(this.base);return _.offset=C.offset,_.length=this.offset,this.offset=C.offset,S.prototype.restore.call(this,C.reporter),_},O.prototype.isEmpty=function(){return this.offset===this.length},O.prototype.readUInt8=function(C){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(C||"DecoderBuffer overrun")},O.prototype.skip=function(C,_){if(!(this.offset+C<=this.length))return this.error(_||"DecoderBuffer overrun");var F=new O(this.base);return F._reporterState=this._reporterState,F.offset=this.offset,F.length=this.offset+C,this.offset+=C,F},O.prototype.raw=function(C){return this.base.slice(C?C.offset:this.offset,this.length)},ee.d=c,c.prototype.join=function(C,_){return C||(C=new p(this.length)),_||(_=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(F){F.join(C,_),_+=F.length}):("number"==typeof this.value?C[_]=this.value:"string"==typeof this.value?C.write(this.value,_):p.isBuffer(this.value)&&this.value.copy(C,_),_+=this.length)),C}},5066:(Ce,ee,E)=>{var a=ee;a.Reporter=E(5697).a,a.DecoderBuffer=E(7290).t,a.EncoderBuffer=E(7290).d,a.Node=E(4320)},4320:(Ce,ee,E)=>{var a=E(5066).Reporter,S=E(5066).EncoderBuffer,p=E(5066).DecoderBuffer,O=E(9210),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],D=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function _(B,m){var T={};this._baseState=T,T.enc=B,T.parent=m||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}Ce.exports=_;var F=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];_.prototype.clone=function(){var m=this._baseState,T={};F.forEach(function(w){T[w]=m[w]});var A=new this.constructor(T.parent);return A._baseState=T,A},_.prototype._wrap=function(){var m=this._baseState;D.forEach(function(T){this[T]=function(){var w=new this.constructor(this);return m.children.push(w),w[T].apply(w,arguments)}},this)},_.prototype._init=function(m){var T=this._baseState;O(null===T.parent),m.call(this),T.children=T.children.filter(function(A){return A._baseState.parent===this},this),O.equal(T.children.length,1,"Root node can have only one child")},_.prototype._useArgs=function(m){var T=this._baseState,A=m.filter(function(w){return w instanceof this.constructor},this);m=m.filter(function(w){return!(w instanceof this.constructor)},this),0!==A.length&&(O(null===T.children),T.children=A,A.forEach(function(w){w._baseState.parent=this},this)),0!==m.length&&(O(null===T.args),T.args=m,T.reverseArgs=m.map(function(w){if("object"!=typeof w||w.constructor!==Object)return w;var R={};return Object.keys(w).forEach(function($){$==(0|$)&&($|=0),R[w[$]]=$}),R}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(B){_.prototype[B]=function(){throw new Error(B+" not implemented for encoding: "+this._baseState.enc)}}),c.forEach(function(B){_.prototype[B]=function(){var T=this._baseState,A=Array.prototype.slice.call(arguments);return O(null===T.tag),T.tag=B,this._useArgs(A),this}}),_.prototype.use=function(m){O(m);var T=this._baseState;return O(null===T.use),T.use=m,this},_.prototype.optional=function(){return this._baseState.optional=!0,this},_.prototype.def=function(m){var T=this._baseState;return O(null===T.default),T.default=m,T.optional=!0,this},_.prototype.explicit=function(m){var T=this._baseState;return O(null===T.explicit&&null===T.implicit),T.explicit=m,this},_.prototype.implicit=function(m){var T=this._baseState;return O(null===T.explicit&&null===T.implicit),T.implicit=m,this},_.prototype.obj=function(){var m=this._baseState,T=Array.prototype.slice.call(arguments);return m.obj=!0,0!==T.length&&this._useArgs(T),this},_.prototype.key=function(m){var T=this._baseState;return O(null===T.key),T.key=m,this},_.prototype.any=function(){return this._baseState.any=!0,this},_.prototype.choice=function(m){var T=this._baseState;return O(null===T.choice),T.choice=m,this._useArgs(Object.keys(m).map(function(A){return m[A]})),this},_.prototype.contains=function(m){var T=this._baseState;return O(null===T.use),T.contains=m,this},_.prototype._decode=function(m,T){var A=this._baseState;if(null===A.parent)return m.wrapResult(A.children[0]._decode(m,T));var P,w=A.default,R=!0,$=null;if(null!==A.key&&($=m.enterKey(A.key)),A.optional){var L=null;if(null!==A.explicit?L=A.explicit:null!==A.implicit?L=A.implicit:null!==A.tag&&(L=A.tag),null!==L||A.any){if(R=this._peekTag(m,L,A.any),m.isError(R))return R}else{var M=m.save();try{null===A.choice?this._decodeGeneric(A.tag,m,T):this._decodeChoice(m,T),R=!0}catch{R=!1}m.restore(M)}}if(A.obj&&R&&(P=m.enterObject()),R){if(null!==A.explicit){var U=this._decodeTag(m,A.explicit);if(m.isError(U))return U;m=U}var j=m.offset;if(null===A.use&&null===A.choice){A.any&&(M=m.save());var W=this._decodeTag(m,null!==A.implicit?A.implicit:A.tag,A.any);if(m.isError(W))return W;A.any?w=m.raw(M):m=W}if(T&&T.track&&null!==A.tag&&T.track(m.path(),j,m.length,"tagged"),T&&T.track&&null!==A.tag&&T.track(m.path(),m.offset,m.length,"content"),A.any||(w=null===A.choice?this._decodeGeneric(A.tag,m,T):this._decodeChoice(m,T)),m.isError(w))return w;if(!A.any&&null===A.choice&&null!==A.children&&A.children.forEach(function(te){te._decode(m,T)}),A.contains&&("octstr"===A.tag||"bitstr"===A.tag)){var ie=new p(w);w=this._getUse(A.contains,m._reporterState.obj)._decode(ie,T)}}return A.obj&&R&&(w=m.leaveObject(P)),null===A.key||null===w&&!0!==R?null!==$&&m.exitKey($):m.leaveKey($,A.key,w),w},_.prototype._decodeGeneric=function(m,T,A){var w=this._baseState;return"seq"===m||"set"===m?null:"seqof"===m||"setof"===m?this._decodeList(T,m,w.args[0],A):/str$/.test(m)?this._decodeStr(T,m,A):"objid"===m&&w.args?this._decodeObjid(T,w.args[0],w.args[1],A):"objid"===m?this._decodeObjid(T,null,null,A):"gentime"===m||"utctime"===m?this._decodeTime(T,m,A):"null_"===m?this._decodeNull(T,A):"bool"===m?this._decodeBool(T,A):"objDesc"===m?this._decodeStr(T,m,A):"int"===m||"enum"===m?this._decodeInt(T,w.args&&w.args[0],A):null!==w.use?this._getUse(w.use,T._reporterState.obj)._decode(T,A):T.error("unknown tag: "+m)},_.prototype._getUse=function(m,T){var A=this._baseState;return A.useDecoder=this._use(m,T),O(null===A.useDecoder._baseState.parent),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit&&(A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit),A.useDecoder},_.prototype._decodeChoice=function(m,T){var A=this._baseState,w=null,R=!1;return Object.keys(A.choice).some(function($){var L=m.save(),M=A.choice[$];try{var P=M._decode(m,T);if(m.isError(P))return!1;w={type:$,value:P},R=!0}catch{return m.restore(L),!1}return!0},this),R?w:m.error("Choice not matched")},_.prototype._createEncoderBuffer=function(m){return new S(m,this.reporter)},_.prototype._encode=function(m,T,A){var w=this._baseState;if(null===w.default||w.default!==m){var R=this._encodeValue(m,T,A);if(void 0!==R&&!this._skipDefault(R,T,A))return R}},_.prototype._encodeValue=function(m,T,A){var w=this._baseState;if(null===w.parent)return w.children[0]._encode(m,T||new a);var M=null;if(this.reporter=T,w.optional&&void 0===m){if(null===w.default)return;m=w.default}var R=null,$=!1;if(w.any)M=this._createEncoderBuffer(m);else if(w.choice)M=this._encodeChoice(m,T);else if(w.contains)R=this._getUse(w.contains,A)._encode(m,T),$=!0;else if(w.children)R=w.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,T,m);if(null===j._baseState.key)return T.error("Child should have a key");var W=T.enterKey(j._baseState.key);if("object"!=typeof m)return T.error("Child expected, but input is not object");var ie=j._encode(m[j._baseState.key],T,m);return T.leaveKey(W),ie},this).filter(function(j){return j}),R=this._createEncoderBuffer(R);else if("seqof"===w.tag||"setof"===w.tag){if(!w.args||1!==w.args.length)return T.error("Too many args for : "+w.tag);if(!Array.isArray(m))return T.error("seqof/setof, but data is not Array");var L=this.clone();L._baseState.implicit=null,R=this._createEncoderBuffer(m.map(function(j){return this._getUse(this._baseState.args[0],m)._encode(j,T)},L))}else null!==w.use?M=this._getUse(w.use,A)._encode(m,T):(R=this._encodePrimitive(w.tag,m),$=!0);if(!w.any&&null===w.choice){var P=null!==w.implicit?w.implicit:w.tag,U=null===w.implicit?"universal":"context";null===P?null===w.use&&T.error("Tag could be omitted only for .use()"):null===w.use&&(M=this._encodeComposite(P,$,U,R))}return null!==w.explicit&&(M=this._encodeComposite(w.explicit,!1,"context",M)),M},_.prototype._encodeChoice=function(m,T){var A=this._baseState,w=A.choice[m.type];return w||O(!1,m.type+" not found in "+JSON.stringify(Object.keys(A.choice))),w._encode(m.value,T)},_.prototype._encodePrimitive=function(m,T){var A=this._baseState;if(/str$/.test(m))return this._encodeStr(T,m);if("objid"===m&&A.args)return this._encodeObjid(T,A.reverseArgs[0],A.args[1]);if("objid"===m)return this._encodeObjid(T,null,null);if("gentime"===m||"utctime"===m)return this._encodeTime(T,m);if("null_"===m)return this._encodeNull();if("int"===m||"enum"===m)return this._encodeInt(T,A.args&&A.reverseArgs[0]);if("bool"===m)return this._encodeBool(T);if("objDesc"===m)return this._encodeStr(T,m);throw new Error("Unsupported tag: "+m)},_.prototype._isNumstr=function(m){return/^[0-9 ]*$/.test(m)},_.prototype._isPrintstr=function(m){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(m)}},5697:(Ce,ee,E)=>{var a=E(1993);function S(O){this._reporterState={obj:null,path:[],options:O||{},errors:[]}}function p(O,c){this.path=O,this.rethrow(c)}ee.a=S,S.prototype.isError=function(c){return c instanceof p},S.prototype.save=function(){var c=this._reporterState;return{obj:c.obj,pathLen:c.path.length}},S.prototype.restore=function(c){var D=this._reporterState;D.obj=c.obj,D.path=D.path.slice(0,c.pathLen)},S.prototype.enterKey=function(c){return this._reporterState.path.push(c)},S.prototype.exitKey=function(c){var D=this._reporterState;D.path=D.path.slice(0,c-1)},S.prototype.leaveKey=function(c,D,C){var _=this._reporterState;this.exitKey(c),null!==_.obj&&(_.obj[D]=C)},S.prototype.path=function(){return this._reporterState.path.join("/")},S.prototype.enterObject=function(){var c=this._reporterState,D=c.obj;return c.obj={},D},S.prototype.leaveObject=function(c){var D=this._reporterState,C=D.obj;return D.obj=c,C},S.prototype.error=function(c){var D,C=this._reporterState,_=c instanceof p;if(D=_?c:new p(C.path.map(function(F){return"["+JSON.stringify(F)+"]"}).join(""),c.message||c,c.stack),!C.options.partial)throw D;return _||C.errors.push(D),D},S.prototype.wrapResult=function(c){var D=this._reporterState;return D.options.partial?{result:this.isError(c)?null:c,errors:D.errors}:c},a(p,Error),p.prototype.rethrow=function(c){if(this.message=c+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(D){this.stack=D.stack}return this}},6283:(Ce,ee,E)=>{var a=E(7740);ee.tagClass={0:"universal",1:"application",2:"context",3:"private"},ee.tagClassByName=a._reverse(ee.tagClass),ee.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ee.tagByName=a._reverse(ee.tag)},7740:(Ce,ee,E)=>{var a=ee;a._reverse=function(p){var O={};return Object.keys(p).forEach(function(c){(0|c)==c&&(c|=0),O[p[c]]=c}),O},a.der=E(6283)},5941:(Ce,ee,E)=>{var a=E(1993),S=E(1990),p=S.base,O=S.bignum,c=S.constants.der;function D(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new C,this.tree._init(B.body)}function C(B){p.Node.call(this,"der",B)}function _(B,m){var T=B.readUInt8(m);if(B.isError(T))return T;var A=c.tagClass[T>>6],w=!(32&T);if(31&~T)T&=31;else{var R=T;for(T=0;!(128&~R);){if(R=B.readUInt8(m),B.isError(R))return R;T<<=7,T|=127&R}}return{cls:A,primitive:w,tag:T,tagStr:c.tag[T]}}function F(B,m,T){var A=B.readUInt8(T);if(B.isError(A))return A;if(!m&&128===A)return null;if(!(128&A))return A;var w=127&A;if(w>4)return B.error("length octect is too long");A=0;for(var R=0;R{var a=ee;a.der=E(5941),a.pem=E(6935)},6935:(Ce,ee,E)=>{var a=E(1993),S=E(3838).Buffer,p=E(5941);function O(c){p.call(this,c),this.enc="pem"}a(O,p),Ce.exports=O,O.prototype.decode=function(D,C){for(var _=D.toString().split(/[\r\n]+/g),F=C.label.toUpperCase(),B=/^-----(BEGIN|END) ([^-]+)-----$/,m=-1,T=-1,A=0;A<_.length;A++){var w=_[A].match(B);if(null!==w&&w[2]===F){if(-1!==m){if("END"!==w[1])break;T=A;break}if("BEGIN"!==w[1])break;m=A}}if(-1===m||-1===T)throw new Error("PEM section not found for: "+F);var R=_.slice(m+1,T).join("");R.replace(/[^a-z0-9\+\/=]+/gi,"");var $=new S(R,"base64");return p.prototype.decode.call(this,$,C)}},2193:(Ce,ee,E)=>{var a=E(1993),S=E(3838).Buffer,p=E(1990),O=p.base,c=p.constants.der;function D(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new C,this.tree._init(B.body)}function C(B){O.Node.call(this,"der",B)}function _(B){return B<10?"0"+B:B}Ce.exports=D,D.prototype.encode=function(m,T){return this.tree._encode(m,T).join()},a(C,O.Node),C.prototype._encodeComposite=function(m,T,A,w){var M,R=function F(B,m,T,A){var w;if("seqof"===B?B="seq":"setof"===B&&(B="set"),c.tagByName.hasOwnProperty(B))w=c.tagByName[B];else{if("number"!=typeof B||(0|B)!==B)return A.error("Unknown tag: "+B);w=B}return w>=31?A.error("Multi-octet tag encoding unsupported"):(m||(w|=32),w|=c.tagClassByName[T||"universal"]<<6)}(m,T,A,this.reporter);if(w.length<128)return(M=new S(2))[0]=R,M[1]=w.length,this._createEncoderBuffer([M,w]);for(var $=1,L=w.length;L>=256;L>>=8)$++;(M=new S(2+$))[0]=R,M[1]=128|$,L=1+$;for(var P=w.length;P>0;L--,P>>=8)M[L]=255&P;return this._createEncoderBuffer([M,w])},C.prototype._encodeStr=function(m,T){if("bitstr"===T)return this._createEncoderBuffer([0|m.unused,m.data]);if("bmpstr"===T){for(var A=new S(2*m.length),w=0;w=40)return this.reporter.error("Second objid identifier OOB");m.splice(0,2,40*m[0]+m[1])}var R=0;for(w=0;w=128;$>>=7)R++}var L=new S(R),M=L.length-1;for(w=m.length-1;w>=0;w--)for(L[M--]=127&($=m[w]);($>>=7)>0;)L[M--]=128|127&$;return this._createEncoderBuffer(L)},C.prototype._encodeTime=function(m,T){var A,w=new Date(m);return"gentime"===T?A=[_(w.getFullYear()),_(w.getUTCMonth()+1),_(w.getUTCDate()),_(w.getUTCHours()),_(w.getUTCMinutes()),_(w.getUTCSeconds()),"Z"].join(""):"utctime"===T?A=[_(w.getFullYear()%100),_(w.getUTCMonth()+1),_(w.getUTCDate()),_(w.getUTCHours()),_(w.getUTCMinutes()),_(w.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+T+" time is not supported yet"),this._encodeStr(A,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(m,T){if("string"==typeof m){if(!T)return this.reporter.error("String int or enum given, but no values map");if(!T.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=T[m]}if("number"!=typeof m&&!S.isBuffer(m)){var A=m.toArray();!m.sign&&128&A[0]&&A.unshift(0),m=new S(A)}if(S.isBuffer(m)){var w=m.length;0===m.length&&w++;var $=new S(w);return m.copy($),0===m.length&&($[0]=0),this._createEncoderBuffer($)}if(m<128)return this._createEncoderBuffer(m);if(m<256)return this._createEncoderBuffer([0,m]);w=1;for(var R=m;R>=256;R>>=8)w++;for(R=($=new Array(w)).length-1;R>=0;R--)$[R]=255&m,m>>=8;return 128&$[0]&&$.unshift(0),this._createEncoderBuffer(new S($))},C.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)},C.prototype._use=function(m,T){return"function"==typeof m&&(m=m(T)),m._getEncoder("der").tree},C.prototype._skipDefault=function(m,T,A){var R,w=this._baseState;if(null===w.default)return!1;var $=m.join();if(void 0===w.defaultBuffer&&(w.defaultBuffer=this._encodeValue(w.default,T,A).join()),$.length!==w.defaultBuffer.length)return!1;for(R=0;R<$.length;R++)if($[R]!==w.defaultBuffer[R])return!1;return!0}},2714:(Ce,ee,E)=>{var a=ee;a.der=E(2193),a.pem=E(4816)},4816:(Ce,ee,E)=>{var a=E(1993),S=E(2193);function p(O){S.call(this,O),this.enc="pem"}a(p,S),Ce.exports=p,p.prototype.encode=function(c,D){for(var _=S.prototype.encode.call(this,c).toString("base64"),F=["-----BEGIN "+D.label+"-----"],B=0;B<_.length;B+=64)F.push(_.slice(B,B+64));return F.push("-----END "+D.label+"-----"),F.join("\n")}},6867:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(8982).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},3981:(Ce,ee)=>{"use strict";ee.byteLength=function C(A){var w=D(A),$=w[1];return 3*(w[0]+$)/4-$},ee.toByteArray=function F(A){var w,j,R=D(A),$=R[0],L=R[1],M=new S(function _(A,w,R){return 3*(w+R)/4-R}(0,$,L)),P=0,U=L>0?$-4:$;for(j=0;j>16&255,M[P++]=w>>8&255,M[P++]=255&w;return 2===L&&(w=a[A.charCodeAt(j)]<<2|a[A.charCodeAt(j+1)]>>4,M[P++]=255&w),1===L&&(w=a[A.charCodeAt(j)]<<10|a[A.charCodeAt(j+1)]<<4|a[A.charCodeAt(j+2)]>>2,M[P++]=w>>8&255,M[P++]=255&w),M},ee.fromByteArray=function T(A){for(var w,R=A.length,$=R%3,L=[],M=16383,P=0,U=R-$;PU?U:P+M));return 1===$?L.push(E[(w=A[R-1])>>2]+E[w<<4&63]+"=="):2===$&&L.push(E[(w=(A[R-2]<<8)+A[R-1])>>10]+E[w>>4&63]+E[w<<2&63]+"="),L.join("")};for(var E=[],a=[],S=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)E[O]=p[O],a[p.charCodeAt(O)]=O;function D(A){var w=A.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=A.indexOf("=");return-1===R&&(R=w),[R,R===w?0:4-R%4]}function B(A){return E[A>>18&63]+E[A>>12&63]+E[A>>6&63]+E[63&A]}function m(A,w,R){for(var L=[],M=w;M=48&&h<=57?h-48:h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:void p(!1,"Invalid character in "+l)}function _(l,s,h){var v=C(l,h);return h-1>=s&&(v|=C(l,h-1)<<4),v}function F(l,s,h,v){for(var y=0,d=0,r=Math.min(l.length,h),f=s;f=49?k-49+10:k>=17?k-17+10:k,p(k>=0&&d0?s:h},c.min=function(s,h){return s.cmp(h)<0?s:h},c.prototype._init=function(s,h,v){if("number"==typeof s)return this._initNumber(s,h,v);if("object"==typeof s)return this._initArray(s,h,v);"hex"===h&&(h=16),p(h===(0|h)&&h>=2&&h<=36);var y=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(y++,this.negative=1),y=0;y-=3)this.words[d]|=(r=s[y]|s[y-1]<<8|s[y-2]<<16)<>>26-f&67108863,(f+=24)>=26&&(f-=26,d++);else if("le"===v)for(y=0,d=0;y>>26-f&67108863,(f+=24)>=26&&(f-=26,d++);return this._strip()},c.prototype._parseHex=function(s,h,v){this.length=Math.ceil((s.length-h)/6),this.words=new Array(this.length);for(var y=0;y=h;y-=2)f=_(s,h,y)<=18?(d-=18,this.words[r+=1]|=f>>>26):d+=8;else for(y=(s.length-h)%2==0?h+1:h;y=18?(d-=18,this.words[r+=1]|=f>>>26):d+=8;this._strip()},c.prototype._parseBase=function(s,h,v){this.words=[0],this.length=1;for(var y=0,d=1;d<=67108863;d*=h)y++;y--,d=d/h|0;for(var r=s.length-v,f=r%y,k=Math.min(r,r-f)+v,I=0,V=v;V1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{c.prototype.inspect=m}else c.prototype.inspect=m;function m(){return(this.red?""}var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function L(l,s,h){h.negative=s.negative^l.negative;var v=l.length+s.length|0;h.length=v,v=v-1|0;var y=0|l.words[0],d=0|s.words[0],r=y*d,k=r/67108864|0;h.words[0]=67108863&r;for(var I=1;I>>26,J=67108863&k,oe=Math.min(I,s.length-1),ve=Math.max(0,I-l.length+1);ve<=oe;ve++)V+=(r=(y=0|l.words[I-ve|0])*(d=0|s.words[ve])+J)/67108864|0,J=67108863&r;h.words[I]=0|J,k=0|V}return 0!==k?h.words[I]=0|k:h.length--,h._strip()}c.prototype.toString=function(s,h){var v;if(h=0|h||1,16===(s=s||10)||"hex"===s){v="";for(var y=0,d=0,r=0;r>>24-y&16777215,(y+=2)>=26&&(y-=26,r--),v=0!==d||r!==this.length-1?T[6-k.length]+k+v:k+v}for(0!==d&&(v=d.toString(16)+v);v.length%h!=0;)v="0"+v;return 0!==this.negative&&(v="-"+v),v}if(s===(0|s)&&s>=2&&s<=36){var I=A[s],V=w[s];v="";var J=this.clone();for(J.negative=0;!J.isZero();){var oe=J.modrn(V).toString(s);v=(J=J.idivn(V)).isZero()?oe+v:T[I-oe.length]+oe+v}for(this.isZero()&&(v="0"+v);v.length%h!=0;)v="0"+v;return 0!==this.negative&&(v="-"+v),v}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},c.prototype.toJSON=function(){return this.toString(16,2)},D&&(c.prototype.toBuffer=function(s,h){return this.toArrayLike(D,s,h)}),c.prototype.toArray=function(s,h){return this.toArrayLike(Array,s,h)},c.prototype.toArrayLike=function(s,h,v){this._strip();var y=this.byteLength(),d=v||Math.max(1,y);p(y<=d,"byte array longer than desired length"),p(d>0,"Requested array length <= 0");var r=function(s,h){return s.allocUnsafe?s.allocUnsafe(h):new s(h)}(s,d);return this["_toArrayLike"+("le"===h?"LE":"BE")](r,y),r},c.prototype._toArrayLikeLE=function(s,h){for(var v=0,y=0,d=0,r=0;d>8&255),v>16&255),6===r?(v>24&255),y=0,r=0):(y=f>>>24,r+=2)}if(v=0&&(s[v--]=f>>8&255),v>=0&&(s[v--]=f>>16&255),6===r?(v>=0&&(s[v--]=f>>24&255),y=0,r=0):(y=f>>>24,r+=2)}if(v>=0)for(s[v--]=y;v>=0;)s[v--]=0},c.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var h=s,v=0;return h>=4096&&(v+=13,h>>>=13),h>=64&&(v+=7,h>>>=7),h>=8&&(v+=4,h>>>=4),h>=2&&(v+=2,h>>>=2),v+h},c.prototype._zeroBits=function(s){if(0===s)return 26;var h=s,v=0;return 8191&h||(v+=13,h>>>=13),127&h||(v+=7,h>>>=7),15&h||(v+=4,h>>>=4),3&h||(v+=2,h>>>=2),1&h||v++,v},c.prototype.bitLength=function(){var h=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+h},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,h=0;hs.length?this.clone().ior(s):s.clone().ior(this)},c.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},c.prototype.iuand=function(s){var h;h=this.length>s.length?s:this;for(var v=0;vs.length?this.clone().iand(s):s.clone().iand(this)},c.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},c.prototype.iuxor=function(s){var h,v;this.length>s.length?(h=this,v=s):(h=s,v=this);for(var y=0;ys.length?this.clone().ixor(s):s.clone().ixor(this)},c.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},c.prototype.inotn=function(s){p("number"==typeof s&&s>=0);var h=0|Math.ceil(s/26),v=s%26;this._expand(h),v>0&&h--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-v),this._strip()},c.prototype.notn=function(s){return this.clone().inotn(s)},c.prototype.setn=function(s,h){p("number"==typeof s&&s>=0);var v=s/26|0,y=s%26;return this._expand(v+1),this.words[v]=h?this.words[v]|1<s.length?(v=this,y=s):(v=s,y=this);for(var d=0,r=0;r>>26;for(;0!==d&&r>>26;if(this.length=v.length,0!==d)this.words[this.length]=d,this.length++;else if(v!==this)for(;rs.length?this.clone().iadd(s):s.clone().iadd(this)},c.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var h=this.iadd(s);return s.negative=1,h._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var y,d,v=this.cmp(s);if(0===v)return this.negative=0,this.length=1,this.words[0]=0,this;v>0?(y=this,d=s):(y=s,d=this);for(var r=0,f=0;f>26,this.words[f]=67108863&h;for(;0!==r&&f>26,this.words[f]=67108863&h;if(0===r&&f>>13,De=0|y[1],Q=8191&De,ae=De>>>13,tt=0|y[2],ke=8191&tt,pe=tt>>>13,Ie=0|y[3],_e=8191&Ie,re=Ie>>>13,ne=0|y[4],G=8191&ne,ge=ne>>>13,xt=0|y[5],Qe=8191&xt,rt=xt>>>13,rn=0|y[6],mt=8191&rn,ft=rn>>>13,un=0|y[7],At=8191&un,It=un>>>13,Cn=0|y[8],St=8191&Cn,Ft=Cn>>>13,bn=0|y[9],bt=8191&bn,wt=bn>>>13,Dn=0|d[0],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|d[1],Nt=8191&Wt,Ot=Wt>>>13,zn=0|d[2],Ut=8191&zn,He=zn>>>13,Be=0|d[3],Ae=8191&Be,Me=Be>>>13,Ze=0|d[4],je=8191&Ze,it=Ze>>>13,Pe=0|d[5],Se=8191&Pe,ze=Pe>>>13,Et=0|d[6],Je=8191&Et,st=Et>>>13,en=0|d[7],yt=8191&en,vt=en>>>13,Kt=0|d[8],Pt=8191&Kt,Rt=Kt>>>13,On=0|d[9],An=8191&On,Bn=On>>>13;v.negative=s.negative^h.negative,v.length=19;var Mn=(f+(k=Math.imul(oe,Bt))|0)+((8191&(I=(I=Math.imul(oe,Lt))+Math.imul(ve,Bt)|0))<<13)|0;f=((V=Math.imul(ve,Lt))+(I>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,k=Math.imul(Q,Bt),I=(I=Math.imul(Q,Lt))+Math.imul(ae,Bt)|0,V=Math.imul(ae,Lt);var Wn=(f+(k=k+Math.imul(oe,Nt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0))<<13)|0;f=((V=V+Math.imul(ve,Ot)|0)+(I>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,k=Math.imul(ke,Bt),I=(I=Math.imul(ke,Lt))+Math.imul(pe,Bt)|0,V=Math.imul(pe,Lt),k=k+Math.imul(Q,Nt)|0,I=(I=I+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,V=V+Math.imul(ae,Ot)|0;var Ln=(f+(k=k+Math.imul(oe,Ut)|0)|0)+((8191&(I=(I=I+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0))<<13)|0;f=((V=V+Math.imul(ve,He)|0)+(I>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,k=Math.imul(_e,Bt),I=(I=Math.imul(_e,Lt))+Math.imul(re,Bt)|0,V=Math.imul(re,Lt),k=k+Math.imul(ke,Nt)|0,I=(I=I+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,V=V+Math.imul(pe,Ot)|0,k=k+Math.imul(Q,Ut)|0,I=(I=I+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,V=V+Math.imul(ae,He)|0;var Fn=(f+(k=k+Math.imul(oe,Ae)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0))<<13)|0;f=((V=V+Math.imul(ve,Me)|0)+(I>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,k=Math.imul(G,Bt),I=(I=Math.imul(G,Lt))+Math.imul(ge,Bt)|0,V=Math.imul(ge,Lt),k=k+Math.imul(_e,Nt)|0,I=(I=I+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,V=V+Math.imul(re,Ot)|0,k=k+Math.imul(ke,Ut)|0,I=(I=I+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,V=V+Math.imul(pe,He)|0,k=k+Math.imul(Q,Ae)|0,I=(I=I+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,V=V+Math.imul(ae,Me)|0;var kn=(f+(k=k+Math.imul(oe,je)|0)|0)+((8191&(I=(I=I+Math.imul(oe,it)|0)+Math.imul(ve,je)|0))<<13)|0;f=((V=V+Math.imul(ve,it)|0)+(I>>>13)|0)+(kn>>>26)|0,kn&=67108863,k=Math.imul(Qe,Bt),I=(I=Math.imul(Qe,Lt))+Math.imul(rt,Bt)|0,V=Math.imul(rt,Lt),k=k+Math.imul(G,Nt)|0,I=(I=I+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,V=V+Math.imul(ge,Ot)|0,k=k+Math.imul(_e,Ut)|0,I=(I=I+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,V=V+Math.imul(re,He)|0,k=k+Math.imul(ke,Ae)|0,I=(I=I+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,V=V+Math.imul(pe,Me)|0,k=k+Math.imul(Q,je)|0,I=(I=I+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,V=V+Math.imul(ae,it)|0;var Gn=(f+(k=k+Math.imul(oe,Se)|0)|0)+((8191&(I=(I=I+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0))<<13)|0;f=((V=V+Math.imul(ve,ze)|0)+(I>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,k=Math.imul(mt,Bt),I=(I=Math.imul(mt,Lt))+Math.imul(ft,Bt)|0,V=Math.imul(ft,Lt),k=k+Math.imul(Qe,Nt)|0,I=(I=I+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,V=V+Math.imul(rt,Ot)|0,k=k+Math.imul(G,Ut)|0,I=(I=I+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,V=V+Math.imul(ge,He)|0,k=k+Math.imul(_e,Ae)|0,I=(I=I+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,V=V+Math.imul(re,Me)|0,k=k+Math.imul(ke,je)|0,I=(I=I+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,V=V+Math.imul(pe,it)|0,k=k+Math.imul(Q,Se)|0,I=(I=I+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,V=V+Math.imul(ae,ze)|0;var Xn=(f+(k=k+Math.imul(oe,Je)|0)|0)+((8191&(I=(I=I+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0))<<13)|0;f=((V=V+Math.imul(ve,st)|0)+(I>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,k=Math.imul(At,Bt),I=(I=Math.imul(At,Lt))+Math.imul(It,Bt)|0,V=Math.imul(It,Lt),k=k+Math.imul(mt,Nt)|0,I=(I=I+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,V=V+Math.imul(ft,Ot)|0,k=k+Math.imul(Qe,Ut)|0,I=(I=I+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,V=V+Math.imul(rt,He)|0,k=k+Math.imul(G,Ae)|0,I=(I=I+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,V=V+Math.imul(ge,Me)|0,k=k+Math.imul(_e,je)|0,I=(I=I+Math.imul(_e,it)|0)+Math.imul(re,je)|0,V=V+Math.imul(re,it)|0,k=k+Math.imul(ke,Se)|0,I=(I=I+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,V=V+Math.imul(pe,ze)|0,k=k+Math.imul(Q,Je)|0,I=(I=I+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,V=V+Math.imul(ae,st)|0;var jn=(f+(k=k+Math.imul(oe,yt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0))<<13)|0;f=((V=V+Math.imul(ve,vt)|0)+(I>>>13)|0)+(jn>>>26)|0,jn&=67108863,k=Math.imul(St,Bt),I=(I=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,V=Math.imul(Ft,Lt),k=k+Math.imul(At,Nt)|0,I=(I=I+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,V=V+Math.imul(It,Ot)|0,k=k+Math.imul(mt,Ut)|0,I=(I=I+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,V=V+Math.imul(ft,He)|0,k=k+Math.imul(Qe,Ae)|0,I=(I=I+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,V=V+Math.imul(rt,Me)|0,k=k+Math.imul(G,je)|0,I=(I=I+Math.imul(G,it)|0)+Math.imul(ge,je)|0,V=V+Math.imul(ge,it)|0,k=k+Math.imul(_e,Se)|0,I=(I=I+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,V=V+Math.imul(re,ze)|0,k=k+Math.imul(ke,Je)|0,I=(I=I+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,V=V+Math.imul(pe,st)|0,k=k+Math.imul(Q,yt)|0,I=(I=I+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,V=V+Math.imul(ae,vt)|0;var $e=(f+(k=k+Math.imul(oe,Pt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;f=((V=V+Math.imul(ve,Rt)|0)+(I>>>13)|0)+($e>>>26)|0,$e&=67108863,k=Math.imul(bt,Bt),I=(I=Math.imul(bt,Lt))+Math.imul(wt,Bt)|0,V=Math.imul(wt,Lt),k=k+Math.imul(St,Nt)|0,I=(I=I+Math.imul(St,Ot)|0)+Math.imul(Ft,Nt)|0,V=V+Math.imul(Ft,Ot)|0,k=k+Math.imul(At,Ut)|0,I=(I=I+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,V=V+Math.imul(It,He)|0,k=k+Math.imul(mt,Ae)|0,I=(I=I+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,V=V+Math.imul(ft,Me)|0,k=k+Math.imul(Qe,je)|0,I=(I=I+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,V=V+Math.imul(rt,it)|0,k=k+Math.imul(G,Se)|0,I=(I=I+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,V=V+Math.imul(ge,ze)|0,k=k+Math.imul(_e,Je)|0,I=(I=I+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,V=V+Math.imul(re,st)|0,k=k+Math.imul(ke,yt)|0,I=(I=I+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,V=V+Math.imul(pe,vt)|0,k=k+Math.imul(Q,Pt)|0,I=(I=I+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0,V=V+Math.imul(ae,Rt)|0;var lt=(f+(k=k+Math.imul(oe,An)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Bn)|0)+Math.imul(ve,An)|0))<<13)|0;f=((V=V+Math.imul(ve,Bn)|0)+(I>>>13)|0)+(lt>>>26)|0,lt&=67108863,k=Math.imul(bt,Nt),I=(I=Math.imul(bt,Ot))+Math.imul(wt,Nt)|0,V=Math.imul(wt,Ot),k=k+Math.imul(St,Ut)|0,I=(I=I+Math.imul(St,He)|0)+Math.imul(Ft,Ut)|0,V=V+Math.imul(Ft,He)|0,k=k+Math.imul(At,Ae)|0,I=(I=I+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,V=V+Math.imul(It,Me)|0,k=k+Math.imul(mt,je)|0,I=(I=I+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,V=V+Math.imul(ft,it)|0,k=k+Math.imul(Qe,Se)|0,I=(I=I+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,V=V+Math.imul(rt,ze)|0,k=k+Math.imul(G,Je)|0,I=(I=I+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,V=V+Math.imul(ge,st)|0,k=k+Math.imul(_e,yt)|0,I=(I=I+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,V=V+Math.imul(re,vt)|0,k=k+Math.imul(ke,Pt)|0,I=(I=I+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0,V=V+Math.imul(pe,Rt)|0;var Tt=(f+(k=k+Math.imul(Q,An)|0)|0)+((8191&(I=(I=I+Math.imul(Q,Bn)|0)+Math.imul(ae,An)|0))<<13)|0;f=((V=V+Math.imul(ae,Bn)|0)+(I>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,k=Math.imul(bt,Ut),I=(I=Math.imul(bt,He))+Math.imul(wt,Ut)|0,V=Math.imul(wt,He),k=k+Math.imul(St,Ae)|0,I=(I=I+Math.imul(St,Me)|0)+Math.imul(Ft,Ae)|0,V=V+Math.imul(Ft,Me)|0,k=k+Math.imul(At,je)|0,I=(I=I+Math.imul(At,it)|0)+Math.imul(It,je)|0,V=V+Math.imul(It,it)|0,k=k+Math.imul(mt,Se)|0,I=(I=I+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,V=V+Math.imul(ft,ze)|0,k=k+Math.imul(Qe,Je)|0,I=(I=I+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,V=V+Math.imul(rt,st)|0,k=k+Math.imul(G,yt)|0,I=(I=I+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,V=V+Math.imul(ge,vt)|0,k=k+Math.imul(_e,Pt)|0,I=(I=I+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0,V=V+Math.imul(re,Rt)|0;var Mt=(f+(k=k+Math.imul(ke,An)|0)|0)+((8191&(I=(I=I+Math.imul(ke,Bn)|0)+Math.imul(pe,An)|0))<<13)|0;f=((V=V+Math.imul(pe,Bn)|0)+(I>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,k=Math.imul(bt,Ae),I=(I=Math.imul(bt,Me))+Math.imul(wt,Ae)|0,V=Math.imul(wt,Me),k=k+Math.imul(St,je)|0,I=(I=I+Math.imul(St,it)|0)+Math.imul(Ft,je)|0,V=V+Math.imul(Ft,it)|0,k=k+Math.imul(At,Se)|0,I=(I=I+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,V=V+Math.imul(It,ze)|0,k=k+Math.imul(mt,Je)|0,I=(I=I+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,V=V+Math.imul(ft,st)|0,k=k+Math.imul(Qe,yt)|0,I=(I=I+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,V=V+Math.imul(rt,vt)|0,k=k+Math.imul(G,Pt)|0,I=(I=I+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0,V=V+Math.imul(ge,Rt)|0;var kt=(f+(k=k+Math.imul(_e,An)|0)|0)+((8191&(I=(I=I+Math.imul(_e,Bn)|0)+Math.imul(re,An)|0))<<13)|0;f=((V=V+Math.imul(re,Bn)|0)+(I>>>13)|0)+(kt>>>26)|0,kt&=67108863,k=Math.imul(bt,je),I=(I=Math.imul(bt,it))+Math.imul(wt,je)|0,V=Math.imul(wt,it),k=k+Math.imul(St,Se)|0,I=(I=I+Math.imul(St,ze)|0)+Math.imul(Ft,Se)|0,V=V+Math.imul(Ft,ze)|0,k=k+Math.imul(At,Je)|0,I=(I=I+Math.imul(At,st)|0)+Math.imul(It,Je)|0,V=V+Math.imul(It,st)|0,k=k+Math.imul(mt,yt)|0,I=(I=I+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,V=V+Math.imul(ft,vt)|0,k=k+Math.imul(Qe,Pt)|0,I=(I=I+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0,V=V+Math.imul(rt,Rt)|0;var Zt=(f+(k=k+Math.imul(G,An)|0)|0)+((8191&(I=(I=I+Math.imul(G,Bn)|0)+Math.imul(ge,An)|0))<<13)|0;f=((V=V+Math.imul(ge,Bn)|0)+(I>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,k=Math.imul(bt,Se),I=(I=Math.imul(bt,ze))+Math.imul(wt,Se)|0,V=Math.imul(wt,ze),k=k+Math.imul(St,Je)|0,I=(I=I+Math.imul(St,st)|0)+Math.imul(Ft,Je)|0,V=V+Math.imul(Ft,st)|0,k=k+Math.imul(At,yt)|0,I=(I=I+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,V=V+Math.imul(It,vt)|0,k=k+Math.imul(mt,Pt)|0,I=(I=I+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0,V=V+Math.imul(ft,Rt)|0;var qt=(f+(k=k+Math.imul(Qe,An)|0)|0)+((8191&(I=(I=I+Math.imul(Qe,Bn)|0)+Math.imul(rt,An)|0))<<13)|0;f=((V=V+Math.imul(rt,Bn)|0)+(I>>>13)|0)+(qt>>>26)|0,qt&=67108863,k=Math.imul(bt,Je),I=(I=Math.imul(bt,st))+Math.imul(wt,Je)|0,V=Math.imul(wt,st),k=k+Math.imul(St,yt)|0,I=(I=I+Math.imul(St,vt)|0)+Math.imul(Ft,yt)|0,V=V+Math.imul(Ft,vt)|0,k=k+Math.imul(At,Pt)|0,I=(I=I+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0,V=V+Math.imul(It,Rt)|0;var Qt=(f+(k=k+Math.imul(mt,An)|0)|0)+((8191&(I=(I=I+Math.imul(mt,Bn)|0)+Math.imul(ft,An)|0))<<13)|0;f=((V=V+Math.imul(ft,Bn)|0)+(I>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,k=Math.imul(bt,yt),I=(I=Math.imul(bt,vt))+Math.imul(wt,yt)|0,V=Math.imul(wt,vt),k=k+Math.imul(St,Pt)|0,I=(I=I+Math.imul(St,Rt)|0)+Math.imul(Ft,Pt)|0,V=V+Math.imul(Ft,Rt)|0;var Tn=(f+(k=k+Math.imul(At,An)|0)|0)+((8191&(I=(I=I+Math.imul(At,Bn)|0)+Math.imul(It,An)|0))<<13)|0;f=((V=V+Math.imul(It,Bn)|0)+(I>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,k=Math.imul(bt,Pt),I=(I=Math.imul(bt,Rt))+Math.imul(wt,Pt)|0,V=Math.imul(wt,Rt);var wn=(f+(k=k+Math.imul(St,An)|0)|0)+((8191&(I=(I=I+Math.imul(St,Bn)|0)+Math.imul(Ft,An)|0))<<13)|0;f=((V=V+Math.imul(Ft,Bn)|0)+(I>>>13)|0)+(wn>>>26)|0,wn&=67108863;var Kn=(f+(k=Math.imul(bt,An))|0)+((8191&(I=(I=Math.imul(bt,Bn))+Math.imul(wt,An)|0))<<13)|0;return f=((V=Math.imul(wt,Bn))+(I>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,r[0]=Mn,r[1]=Wn,r[2]=Ln,r[3]=Fn,r[4]=kn,r[5]=Gn,r[6]=Xn,r[7]=jn,r[8]=$e,r[9]=lt,r[10]=Tt,r[11]=Mt,r[12]=kt,r[13]=Zt,r[14]=qt,r[15]=Qt,r[16]=Tn,r[17]=wn,r[18]=Kn,0!==f&&(r[19]=f,v.length++),v};function P(l,s,h){h.negative=s.negative^l.negative,h.length=l.length+s.length;for(var v=0,y=0,d=0;d>>26)|0)>>>26,r&=67108863}h.words[d]=f,v=r,r=y}return 0!==v?h.words[d]=v:h.length--,h._strip()}function U(l,s,h){return P(l,s,h)}function j(l,s){this.x=l,this.y=s}Math.imul||(M=L),c.prototype.mulTo=function(s,h){var y=this.length+s.length;return 10===this.length&&10===s.length?M(this,s,h):y<63?L(this,s,h):y<1024?P(this,s,h):U(this,s,h)},j.prototype.makeRBT=function(s){for(var h=new Array(s),v=c.prototype._countBits(s)-1,y=0;y>=1;return y},j.prototype.permute=function(s,h,v,y,d,r){for(var f=0;f>>=1)d++;return 1<>>=13),d>>>=13;for(r=2*h;r>=26,v+=d/67108864|0,v+=r>>>26,this.words[y]=67108863&r}return 0!==v&&(this.words[y]=v,this.length++),h?this.ineg():this},c.prototype.muln=function(s){return this.clone().imuln(s)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(s){var h=function $(l){for(var s=new Array(l.bitLength()),h=0;h>>h%26&1;return s}(s);if(0===h.length)return new c(1);for(var v=this,y=0;y=0);var d,h=s%26,v=(s-h)/26,y=67108863>>>26-h<<26-h;if(0!==h){var r=0;for(d=0;d>>26-h}r&&(this.words[d]=r,this.length++)}if(0!==v){for(d=this.length-1;d>=0;d--)this.words[d+v]=this.words[d];for(d=0;d=0),y=h?(h-h%26)/26:0;var d=s%26,r=Math.min((s-d)/26,this.length),f=67108863^67108863>>>d<r)for(this.length-=r,I=0;I=0&&(0!==V||I>=y);I--){var J=0|this.words[I];this.words[I]=V<<26-d|J>>>d,V=J&f}return k&&0!==V&&(k.words[k.length++]=V),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(s,h,v){return p(0===this.negative),this.iushrn(s,h,v)},c.prototype.shln=function(s){return this.clone().ishln(s)},c.prototype.ushln=function(s){return this.clone().iushln(s)},c.prototype.shrn=function(s){return this.clone().ishrn(s)},c.prototype.ushrn=function(s){return this.clone().iushrn(s)},c.prototype.testn=function(s){p("number"==typeof s&&s>=0);var h=s%26,v=(s-h)/26;return!(this.length<=v||!(this.words[v]&1<=0);var h=s%26,v=(s-h)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=v?this:(0!==h&&v++,this.length=Math.min(v,this.length),0!==h&&(this.words[this.length-1]&=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},c.prototype.isubn=function(s){if(p("number"==typeof s),p(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(k/67108864|0),this.words[d+v]=67108863&r}for(;d>26,this.words[d+v]=67108863&r;if(0===f)return this._strip();for(p(-1===f),f=0,d=0;d>26,this.words[d]=67108863&r;return this.negative=1,this._strip()},c.prototype._wordDiv=function(s,h){var v,y=this.clone(),d=s,r=0|d.words[d.length-1];0!=(v=26-this._countBits(r))&&(d=d.ushln(v),y.iushln(v),r=0|d.words[d.length-1]);var I,k=y.length-d.length;if("mod"!==h){(I=new c(null)).length=k+1,I.words=new Array(I.length);for(var V=0;V=0;oe--){var ve=67108864*(0|y.words[d.length+oe])+(0|y.words[d.length+oe-1]);for(ve=Math.min(ve/r|0,67108863),y._ishlnsubmul(d,ve,oe);0!==y.negative;)ve--,y.negative=0,y._ishlnsubmul(d,1,oe),y.isZero()||(y.negative^=1);I&&(I.words[oe]=ve)}return I&&I._strip(),y._strip(),"div"!==h&&0!==v&&y.iushrn(v),{div:I||null,mod:y}},c.prototype.divmod=function(s,h,v){return p(!s.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===s.negative?(r=this.neg().divmod(s,h),"mod"!==h&&(y=r.div.neg()),"div"!==h&&(d=r.mod.neg(),v&&0!==d.negative&&d.iadd(s)),{div:y,mod:d}):0===this.negative&&0!==s.negative?(r=this.divmod(s.neg(),h),"mod"!==h&&(y=r.div.neg()),{div:y,mod:r.mod}):this.negative&s.negative?(r=this.neg().divmod(s.neg(),h),"div"!==h&&(d=r.mod.neg(),v&&0!==d.negative&&d.isub(s)),{div:r.div,mod:d}):s.length>this.length||this.cmp(s)<0?{div:new c(0),mod:this}:1===s.length?"div"===h?{div:this.divn(s.words[0]),mod:null}:"mod"===h?{div:null,mod:new c(this.modrn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new c(this.modrn(s.words[0]))}:this._wordDiv(s,h);var y,d,r},c.prototype.div=function(s){return this.divmod(s,"div",!1).div},c.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},c.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},c.prototype.divRound=function(s){var h=this.divmod(s);if(h.mod.isZero())return h.div;var v=0!==h.div.negative?h.mod.isub(s):h.mod,y=s.ushrn(1),d=s.andln(1),r=v.cmp(y);return r<0||1===d&&0===r?h.div:0!==h.div.negative?h.div.isubn(1):h.div.iaddn(1)},c.prototype.modrn=function(s){var h=s<0;h&&(s=-s),p(s<=67108863);for(var v=(1<<26)%s,y=0,d=this.length-1;d>=0;d--)y=(v*y+(0|this.words[d]))%s;return h?-y:y},c.prototype.modn=function(s){return this.modrn(s)},c.prototype.idivn=function(s){var h=s<0;h&&(s=-s),p(s<=67108863);for(var v=0,y=this.length-1;y>=0;y--){var d=(0|this.words[y])+67108864*v;this.words[y]=d/s|0,v=d%s}return this._strip(),h?this.ineg():this},c.prototype.divn=function(s){return this.clone().idivn(s)},c.prototype.egcd=function(s){p(0===s.negative),p(!s.isZero());var h=this,v=s.clone();h=0!==h.negative?h.umod(s):h.clone();for(var y=new c(1),d=new c(0),r=new c(0),f=new c(1),k=0;h.isEven()&&v.isEven();)h.iushrn(1),v.iushrn(1),++k;for(var I=v.clone(),V=h.clone();!h.isZero();){for(var J=0,oe=1;!(h.words[0]&oe)&&J<26;++J,oe<<=1);if(J>0)for(h.iushrn(J);J-- >0;)(y.isOdd()||d.isOdd())&&(y.iadd(I),d.isub(V)),y.iushrn(1),d.iushrn(1);for(var ve=0,De=1;!(v.words[0]&De)&&ve<26;++ve,De<<=1);if(ve>0)for(v.iushrn(ve);ve-- >0;)(r.isOdd()||f.isOdd())&&(r.iadd(I),f.isub(V)),r.iushrn(1),f.iushrn(1);h.cmp(v)>=0?(h.isub(v),y.isub(r),d.isub(f)):(v.isub(h),r.isub(y),f.isub(d))}return{a:r,b:f,gcd:v.iushln(k)}},c.prototype._invmp=function(s){p(0===s.negative),p(!s.isZero());var J,h=this,v=s.clone();h=0!==h.negative?h.umod(s):h.clone();for(var y=new c(1),d=new c(0),r=v.clone();h.cmpn(1)>0&&v.cmpn(1)>0;){for(var f=0,k=1;!(h.words[0]&k)&&f<26;++f,k<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(r),y.iushrn(1);for(var I=0,V=1;!(v.words[0]&V)&&I<26;++I,V<<=1);if(I>0)for(v.iushrn(I);I-- >0;)d.isOdd()&&d.iadd(r),d.iushrn(1);h.cmp(v)>=0?(h.isub(v),y.isub(d)):(v.isub(h),d.isub(y))}return(J=0===h.cmpn(1)?y:d).cmpn(0)<0&&J.iadd(s),J},c.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var h=this.clone(),v=s.clone();h.negative=0,v.negative=0;for(var y=0;h.isEven()&&v.isEven();y++)h.iushrn(1),v.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;v.isEven();)v.iushrn(1);var d=h.cmp(v);if(d<0){var r=h;h=v,v=r}else if(0===d||0===v.cmpn(1))break;h.isub(v)}return v.iushln(y)},c.prototype.invm=function(s){return this.egcd(s).a.umod(s)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(s){return this.words[0]&s},c.prototype.bincn=function(s){p("number"==typeof s);var h=s%26,v=(s-h)/26,y=1<>>26,this.words[r]=f&=67108863}return 0!==d&&(this.words[r]=d,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(s){var v,h=s<0;if(0!==this.negative&&!h)return-1;if(0===this.negative&&h)return 1;if(this._strip(),this.length>1)v=1;else{h&&(s=-s),p(s<=67108863,"Number is too big");var y=0|this.words[0];v=y===s?0:ys.length)return 1;if(this.length=0;v--){var y=0|this.words[v],d=0|s.words[v];if(y!==d){yd&&(h=1);break}}return h},c.prototype.gtn=function(s){return 1===this.cmpn(s)},c.prototype.gt=function(s){return 1===this.cmp(s)},c.prototype.gten=function(s){return this.cmpn(s)>=0},c.prototype.gte=function(s){return this.cmp(s)>=0},c.prototype.ltn=function(s){return-1===this.cmpn(s)},c.prototype.lt=function(s){return-1===this.cmp(s)},c.prototype.lten=function(s){return this.cmpn(s)<=0},c.prototype.lte=function(s){return this.cmp(s)<=0},c.prototype.eqn=function(s){return 0===this.cmpn(s)},c.prototype.eq=function(s){return 0===this.cmp(s)},c.red=function(s){return new n(s)},c.prototype.toRed=function(s){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(s){return this.red=s,this},c.prototype.forceRed=function(s){return p(!this.red,"Already a number in reduction context"),this._forceRed(s)},c.prototype.redAdd=function(s){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},c.prototype.redIAdd=function(s){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},c.prototype.redSub=function(s){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},c.prototype.redISub=function(s){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},c.prototype.redShl=function(s){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},c.prototype.redMul=function(s){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},c.prototype.redIMul=function(s){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(s){return p(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var W={k256:null,p224:null,p192:null,p25519:null};function ie(l,s){this.name=l,this.p=new c(s,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function se(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function n(l){if("string"==typeof l){var s=c._prime(l);this.m=s.p,this.prime=s}else p(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}function o(l){n.call(this,l),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var s=new c(null);return s.words=new Array(Math.ceil(this.n/13)),s},ie.prototype.ireduce=function(s){var v,h=s;do{this.split(h,this.tmp),v=(h=(h=this.imulK(h)).iadd(this.tmp)).bitLength()}while(v>this.n);var y=v0?h.isub(this.p):void 0!==h.strip?h.strip():h._strip(),h},ie.prototype.split=function(s,h){s.iushrn(this.n,0,h)},ie.prototype.imulK=function(s){return s.imul(this.k)},O(me,ie),me.prototype.split=function(s,h){for(var v=4194303,y=Math.min(s.length,9),d=0;d>>22,r=f}s.words[d-10]=r>>>=22,s.length-=0===r&&s.length>10?10:9},me.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var h=0,v=0;v>>=26,s.words[v]=d,h=y}return 0!==h&&(s.words[s.length++]=h),s},c._prime=function(s){if(W[s])return W[s];var h;if("k256"===s)h=new me;else if("p224"===s)h=new te;else if("p192"===s)h=new se;else{if("p25519"!==s)throw new Error("Unknown prime "+s);h=new g}return W[s]=h,h},n.prototype._verify1=function(s){p(0===s.negative,"red works only with positives"),p(s.red,"red works only with red numbers")},n.prototype._verify2=function(s,h){p(!(s.negative|h.negative),"red works only with positives"),p(s.red&&s.red===h.red,"red works only with red numbers")},n.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):(B(s,s.umod(this.m)._forceRed(this)),s)},n.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},n.prototype.add=function(s,h){this._verify2(s,h);var v=s.add(h);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},n.prototype.iadd=function(s,h){this._verify2(s,h);var v=s.iadd(h);return v.cmp(this.m)>=0&&v.isub(this.m),v},n.prototype.sub=function(s,h){this._verify2(s,h);var v=s.sub(h);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},n.prototype.isub=function(s,h){this._verify2(s,h);var v=s.isub(h);return v.cmpn(0)<0&&v.iadd(this.m),v},n.prototype.shl=function(s,h){return this._verify1(s),this.imod(s.ushln(h))},n.prototype.imul=function(s,h){return this._verify2(s,h),this.imod(s.imul(h))},n.prototype.mul=function(s,h){return this._verify2(s,h),this.imod(s.mul(h))},n.prototype.isqr=function(s){return this.imul(s,s.clone())},n.prototype.sqr=function(s){return this.mul(s,s)},n.prototype.sqrt=function(s){if(s.isZero())return s.clone();var h=this.m.andln(3);if(p(h%2==1),3===h){var v=this.m.add(new c(1)).iushrn(2);return this.pow(s,v)}for(var y=this.m.subn(1),d=0;!y.isZero()&&0===y.andln(1);)d++,y.iushrn(1);p(!y.isZero());var r=new c(1).toRed(this),f=r.redNeg(),k=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new c(2*I*I).toRed(this);0!==this.pow(I,k).cmp(f);)I.redIAdd(f);for(var V=this.pow(I,y),J=this.pow(s,y.addn(1).iushrn(1)),oe=this.pow(s,y),ve=d;0!==oe.cmp(r);){for(var De=oe,Q=0;0!==De.cmp(r);Q++)De=De.redSqr();p(Q=0;d--){for(var V=h.words[d],J=I-1;J>=0;J--){var oe=V>>J&1;r!==y[0]&&(r=this.sqr(r)),0!==oe||0!==f?(f<<=1,f|=oe,(4==++k||0===d&&0===J)&&(r=this.mul(r,y[f]),k=0,f=0)):k=0}I=26}return r},n.prototype.convertTo=function(s){var h=s.umod(this.m);return h===s?h.clone():h},n.prototype.convertFrom=function(s){var h=s.clone();return h.red=null,h},c.mont=function(s){return new o(s)},O(o,n),o.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},o.prototype.convertFrom=function(s){var h=this.imod(s.mul(this.rinv));return h.red=null,h},o.prototype.imul=function(s,h){if(s.isZero()||h.isZero())return s.words[0]=0,s.length=1,s;var v=s.imul(h),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=v.isub(y).iushrn(this.shift),r=d;return d.cmp(this.m)>=0?r=d.isub(this.m):d.cmpn(0)<0&&(r=d.iadd(this.m)),r._forceRed(this)},o.prototype.mul=function(s,h){if(s.isZero()||h.isZero())return new c(0)._forceRed(this);var v=s.mul(h),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=v.isub(y).iushrn(this.shift),r=d;return d.cmp(this.m)>=0?r=d.isub(this.m):d.cmpn(0)<0&&(r=d.iadd(this.m)),r._forceRed(this)},o.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},5294:(Ce,ee,E)=>{var a;function S(O){this.rand=O}if(Ce.exports=function(c){return a||(a=new S(null)),a.generate(c)},Ce.exports.Rand=S,S.prototype.generate=function(c){return this._rand(c)},S.prototype._rand=function(c){if(this.rand.getBytes)return this.rand.getBytes(c);for(var D=new Uint8Array(c),C=0;C{var a=E(7054).Buffer;function S(_){a.isBuffer(_)||(_=a.from(_));for(var F=_.length/4|0,B=new Array(F),m=0;m>>24]^w[M>>>16&255]^R[P>>>8&255]^$[255&U]^F[te++],W=A[M>>>24]^w[P>>>16&255]^R[U>>>8&255]^$[255&L]^F[te++],ie=A[P>>>24]^w[U>>>16&255]^R[L>>>8&255]^$[255&M]^F[te++],me=A[U>>>24]^w[L>>>16&255]^R[M>>>8&255]^$[255&P]^F[te++],L=j,M=W,P=ie,U=me;return j=(m[L>>>24]<<24|m[M>>>16&255]<<16|m[P>>>8&255]<<8|m[255&U])^F[te++],W=(m[M>>>24]<<24|m[P>>>16&255]<<16|m[U>>>8&255]<<8|m[255&L])^F[te++],ie=(m[P>>>24]<<24|m[U>>>16&255]<<16|m[L>>>8&255]<<8|m[255&M])^F[te++],me=(m[U>>>24]<<24|m[L>>>16&255]<<16|m[M>>>8&255]<<8|m[255&P])^F[te++],[j>>>=0,W>>>=0,ie>>>=0,me>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],D=function(){for(var _=new Array(256),F=0;F<256;F++)_[F]=F<128?F<<1:F<<1^283;for(var B=[],m=[],T=[[],[],[],[]],A=[[],[],[],[]],w=0,R=0,$=0;$<256;++$){var L=R^R<<1^R<<2^R<<3^R<<4;B[w]=L=L>>>8^255&L^99,m[L]=w;var M=_[w],P=_[M],U=_[P],j=257*_[L]^16843008*L;T[0][w]=j<<24|j>>>8,T[1][w]=j<<16|j>>>16,T[2][w]=j<<8|j>>>24,T[3][w]=j,A[0][L]=(j=16843009*U^65537*P^257*M^16843008*w)<<24|j>>>8,A[1][L]=j<<16|j>>>16,A[2][L]=j<<8|j>>>24,A[3][L]=j,0===w?w=R=1:(w=M^_[_[_[U^M]]],R^=_[_[R]])}return{SBOX:B,INV_SBOX:m,SUB_MIX:T,INV_SUB_MIX:A}}();function C(_){this._key=S(_),this._reset()}C.blockSize=16,C.keySize=32,C.prototype.blockSize=C.blockSize,C.prototype.keySize=C.keySize,C.prototype._reset=function(){for(var _=this._key,F=_.length,B=F+6,m=4*(B+1),T=[],A=0;A>>24)>>>24]<<24|D.SBOX[w>>>16&255]<<16|D.SBOX[w>>>8&255]<<8|D.SBOX[255&w],w^=c[A/F|0]<<24):F>6&&A%F==4&&(w=D.SBOX[w>>>24]<<24|D.SBOX[w>>>16&255]<<16|D.SBOX[w>>>8&255]<<8|D.SBOX[255&w]),T[A]=T[A-F]^w}for(var R=[],$=0;$>>24]]^D.INV_SUB_MIX[1][D.SBOX[M>>>16&255]]^D.INV_SUB_MIX[2][D.SBOX[M>>>8&255]]^D.INV_SUB_MIX[3][D.SBOX[255&M]]}this._nRounds=B,this._keySchedule=T,this._invKeySchedule=R},C.prototype.encryptBlockRaw=function(_){return O(_=S(_),this._keySchedule,D.SUB_MIX,D.SBOX,this._nRounds)},C.prototype.encryptBlock=function(_){var F=this.encryptBlockRaw(_),B=a.allocUnsafe(16);return B.writeUInt32BE(F[0],0),B.writeUInt32BE(F[1],4),B.writeUInt32BE(F[2],8),B.writeUInt32BE(F[3],12),B},C.prototype.decryptBlock=function(_){var F=(_=S(_))[1];_[1]=_[3],_[3]=F;var B=O(_,this._invKeySchedule,D.INV_SUB_MIX,D.INV_SBOX,this._nRounds),m=a.allocUnsafe(16);return m.writeUInt32BE(B[0],0),m.writeUInt32BE(B[3],4),m.writeUInt32BE(B[2],8),m.writeUInt32BE(B[1],12),m},C.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},Ce.exports.AES=C},9307:(Ce,ee,E)=>{var a=E(2375),S=E(7054).Buffer,p=E(3247),O=E(1993),c=E(5917),D=E(3546),C=E(5725);function B(m,T,A,w){p.call(this);var R=S.alloc(4,0);this._cipher=new a.AES(T);var $=this._cipher.encryptBlock(R);this._ghash=new c($),A=function F(m,T,A){if(12===T.length)return m._finID=S.concat([T,S.from([0,0,0,1])]),S.concat([T,S.from([0,0,0,2])]);var w=new c(A),R=T.length,$=R%16;w.update(T),$&&w.update(S.alloc($=16-$,0)),w.update(S.alloc(8,0));var L=8*R,M=S.alloc(8);M.writeUIntBE(L,0,8),w.update(M),m._finID=w.state;var P=S.from(m._finID);return C(P),P}(this,A,$),this._prev=S.from(A),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=m,this._authTag=null,this._called=!1}O(B,p),B.prototype._update=function(m){if(!this._called&&this._alen){var T=16-this._alen%16;T<16&&(T=S.alloc(T,0),this._ghash.update(T))}this._called=!0;var A=this._mode.encrypt(this,m);return this._ghash.update(this._decrypt?m:A),this._len+=m.length,A},B.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var m=D(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function _(m,T){var A=0;m.length!==T.length&&A++;for(var w=Math.min(m.length,T.length),R=0;R{var a=E(350),S=E(102),p=E(3219);ee.createCipher=ee.Cipher=a.createCipher,ee.createCipheriv=ee.Cipheriv=a.createCipheriv,ee.createDecipher=ee.Decipher=S.createDecipher,ee.createDecipheriv=ee.Decipheriv=S.createDecipheriv,ee.listCiphers=ee.getCiphers=function O(){return Object.keys(p)}},102:(Ce,ee,E)=>{var a=E(9307),S=E(7054).Buffer,p=E(503),O=E(1821),c=E(3247),D=E(2375),C=E(8211);function F(w,R,$){c.call(this),this._cache=new B,this._last=void 0,this._cipher=new D.AES(R),this._prev=S.from($),this._mode=w,this._autopadding=!0}function B(){this.cache=S.allocUnsafe(0)}function T(w,R,$){var L=p[w.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof $&&($=S.from($)),"GCM"!==L.mode&&$.length!==L.iv)throw new TypeError("invalid iv length "+$.length);if("string"==typeof R&&(R=S.from(R)),R.length!==L.key/8)throw new TypeError("invalid key length "+R.length);return"stream"===L.type?new O(L.module,R,$,!0):"auth"===L.type?new a(L.module,R,$,!0):new F(L.module,R,$)}E(1993)(F,c),F.prototype._update=function(w){this._cache.add(w);for(var R,$,L=[];R=this._cache.get(this._autopadding);)$=this._mode.decrypt(this,R),L.push($);return S.concat(L)},F.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return function m(w){var R=w[15];if(R<1||R>16)throw new Error("unable to decrypt data");for(var $=-1;++$16)return R=this.cache.slice(0,16),this.cache=this.cache.slice(16),R}else if(this.cache.length>=16)return R=this.cache.slice(0,16),this.cache=this.cache.slice(16),R;return null},B.prototype.flush=function(){if(this.cache.length)return this.cache},ee.createDecipher=function A(w,R){var $=p[w.toLowerCase()];if(!$)throw new TypeError("invalid suite type");var L=C(R,!1,$.key,$.iv);return T(w,L.key,L.iv)},ee.createDecipheriv=T},350:(Ce,ee,E)=>{var a=E(503),S=E(9307),p=E(7054).Buffer,O=E(1821),c=E(3247),D=E(2375),C=E(8211);function F(w,R,$){c.call(this),this._cache=new m,this._cipher=new D.AES(R),this._prev=p.from($),this._mode=w,this._autopadding=!0}E(1993)(F,c),F.prototype._update=function(w){this._cache.add(w);for(var R,$,L=[];R=this._cache.get();)$=this._mode.encrypt(this,R),L.push($);return p.concat(L)};var B=p.alloc(16,16);function m(){this.cache=p.allocUnsafe(0)}function T(w,R,$){var L=a[w.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof R&&(R=p.from(R)),R.length!==L.key/8)throw new TypeError("invalid key length "+R.length);if("string"==typeof $&&($=p.from($)),"GCM"!==L.mode&&$.length!==L.iv)throw new TypeError("invalid iv length "+$.length);return"stream"===L.type?new O(L.module,R,$):"auth"===L.type?new S(L.module,R,$):new F(L.module,R,$)}F.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return w=this._mode.encrypt(this,w),this._cipher.scrub(),w;if(!w.equals(B))throw this._cipher.scrub(),new Error("data not multiple of block length")},F.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this},m.prototype.add=function(w){this.cache=p.concat([this.cache,w])},m.prototype.get=function(){if(this.cache.length>15){var w=this.cache.slice(0,16);return this.cache=this.cache.slice(16),w}return null},m.prototype.flush=function(){for(var w=16-this.cache.length,R=p.allocUnsafe(w),$=-1;++${var a=E(7054).Buffer,S=a.alloc(16,0);function O(D){var C=a.allocUnsafe(16);return C.writeUInt32BE(D[0]>>>0,0),C.writeUInt32BE(D[1]>>>0,4),C.writeUInt32BE(D[2]>>>0,8),C.writeUInt32BE(D[3]>>>0,12),C}function c(D){this.h=D,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}c.prototype.ghash=function(D){for(var C=-1;++C0;_--)D[_]=D[_]>>>1|(1&D[_-1])<<31;D[0]=D[0]>>>1,B&&(D[0]=D[0]^225<<24)}this.state=O(C)},c.prototype.update=function(D){this.cache=a.concat([this.cache,D]);for(var C;this.cache.length>=16;)C=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(C)},c.prototype.final=function(D,C){return this.cache.length&&this.ghash(a.concat([this.cache,S],16)),this.ghash(O([0,D,0,C])),this.state},Ce.exports=c},5725:Ce=>{Ce.exports=function ee(E){for(var S,a=E.length;a--;){if(255!==(S=E.readUInt8(a))){S++,E.writeUInt8(S,a);break}E.writeUInt8(0,a)}}},4133:(Ce,ee,E)=>{var a=E(3546);ee.encrypt=function(S,p){var O=a(p,S._prev);return S._prev=S._cipher.encryptBlock(O),S._prev},ee.decrypt=function(S,p){var O=S._prev;S._prev=p;var c=S._cipher.decryptBlock(p);return a(c,O)}},7090:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(3546);function p(O,c,D){var C=c.length,_=S(c,O._cache);return O._cache=O._cache.slice(C),O._prev=a.concat([O._prev,D?c:_]),_}ee.encrypt=function(O,c,D){for(var _,C=a.allocUnsafe(0);c.length;){if(0===O._cache.length&&(O._cache=O._cipher.encryptBlock(O._prev),O._prev=a.allocUnsafe(0)),!(O._cache.length<=c.length)){C=a.concat([C,p(O,c,D)]);break}C=a.concat([C,p(O,c.slice(0,_=O._cache.length),D)]),c=c.slice(_)}return C}},1039:(Ce,ee,E)=>{var a=E(7054).Buffer;function S(O,c,D){for(var m,T,_=-1,B=0;++_<8;)B+=(128&(T=O._cipher.encryptBlock(O._prev)[0]^(m=c&1<<7-_?128:0)))>>_%8,O._prev=p(O._prev,D?m:T);return B}function p(O,c){var D=O.length,C=-1,_=a.allocUnsafe(O.length);for(O=a.concat([O,a.from([c])]);++C>7;return _}ee.encrypt=function(O,c,D){for(var C=c.length,_=a.allocUnsafe(C),F=-1;++F{var a=E(7054).Buffer;function S(p,O,c){var C=p._cipher.encryptBlock(p._prev)[0]^O;return p._prev=a.concat([p._prev.slice(1),a.from([c?O:C])]),C}ee.encrypt=function(p,O,c){for(var D=O.length,C=a.allocUnsafe(D),_=-1;++_{var a=E(3546),S=E(7054).Buffer,p=E(5725);function O(D){var C=D._cipher.encryptBlockRaw(D._prev);return p(D._prev),C}ee.encrypt=function(D,C){var _=Math.ceil(C.length/16),F=D._cache.length;D._cache=S.concat([D._cache,S.allocUnsafe(16*_)]);for(var B=0;B<_;B++){var m=O(D),T=F+16*B;D._cache.writeUInt32BE(m[0],T+0),D._cache.writeUInt32BE(m[1],T+4),D._cache.writeUInt32BE(m[2],T+8),D._cache.writeUInt32BE(m[3],T+12)}var A=D._cache.slice(0,C.length);return D._cache=D._cache.slice(C.length),a(C,A)}},7513:(Ce,ee)=>{ee.encrypt=function(E,a){return E._cipher.encryptBlock(a)},ee.decrypt=function(E,a){return E._cipher.decryptBlock(a)}},503:(Ce,ee,E)=>{var a={ECB:E(7513),CBC:E(4133),CFB:E(7090),CFB8:E(2576),CFB1:E(1039),OFB:E(6854),CTR:E(336),GCM:E(336)},S=E(3219);for(var p in S)S[p].module=a[S[p].mode];Ce.exports=S},6854:(Ce,ee,E)=>{var a=E(3546);function S(p){return p._prev=p._cipher.encryptBlock(p._prev),p._prev}ee.encrypt=function(p,O){for(;p._cache.length{var a=E(2375),S=E(7054).Buffer,p=E(3247);function c(D,C,_,F){p.call(this),this._cipher=new a.AES(C),this._prev=S.from(_),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=F,this._mode=D}E(1993)(c,p),c.prototype._update=function(D){return this._mode.encrypt(this,D,this._decrypt)},c.prototype._final=function(){this._cipher.scrub()},Ce.exports=c},8862:(Ce,ee,E)=>{var a=E(9799),S=E(3388),p=E(503),O=E(9571),c=E(8211);function _(m,T,A){if(m=m.toLowerCase(),p[m])return S.createCipheriv(m,T,A);if(O[m])return new a({key:T,iv:A,mode:m});throw new TypeError("invalid suite type")}function F(m,T,A){if(m=m.toLowerCase(),p[m])return S.createDecipheriv(m,T,A);if(O[m])return new a({key:T,iv:A,mode:m,decrypt:!0});throw new TypeError("invalid suite type")}ee.createCipher=ee.Cipher=function D(m,T){var A,w;if(m=m.toLowerCase(),p[m])A=p[m].key,w=p[m].iv;else{if(!O[m])throw new TypeError("invalid suite type");A=8*O[m].key,w=O[m].iv}var R=c(T,!1,A,w);return _(m,R.key,R.iv)},ee.createCipheriv=ee.Cipheriv=_,ee.createDecipher=ee.Decipher=function C(m,T){var A,w;if(m=m.toLowerCase(),p[m])A=p[m].key,w=p[m].iv;else{if(!O[m])throw new TypeError("invalid suite type");A=8*O[m].key,w=O[m].iv}var R=c(T,!1,A,w);return F(m,R.key,R.iv)},ee.createDecipheriv=ee.Decipheriv=F,ee.listCiphers=ee.getCiphers=function B(){return Object.keys(O).concat(S.getCiphers())}},9799:(Ce,ee,E)=>{var a=E(3247),S=E(1549),p=E(1993),O=E(7054).Buffer,c={"des-ede3-cbc":S.CBC.instantiate(S.EDE),"des-ede3":S.EDE,"des-ede-cbc":S.CBC.instantiate(S.EDE),"des-ede":S.EDE,"des-cbc":S.CBC.instantiate(S.DES),"des-ecb":S.DES};function D(C){a.call(this);var B,_=C.mode.toLowerCase(),F=c[_];B=C.decrypt?"decrypt":"encrypt";var m=C.key;O.isBuffer(m)||(m=O.from(m)),("des-ede"===_||"des-ede-cbc"===_)&&(m=O.concat([m,m.slice(0,8)]));var T=C.iv;O.isBuffer(T)||(T=O.from(T)),this._des=F.create({key:m,iv:T,type:B})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],Ce.exports=D,p(D,a),D.prototype._update=function(C){return O.from(this._des.update(C))},D.prototype._final=function(){return O.from(this._des.final())}},9571:(Ce,ee)=>{ee["des-ecb"]={key:8,iv:0},ee["des-cbc"]=ee.des={key:8,iv:8},ee["des-ede3-cbc"]=ee.des3={key:24,iv:8},ee["des-ede3"]={key:24,iv:0},ee["des-ede-cbc"]={key:16,iv:8},ee["des-ede"]={key:16,iv:0}},4105:(Ce,ee,E)=>{var a=E(917),S=E(3342);function O(D){var _,C=D.modulus.byteLength();do{_=new a(S(C))}while(_.cmp(D.modulus)>=0||!_.umod(D.prime1)||!_.umod(D.prime2));return _}function c(D,C){var _=function p(D){var C=O(D);return{blinder:C.toRed(a.mont(D.modulus)).redPow(new a(D.publicExponent)).fromRed(),unblinder:C.invm(D.modulus)}}(C),F=C.modulus.byteLength(),B=new a(D).mul(_.blinder).umod(C.modulus),m=B.toRed(a.mont(C.prime1)),T=B.toRed(a.mont(C.prime2)),A=C.coefficient,w=C.prime1,R=C.prime2,$=m.redPow(C.exponent1).fromRed(),L=T.redPow(C.exponent2).fromRed(),M=$.isub(L).imul(A).umod(w).imul(R);return L.iadd(M).imul(_.unblinder).umod(C.modulus).toArrayLike(Buffer,"be",F)}c.getr=O,Ce.exports=c},9560:(Ce,ee,E)=>{"use strict";Ce.exports=E(2951)},9143:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(7211),p=E(5942),O=E(1993),c=E(3150),D=E(4754),C=E(2951);function _(T){p.Writable.call(this);var A=C[T];if(!A)throw new Error("Unknown message digest");this._hashType=A.hash,this._hash=S(A.hash),this._tag=A.id,this._signType=A.sign}function F(T){p.Writable.call(this);var A=C[T];if(!A)throw new Error("Unknown message digest");this._hash=S(A.hash),this._tag=A.id,this._signType=A.sign}function B(T){return new _(T)}function m(T){return new F(T)}Object.keys(C).forEach(function(T){C[T].id=a.from(C[T].id,"hex"),C[T.toLowerCase()]=C[T]}),O(_,p.Writable),_.prototype._write=function(A,w,R){this._hash.update(A),R()},_.prototype.update=function(A,w){return this._hash.update("string"==typeof A?a.from(A,w):A),this},_.prototype.sign=function(A,w){this.end();var R=this._hash.digest(),$=c(R,A,this._hashType,this._signType,this._tag);return w?$.toString(w):$},O(F,p.Writable),F.prototype._write=function(A,w,R){this._hash.update(A),R()},F.prototype.update=function(A,w){return this._hash.update("string"==typeof A?a.from(A,w):A),this},F.prototype.verify=function(A,w,R){var $="string"==typeof w?a.from(w,R):w;this.end();var L=this._hash.digest();return D($,L,A,this._signType,this._tag)},Ce.exports={Sign:B,Verify:m,createSign:B,createVerify:m}},3150:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(6432),p=E(4105),O=E(518).ec,c=E(917),D=E(5667),C=E(4589);function A(M,P,U,j){if((M=a.from(M.toArray())).length0&&U.ishrn(j),U}function $(M,P,U){var j,W;do{for(j=a.alloc(0);8*j.length{"use strict";var a=E(7054).Buffer,S=E(917),p=E(518).ec,O=E(5667),c=E(4589);function F(B,m){if(B.cmpn(0)<=0)throw new Error("invalid sig");if(B.cmp(m)>=0)throw new Error("invalid sig")}Ce.exports=function D(B,m,T,A,w){var R=O(T);if("ec"===R.type){if("ecdsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");return function C(B,m,T){var A=c[T.data.algorithm.curve.join(".")];if(!A)throw new Error("unknown curve "+T.data.algorithm.curve.join("."));return new p(A).verify(m,B,T.data.subjectPrivateKey.data)}(B,m,R)}if("dsa"===R.type){if("dsa"!==A)throw new Error("wrong public key type");return function _(B,m,T){var A=T.data.p,w=T.data.q,R=T.data.g,$=T.data.pub_key,L=O.signature.decode(B,"der"),M=L.s,P=L.r;F(M,w),F(P,w);var U=S.mont(A),j=M.invm(w);return 0===R.toRed(U).redPow(new S(m).mul(j).mod(w)).fromRed().mul($.toRed(U).redPow(P.mul(j).mod(w)).fromRed()).mod(A).mod(w).cmp(P)}(B,m,R)}if("rsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");m=a.concat([w,m]);for(var $=R.modulus.byteLength(),L=[1],M=0;m.length+L.length+2<$;)L.push(255),M+=1;L.push(0);for(var P=-1;++P{Ce.exports=function(E,a){for(var S=Math.min(E.length,a.length),p=new Buffer(S),O=0;O{"use strict";var a=E(3981),S=E(2020),p="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ee.Buffer=C,ee.SlowBuffer=function M(re){return+re!=re&&(re=0),C.alloc(+re)},ee.INSPECT_MAX_BYTES=50;var O=2147483647;function D(re){if(re>O)throw new RangeError('The value "'+re+'" is invalid for option "size"');var ne=new Uint8Array(re);return Object.setPrototypeOf(ne,C.prototype),ne}function C(re,ne,G){if("number"==typeof re){if("string"==typeof ne)throw new TypeError('The "string" argument must be of type string. Received type number');return m(re)}return _(re,ne,G)}function _(re,ne,G){if("string"==typeof re)return function T(re,ne){if(("string"!=typeof ne||""===ne)&&(ne="utf8"),!C.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);var G=0|P(re,ne),ge=D(G),xt=ge.write(re,ne);return xt!==G&&(ge=ge.slice(0,xt)),ge}(re,ne);if(ArrayBuffer.isView(re))return function w(re){if(pe(re,Uint8Array)){var ne=new Uint8Array(re);return R(ne.buffer,ne.byteOffset,ne.byteLength)}return A(re)}(re);if(null==re)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(pe(re,ArrayBuffer)||re&&pe(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(re,SharedArrayBuffer)||re&&pe(re.buffer,SharedArrayBuffer)))return R(re,ne,G);if("number"==typeof re)throw new TypeError('The "value" argument must not be of type number. Received type number');var ge=re.valueOf&&re.valueOf();if(null!=ge&&ge!==re)return C.from(ge,ne,G);var xt=function $(re){if(C.isBuffer(re)){var ne=0|L(re.length),G=D(ne);return 0===G.length||re.copy(G,0,0,ne),G}return void 0!==re.length?"number"!=typeof re.length||Ie(re.length)?D(0):A(re):"Buffer"===re.type&&Array.isArray(re.data)?A(re.data):void 0}(re);if(xt)return xt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof re[Symbol.toPrimitive])return C.from(re[Symbol.toPrimitive]("string"),ne,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}function F(re){if("number"!=typeof re)throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function m(re){return F(re),D(re<0?0:0|L(re))}function A(re){for(var ne=re.length<0?0:0|L(re.length),G=D(ne),ge=0;ge=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return 0|re}function P(re,ne){if(C.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||pe(re,ArrayBuffer))return re.byteLength;if("string"!=typeof re)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);var G=re.length,ge=arguments.length>2&&!0===arguments[2];if(!ge&&0===G)return 0;for(var xt=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return De(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return tt(re).length;default:if(xt)return ge?-1:De(re).length;ne=(""+ne).toLowerCase(),xt=!0}}function U(re,ne,G){var ge=!1;if((void 0===ne||ne<0)&&(ne=0),ne>this.length||((void 0===G||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(ne>>>=0))return"";for(re||(re="utf8");;)switch(re){case"hex":return d(this,ne,G);case"utf8":case"utf-8":return l(this,ne,G);case"ascii":return v(this,ne,G);case"latin1":case"binary":return y(this,ne,G);case"base64":return o(this,ne,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,ne,G);default:if(ge)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),ge=!0}}function j(re,ne,G){var ge=re[ne];re[ne]=re[G],re[G]=ge}function W(re,ne,G,ge,xt){if(0===re.length)return-1;if("string"==typeof G?(ge=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),Ie(G=+G)&&(G=xt?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(xt)return-1;G=re.length-1}else if(G<0){if(!xt)return-1;G=0}if("string"==typeof ne&&(ne=C.from(ne,ge)),C.isBuffer(ne))return 0===ne.length?-1:ie(re,ne,G,ge,xt);if("number"==typeof ne)return ne&=255,"function"==typeof Uint8Array.prototype.indexOf?xt?Uint8Array.prototype.indexOf.call(re,ne,G):Uint8Array.prototype.lastIndexOf.call(re,ne,G):ie(re,[ne],G,ge,xt);throw new TypeError("val must be string, number or Buffer")}function ie(re,ne,G,ge,xt){var ft,Qe=1,rt=re.length,rn=ne.length;if(void 0!==ge&&("ucs2"===(ge=String(ge).toLowerCase())||"ucs-2"===ge||"utf16le"===ge||"utf-16le"===ge)){if(re.length<2||ne.length<2)return-1;Qe=2,rt/=2,rn/=2,G/=2}function mt(Cn,St){return 1===Qe?Cn[St]:Cn.readUInt16BE(St*Qe)}if(xt){var un=-1;for(ft=G;ftrt&&(G=rt-rn),ft=G;ft>=0;ft--){for(var At=!0,It=0;Itxt&&(ge=xt):ge=xt;var Qe=ne.length;ge>Qe/2&&(ge=Qe/2);for(var rt=0;rt>8,Qe.push(G%256),Qe.push(ge);return Qe}(ne,re.length-G),re,G,ge)}function o(re,ne,G){return a.fromByteArray(0===ne&&G===re.length?re:re.slice(ne,G))}function l(re,ne,G){G=Math.min(re.length,G);for(var ge=[],xt=ne;xt239?4:Qe>223?3:Qe>191?2:1;if(xt+rn<=G)switch(rn){case 1:Qe<128&&(rt=Qe);break;case 2:128==(192&(mt=re[xt+1]))&&(At=(31&Qe)<<6|63&mt)>127&&(rt=At);break;case 3:ft=re[xt+2],128==(192&(mt=re[xt+1]))&&128==(192&ft)&&(At=(15&Qe)<<12|(63&mt)<<6|63&ft)>2047&&(At<55296||At>57343)&&(rt=At);break;case 4:ft=re[xt+2],un=re[xt+3],128==(192&(mt=re[xt+1]))&&128==(192&ft)&&128==(192&un)&&(At=(15&Qe)<<18|(63&mt)<<12|(63&ft)<<6|63&un)>65535&&At<1114112&&(rt=At)}null===rt?(rt=65533,rn=1):rt>65535&&(ge.push((rt-=65536)>>>10&1023|55296),rt=56320|1023&rt),ge.push(rt),xt+=rn}return function h(re){var ne=re.length;if(ne<=s)return String.fromCharCode.apply(String,re);for(var G="",ge=0;gext.length?C.from(rt).copy(xt,Qe):Uint8Array.prototype.set.call(xt,rt,Qe);else{if(!C.isBuffer(rt))throw new TypeError('"list" argument must be an Array of Buffers');rt.copy(xt,Qe)}Qe+=rt.length}return xt},C.byteLength=P,C.prototype._isBuffer=!0,C.prototype.swap16=function(){var ne=this.length;if(ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;GG&&(ne+=" ... "),""},p&&(C.prototype[p]=C.prototype.inspect),C.prototype.compare=function(ne,G,ge,xt,Qe){if(pe(ne,Uint8Array)&&(ne=C.from(ne,ne.offset,ne.byteLength)),!C.isBuffer(ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ne);if(void 0===G&&(G=0),void 0===ge&&(ge=ne?ne.length:0),void 0===xt&&(xt=0),void 0===Qe&&(Qe=this.length),G<0||ge>ne.length||xt<0||Qe>this.length)throw new RangeError("out of range index");if(xt>=Qe&&G>=ge)return 0;if(xt>=Qe)return-1;if(G>=ge)return 1;if(this===ne)return 0;for(var rt=(Qe>>>=0)-(xt>>>=0),rn=(ge>>>=0)-(G>>>=0),mt=Math.min(rt,rn),ft=this.slice(xt,Qe),un=ne.slice(G,ge),At=0;At>>=0,isFinite(ge)?(ge>>>=0,void 0===xt&&(xt="utf8")):(xt=ge,ge=void 0)}var Qe=this.length-G;if((void 0===ge||ge>Qe)&&(ge=Qe),ne.length>0&&(ge<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");xt||(xt="utf8");for(var rt=!1;;)switch(xt){case"hex":return me(this,ne,G,ge);case"utf8":case"utf-8":return te(this,ne,G,ge);case"ascii":case"latin1":case"binary":return se(this,ne,G,ge);case"base64":return g(this,ne,G,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,ne,G,ge);default:if(rt)throw new TypeError("Unknown encoding: "+xt);xt=(""+xt).toLowerCase(),rt=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var s=4096;function v(re,ne,G){var ge="";G=Math.min(re.length,G);for(var xt=ne;xtge)&&(G=ge);for(var xt="",Qe=ne;QeG)throw new RangeError("Trying to access beyond buffer length")}function k(re,ne,G,ge,xt,Qe){if(!C.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>xt||nere.length)throw new RangeError("Index out of range")}function I(re,ne,G,ge,xt,Qe){if(G+ge>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function V(re,ne,G,ge,xt){return ne=+ne,G>>>=0,xt||I(re,0,G,4),S.write(re,ne,G,ge,23,4),G+4}function J(re,ne,G,ge,xt){return ne=+ne,G>>>=0,xt||I(re,0,G,8),S.write(re,ne,G,ge,52,8),G+8}C.prototype.slice=function(ne,G){var ge=this.length;(ne=~~ne)<0?(ne+=ge)<0&&(ne=0):ne>ge&&(ne=ge),(G=void 0===G?ge:~~G)<0?(G+=ge)<0&&(G=0):G>ge&&(G=ge),G>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne],Qe=1,rt=0;++rt>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne+--G],Qe=1;G>0&&(Qe*=256);)xt+=this[ne+--G]*Qe;return xt},C.prototype.readUint8=C.prototype.readUInt8=function(ne,G){return ne>>>=0,G||f(ne,1,this.length),this[ne]},C.prototype.readUint16LE=C.prototype.readUInt16LE=function(ne,G){return ne>>>=0,G||f(ne,2,this.length),this[ne]|this[ne+1]<<8},C.prototype.readUint16BE=C.prototype.readUInt16BE=function(ne,G){return ne>>>=0,G||f(ne,2,this.length),this[ne]<<8|this[ne+1]},C.prototype.readUint32LE=C.prototype.readUInt32LE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+16777216*this[ne+3]},C.prototype.readUint32BE=C.prototype.readUInt32BE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),16777216*this[ne]+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},C.prototype.readIntLE=function(ne,G,ge){ne>>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne],Qe=1,rt=0;++rt=(Qe*=128)&&(xt-=Math.pow(2,8*G)),xt},C.prototype.readIntBE=function(ne,G,ge){ne>>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=G,Qe=1,rt=this[ne+--xt];xt>0&&(Qe*=256);)rt+=this[ne+--xt]*Qe;return rt>=(Qe*=128)&&(rt-=Math.pow(2,8*G)),rt},C.prototype.readInt8=function(ne,G){return ne>>>=0,G||f(ne,1,this.length),128&this[ne]?-1*(255-this[ne]+1):this[ne]},C.prototype.readInt16LE=function(ne,G){ne>>>=0,G||f(ne,2,this.length);var ge=this[ne]|this[ne+1]<<8;return 32768&ge?4294901760|ge:ge},C.prototype.readInt16BE=function(ne,G){ne>>>=0,G||f(ne,2,this.length);var ge=this[ne+1]|this[ne]<<8;return 32768&ge?4294901760|ge:ge},C.prototype.readInt32LE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},C.prototype.readInt32BE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},C.prototype.readFloatLE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),S.read(this,ne,!0,23,4)},C.prototype.readFloatBE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),S.read(this,ne,!1,23,4)},C.prototype.readDoubleLE=function(ne,G){return ne>>>=0,G||f(ne,8,this.length),S.read(this,ne,!0,52,8)},C.prototype.readDoubleBE=function(ne,G){return ne>>>=0,G||f(ne,8,this.length),S.read(this,ne,!1,52,8)},C.prototype.writeUintLE=C.prototype.writeUIntLE=function(ne,G,ge,xt){ne=+ne,G>>>=0,ge>>>=0,xt||k(this,ne,G,ge,Math.pow(2,8*ge)-1,0);var rt=1,rn=0;for(this[G]=255≠++rn>>=0,ge>>>=0,xt||k(this,ne,G,ge,Math.pow(2,8*ge)-1,0);var rt=ge-1,rn=1;for(this[G+rt]=255≠--rt>=0&&(rn*=256);)this[G+rt]=ne/rn&255;return G+ge},C.prototype.writeUint8=C.prototype.writeUInt8=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,1,255,0),this[G]=255&ne,G+1},C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,65535,0),this[G]=255&ne,this[G+1]=ne>>>8,G+2},C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,65535,0),this[G]=ne>>>8,this[G+1]=255&ne,G+2},C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,4294967295,0),this[G+3]=ne>>>24,this[G+2]=ne>>>16,this[G+1]=ne>>>8,this[G]=255&ne,G+4},C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,4294967295,0),this[G]=ne>>>24,this[G+1]=ne>>>16,this[G+2]=ne>>>8,this[G+3]=255&ne,G+4},C.prototype.writeIntLE=function(ne,G,ge,xt){if(ne=+ne,G>>>=0,!xt){var Qe=Math.pow(2,8*ge-1);k(this,ne,G,ge,Qe-1,-Qe)}var rt=0,rn=1,mt=0;for(this[G]=255≠++rt>>=0,!xt){var Qe=Math.pow(2,8*ge-1);k(this,ne,G,ge,Qe-1,-Qe)}var rt=ge-1,rn=1,mt=0;for(this[G+rt]=255≠--rt>=0&&(rn*=256);)ne<0&&0===mt&&0!==this[G+rt+1]&&(mt=1),this[G+rt]=(ne/rn|0)-mt&255;return G+ge},C.prototype.writeInt8=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,1,127,-128),ne<0&&(ne=255+ne+1),this[G]=255&ne,G+1},C.prototype.writeInt16LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,32767,-32768),this[G]=255&ne,this[G+1]=ne>>>8,G+2},C.prototype.writeInt16BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,32767,-32768),this[G]=ne>>>8,this[G+1]=255&ne,G+2},C.prototype.writeInt32LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,2147483647,-2147483648),this[G]=255&ne,this[G+1]=ne>>>8,this[G+2]=ne>>>16,this[G+3]=ne>>>24,G+4},C.prototype.writeInt32BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),this[G]=ne>>>24,this[G+1]=ne>>>16,this[G+2]=ne>>>8,this[G+3]=255&ne,G+4},C.prototype.writeFloatLE=function(ne,G,ge){return V(this,ne,G,!0,ge)},C.prototype.writeFloatBE=function(ne,G,ge){return V(this,ne,G,!1,ge)},C.prototype.writeDoubleLE=function(ne,G,ge){return J(this,ne,G,!0,ge)},C.prototype.writeDoubleBE=function(ne,G,ge){return J(this,ne,G,!1,ge)},C.prototype.copy=function(ne,G,ge,xt){if(!C.isBuffer(ne))throw new TypeError("argument should be a Buffer");if(ge||(ge=0),!xt&&0!==xt&&(xt=this.length),G>=ne.length&&(G=ne.length),G||(G=0),xt>0&&xt=this.length)throw new RangeError("Index out of range");if(xt<0)throw new RangeError("sourceEnd out of bounds");xt>this.length&&(xt=this.length),ne.length-G>>=0,ge=void 0===ge?this.length:ge>>>0,ne||(ne=0),"number"==typeof ne)for(rt=G;rt55295&&G<57344){if(!xt){if(G>56319){(ne-=3)>-1&&Qe.push(239,191,189);continue}if(rt+1===ge){(ne-=3)>-1&&Qe.push(239,191,189);continue}xt=G;continue}if(G<56320){(ne-=3)>-1&&Qe.push(239,191,189),xt=G;continue}G=65536+(xt-55296<<10|G-56320)}else xt&&(ne-=3)>-1&&Qe.push(239,191,189);if(xt=null,G<128){if((ne-=1)<0)break;Qe.push(G)}else if(G<2048){if((ne-=2)<0)break;Qe.push(G>>6|192,63&G|128)}else if(G<65536){if((ne-=3)<0)break;Qe.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;Qe.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return Qe}function tt(re){return a.toByteArray(function ve(re){if((re=(re=re.split("=")[0]).trim().replace(oe,"")).length<2)return"";for(;re.length%4!=0;)re+="=";return re}(re))}function ke(re,ne,G,ge){for(var xt=0;xt=ne.length||xt>=re.length);++xt)ne[xt+G]=re[xt];return xt}function pe(re,ne){return re instanceof ne||null!=re&&null!=re.constructor&&null!=re.constructor.name&&re.constructor.name===ne.name}function Ie(re){return re!=re}var _e=function(){for(var re="0123456789abcdef",ne=new Array(256),G=0;G<16;++G)for(var ge=16*G,xt=0;xt<16;++xt)ne[ge+xt]=re[G]+re[xt];return ne}()},5293:(Ce,ee,E)=>{"use strict";E.d(ee,{R:()=>S});const S=(0,E(5083).F3)("VoiceRecorder",{web:()=>E.e(5120).then(E.bind(E,5120)).then(p=>new p.VoiceRecorderWeb)})},3247:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(7045).Transform,p=E(8454).I;function c(D){S.call(this),this.hashMode="string"==typeof D,this.hashMode?this[D]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}E(1993)(c,S),c.prototype.update=function(D,C,_){"string"==typeof D&&(D=a.from(D,C));var F=this._update(D);return this.hashMode?this:(_&&(F=this._toString(F,_)),F)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},c.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},c.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},c.prototype._transform=function(D,C,_){var F;try{this.hashMode?this._update(D):this.push(this._update(D))}catch(B){F=B}finally{_(F)}},c.prototype._flush=function(D){var C;try{this.push(this.__final())}catch(_){C=_}D(C)},c.prototype._finalOrDigest=function(D){var C=this.__final()||a.alloc(0);return D&&(C=this._toString(C,D,!0)),C},c.prototype._toString=function(D,C,_){if(this._decoder||(this._decoder=new p(C),this._encoding=C),this._encoding!==C)throw new Error("can't switch encodings");var F=this._decoder.write(D);return _&&(F+=this._decoder.end()),F},Ce.exports=c},7637:(Ce,ee,E)=>{function R($){return Object.prototype.toString.call($)}ee.isArray=function a($){return Array.isArray?Array.isArray($):"[object Array]"===R($)},ee.isBoolean=function S($){return"boolean"==typeof $},ee.isNull=function p($){return null===$},ee.isNullOrUndefined=function O($){return null==$},ee.isNumber=function c($){return"number"==typeof $},ee.isString=function D($){return"string"==typeof $},ee.isSymbol=function C($){return"symbol"==typeof $},ee.isUndefined=function _($){return void 0===$},ee.isRegExp=function F($){return"[object RegExp]"===R($)},ee.isObject=function B($){return"object"==typeof $&&null!==$},ee.isDate=function m($){return"[object Date]"===R($)},ee.isError=function T($){return"[object Error]"===R($)||$ instanceof Error},ee.isFunction=function A($){return"function"==typeof $},ee.isPrimitive=function w($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||typeof $>"u"},ee.isBuffer=E(3838).Buffer.isBuffer},7303:(Ce,ee,E)=>{var a=E(518),S=E(9606);Ce.exports=function(C){return new O(C)};var p={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function O(D){this.curveType=p[D],this.curveType||(this.curveType={name:D}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function c(D,C,_){Array.isArray(D)||(D=D.toArray());var F=new Buffer(D);if(_&&F.length<_){var B=new Buffer(_-F.length);B.fill(0),F=Buffer.concat([B,F])}return C?F.toString(C):F}p.p224=p.secp224r1,p.p256=p.secp256r1=p.prime256v1,p.p192=p.secp192r1=p.prime192v1,p.p384=p.secp384r1,p.p521=p.secp521r1,O.prototype.generateKeys=function(D,C){return this.keys=this.curve.genKeyPair(),this.getPublicKey(D,C)},O.prototype.computeSecret=function(D,C,_){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),c(this.curve.keyFromPublic(D).getPublic().mul(this.keys.getPrivate()).getX(),_,this.curveType.byteLength)},O.prototype.getPublicKey=function(D,C){var _=this.keys.getPublic("compressed"===C,!0);return"hybrid"===C&&(_[0]=_[_.length-1]%2?7:6),c(_,D)},O.prototype.getPrivateKey=function(D){return c(this.keys.getPrivate(),D)},O.prototype.setPublicKey=function(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this.keys._importPublic(D),this},O.prototype.setPrivateKey=function(D,C){C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C));var _=new S(D);return _=_.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(_),this}},9606:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(7965).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},7211:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(4725),p=E(6636),O=E(5443),c=E(3247);function D(C){c.call(this,"digest"),this._hash=C}a(D,c),D.prototype._update=function(C){this._hash.update(C)},D.prototype._final=function(){return this._hash.digest()},Ce.exports=function(_){return"md5"===(_=_.toLowerCase())?new S:"rmd160"===_||"ripemd160"===_?new p:new D(O(_))}},3407:(Ce,ee,E)=>{var a=E(4725);Ce.exports=function(S){return(new a).update(S).digest()}},6432:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(509),p=E(3247),O=E(7054).Buffer,c=E(3407),D=E(6636),C=E(5443),_=O.alloc(128);function F(B,m){p.call(this,"digest"),"string"==typeof m&&(m=O.from(m));var T="sha512"===B||"sha384"===B?128:64;this._alg=B,this._key=m,m.length>T?m=("rmd160"===B?new D:C(B)).update(m).digest():m.length{"use strict";var a=E(1993),S=E(7054).Buffer,p=E(3247),O=S.alloc(128),c=64;function D(C,_){p.call(this,"digest"),"string"==typeof _&&(_=S.from(_)),this._alg=C,this._key=_,_.length>c?_=C(_):_.length{"use strict";ee.randomBytes=ee.rng=ee.pseudoRandomBytes=ee.prng=E(3342),ee.createHash=ee.Hash=E(7211),ee.createHmac=ee.Hmac=E(6432);var a=E(9560),S=Object.keys(a),p=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(S);ee.getHashes=function(){return p};var O=E(3397);ee.pbkdf2=O.pbkdf2,ee.pbkdf2Sync=O.pbkdf2Sync;var c=E(8862);ee.Cipher=c.Cipher,ee.createCipher=c.createCipher,ee.Cipheriv=c.Cipheriv,ee.createCipheriv=c.createCipheriv,ee.Decipher=c.Decipher,ee.createDecipher=c.createDecipher,ee.Decipheriv=c.Decipheriv,ee.createDecipheriv=c.createDecipheriv,ee.getCiphers=c.getCiphers,ee.listCiphers=c.listCiphers;var D=E(4377);ee.DiffieHellmanGroup=D.DiffieHellmanGroup,ee.createDiffieHellmanGroup=D.createDiffieHellmanGroup,ee.getDiffieHellman=D.getDiffieHellman,ee.createDiffieHellman=D.createDiffieHellman,ee.DiffieHellman=D.DiffieHellman;var C=E(9143);ee.createSign=C.createSign,ee.Sign=C.Sign,ee.createVerify=C.createVerify,ee.Verify=C.Verify,ee.createECDH=E(7303);var _=E(2965);ee.publicEncrypt=_.publicEncrypt,ee.privateEncrypt=_.privateEncrypt,ee.publicDecrypt=_.publicDecrypt,ee.privateDecrypt=_.privateDecrypt;var F=E(9682);ee.randomFill=F.randomFill,ee.randomFillSync=F.randomFillSync,ee.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},ee.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},7656:function(Ce,ee,E){var a;Ce.exports=(a=a||function(S,p){var O;if(typeof window<"u"&&window.crypto&&(O=window.crypto),typeof self<"u"&&self.crypto&&(O=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(O=globalThis.crypto),!O&&typeof window<"u"&&window.msCrypto&&(O=window.msCrypto),!O&&typeof global<"u"&&global.crypto&&(O=global.crypto),!O)try{O=E(1426)}catch{}var c=function(){if(O){if("function"==typeof O.getRandomValues)try{return O.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof O.randomBytes)try{return O.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},D=Object.create||function(){function M(){}return function(P){var U;return M.prototype=P,U=new M,M.prototype=null,U}}(),C={},_=C.lib={},F=_.Base=function(){return{extend:function(M){var P=D(this);return M&&P.mixIn(M),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var P in M)M.hasOwnProperty(P)&&(this[P]=M[P]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=_.WordArray=F.extend({init:function(M,P){M=this.words=M||[],this.sigBytes=null!=P?P:4*M.length},toString:function(M){return(M||T).stringify(this)},concat:function(M){var P=this.words,U=M.words,j=this.sigBytes,W=M.sigBytes;if(this.clamp(),j%4)for(var ie=0;ie>>2]|=(U[ie>>>2]>>>24-ie%4*8&255)<<24-(j+ie)%4*8;else for(var te=0;te>>2]=U[te>>>2];return this.sigBytes+=W,this},clamp:function(){var M=this.words,P=this.sigBytes;M[P>>>2]&=4294967295<<32-P%4*8,M.length=S.ceil(P/4)},clone:function(){var M=F.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var P=[],U=0;U>>2]>>>24-W%4*8&255;j.push((ie>>>4).toString(16)),j.push((15&ie).toString(16))}return j.join("")},parse:function(M){for(var P=M.length,U=[],j=0;j>>3]|=parseInt(M.substr(j,2),16)<<24-j%8*4;return new B.init(U,P/2)}},A=m.Latin1={stringify:function(M){for(var P=M.words,U=M.sigBytes,j=[],W=0;W>>2]>>>24-W%4*8&255));return j.join("")},parse:function(M){for(var P=M.length,U=[],j=0;j>>2]|=(255&M.charCodeAt(j))<<24-j%4*8;return new B.init(U,P)}},w=m.Utf8={stringify:function(M){try{return decodeURIComponent(escape(A.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(M){return A.parse(unescape(encodeURIComponent(M)))}},R=_.BufferedBlockAlgorithm=F.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(M){"string"==typeof M&&(M=w.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var P,U=this._data,j=U.words,W=U.sigBytes,ie=this.blockSize,te=W/(4*ie),se=(te=M?S.ceil(te):S.max((0|te)-this._minBufferSize,0))*ie,g=S.min(4*se,W);if(se){for(var n=0;n>>24)|4278255360&(M<<24|M>>>8)}var P=this._hash.words,U=w[R+0],j=w[R+1],W=w[R+2],ie=w[R+3],me=w[R+4],te=w[R+5],se=w[R+6],g=w[R+7],n=w[R+8],o=w[R+9],l=w[R+10],s=w[R+11],h=w[R+12],v=w[R+13],y=w[R+14],d=w[R+15],r=P[0],f=P[1],k=P[2],I=P[3];r=B(r,f,k,I,U,7,_[0]),I=B(I,r,f,k,j,12,_[1]),k=B(k,I,r,f,W,17,_[2]),f=B(f,k,I,r,ie,22,_[3]),r=B(r,f,k,I,me,7,_[4]),I=B(I,r,f,k,te,12,_[5]),k=B(k,I,r,f,se,17,_[6]),f=B(f,k,I,r,g,22,_[7]),r=B(r,f,k,I,n,7,_[8]),I=B(I,r,f,k,o,12,_[9]),k=B(k,I,r,f,l,17,_[10]),f=B(f,k,I,r,s,22,_[11]),r=B(r,f,k,I,h,7,_[12]),I=B(I,r,f,k,v,12,_[13]),k=B(k,I,r,f,y,17,_[14]),r=m(r,f=B(f,k,I,r,d,22,_[15]),k,I,j,5,_[16]),I=m(I,r,f,k,se,9,_[17]),k=m(k,I,r,f,s,14,_[18]),f=m(f,k,I,r,U,20,_[19]),r=m(r,f,k,I,te,5,_[20]),I=m(I,r,f,k,l,9,_[21]),k=m(k,I,r,f,d,14,_[22]),f=m(f,k,I,r,me,20,_[23]),r=m(r,f,k,I,o,5,_[24]),I=m(I,r,f,k,y,9,_[25]),k=m(k,I,r,f,ie,14,_[26]),f=m(f,k,I,r,n,20,_[27]),r=m(r,f,k,I,v,5,_[28]),I=m(I,r,f,k,W,9,_[29]),k=m(k,I,r,f,g,14,_[30]),r=T(r,f=m(f,k,I,r,h,20,_[31]),k,I,te,4,_[32]),I=T(I,r,f,k,n,11,_[33]),k=T(k,I,r,f,s,16,_[34]),f=T(f,k,I,r,y,23,_[35]),r=T(r,f,k,I,j,4,_[36]),I=T(I,r,f,k,me,11,_[37]),k=T(k,I,r,f,g,16,_[38]),f=T(f,k,I,r,l,23,_[39]),r=T(r,f,k,I,v,4,_[40]),I=T(I,r,f,k,U,11,_[41]),k=T(k,I,r,f,ie,16,_[42]),f=T(f,k,I,r,se,23,_[43]),r=T(r,f,k,I,o,4,_[44]),I=T(I,r,f,k,h,11,_[45]),k=T(k,I,r,f,d,16,_[46]),r=A(r,f=T(f,k,I,r,W,23,_[47]),k,I,U,6,_[48]),I=A(I,r,f,k,g,10,_[49]),k=A(k,I,r,f,y,15,_[50]),f=A(f,k,I,r,te,21,_[51]),r=A(r,f,k,I,h,6,_[52]),I=A(I,r,f,k,ie,10,_[53]),k=A(k,I,r,f,l,15,_[54]),f=A(f,k,I,r,j,21,_[55]),r=A(r,f,k,I,n,6,_[56]),I=A(I,r,f,k,d,10,_[57]),k=A(k,I,r,f,se,15,_[58]),f=A(f,k,I,r,v,21,_[59]),r=A(r,f,k,I,me,6,_[60]),I=A(I,r,f,k,s,10,_[61]),k=A(k,I,r,f,W,15,_[62]),f=A(f,k,I,r,o,21,_[63]),P[0]=P[0]+r|0,P[1]=P[1]+f|0,P[2]=P[2]+k|0,P[3]=P[3]+I|0},_doFinalize:function(){var w=this._data,R=w.words,$=8*this._nDataBytes,L=8*w.sigBytes;R[L>>>5]|=128<<24-L%32;var M=S.floor($/4294967296),P=$;R[15+(L+64>>>9<<4)]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8),R[14+(L+64>>>9<<4)]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),w.sigBytes=4*(R.length+1),this._process();for(var U=this._hash,j=U.words,W=0;W<4;W++){var ie=j[W];j[W]=16711935&(ie<<8|ie>>>24)|4278255360&(ie<<24|ie>>>8)}return U},clone:function(){var w=D.clone.call(this);return w._hash=this._hash.clone(),w}});function B(w,R,$,L,M,P,U){var j=w+(R&$|~R&L)+M+U;return(j<>>32-P)+R}function m(w,R,$,L,M,P,U){var j=w+(R&L|$&~L)+M+U;return(j<>>32-P)+R}function T(w,R,$,L,M,P,U){var j=w+(R^$^L)+M+U;return(j<>>32-P)+R}function A(w,R,$,L,M,P,U){var j=w+($^(R|~L))+M+U;return(j<>>32-P)+R}p.MD5=D._createHelper(F),p.HmacMD5=D._createHmacHelper(F)}(Math),a.MD5)},9986:function(Ce,ee,E){var S,p,O,c,C,_,a;Ce.exports=(a=E(7656),O=(p=(S=a).lib).WordArray,C=[],_=S.algo.SHA1=(c=p.Hasher).extend({_doReset:function(){this._hash=new O.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(F,B){for(var m=this._hash.words,T=m[0],A=m[1],w=m[2],R=m[3],$=m[4],L=0;L<80;L++){if(L<16)C[L]=0|F[B+L];else{var M=C[L-3]^C[L-8]^C[L-14]^C[L-16];C[L]=M<<1|M>>>31}var P=(T<<5|T>>>27)+$+C[L];P+=L<20?1518500249+(A&w|~A&R):L<40?1859775393+(A^w^R):L<60?(A&w|A&R|w&R)-1894007588:(A^w^R)-899497514,$=R,R=w,w=A<<30|A>>>2,A=T,T=P}m[0]=m[0]+T|0,m[1]=m[1]+A|0,m[2]=m[2]+w|0,m[3]=m[3]+R|0,m[4]=m[4]+$|0},_doFinalize:function(){var F=this._data,B=F.words,m=8*this._nDataBytes,T=8*F.sigBytes;return B[T>>>5]|=128<<24-T%32,B[14+(T+64>>>9<<4)]=Math.floor(m/4294967296),B[15+(T+64>>>9<<4)]=m,F.sigBytes=4*B.length,this._process(),this._hash},clone:function(){var F=c.clone.call(this);return F._hash=this._hash.clone(),F}}),S.SHA1=c._createHelper(_),S.HmacSHA1=c._createHmacHelper(_),a.SHA1)},7374:function(Ce){Ce.exports=function(){"use strict";var E=6e4,a=36e5,S="millisecond",p="second",O="minute",c="hour",D="day",C="week",_="month",F="quarter",B="year",m="date",T="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={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(g){var n=["th","st","nd","rd"],o=g%100;return"["+g+(n[(o-20)%10]||n[o]||n[0])+"]"}},$=function(g,n,o){var l=String(g);return!l||l.length>=n?g:""+Array(n+1-l.length).join(o)+g},L={s:$,z:function(g){var n=-g.utcOffset(),o=Math.abs(n),l=Math.floor(o/60),s=o%60;return(n<=0?"+":"-")+$(l,2,"0")+":"+$(s,2,"0")},m:function g(n,o){if(n.date()1)return g(v[0])}else{var y=n.name;P[y]=n,s=y}return!l&&s&&(M=s),s||!l&&M},ie=function(g,n){if(j(g))return g.clone();var o="object"==typeof n?n:{};return o.date=g,o.args=arguments,new te(o)},me=L;me.l=W,me.i=j,me.w=function(g,n){return ie(g,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var te=function(){function g(o){this.$L=W(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[U]=!0}var n=g.prototype;return n.parse=function(o){this.$d=function(l){var s=l.date,h=l.utc;if(null===s)return new Date(NaN);if(me.u(s))return new Date;if(s instanceof Date)return new Date(s);if("string"==typeof s&&!/Z$/i.test(s)){var v=s.match(A);if(v){var y=v[2]-1||0,d=(v[7]||"0").substring(0,3);return h?new Date(Date.UTC(v[1],y,v[3]||1,v[4]||0,v[5]||0,v[6]||0,d)):new Date(v[1],y,v[3]||1,v[4]||0,v[5]||0,v[6]||0,d)}}return new Date(s)}(o),this.init()},n.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},n.$utils=function(){return me},n.isValid=function(){return this.$d.toString()!==T},n.isSame=function(o,l){var s=ie(o);return this.startOf(l)<=s&&s<=this.endOf(l)},n.isAfter=function(o,l){return ie(o){"use strict";ee.utils=E(5671),ee.Cipher=E(219),ee.DES=E(4166),ee.CBC=E(8800),ee.EDE=E(2122)},8800:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993),p={};function O(D){a.equal(D.length,8,"Invalid IV length"),this.iv=new Array(8);for(var C=0;C{"use strict";var a=E(9210);function S(p){this.options=p,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==p.padding}Ce.exports=S,S.prototype._init=function(){},S.prototype.update=function(O){return 0===O.length?[]:"decrypt"===this.type?this._updateDecrypt(O):this._updateEncrypt(O)},S.prototype._buffer=function(O,c){for(var D=Math.min(this.buffer.length-this.bufferOff,O.length-c),C=0;C0;C--)c+=this._buffer(O,c),D+=this._flushBuffer(_,D);return c+=this._buffer(O,c),_},S.prototype.final=function(O){var c,D;return O&&(c=this.update(O)),D="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),c?c.concat(D):D},S.prototype._pad=function(O,c){if(0===c)return!1;for(;c{"use strict";var a=E(9210),S=E(1993),p=E(5671),O=E(219);function c(){this.tmp=new Array(2),this.keys=null}function D(_){O.call(this,_);var F=new c;this._desState=F,this.deriveKeys(F,_.key)}S(D,O),Ce.exports=D,D.create=function(F){return new D(F)};var C=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];D.prototype.deriveKeys=function(F,B){F.keys=new Array(32),a.equal(B.length,this.blockSize,"Invalid key length");var m=p.readUInt32BE(B,0),T=p.readUInt32BE(B,4);p.pc1(m,T,F.tmp,0),m=F.tmp[0],T=F.tmp[1];for(var A=0;A>>1];m=p.r28shl(m,w),T=p.r28shl(T,w),p.pc2(m,T,F.keys,A)}},D.prototype._update=function(F,B,m,T){var A=this._desState,w=p.readUInt32BE(F,B),R=p.readUInt32BE(F,B+4);p.ip(w,R,A.tmp,0),w=A.tmp[0],R=A.tmp[1],"encrypt"===this.type?this._encrypt(A,w,R,A.tmp,0):this._decrypt(A,w,R,A.tmp,0),R=A.tmp[1],p.writeUInt32BE(m,w=A.tmp[0],T),p.writeUInt32BE(m,R,T+4)},D.prototype._pad=function(F,B){if(!1===this.padding)return!1;for(var m=F.length-B,T=B;T>>0,w=j}p.rip(R,w,T,A)},D.prototype._decrypt=function(F,B,m,T,A){for(var w=m,R=B,$=F.keys.length-2;$>=0;$-=2){var L=F.keys[$],M=F.keys[$+1];p.expand(w,F.tmp,0);var P=p.substitute(L^=F.tmp[0],M^=F.tmp[1]),j=w;w=(R^p.permute(P))>>>0,R=j}p.rip(w,R,T,A)}},2122:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993),p=E(219),O=E(4166);function c(C,_){a.equal(_.length,24,"Invalid key length");var F=_.slice(0,8),B=_.slice(8,16),m=_.slice(16,24);this.ciphers="encrypt"===C?[O.create({type:"encrypt",key:F}),O.create({type:"decrypt",key:B}),O.create({type:"encrypt",key:m})]:[O.create({type:"decrypt",key:m}),O.create({type:"encrypt",key:B}),O.create({type:"decrypt",key:F})]}function D(C){p.call(this,C);var _=new c(this.type,this.options.key);this._edeState=_}S(D,p),Ce.exports=D,D.create=function(_){return new D(_)},D.prototype._update=function(_,F,B,m){var T=this._edeState;T.ciphers[0]._update(_,F,B,m),T.ciphers[1]._update(B,m,B,m),T.ciphers[2]._update(B,m,B,m)},D.prototype._pad=O.prototype._pad,D.prototype._unpad=O.prototype._unpad},5671:(Ce,ee)=>{"use strict";ee.readUInt32BE=function(O,c){return(O[0+c]<<24|O[1+c]<<16|O[2+c]<<8|O[3+c])>>>0},ee.writeUInt32BE=function(O,c,D){O[0+D]=c>>>24,O[1+D]=c>>>16&255,O[2+D]=c>>>8&255,O[3+D]=255&c},ee.ip=function(O,c,D,C){for(var _=0,F=0,B=6;B>=0;B-=2){for(var m=0;m<=24;m+=8)_<<=1,_|=c>>>m+B&1;for(m=0;m<=24;m+=8)_<<=1,_|=O>>>m+B&1}for(B=6;B>=0;B-=2){for(m=1;m<=25;m+=8)F<<=1,F|=c>>>m+B&1;for(m=1;m<=25;m+=8)F<<=1,F|=O>>>m+B&1}D[C+0]=_>>>0,D[C+1]=F>>>0},ee.rip=function(O,c,D,C){for(var _=0,F=0,B=0;B<4;B++)for(var m=24;m>=0;m-=8)_<<=1,_|=c>>>m+B&1,_<<=1,_|=O>>>m+B&1;for(B=4;B<8;B++)for(m=24;m>=0;m-=8)F<<=1,F|=c>>>m+B&1,F<<=1,F|=O>>>m+B&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.pc1=function(O,c,D,C){for(var _=0,F=0,B=7;B>=5;B--){for(var m=0;m<=24;m+=8)_<<=1,_|=c>>m+B&1;for(m=0;m<=24;m+=8)_<<=1,_|=O>>m+B&1}for(m=0;m<=24;m+=8)_<<=1,_|=c>>m+B&1;for(B=1;B<=3;B++){for(m=0;m<=24;m+=8)F<<=1,F|=c>>m+B&1;for(m=0;m<=24;m+=8)F<<=1,F|=O>>m+B&1}for(m=0;m<=24;m+=8)F<<=1,F|=O>>m+B&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.r28shl=function(O,c){return O<>>28-c};var E=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ee.pc2=function(O,c,D,C){for(var _=0,F=0,B=E.length>>>1,m=0;m>>E[m]&1;for(m=B;m>>E[m]&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.expand=function(O,c,D){var C=0,_=0;C=(1&O)<<5|O>>>27;for(var F=23;F>=15;F-=4)C<<=6,C|=O>>>F&63;for(F=11;F>=3;F-=4)_|=O>>>F&63,_<<=6;_|=(31&O)<<1|O>>>31,c[D+0]=C>>>0,c[D+1]=_>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ee.substitute=function(O,c){for(var D=0,C=0;C<4;C++)D<<=4,D|=a[64*C+(O>>>18-6*C&63)];for(C=0;C<4;C++)D<<=4,D|=a[256+64*C+(c>>>18-6*C&63)];return D>>>0};var S=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ee.permute=function(O){for(var c=0,D=0;D>>S[D]&1;return c>>>0},ee.padSplit=function(O,c,D){for(var C=O.toString(2);C.length{var a=E(2727),S=E(3241),p=E(4593),c={binary:!0,hex:!0,base64:!0};ee.DiffieHellmanGroup=ee.createDiffieHellmanGroup=ee.getDiffieHellman=function O(C){var _=new Buffer(S[C].prime,"hex"),F=new Buffer(S[C].gen,"hex");return new p(_,F)},ee.createDiffieHellman=ee.DiffieHellman=function D(C,_,F,B){return Buffer.isBuffer(_)||void 0===c[_]?D(C,"binary",_,F):(_=_||"binary",B=B||"binary",F=F||new Buffer([2]),Buffer.isBuffer(F)||(F=new Buffer(F,B)),"number"==typeof C?new p(a(C,F),F,!0):(Buffer.isBuffer(C)||(C=new Buffer(C,_)),new p(C,F,!0)))}},4593:(Ce,ee,E)=>{var a=E(8280),p=new(E(3459)),O=new a(24),c=new a(11),D=new a(10),C=new a(3),_=new a(7),F=E(2727),B=E(3342);function m(L,M){return M=M||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,M)),this._pub=new a(L),this}function T(L,M){return M=M||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,M)),this._priv=new a(L),this}Ce.exports=R;var A={};function R(L,M,P){this.setGenerator(M),this.__prime=new a(L),this._prime=a.mont(this.__prime),this._primeLen=L.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,P?(this.setPublicKey=m,this.setPrivateKey=T):this._primeCode=8}function $(L,M){var P=new Buffer(L.toArray());return M?P.toString(M):P}Object.defineProperty(R.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function w(L,M){var P=M.toString("hex"),U=[P,L.toString(16)].join("_");if(U in A)return A[U];var W,j=0;if(L.isEven()||!F.simpleSieve||!F.fermatTest(L)||!p.test(L))return j+=1,A[U]=j+="02"===P||"05"===P?8:4,j;switch(p.test(L.shrn(1))||(j+=2),P){case"02":L.mod(O).cmp(c)&&(j+=8);break;case"05":(W=L.mod(D)).cmp(C)&&W.cmp(_)&&(j+=8);break;default:j+=4}return A[U]=j,j}(this.__prime,this.__gen)),this._primeCode}}),R.prototype.generateKeys=function(){return this._priv||(this._priv=new a(B(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},R.prototype.computeSecret=function(L){var M=(L=(L=new a(L)).toRed(this._prime)).redPow(this._priv).fromRed(),P=new Buffer(M.toArray()),U=this.getPrime();if(P.length{var a=E(3342);Ce.exports=j,j.simpleSieve=P,j.fermatTest=U;var S=E(8280),p=new S(24),c=new(E(3459)),D=new S(1),C=new S(2),_=new S(5),m=(new S(16),new S(8),new S(10)),T=new S(3),w=(new S(7),new S(11)),R=new S(4),L=(new S(12),null);function P(W){for(var ie=function M(){if(null!==L)return L;var ie=[];ie[0]=2;for(var me=1,te=3;te<1048576;te+=2){for(var se=Math.ceil(Math.sqrt(te)),g=0;gW;)me.ishrn(1);if(me.isEven()&&me.iadd(D),me.testn(1)||me.iadd(C),ie.cmp(C)){if(!ie.cmp(_))for(;me.mod(m).cmp(T);)me.iadd(R)}else for(;me.mod(p).cmp(w);)me.iadd(R);if(P(te=me.shrn(1))&&P(me)&&U(te)&&U(me)&&c.test(te)&&c.test(me))return me}}},8280:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(6089).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},518:(Ce,ee,E)=>{"use strict";var a=ee;a.version=E(1636).rE,a.utils=E(3136),a.rand=E(5294),a.curve=E(8729),a.curves=E(3401),a.ec=E(9042),a.eddsa=E(3045)},8828:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.getNAF,O=S.getJSF,c=S.assert;function D(_,F){this.type=_,this.p=new a(F.p,16),this.red=F.prime?a.red(F.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=F.n&&new a(F.n,16),this.g=F.g&&this.pointFromJSON(F.g,F.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var B=this.n&&this.p.div(this.n);!B||B.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function C(_,F){this.curve=_,this.type=F,this.precomputed=null}Ce.exports=D,D.prototype.point=function(){throw new Error("Not implemented")},D.prototype.validate=function(){throw new Error("Not implemented")},D.prototype._fixedNafMul=function(F,B){c(F.precomputed);var m=F._getDoubles(),T=p(B,1,this._bitLength),A=(1<=R;L--)$=($<<1)+T[L];w.push($)}for(var M=this.jpoint(null,null,null),P=this.jpoint(null,null,null),U=A;U>0;U--){for(R=0;R=0;$--){for(var L=0;$>=0&&0===w[$];$--)L++;if($>=0&&L++,R=R.dblp(L),$<0)break;var M=w[$];c(0!==M),R="affine"===F.type?R.mixedAdd(M>0?A[M-1>>1]:A[-M-1>>1].neg()):R.add(M>0?A[M-1>>1]:A[-M-1>>1].neg())}return"affine"===F.type?R.toP():R},D.prototype._wnafMulAdd=function(F,B,m,T,A){var M,P,U,w=this._wnafT1,R=this._wnafT2,$=this._wnafT3,L=0;for(M=0;M=1;M-=2){var W=M-1,ie=M;if(1===w[W]&&1===w[ie]){var me=[B[W],null,null,B[ie]];0===B[W].y.cmp(B[ie].y)?(me[1]=B[W].add(B[ie]),me[2]=B[W].toJ().mixedAdd(B[ie].neg())):0===B[W].y.cmp(B[ie].y.redNeg())?(me[1]=B[W].toJ().mixedAdd(B[ie]),me[2]=B[W].add(B[ie].neg())):(me[1]=B[W].toJ().mixedAdd(B[ie]),me[2]=B[W].toJ().mixedAdd(B[ie].neg()));var te=[-3,-1,-5,-7,0,7,5,1,3],se=O(m[W],m[ie]);for(L=Math.max(se[0].length,L),$[W]=new Array(L),$[ie]=new Array(L),P=0;P=0;M--){for(var s=0;M>=0;){var h=!0;for(P=0;P=0&&s++,o=o.dblp(s),M<0)break;for(P=0;P0?U=R[P][v-1>>1]:v<0&&(U=R[P][-v-1>>1].neg()),o="affine"===U.type?o.mixedAdd(U):o.add(U))}}for(M=0;M=Math.ceil((F.bitLength()+1)/B.step)},C.prototype._getDoubles=function(F,B){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],T=this,A=0;A{"use strict";var a=E(3136),S=E(8723),p=E(1993),O=E(8828),c=a.assert;function D(_){this.twisted=1!=(0|_.a),this.mOneA=this.twisted&&-1==(0|_.a),this.extended=this.mOneA,O.call(this,"edwards",_),this.a=new S(_.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new S(_.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new S(_.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|_.c)}function C(_,F,B,m,T){O.BasePoint.call(this,_,"projective"),null===F&&null===B&&null===m?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new S(F,16),this.y=new S(B,16),this.z=m?new S(m,16):this.curve.one,this.t=T&&new S(T,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}p(D,O),Ce.exports=D,D.prototype._mulA=function(F){return this.mOneA?F.redNeg():this.a.redMul(F)},D.prototype._mulC=function(F){return this.oneC?F:this.c.redMul(F)},D.prototype.jpoint=function(F,B,m,T){return this.point(F,B,m,T)},D.prototype.pointFromX=function(F,B){(F=new S(F,16)).red||(F=F.toRed(this.red));var m=F.redSqr(),T=this.c2.redSub(this.a.redMul(m)),A=this.one.redSub(this.c2.redMul(this.d).redMul(m)),w=T.redMul(A.redInvm()),R=w.redSqrt();if(0!==R.redSqr().redSub(w).cmp(this.zero))throw new Error("invalid point");var $=R.fromRed().isOdd();return(B&&!$||!B&&$)&&(R=R.redNeg()),this.point(F,R)},D.prototype.pointFromY=function(F,B){(F=new S(F,16)).red||(F=F.toRed(this.red));var m=F.redSqr(),T=m.redSub(this.c2),A=m.redMul(this.d).redMul(this.c2).redSub(this.a),w=T.redMul(A.redInvm());if(0===w.cmp(this.zero)){if(B)throw new Error("invalid point");return this.point(this.zero,F)}var R=w.redSqrt();if(0!==R.redSqr().redSub(w).cmp(this.zero))throw new Error("invalid point");return R.fromRed().isOdd()!==B&&(R=R.redNeg()),this.point(R,F)},D.prototype.validate=function(F){if(F.isInfinity())return!0;F.normalize();var B=F.x.redSqr(),m=F.y.redSqr(),T=B.redMul(this.a).redAdd(m),A=this.c2.redMul(this.one.redAdd(this.d.redMul(B).redMul(m)));return 0===T.cmp(A)},p(C,O.BasePoint),D.prototype.pointFromJSON=function(F){return C.fromJSON(this,F)},D.prototype.point=function(F,B,m,T){return new C(this,F,B,m,T)},C.fromJSON=function(F,B){return new C(F,B[0],B[1],B[2])},C.prototype.inspect=function(){return this.isInfinity()?"":""},C.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},C.prototype._extDbl=function(){var F=this.x.redSqr(),B=this.y.redSqr(),m=this.z.redSqr();m=m.redIAdd(m);var T=this.curve._mulA(F),A=this.x.redAdd(this.y).redSqr().redISub(F).redISub(B),w=T.redAdd(B),R=w.redSub(m),$=T.redSub(B),L=A.redMul(R),M=w.redMul($),P=A.redMul($),U=R.redMul(w);return this.curve.point(L,M,U,P)},C.prototype._projDbl=function(){var T,A,w,R,$,L,F=this.x.redAdd(this.y).redSqr(),B=this.x.redSqr(),m=this.y.redSqr();if(this.curve.twisted){var M=(R=this.curve._mulA(B)).redAdd(m);this.zOne?(T=F.redSub(B).redSub(m).redMul(M.redSub(this.curve.two)),A=M.redMul(R.redSub(m)),w=M.redSqr().redSub(M).redSub(M)):($=this.z.redSqr(),L=M.redSub($).redISub($),T=F.redSub(B).redISub(m).redMul(L),A=M.redMul(R.redSub(m)),w=M.redMul(L))}else R=B.redAdd(m),$=this.curve._mulC(this.z).redSqr(),L=R.redSub($).redSub($),T=this.curve._mulC(F.redISub(R)).redMul(L),A=this.curve._mulC(R).redMul(B.redISub(m)),w=R.redMul(L);return this.curve.point(T,A,w)},C.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},C.prototype._extAdd=function(F){var B=this.y.redSub(this.x).redMul(F.y.redSub(F.x)),m=this.y.redAdd(this.x).redMul(F.y.redAdd(F.x)),T=this.t.redMul(this.curve.dd).redMul(F.t),A=this.z.redMul(F.z.redAdd(F.z)),w=m.redSub(B),R=A.redSub(T),$=A.redAdd(T),L=m.redAdd(B),M=w.redMul(R),P=$.redMul(L),U=w.redMul(L),j=R.redMul($);return this.curve.point(M,P,j,U)},C.prototype._projAdd=function(F){var P,U,B=this.z.redMul(F.z),m=B.redSqr(),T=this.x.redMul(F.x),A=this.y.redMul(F.y),w=this.curve.d.redMul(T).redMul(A),R=m.redSub(w),$=m.redAdd(w),L=this.x.redAdd(this.y).redMul(F.x.redAdd(F.y)).redISub(T).redISub(A),M=B.redMul(R).redMul(L);return this.curve.twisted?(P=B.redMul($).redMul(A.redSub(this.curve._mulA(T))),U=R.redMul($)):(P=B.redMul($).redMul(A.redSub(T)),U=this.curve._mulC(R).redMul($)),this.curve.point(M,P,U)},C.prototype.add=function(F){return this.isInfinity()?F:F.isInfinity()?this:this.curve.extended?this._extAdd(F):this._projAdd(F)},C.prototype.mul=function(F){return this._hasDoubles(F)?this.curve._fixedNafMul(this,F):this.curve._wnafMul(this,F)},C.prototype.mulAdd=function(F,B,m){return this.curve._wnafMulAdd(1,[this,B],[F,m],2,!1)},C.prototype.jmulAdd=function(F,B,m){return this.curve._wnafMulAdd(1,[this,B],[F,m],2,!0)},C.prototype.normalize=function(){if(this.zOne)return this;var F=this.z.redInvm();return this.x=this.x.redMul(F),this.y=this.y.redMul(F),this.t&&(this.t=this.t.redMul(F)),this.z=this.curve.one,this.zOne=!0,this},C.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()},C.prototype.getY=function(){return this.normalize(),this.y.fromRed()},C.prototype.eq=function(F){return this===F||0===this.getX().cmp(F.getX())&&0===this.getY().cmp(F.getY())},C.prototype.eqXToP=function(F){var B=F.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(B))return!0;for(var m=F.clone(),T=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(B.redIAdd(T),0===this.x.cmp(B))return!0}},C.prototype.toP=C.prototype.normalize,C.prototype.mixedAdd=C.prototype.add},8729:(Ce,ee,E)=>{"use strict";var a=ee;a.base=E(8828),a.short=E(8075),a.mont=E(4947),a.edwards=E(5537)},4947:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(1993),p=E(8828),O=E(3136);function c(C){p.call(this,"mont",C),this.a=new a(C.a,16).toRed(this.red),this.b=new a(C.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function D(C,_,F){p.BasePoint.call(this,C,"projective"),null===_&&null===F?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(_,16),this.z=new a(F,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}S(c,p),Ce.exports=c,c.prototype.validate=function(_){var F=_.normalize().x,B=F.redSqr(),m=B.redMul(F).redAdd(B.redMul(this.a)).redAdd(F);return 0===m.redSqrt().redSqr().cmp(m)},S(D,p.BasePoint),c.prototype.decodePoint=function(_,F){return this.point(O.toArray(_,F),1)},c.prototype.point=function(_,F){return new D(this,_,F)},c.prototype.pointFromJSON=function(_){return D.fromJSON(this,_)},D.prototype.precompute=function(){},D.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},D.fromJSON=function(_,F){return new D(_,F[0],F[1]||_.one)},D.prototype.inspect=function(){return this.isInfinity()?"":""},D.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},D.prototype.dbl=function(){var F=this.x.redAdd(this.z).redSqr(),m=this.x.redSub(this.z).redSqr(),T=F.redSub(m),A=F.redMul(m),w=T.redMul(m.redAdd(this.curve.a24.redMul(T)));return this.curve.point(A,w)},D.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.diffAdd=function(_,F){var B=this.x.redAdd(this.z),m=this.x.redSub(this.z),T=_.x.redAdd(_.z),w=_.x.redSub(_.z).redMul(B),R=T.redMul(m),$=F.z.redMul(w.redAdd(R).redSqr()),L=F.x.redMul(w.redISub(R).redSqr());return this.curve.point($,L)},D.prototype.mul=function(_){for(var F=_.clone(),B=this,m=this.curve.point(null,null),A=[];0!==F.cmpn(0);F.iushrn(1))A.push(F.andln(1));for(var w=A.length-1;w>=0;w--)0===A[w]?(B=B.diffAdd(m,this),m=m.dbl()):(m=B.diffAdd(m,this),B=B.dbl());return m},D.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.eq=function(_){return 0===this.getX().cmp(_.getX())},D.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},D.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},8075:(Ce,ee,E)=>{"use strict";var a=E(3136),S=E(8723),p=E(1993),O=E(8828),c=a.assert;function D(F){O.call(this,"short",F),this.a=new S(F.a,16).toRed(this.red),this.b=new S(F.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(F),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function C(F,B,m,T){O.BasePoint.call(this,F,"affine"),null===B&&null===m?(this.x=null,this.y=null,this.inf=!0):(this.x=new S(B,16),this.y=new S(m,16),T&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function _(F,B,m,T){O.BasePoint.call(this,F,"jacobian"),null===B&&null===m&&null===T?(this.x=this.curve.one,this.y=this.curve.one,this.z=new S(0)):(this.x=new S(B,16),this.y=new S(m,16),this.z=new S(T,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}p(D,O),Ce.exports=D,D.prototype._getEndomorphism=function(B){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var m,T;if(B.beta)m=new S(B.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);m=(m=A[0].cmp(A[1])<0?A[0]:A[1]).toRed(this.red)}if(B.lambda)T=new S(B.lambda,16);else{var w=this._getEndoRoots(this.n);0===this.g.mul(w[0]).x.cmp(this.g.x.redMul(m))?T=w[0]:c(0===this.g.mul(T=w[1]).x.cmp(this.g.x.redMul(m)))}return{beta:m,lambda:T,basis:B.basis?B.basis.map(function($){return{a:new S($.a,16),b:new S($.b,16)}}):this._getEndoBasis(T)}}},D.prototype._getEndoRoots=function(B){var m=B===this.p?this.red:S.mont(B),T=new S(2).toRed(m).redInvm(),A=T.redNeg(),w=new S(3).toRed(m).redNeg().redSqrt().redMul(T);return[A.redAdd(w).fromRed(),A.redSub(w).fromRed()]},D.prototype._getEndoBasis=function(B){for(var M,P,U,j,W,ie,me,se,g,m=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=B,A=this.n.clone(),w=new S(1),R=new S(0),$=new S(0),L=new S(1),te=0;0!==T.cmpn(0);){var n=A.div(T);se=A.sub(n.mul(T)),g=$.sub(n.mul(w));var o=L.sub(n.mul(R));if(!U&&se.cmp(m)<0)M=me.neg(),P=w,U=se.neg(),j=g;else if(U&&2==++te)break;me=se,A=T,T=se,$=w,w=g,L=R,R=o}W=se.neg(),ie=g;var l=U.sqr().add(j.sqr());return W.sqr().add(ie.sqr()).cmp(l)>=0&&(W=M,ie=P),U.negative&&(U=U.neg(),j=j.neg()),W.negative&&(W=W.neg(),ie=ie.neg()),[{a:U,b:j},{a:W,b:ie}]},D.prototype._endoSplit=function(B){var m=this.endo.basis,T=m[0],A=m[1],w=A.b.mul(B).divRound(this.n),R=T.b.neg().mul(B).divRound(this.n),$=w.mul(T.a),L=R.mul(A.a),M=w.mul(T.b),P=R.mul(A.b);return{k1:B.sub($).sub(L),k2:M.add(P).neg()}},D.prototype.pointFromX=function(B,m){(B=new S(B,16)).red||(B=B.toRed(this.red));var T=B.redSqr().redMul(B).redIAdd(B.redMul(this.a)).redIAdd(this.b),A=T.redSqrt();if(0!==A.redSqr().redSub(T).cmp(this.zero))throw new Error("invalid point");var w=A.fromRed().isOdd();return(m&&!w||!m&&w)&&(A=A.redNeg()),this.point(B,A)},D.prototype.validate=function(B){if(B.inf)return!0;var m=B.x,T=B.y,A=this.a.redMul(m),w=m.redSqr().redMul(m).redIAdd(A).redIAdd(this.b);return 0===T.redSqr().redISub(w).cmpn(0)},D.prototype._endoWnafMulAdd=function(B,m,T){for(var A=this._endoWnafT1,w=this._endoWnafT2,R=0;R":""},C.prototype.isInfinity=function(){return this.inf},C.prototype.add=function(B){if(this.inf)return B;if(B.inf)return this;if(this.eq(B))return this.dbl();if(this.neg().eq(B))return this.curve.point(null,null);if(0===this.x.cmp(B.x))return this.curve.point(null,null);var m=this.y.redSub(B.y);0!==m.cmpn(0)&&(m=m.redMul(this.x.redSub(B.x).redInvm()));var T=m.redSqr().redISub(this.x).redISub(B.x),A=m.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,A)},C.prototype.dbl=function(){if(this.inf)return this;var B=this.y.redAdd(this.y);if(0===B.cmpn(0))return this.curve.point(null,null);var m=this.curve.a,T=this.x.redSqr(),A=B.redInvm(),w=T.redAdd(T).redIAdd(T).redIAdd(m).redMul(A),R=w.redSqr().redISub(this.x.redAdd(this.x)),$=w.redMul(this.x.redSub(R)).redISub(this.y);return this.curve.point(R,$)},C.prototype.getX=function(){return this.x.fromRed()},C.prototype.getY=function(){return this.y.fromRed()},C.prototype.mul=function(B){return B=new S(B,16),this.isInfinity()?this:this._hasDoubles(B)?this.curve._fixedNafMul(this,B):this.curve.endo?this.curve._endoWnafMulAdd([this],[B]):this.curve._wnafMul(this,B)},C.prototype.mulAdd=function(B,m,T){var A=[this,m],w=[B,T];return this.curve.endo?this.curve._endoWnafMulAdd(A,w):this.curve._wnafMulAdd(1,A,w,2)},C.prototype.jmulAdd=function(B,m,T){var A=[this,m],w=[B,T];return this.curve.endo?this.curve._endoWnafMulAdd(A,w,!0):this.curve._wnafMulAdd(1,A,w,2,!0)},C.prototype.eq=function(B){return this===B||this.inf===B.inf&&(this.inf||0===this.x.cmp(B.x)&&0===this.y.cmp(B.y))},C.prototype.neg=function(B){if(this.inf)return this;var m=this.curve.point(this.x,this.y.redNeg());if(B&&this.precomputed){var T=this.precomputed,A=function(w){return w.neg()};m.precomputed={naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(A)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(A)}}}return m},C.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(_,O.BasePoint),D.prototype.jpoint=function(B,m,T){return new _(this,B,m,T)},_.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var B=this.z.redInvm(),m=B.redSqr(),T=this.x.redMul(m),A=this.y.redMul(m).redMul(B);return this.curve.point(T,A)},_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},_.prototype.add=function(B){if(this.isInfinity())return B;if(B.isInfinity())return this;var m=B.z.redSqr(),T=this.z.redSqr(),A=this.x.redMul(m),w=B.x.redMul(T),R=this.y.redMul(m.redMul(B.z)),$=B.y.redMul(T.redMul(this.z)),L=A.redSub(w),M=R.redSub($);if(0===L.cmpn(0))return 0!==M.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var P=L.redSqr(),U=P.redMul(L),j=A.redMul(P),W=M.redSqr().redIAdd(U).redISub(j).redISub(j),ie=M.redMul(j.redISub(W)).redISub(R.redMul(U)),me=this.z.redMul(B.z).redMul(L);return this.curve.jpoint(W,ie,me)},_.prototype.mixedAdd=function(B){if(this.isInfinity())return B.toJ();if(B.isInfinity())return this;var m=this.z.redSqr(),T=this.x,A=B.x.redMul(m),w=this.y,R=B.y.redMul(m).redMul(this.z),$=T.redSub(A),L=w.redSub(R);if(0===$.cmpn(0))return 0!==L.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var M=$.redSqr(),P=M.redMul($),U=T.redMul(M),j=L.redSqr().redIAdd(P).redISub(U).redISub(U),W=L.redMul(U.redISub(j)).redISub(w.redMul(P)),ie=this.z.redMul($);return this.curve.jpoint(j,W,ie)},_.prototype.dblp=function(B){if(0===B)return this;if(this.isInfinity())return this;if(!B)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var T=this;for(m=0;m=0)return!1;if(T.redIAdd(w),0===this.x.cmp(T))return!0}},_.prototype.inspect=function(){return this.isInfinity()?"":""},_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3401:(Ce,ee,E)=>{"use strict";var _,a=ee,S=E(2529),p=E(8729),c=E(3136).assert;function D(F){this.curve="short"===F.type?new p.short(F):"edwards"===F.type?new p.edwards(F):new p.mont(F),this.g=this.curve.g,this.n=this.curve.n,this.hash=F.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function C(F,B){Object.defineProperty(a,F,{configurable:!0,enumerable:!0,get:function(){var m=new D(B);return Object.defineProperty(a,F,{configurable:!0,enumerable:!0,value:m}),m}})}a.PresetCurve=D,C("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),C("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),C("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),C("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:S.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),C("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:S.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),C("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),C("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{_=E(1416)}catch{_=void 0}C("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",_]})},9042:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3556),p=E(3136),O=E(3401),c=E(5294),D=p.assert,C=E(541),_=E(484);function F(B){if(!(this instanceof F))return new F(B);"string"==typeof B&&(D(Object.prototype.hasOwnProperty.call(O,B),"Unknown curve "+B),B=O[B]),B instanceof O.PresetCurve&&(B={curve:B}),this.curve=B.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=B.curve.g,this.g.precompute(B.curve.n.bitLength()+1),this.hash=B.hash||B.curve.hash}Ce.exports=F,F.prototype.keyPair=function(m){return new C(this,m)},F.prototype.keyFromPrivate=function(m,T){return C.fromPrivate(this,m,T)},F.prototype.keyFromPublic=function(m,T){return C.fromPublic(this,m,T)},F.prototype.genKeyPair=function(m){m||(m={});for(var T=new S({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||c(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),w=this.n.sub(new a(2));;){var R=new a(T.generate(A));if(!(R.cmp(w)>0))return R.iaddn(1),this.keyFromPrivate(R)}},F.prototype._truncateToN=function(m,T){var A=8*m.byteLength()-this.n.bitLength();return A>0&&(m=m.ushrn(A)),!T&&m.cmp(this.n)>=0?m.sub(this.n):m},F.prototype.sign=function(m,T,A,w){"object"==typeof A&&(w=A,A=null),w||(w={}),T=this.keyFromPrivate(T,A),m=this._truncateToN(new a(m,16));for(var R=this.n.byteLength(),$=T.getPrivate().toArray("be",R),L=m.toArray("be",R),M=new S({hash:this.hash,entropy:$,nonce:L,pers:w.pers,persEnc:w.persEnc||"utf8"}),P=this.n.sub(new a(1)),U=0;;U++){var j=w.k?w.k(U):new a(M.generate(this.n.byteLength()));if(!((j=this._truncateToN(j,!0)).cmpn(1)<=0||j.cmp(P)>=0)){var W=this.g.mul(j);if(!W.isInfinity()){var ie=W.getX(),me=ie.umod(this.n);if(0!==me.cmpn(0)){var te=j.invm(this.n).mul(me.mul(T.getPrivate()).iadd(m));if(0!==(te=te.umod(this.n)).cmpn(0)){var se=(W.getY().isOdd()?1:0)|(0!==ie.cmp(me)?2:0);return w.canonical&&te.cmp(this.nh)>0&&(te=this.n.sub(te),se^=1),new _({r:me,s:te,recoveryParam:se})}}}}}},F.prototype.verify=function(m,T,A,w){m=this._truncateToN(new a(m,16)),A=this.keyFromPublic(A,w);var R=(T=new _(T,"hex")).r,$=T.s;if(R.cmpn(1)<0||R.cmp(this.n)>=0||$.cmpn(1)<0||$.cmp(this.n)>=0)return!1;var U,L=$.invm(this.n),M=L.mul(m).umod(this.n),P=L.mul(R).umod(this.n);return this.curve._maxwellTrick?!(U=this.g.jmulAdd(M,A.getPublic(),P)).isInfinity()&&U.eqXToP(R):!(U=this.g.mulAdd(M,A.getPublic(),P)).isInfinity()&&0===U.getX().umod(this.n).cmp(R)},F.prototype.recoverPubKey=function(B,m,T,A){D((3&T)===T,"The recovery param is more than two bits"),m=new _(m,A);var w=this.n,R=new a(B),$=m.r,L=m.s,M=1&T,P=T>>1;if($.cmp(this.curve.p.umod(this.curve.n))>=0&&P)throw new Error("Unable to find sencond key candinate");$=this.curve.pointFromX(P?$.add(this.curve.n):$,M);var U=m.r.invm(w),j=w.sub(R).mul(U).umod(w),W=L.mul(U).umod(w);return this.g.mulAdd(j,$,W)},F.prototype.getKeyRecoveryParam=function(B,m,T,A){if(null!==(m=new _(m,A)).recoveryParam)return m.recoveryParam;for(var w=0;w<4;w++){var R;try{R=this.recoverPubKey(B,m,w)}catch{continue}if(R.eq(T))return w}throw new Error("Unable to find valid recovery factor")}},541:(Ce,ee,E)=>{"use strict";var a=E(8723),p=E(3136).assert;function O(c,D){this.ec=c,this.priv=null,this.pub=null,D.priv&&this._importPrivate(D.priv,D.privEnc),D.pub&&this._importPublic(D.pub,D.pubEnc)}Ce.exports=O,O.fromPublic=function(D,C,_){return C instanceof O?C:new O(D,{pub:C,pubEnc:_})},O.fromPrivate=function(D,C,_){return C instanceof O?C:new O(D,{priv:C,privEnc:_})},O.prototype.validate=function(){var D=this.getPublic();return D.isInfinity()?{result:!1,reason:"Invalid public key"}:D.validate()?D.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},O.prototype.getPublic=function(D,C){return"string"==typeof D&&(C=D,D=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),C?this.pub.encode(C,D):this.pub},O.prototype.getPrivate=function(D){return"hex"===D?this.priv.toString(16,2):this.priv},O.prototype._importPrivate=function(D,C){this.priv=new a(D,C||16),this.priv=this.priv.umod(this.ec.curve.n)},O.prototype._importPublic=function(D,C){if(D.x||D.y)return"mont"===this.ec.curve.type?p(D.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&p(D.x&&D.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(D.x,D.y));this.pub=this.ec.curve.decodePoint(D,C)},O.prototype.derive=function(D){return D.validate()||p(D.validate(),"public point not validated"),D.mul(this.priv).getX()},O.prototype.sign=function(D,C,_){return this.ec.sign(D,this,C,_)},O.prototype.verify=function(D,C){return this.ec.verify(D,C,this)},O.prototype.inspect=function(){return""}},484:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.assert;function O(F,B){if(F instanceof O)return F;this._importDER(F,B)||(p(F.r&&F.s,"Signature without r or s"),this.r=new a(F.r,16),this.s=new a(F.s,16),this.recoveryParam=void 0===F.recoveryParam?null:F.recoveryParam)}function c(){this.place=0}function D(F,B){var m=F[B.place++];if(!(128&m))return m;var T=15&m;if(0===T||T>4)return!1;for(var A=0,w=0,R=B.place;w>>=0;return!(A<=127)&&(B.place=R,A)}function C(F){for(var B=0,m=F.length-1;!F[B]&&!(128&F[B+1])&&B>>3);for(F.push(128|m);--m;)F.push(B>>>(m<<3)&255);F.push(B)}}Ce.exports=O,O.prototype._importDER=function(B,m){B=S.toArray(B,m);var T=new c;if(48!==B[T.place++])return!1;var A=D(B,T);if(!1===A||A+T.place!==B.length||2!==B[T.place++])return!1;var w=D(B,T);if(!1===w)return!1;var R=B.slice(T.place,w+T.place);if(T.place+=w,2!==B[T.place++])return!1;var $=D(B,T);if(!1===$||B.length!==$+T.place)return!1;var L=B.slice(T.place,$+T.place);if(0===R[0]){if(!(128&R[1]))return!1;R=R.slice(1)}if(0===L[0]){if(!(128&L[1]))return!1;L=L.slice(1)}return this.r=new a(R),this.s=new a(L),this.recoveryParam=null,!0},O.prototype.toDER=function(B){var m=this.r.toArray(),T=this.s.toArray();for(128&m[0]&&(m=[0].concat(m)),128&T[0]&&(T=[0].concat(T)),m=C(m),T=C(T);!(T[0]||128&T[1]);)T=T.slice(1);var A=[2];_(A,m.length),(A=A.concat(m)).push(2),_(A,T.length);var w=A.concat(T),R=[48];return _(R,w.length),R=R.concat(w),S.encode(R,B)}},3045:(Ce,ee,E)=>{"use strict";var a=E(2529),S=E(3401),p=E(3136),O=p.assert,c=p.parseBytes,D=E(7222),C=E(5451);function _(F){if(O("ed25519"===F,"only tested with ed25519 so far"),!(this instanceof _))return new _(F);this.curve=F=S[F].curve,this.g=F.g,this.g.precompute(F.n.bitLength()+1),this.pointClass=F.point().constructor,this.encodingLength=Math.ceil(F.n.bitLength()/8),this.hash=a.sha512}Ce.exports=_,_.prototype.sign=function(B,m){B=c(B);var T=this.keyFromSecret(m),A=this.hashInt(T.messagePrefix(),B),w=this.g.mul(A),R=this.encodePoint(w),$=this.hashInt(R,T.pubBytes(),B).mul(T.priv()),L=A.add($).umod(this.curve.n);return this.makeSignature({R:w,S:L,Rencoded:R})},_.prototype.verify=function(B,m,T){if(B=c(B),(m=this.makeSignature(m)).S().gte(m.eddsa.curve.n)||m.S().isNeg())return!1;var A=this.keyFromPublic(T),w=this.hashInt(m.Rencoded(),A.pubBytes(),B),R=this.g.mul(m.S());return m.R().add(A.pub().mul(w)).eq(R)},_.prototype.hashInt=function(){for(var B=this.hash(),m=0;m{"use strict";var a=E(3136),S=a.assert,p=a.parseBytes,O=a.cachedProperty;function c(D,C){this.eddsa=D,this._secret=p(C.secret),D.isPoint(C.pub)?this._pub=C.pub:this._pubBytes=p(C.pub)}c.fromPublic=function(C,_){return _ instanceof c?_:new c(C,{pub:_})},c.fromSecret=function(C,_){return _ instanceof c?_:new c(C,{secret:_})},c.prototype.secret=function(){return this._secret},O(c,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),O(c,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),O(c,"privBytes",function(){var C=this.eddsa,_=this.hash(),F=C.encodingLength-1,B=_.slice(0,C.encodingLength);return B[0]&=248,B[F]&=127,B[F]|=64,B}),O(c,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),O(c,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),O(c,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),c.prototype.sign=function(C){return S(this._secret,"KeyPair can only verify"),this.eddsa.sign(C,this)},c.prototype.verify=function(C,_){return this.eddsa.verify(C,_,this)},c.prototype.getSecret=function(C){return S(this._secret,"KeyPair is public only"),a.encode(this.secret(),C)},c.prototype.getPublic=function(C){return a.encode(this.pubBytes(),C)},Ce.exports=c},5451:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.assert,O=S.cachedProperty,c=S.parseBytes;function D(C,_){this.eddsa=C,"object"!=typeof _&&(_=c(_)),Array.isArray(_)&&(_={R:_.slice(0,C.encodingLength),S:_.slice(C.encodingLength)}),p(_.R&&_.S,"Signature without R or S"),C.isPoint(_.R)&&(this._R=_.R),_.S instanceof a&&(this._S=_.S),this._Rencoded=Array.isArray(_.R)?_.R:_.Rencoded,this._Sencoded=Array.isArray(_.S)?_.S:_.Sencoded}O(D,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),O(D,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),O(D,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),O(D,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),D.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},D.prototype.toHex=function(){return S.encode(this.toBytes(),"hex").toUpperCase()},Ce.exports=D},1416:Ce=>{Ce.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},3136:(Ce,ee,E)=>{"use strict";var a=ee,S=E(8723),p=E(9210),O=E(1832);a.assert=p,a.toArray=O.toArray,a.zero2=O.zero2,a.toHex=O.toHex,a.encode=O.encode,a.getNAF=function c(B,m,T){var w,A=new Array(Math.max(B.bitLength(),T)+1);for(w=0;w(R>>1)-1?(R>>1)-M:M):L=0,A[w]=L,$.iushrn(1)}return A},a.getJSF=function D(B,m){var T=[[],[]];B=B.clone(),m=m.clone();for(var R,A=0,w=0;B.cmpn(-A)>0||m.cmpn(-w)>0;){var M,P,$=B.andln(3)+A&3,L=m.andln(3)+w&3;3===$&&($=-1),3===L&&(L=-1),M=1&$?3!=(R=B.andln(7)+A&7)&&5!==R||2!==L?$:-$:0,T[0].push(M),P=1&L?3!=(R=m.andln(7)+w&7)&&5!==R||2!==$?L:-L:0,T[1].push(P),2*A===M+1&&(A=1-A),2*w===P+1&&(w=1-w),B.iushrn(1),m.iushrn(1)}return T},a.cachedProperty=function C(B,m,T){var A="_"+m;B.prototype[m]=function(){return void 0!==this[A]?this[A]:this[A]=T.call(this)}},a.parseBytes=function _(B){return"string"==typeof B?a.toArray(B,"hex"):B},a.intFromLE=function F(B){return new S(B,"hex","le")}},8723:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(9368).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},4356:Ce=>{"use strict";var a,ee="object"==typeof Reflect?Reflect:null,E=ee&&"function"==typeof ee.apply?ee.apply:function(U,j,W){return Function.prototype.apply.call(U,j,W)};a=ee&&"function"==typeof ee.ownKeys?ee.ownKeys:Object.getOwnPropertySymbols?function(U){return Object.getOwnPropertyNames(U).concat(Object.getOwnPropertySymbols(U))}:function(U){return Object.getOwnPropertyNames(U)};var p=Number.isNaN||function(U){return U!=U};function O(){O.init.call(this)}Ce.exports=O,Ce.exports.once=function $(P,U){return new Promise(function(j,W){function ie(te){P.removeListener(U,me),W(te)}function me(){"function"==typeof P.removeListener&&P.removeListener("error",ie),j([].slice.call(arguments))}M(P,U,me,{once:!0}),"error"!==U&&function L(P,U,j){"function"==typeof P.on&&M(P,"error",U,j)}(P,ie,{once:!0})})},O.EventEmitter=O,O.prototype._events=void 0,O.prototype._eventsCount=0,O.prototype._maxListeners=void 0;var c=10;function D(P){if("function"!=typeof P)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P)}function C(P){return void 0===P._maxListeners?O.defaultMaxListeners:P._maxListeners}function _(P,U,j,W){var ie,me,te;if(D(j),void 0===(me=P._events)?(me=P._events=Object.create(null),P._eventsCount=0):(void 0!==me.newListener&&(P.emit("newListener",U,j.listener?j.listener:j),me=P._events),te=me[U]),void 0===te)te=me[U]=j,++P._eventsCount;else if("function"==typeof te?te=me[U]=W?[j,te]:[te,j]:W?te.unshift(j):te.push(j),(ie=C(P))>0&&te.length>ie&&!te.warned){te.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+te.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=P,se.type=U,se.count=te.length,function S(P){console&&console.warn&&console.warn(P)}(se)}return P}function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function B(P,U,j){var W={fired:!1,wrapFn:void 0,target:P,type:U,listener:j},ie=F.bind(W);return ie.listener=j,W.wrapFn=ie,ie}function m(P,U,j){var W=P._events;if(void 0===W)return[];var ie=W[U];return void 0===ie?[]:"function"==typeof ie?j?[ie.listener||ie]:[ie]:j?function R(P){for(var U=new Array(P.length),j=0;j0&&(te=j[0]),te instanceof Error)throw te;var se=new Error("Unhandled error."+(te?" ("+te.message+")":""));throw se.context=te,se}var g=me[U];if(void 0===g)return!1;if("function"==typeof g)E(g,this,j);else{var n=g.length,o=A(g,n);for(W=0;W=0;te--)if(W[te]===j||W[te].listener===j){se=W[te].listener,me=te;break}if(me<0)return this;0===me?W.shift():function w(P,U){for(;U+1=0;ie--)this.removeListener(U,j[ie]);return this},O.prototype.listeners=function(U){return m(this,U,!0)},O.prototype.rawListeners=function(U){return m(this,U,!1)},O.listenerCount=function(P,U){return"function"==typeof P.listenerCount?P.listenerCount(U):T.call(P,U)},O.prototype.listenerCount=T,O.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},8211:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(4725);Ce.exports=function p(O,c,D,C){if(a.isBuffer(O)||(O=a.from(O,"binary")),c&&(a.isBuffer(c)||(c=a.from(c,"binary")),8!==c.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var _=D/8,F=a.alloc(_),B=a.alloc(C||0),m=a.alloc(0);_>0||C>0;){var T=new S;T.update(m),T.update(O),c&&T.update(c),m=T.digest();var A=0;if(_>0){var w=F.length-_;A=Math.min(_,m.length),m.copy(F,w,0,A),_-=A}if(A0){var R=B.length-C,$=Math.min(C,m.length-A);m.copy(B,R,A,A+$),C-=$}}return m.fill(0),{key:F,iv:B}}},3686:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(7045).Transform;function c(D){S.call(this),this._block=a.allocUnsafe(D),this._blockSize=D,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}E(1993)(c,S),c.prototype._transform=function(D,C,_){var F=null;try{this.update(D,C)}catch(B){F=B}_(F)},c.prototype._flush=function(D){var C=null;try{this.push(this.digest())}catch(_){C=_}D(C)},c.prototype.update=function(D,C){if(function O(D,C){if(!a.isBuffer(D)&&"string"!=typeof D)throw new TypeError(C+" must be a string or a buffer")}(D,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(D)||(D=a.from(D,C));for(var _=this._block,F=0;this._blockOffset+D.length-F>=this._blockSize;){for(var B=this._blockOffset;B0;++m)this._length[m]+=T,(T=this._length[m]/4294967296|0)>0&&(this._length[m]-=4294967296*T);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(D){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var C=this._digest();void 0!==D&&(C=C.toString(D)),this._block.fill(0),this._blockOffset=0;for(var _=0;_<4;++_)this._length[_]=0;return C},c.prototype._digest=function(){throw new Error("_digest is not implemented")},Ce.exports=c},2529:(Ce,ee,E)=>{var a=ee;a.utils=E(8283),a.common=E(2901),a.sha=E(8528),a.ripemd=E(5283),a.hmac=E(7163),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},2901:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(9210);function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ee.BlockHash=p,p.prototype.update=function(c,D){if(c=a.toArray(c,D),this.pending=this.pending?this.pending.concat(c):c,this.pendingTotal+=c.length,this.pending.length>=this._delta8){var C=(c=this.pending).length%this._delta8;this.pending=c.slice(c.length-C,c.length),0===this.pending.length&&(this.pending=null),c=a.join32(c,0,c.length-C,this.endian);for(var _=0;_>>24&255,_[F++]=c>>>16&255,_[F++]=c>>>8&255,_[F++]=255&c}else for(_[F++]=255&c,_[F++]=c>>>8&255,_[F++]=c>>>16&255,_[F++]=c>>>24&255,_[F++]=0,_[F++]=0,_[F++]=0,_[F++]=0,B=8;B{"use strict";var a=E(8283),S=E(9210);function p(O,c,D){if(!(this instanceof p))return new p(O,c,D);this.Hash=O,this.blockSize=O.blockSize/8,this.outSize=O.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(c,D))}Ce.exports=p,p.prototype._init=function(c){c.length>this.blockSize&&(c=(new this.Hash).update(c).digest()),S(c.length<=this.blockSize);for(var D=c.length;D{"use strict";var a=E(8283),S=E(2901),p=a.rotl32,O=a.sum32,c=a.sum32_3,D=a.sum32_4,C=S.BlockHash;function _(){if(!(this instanceof _))return new _;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function F($,L,M,P){return $<=15?L^M^P:$<=31?L&M|~L&P:$<=47?(L|~M)^P:$<=63?L&P|M&~P:L^(M|~P)}function m($){return $<=15?1352829926:$<=31?1548603684:$<=47?1836072691:$<=63?2053994217:0}a.inherits(_,C),ee.ripemd160=_,_.blockSize=512,_.outSize=160,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(L,M){for(var P=this.h[0],U=this.h[1],j=this.h[2],W=this.h[3],ie=this.h[4],me=P,te=U,se=j,g=W,n=ie,o=0;o<80;o++){var l=O(p(D(P,F(o,U,j,W),L[T[o]+M],($=o)<=15?0:$<=31?1518500249:$<=47?1859775393:$<=63?2400959708:2840853838),w[o]),ie);P=ie,ie=W,W=p(j,10),j=U,U=l,l=O(p(D(me,F(79-o,te,se,g),L[A[o]+M],m(o)),R[o]),n),me=n,n=g,g=p(se,10),se=te,te=l}var $;l=c(this.h[1],j,g),this.h[1]=c(this.h[2],W,n),this.h[2]=c(this.h[3],ie,me),this.h[3]=c(this.h[4],P,te),this.h[4]=c(this.h[0],U,se),this.h[0]=l},_.prototype._digest=function(L){return"hex"===L?a.toHex32(this.h,"little"):a.split32(this.h,"little")};var T=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],w=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},8528:(Ce,ee,E)=>{"use strict";ee.sha1=E(3468),ee.sha224=E(5563),ee.sha256=E(7138),ee.sha384=E(3898),ee.sha512=E(827)},3468:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(5542),O=a.rotl32,c=a.sum32,D=a.sum32_5,C=p.ft_1,_=S.BlockHash,F=[1518500249,1859775393,2400959708,3395469782];function B(){if(!(this instanceof B))return new B;_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a.inherits(B,_),Ce.exports=B,B.blockSize=512,B.outSize=160,B.hmacStrength=80,B.padLength=64,B.prototype._update=function(T,A){for(var w=this.W,R=0;R<16;R++)w[R]=T[A+R];for(;R{"use strict";var a=E(8283),S=E(7138);function p(){if(!(this instanceof p))return new p;S.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(p,S),Ce.exports=p,p.blockSize=512,p.outSize=224,p.hmacStrength=192,p.padLength=64,p.prototype._digest=function(c){return"hex"===c?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}},7138:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(5542),O=E(9210),c=a.sum32,D=a.sum32_4,C=a.sum32_5,_=p.ch32,F=p.maj32,B=p.s0_256,m=p.s1_256,T=p.g0_256,A=p.g1_256,w=S.BlockHash,R=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function $(){if(!(this instanceof $))return new $;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=R,this.W=new Array(64)}a.inherits($,w),Ce.exports=$,$.blockSize=512,$.outSize=256,$.hmacStrength=192,$.padLength=64,$.prototype._update=function(M,P){for(var U=this.W,j=0;j<16;j++)U[j]=M[P+j];for(;j{"use strict";var a=E(8283),S=E(827);function p(){if(!(this instanceof p))return new p;S.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a.inherits(p,S),Ce.exports=p,p.blockSize=1024,p.outSize=384,p.hmacStrength=192,p.padLength=128,p.prototype._digest=function(c){return"hex"===c?a.toHex32(this.h.slice(0,12),"big"):a.split32(this.h.slice(0,12),"big")}},827:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(9210),O=a.rotr64_hi,c=a.rotr64_lo,D=a.shr64_hi,C=a.shr64_lo,_=a.sum64,F=a.sum64_hi,B=a.sum64_lo,m=a.sum64_4_hi,T=a.sum64_4_lo,A=a.sum64_5_hi,w=a.sum64_5_lo,R=S.BlockHash,$=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=$,this.W=new Array(160)}function M(l,s,h,v,y){var d=l&h^~l&y;return d<0&&(d+=4294967296),d}function P(l,s,h,v,y,d){var r=s&v^~s&d;return r<0&&(r+=4294967296),r}function U(l,s,h,v,y){var d=l&h^l&y^h&y;return d<0&&(d+=4294967296),d}function j(l,s,h,v,y,d){var r=s&v^s&d^v&d;return r<0&&(r+=4294967296),r}function W(l,s){var d=O(l,s,28)^O(s,l,2)^O(s,l,7);return d<0&&(d+=4294967296),d}function ie(l,s){var d=c(l,s,28)^c(s,l,2)^c(s,l,7);return d<0&&(d+=4294967296),d}function me(l,s){var d=O(l,s,14)^O(l,s,18)^O(s,l,9);return d<0&&(d+=4294967296),d}function te(l,s){var d=c(l,s,14)^c(l,s,18)^c(s,l,9);return d<0&&(d+=4294967296),d}function se(l,s){var d=O(l,s,1)^O(l,s,8)^D(l,s,7);return d<0&&(d+=4294967296),d}function g(l,s){var d=c(l,s,1)^c(l,s,8)^C(l,s,7);return d<0&&(d+=4294967296),d}function n(l,s){var d=O(l,s,19)^O(s,l,29)^D(l,s,6);return d<0&&(d+=4294967296),d}function o(l,s){var d=c(l,s,19)^c(s,l,29)^C(l,s,6);return d<0&&(d+=4294967296),d}a.inherits(L,R),Ce.exports=L,L.blockSize=1024,L.outSize=512,L.hmacStrength=192,L.padLength=128,L.prototype._prepareBlock=function(s,h){for(var v=this.W,y=0;y<32;y++)v[y]=s[h+y];for(;y{"use strict";var S=E(8283).rotr32;function O(m,T,A){return m&T^~m&A}function c(m,T,A){return m&T^m&A^T&A}function D(m,T,A){return m^T^A}ee.ft_1=function p(m,T,A,w){return 0===m?O(T,A,w):1===m||3===m?D(T,A,w):2===m?c(T,A,w):void 0},ee.ch32=O,ee.maj32=c,ee.p32=D,ee.s0_256=function C(m){return S(m,2)^S(m,13)^S(m,22)},ee.s1_256=function _(m){return S(m,6)^S(m,11)^S(m,25)},ee.g0_256=function F(m){return S(m,7)^S(m,18)^m>>>3},ee.g1_256=function B(m){return S(m,17)^S(m,19)^m>>>10}},8283:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993);function p(o,l){return!(55296!=(64512&o.charCodeAt(l))||l<0||l+1>=o.length)&&56320==(64512&o.charCodeAt(l+1))}function D(o){return(o>>>24|o>>>8&65280|o<<8&16711680|(255&o)<<24)>>>0}function _(o){return 1===o.length?"0"+o:o}function F(o){return 7===o.length?"0"+o:6===o.length?"00"+o:5===o.length?"000"+o:4===o.length?"0000"+o:3===o.length?"00000"+o:2===o.length?"000000"+o:1===o.length?"0000000"+o:o}ee.inherits=S,ee.toArray=function O(o,l){if(Array.isArray(o))return o.slice();if(!o)return[];var s=[];if("string"==typeof o)if(l){if("hex"===l)for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),v=0;v>6|192,s[h++]=63&y|128):p(o,v)?(y=65536+((1023&y)<<10)+(1023&o.charCodeAt(++v)),s[h++]=y>>18|240,s[h++]=y>>12&63|128,s[h++]=y>>6&63|128,s[h++]=63&y|128):(s[h++]=y>>12|224,s[h++]=y>>6&63|128,s[h++]=63&y|128)}else for(v=0;v>>0;return y},ee.split32=function m(o,l){for(var s=new Array(4*o.length),h=0,v=0;h>>24,s[v+1]=y>>>16&255,s[v+2]=y>>>8&255,s[v+3]=255&y):(s[v+3]=y>>>24,s[v+2]=y>>>16&255,s[v+1]=y>>>8&255,s[v]=255&y)}return s},ee.rotr32=function T(o,l){return o>>>l|o<<32-l},ee.rotl32=function A(o,l){return o<>>32-l},ee.sum32=function w(o,l){return o+l>>>0},ee.sum32_3=function R(o,l,s){return o+l+s>>>0},ee.sum32_4=function $(o,l,s,h){return o+l+s+h>>>0},ee.sum32_5=function L(o,l,s,h,v){return o+l+s+h+v>>>0},ee.sum64=function M(o,l,s,h){var d=h+o[l+1]>>>0;o[l]=(d>>0,o[l+1]=d},ee.sum64_hi=function P(o,l,s,h){return(l+h>>>0>>0},ee.sum64_lo=function U(o,l,s,h){return l+h>>>0},ee.sum64_4_hi=function j(o,l,s,h,v,y,d,r){var f=0,k=l;return f+=(k=k+h>>>0)>>0)>>0)>>0},ee.sum64_4_lo=function W(o,l,s,h,v,y,d,r){return l+h+y+r>>>0},ee.sum64_5_hi=function ie(o,l,s,h,v,y,d,r,f,k){var I=0,V=l;return I+=(V=V+h>>>0)>>0)>>0)>>0)>>0},ee.sum64_5_lo=function me(o,l,s,h,v,y,d,r,f,k){return l+h+y+r+k>>>0},ee.rotr64_hi=function te(o,l,s){return(l<<32-s|o>>>s)>>>0},ee.rotr64_lo=function se(o,l,s){return(o<<32-s|l>>>s)>>>0},ee.shr64_hi=function g(o,l,s){return o>>>s},ee.shr64_lo=function n(o,l,s){return(o<<32-s|l>>>s)>>>0}},3556:(Ce,ee,E)=>{"use strict";var a=E(2529),S=E(1832),p=E(9210);function O(c){if(!(this instanceof O))return new O(c);this.hash=c.hash,this.predResist=!!c.predResist,this.outLen=this.hash.outSize,this.minEntropy=c.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var D=S.toArray(c.entropy,c.entropyEnc||"hex"),C=S.toArray(c.nonce,c.nonceEnc||"hex"),_=S.toArray(c.pers,c.persEnc||"hex");p(D.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(D,C,_)}Ce.exports=O,O.prototype._init=function(D,C,_){var F=D.concat(C).concat(_);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var B=0;B=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(D.concat(_||[])),this._reseed=1},O.prototype.generate=function(D,C,_,F){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof C&&(F=_,_=C,C=null),_&&(_=S.toArray(_,F||"hex"),this._update(_));for(var B=[];B.length{ee.read=function(E,a,S,p,O){var c,D,C=8*O-p-1,_=(1<>1,B=-7,m=S?O-1:0,T=S?-1:1,A=E[a+m];for(m+=T,c=A&(1<<-B)-1,A>>=-B,B+=C;B>0;c=256*c+E[a+m],m+=T,B-=8);for(D=c&(1<<-B)-1,c>>=-B,B+=p;B>0;D=256*D+E[a+m],m+=T,B-=8);if(0===c)c=1-F;else{if(c===_)return D?NaN:1/0*(A?-1:1);D+=Math.pow(2,p),c-=F}return(A?-1:1)*D*Math.pow(2,c-p)},ee.write=function(E,a,S,p,O,c){var D,C,_,F=8*c-O-1,B=(1<>1,T=23===O?Math.pow(2,-24)-Math.pow(2,-77):0,A=p?0:c-1,w=p?1:-1,R=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(C=isNaN(a)?1:0,D=B):(D=Math.floor(Math.log(a)/Math.LN2),a*(_=Math.pow(2,-D))<1&&(D--,_*=2),(a+=D+m>=1?T/_:T*Math.pow(2,1-m))*_>=2&&(D++,_/=2),D+m>=B?(C=0,D=B):D+m>=1?(C=(a*_-1)*Math.pow(2,O),D+=m):(C=a*Math.pow(2,m-1)*Math.pow(2,O),D=0));O>=8;E[S+A]=255&C,A+=w,C/=256,O-=8);for(D=D<0;E[S+A]=255&D,A+=w,D/=256,F-=8);E[S+A-w]|=128*R}},1993:Ce=>{Ce.exports="function"==typeof Object.create?function(E,a){a&&(E.super_=a,E.prototype=Object.create(a.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:function(E,a){if(a){E.super_=a;var S=function(){};S.prototype=a.prototype,E.prototype=new S,E.prototype.constructor=E}}},53:Ce=>{var ee={}.toString;Ce.exports=Array.isArray||function(E){return"[object Array]"==ee.call(E)}},9657:(Ce,ee,E)=>{"use strict";E.d(ee,{b:()=>Qe,c:()=>j,g:()=>U,r:()=>ft});var a=E(467);let p,O,D=!1;const B="slot-fb{display:contents}slot-fb[hidden]{display:none}",m={},A=Be=>"object"==(Be=typeof Be)||"function"===Be;function w(Be){var Ae,Me,Ze;return null!==(Ze=null===(Me=null===(Ae=Be.head)||void 0===Ae?void 0:Ae.querySelector('meta[name="csp-nonce"]'))||void 0===Me?void 0:Me.getAttribute("content"))&&void 0!==Ze?Ze:void 0}const $=(Be,Ae)=>({$flags$:0,$tag$:Be,$text$:Ae,$elm$:null,$children$:null,$attrs$:null}),L={},U=Be=>mt(Be).$hostElement$,j=(Be,Ae,Me)=>{const Ze=U(Be);return{emit:je=>W(Ze,Ae,{bubbles:!!(4&Me),composed:!!(2&Me),cancelable:!!(1&Me),detail:je})}},W=(Be,Ae,Me)=>{const Ze=wt.ce(Ae,Me);return Be.dispatchEvent(Ze),Ze},ie=new WeakMap,g=(Be,Ae)=>"sc-"+Be.$tagName$,n=(Be,Ae,Me,Ze,je,it)=>{if(Me!==Ze){let Pe=At(Be,Ae);Ae.toLowerCase();{const Se=A(Ze);if((Pe||Se&&null!==Ze)&&!je)try{if(Be.tagName.includes("-"))Be[Ae]=Ze;else{const ze=null==Ze?"":Ze;"list"===Ae?Pe=!1:(null==Me||Be[Ae]!=ze)&&(Be[Ae]=ze)}}catch{}null==Ze||!1===Ze?(!1!==Ze||""===Be.getAttribute(Ae))&&Be.removeAttribute(Ae):(!Pe||4&it||je)&&!Se&&Be.setAttribute(Ae,Ze=!0===Ze?"":Ze)}}},o=(Be,Ae,Me,Ze)=>{const je=11===Ae.$elm$.nodeType&&Ae.$elm$.host?Ae.$elm$.host:Ae.$elm$,it=Be&&Be.$attrs$||m,Pe=Ae.$attrs$||m;for(Ze of l(Object.keys(it)))Ze in Pe||n(je,Ze,it[Ze],void 0,Me,Ae.$flags$);for(Ze of l(Object.keys(Pe)))n(je,Ze,it[Ze],Pe[Ze],Me,Ae.$flags$)};function l(Be){return Be.includes("ref")?[...Be.filter(Ae=>"ref"!==Ae),"ref"]:Be}const s=(Be,Ae,Me,Ze)=>{const je=Ae.$children$[Me];let Pe,Se,it=0;if(Pe=je.$elm$=bt.createElement(je.$tag$),o(null,je,!1),(Be=>null!=Be)(p)&&Pe["s-si"]!==p&&Pe.classList.add(Pe["s-si"]=p),je.$children$)for(it=0;it{let Se,Pe=Be;for(Pe.shadowRoot&&Pe.tagName===O&&(Pe=Pe.shadowRoot);je<=it;++je)Ze[je]&&(Se=s(null,Me,je),Se&&(Ze[je].$elm$=Se,Pe.insertBefore(Se,Ae)))},v=(Be,Ae,Me)=>{for(let Ze=Ae;Ze<=Me;++Ze){const je=Be[Ze];if(je){const it=je.$elm$;it&&it.remove()}}},d=(Be,Ae,Me=!1)=>Be.$tag$===Ae.$tag$,r=(Be,Ae,Me=!1)=>{const Ze=Ae.$elm$=Be.$elm$,je=Be.$children$,it=Ae.$children$;o(Be,Ae,!1),null!==je&&null!==it?((Be,Ae,Me,Ze,je=!1)=>{let yt,it=0,Pe=0,Se=Ae.length-1,ze=Ae[0],Et=Ae[Se],Je=Ze.length-1,st=Ze[0],en=Ze[Je];for(;it<=Se&&Pe<=Je;)null==ze?ze=Ae[++it]:null==Et?Et=Ae[--Se]:null==st?st=Ze[++Pe]:null==en?en=Ze[--Je]:d(ze,st,je)?(r(ze,st,je),ze=Ae[++it],st=Ze[++Pe]):d(Et,en,je)?(r(Et,en,je),Et=Ae[--Se],en=Ze[--Je]):d(ze,en,je)?(r(ze,en,je),Be.insertBefore(ze.$elm$,Et.$elm$.nextSibling),ze=Ae[++it],en=Ze[--Je]):d(Et,st,je)?(r(Et,st,je),Be.insertBefore(Et.$elm$,ze.$elm$),Et=Ae[--Se],st=Ze[++Pe]):(yt=s(Ae&&Ae[Pe],Me,Pe),st=Ze[++Pe],yt&&ze.$elm$.parentNode.insertBefore(yt,ze.$elm$));it>Se?h(Be,null==Ze[Je+1]?null:Ze[Je+1].$elm$,Me,Ze,Pe,Je):Pe>Je&&v(Ae,it,Se)})(Ze,je,Ae,it,Me):null!==it?h(Ze,null,Ae,it,0,it.length-1):null!==je&&v(je,0,je.length-1)},k=(Be,Ae)=>{Ae&&!Be.$onRenderResolve$&&Ae["s-p"]&&Ae["s-p"].push(new Promise(Me=>Be.$onRenderResolve$=Me))},I=(Be,Ae)=>{if(Be.$flags$|=16,!(4&Be.$flags$))return k(Be,Be.$ancestorComponent$),He(()=>V(Be,Ae));Be.$flags$|=512},V=(Be,Ae)=>{const Ze=Be.$lazyInstance$;let je;return Ae&&(je=tt(Ze,"componentWillLoad")),J(je,()=>ve(Be,Ze,Ae))},J=(Be,Ae)=>oe(Be)?Be.then(Ae):Ae(),oe=Be=>Be instanceof Promise||Be&&Be.then&&"function"==typeof Be.then,ve=function(){var Be=(0,a.A)(function*(Ae,Me,Ze){var je;const it=Ae.$hostElement$,Se=it["s-rc"];Ze&&(Be=>{const Ae=Be.$cmpMeta$,Me=Be.$hostElement$,Ze=Ae.$flags$,it=((Be,Ae,Me)=>{var Ze;const je=g(Ae),it=Ft.get(je);if(Be=11===Be.nodeType?Be:bt,it)if("string"==typeof it){let Se,Pe=ie.get(Be=Be.head||Be);if(Pe||ie.set(Be,Pe=new Set),!Pe.has(je)){{Se=bt.createElement("style"),Se.innerHTML=it;const ze=null!==(Ze=wt.$nonce$)&&void 0!==Ze?Ze:w(bt);null!=ze&&Se.setAttribute("nonce",ze),Be.insertBefore(Se,Be.querySelector("link"))}4&Ae.$flags$&&(Se.innerHTML+=B),Pe&&Pe.add(je)}}else Be.adoptedStyleSheets.includes(it)||(Be.adoptedStyleSheets=[...Be.adoptedStyleSheets,it]);return je})(Me.shadowRoot?Me.shadowRoot:Me.getRootNode(),Ae);10&Ze&&(Me["s-sc"]=it,Me.classList.add(it+"-h"))})(Ae);De(Ae,Me,it,Ze),Se&&(Se.map(Et=>Et()),it["s-rc"]=void 0);{const Et=null!==(je=it["s-p"])&&void 0!==je?je:[],Je=()=>Q(Ae);0===Et.length?Je():(Promise.all(Et).then(Je),Ae.$flags$|=4,Et.length=0)}});return function(Me,Ze,je){return Be.apply(this,arguments)}}(),De=(Be,Ae,Me,Ze)=>{try{Ae=Ae.render(),Be.$flags$&=-17,Be.$flags$|=2,((Be,Ae,Me=!1)=>{const Ze=Be.$hostElement$,je=Be.$cmpMeta$,it=Be.$vnode$||$(null,null),Pe=(Be=>Be&&Be.$tag$===L)(Ae)?Ae:((Be,Ae,...Me)=>{let Ze=null,je=!1,it=!1;const Pe=[],Se=Et=>{for(let Je=0;Je0&&(ze.$children$=Pe),ze})(null,null,Ae);if(O=Ze.tagName,je.$attrsToReflect$&&(Pe.$attrs$=Pe.$attrs$||{},je.$attrsToReflect$.map(([Se,ze])=>Pe.$attrs$[ze]=Ze[Se])),Me&&Pe.$attrs$)for(const Se of Object.keys(Pe.$attrs$))Ze.hasAttribute(Se)&&!["key","ref","style","class"].includes(Se)&&(Pe.$attrs$[Se]=Ze[Se]);Pe.$tag$=null,Pe.$flags$|=4,Be.$vnode$=Pe,Pe.$elm$=it.$elm$=Ze.shadowRoot||Ze,p=Ze["s-sc"],r(it,Pe,Me)})(Be,Ae,Ze)}catch(je){It(je,Be.$hostElement$)}return null},Q=Be=>{const Me=Be.$hostElement$,je=Be.$lazyInstance$,it=Be.$ancestorComponent$;64&Be.$flags$||(Be.$flags$|=64,ke(Me),tt(je,"componentDidLoad"),Be.$onReadyResolve$(Me),it||ae()),Be.$onInstanceResolve$(Me),Be.$onRenderResolve$&&(Be.$onRenderResolve$(),Be.$onRenderResolve$=void 0),512&Be.$flags$&&Ut(()=>I(Be,!1)),Be.$flags$&=-517},ae=Be=>{ke(bt.documentElement),Ut(()=>W(bn,"appload",{detail:{namespace:"jeep-sqlite"}}))},tt=(Be,Ae,Me)=>{if(Be&&Be[Ae])try{return Be[Ae](Me)}catch(Ze){It(Ze)}},ke=Be=>Be.classList.add("hydrated"),_e=(Be,Ae,Me)=>{var Ze;const je=Be.prototype;if(Ae.$members$){Be.watchers&&(Ae.$watchers$=Be.watchers);const it=Object.entries(Ae.$members$);if(it.map(([Pe,[Se]])=>{31&Se||2&Me&&32&Se?Object.defineProperty(je,Pe,{get(){return((Be,Ae)=>mt(this).$instanceValues$.get(Ae))(0,Pe)},set(ze){((Be,Ae,Me,Ze)=>{const je=mt(Be),it=je.$hostElement$,Pe=je.$instanceValues$.get(Ae),Se=je.$flags$,ze=je.$lazyInstance$;Me=((Be,Ae)=>null==Be||A(Be)?Be:4&Ae?"false"!==Be&&(""===Be||!!Be):1&Ae?String(Be):Be)(Me,Ze.$members$[Ae][0]);const Et=Number.isNaN(Pe)&&Number.isNaN(Me);if((!(8&Se)||void 0===Pe)&&Me!==Pe&&!Et&&(je.$instanceValues$.set(Ae,Me),ze)){if(Ze.$watchers$&&128&Se){const st=Ze.$watchers$[Ae];st&&st.map(en=>{try{ze[en](Me,Pe,Ae)}catch(yt){It(yt,it)}})}2==(18&Se)&&I(je,!1)}})(this,Pe,ze,Ae)},configurable:!0,enumerable:!0}):1&Me&&64&Se&&Object.defineProperty(je,Pe,{value(...ze){var Et;const Je=mt(this);return null===(Et=null==Je?void 0:Je.$onInstancePromise$)||void 0===Et?void 0:Et.then(()=>{var st;return null===(st=Je.$lazyInstance$)||void 0===st?void 0:st[Pe](...ze)})}})}),1&Me){const Pe=new Map;je.attributeChangedCallback=function(Se,ze,Et){wt.jmp(()=>{var Je;const st=Pe.get(Se);if(this.hasOwnProperty(st))Et=this[st],delete this[st];else{if(je.hasOwnProperty(st)&&"number"==typeof this[st]&&this[st]==Et)return;if(null==st){const en=mt(this),yt=null==en?void 0:en.$flags$;if(yt&&!(8&yt)&&128&yt&&Et!==ze){const vt=en.$lazyInstance$,Kt=null===(Je=Ae.$watchers$)||void 0===Je?void 0:Je[Se];null==Kt||Kt.forEach(Pt=>{null!=vt[Pt]&&vt[Pt].call(vt,Et,ze,Se)})}return}}this[st]=(null!==Et||"boolean"!=typeof this[st])&&Et})},Be.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ze=Ae.$watchers$)&&void 0!==Ze?Ze:{}),...it.filter(([Se,ze])=>15&ze[0]).map(([Se,ze])=>{var Et;const Je=ze[1]||Se;return Pe.set(Je,Se),512&ze[0]&&(null===(Et=Ae.$attrsToReflect$)||void 0===Et||Et.push([Se,Je])),Je})]))}}return Be},re=function(){var Be=(0,a.A)(function*(Ae,Me,Ze,je){let it;if(!(32&Me.$flags$)){if(Me.$flags$|=32,Ze.$lazyBundleId$){if(it=St(Ze),it.then){const Je=()=>{};it=yield it,Je()}it.isProxied||(Ze.$watchers$=it.watchers,_e(it,Ze,2),it.isProxied=!0);const Et=()=>{};Me.$flags$|=8;try{new it(Me)}catch(Je){It(Je)}Me.$flags$&=-9,Me.$flags$|=128,Et(),ne(Me.$lazyInstance$)}else it=Ae.constructor,customElements.whenDefined(Ze.$tagName$).then(()=>Me.$flags$|=128);if(it.style){let Et=it.style;const Je=g(Ze);if(!Ft.has(Je)){const st=()=>{};((Be,Ae,Me)=>{let Ze=Ft.get(Be);Bt&&Me?(Ze=Ze||new CSSStyleSheet,"string"==typeof Ze?Ze=Ae:Ze.replaceSync(Ae)):Ze=Ae,Ft.set(Be,Ze)})(Je,Et,!!(1&Ze.$flags$)),st()}}}const Pe=Me.$ancestorComponent$,Se=()=>I(Me,!0);Pe&&Pe["s-rc"]?Pe["s-rc"].push(Se):Se()});return function(Me,Ze,je,it){return Be.apply(this,arguments)}}(),ne=Be=>{tt(Be,"connectedCallback")},xt=function(){var Be=(0,a.A)(function*(Ae){if(!(1&wt.$flags$)){const Me=mt(Ae);null!=Me&&Me.$lazyInstance$||null!=Me&&Me.$onReadyPromise$&&Me.$onReadyPromise$.then(()=>{})}});return function(Me){return Be.apply(this,arguments)}}(),Qe=(Be,Ae={})=>{var Me;const je=[],it=Ae.exclude||[],Pe=bn.customElements,Se=bt.head,ze=Se.querySelector("meta[charset]"),Et=bt.createElement("style"),Je=[];let st,en=!0;Object.assign(wt,Ae),wt.$resourcesUrl$=new URL(Ae.resourcesUrl||"./",bt.baseURI).href;let yt=!1;if(Be.map(vt=>{vt[1].map(Kt=>{var Pt;const Rt={$flags$:Kt[0],$tagName$:Kt[1],$members$:Kt[2],$listeners$:Kt[3]};4&Rt.$flags$&&(yt=!0),Rt.$members$=Kt[2],Rt.$attrsToReflect$=[],Rt.$watchers$=null!==(Pt=Kt[4])&&void 0!==Pt?Pt:{};const On=Rt.$tagName$,An=class extends HTMLElement{constructor(Bn){super(Bn),un(Bn=this,Rt),1&Rt.$flags$&&Bn.attachShadow({mode:"open"})}connectedCallback(){st&&(clearTimeout(st),st=null),en?Je.push(this):wt.jmp(()=>(Be=>{if(!(1&wt.$flags$)){const Ae=mt(Be),Me=Ae.$cmpMeta$,Ze=()=>{};if(1&Ae.$flags$)null!=Ae&&Ae.$lazyInstance$?ne(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>ne(Ae.$lazyInstance$));else{Ae.$flags$|=1;{let je=Be;for(;je=je.parentNode||je.host;)if(je["s-p"]){k(Ae,Ae.$ancestorComponent$=je);break}}Me.$members$&&Object.entries(Me.$members$).map(([je,[it]])=>{if(31&it&&Be.hasOwnProperty(je)){const Pe=Be[je];delete Be[je],Be[je]=Pe}}),re(Be,Ae,Me)}Ze()}})(this))}disconnectedCallback(){wt.jmp(()=>xt(this))}componentOnReady(){return mt(this).$onReadyPromise$}};Rt.$lazyBundleId$=vt[0],!it.includes(On)&&!Pe.get(On)&&(je.push(On),Pe.define(On,_e(An,Rt,1)))})}),je.length>0&&(yt&&(Et.textContent+=B),Et.textContent+=je+"{visibility:hidden}.hydrated{visibility:inherit}",Et.innerHTML.length)){Et.setAttribute("data-styles","");const vt=null!==(Me=wt.$nonce$)&&void 0!==Me?Me:w(bt);null!=vt&&Et.setAttribute("nonce",vt),Se.insertBefore(Et,ze?ze.nextSibling:Se.firstChild)}en=!1,Je.length?Je.map(vt=>vt.connectedCallback()):wt.jmp(()=>st=setTimeout(ae,30))},rn=new WeakMap,mt=Be=>rn.get(Be),ft=(Be,Ae)=>rn.set(Ae.$lazyInstance$=Be,Ae),un=(Be,Ae)=>{const Me={$flags$:0,$hostElement$:Be,$cmpMeta$:Ae,$instanceValues$:new Map};return Me.$onInstancePromise$=new Promise(Ze=>Me.$onInstanceResolve$=Ze),Me.$onReadyPromise$=new Promise(Ze=>Me.$onReadyResolve$=Ze),Be["s-p"]=[],Be["s-rc"]=[],rn.set(Be,Me)},At=(Be,Ae)=>Ae in Be,It=(Be,Ae)=>(0,console.error)(Be,Ae),Cn=new Map,St=(Be,Ae,Me)=>{const Ze=Be.$tagName$.replace(/-/g,"_"),je=Be.$lazyBundleId$,it=Cn.get(je);return it?it[Ze]:E(7321)(`./${je}.entry.js`).then(Pe=>(Cn.set(je,Pe),Pe[Ze]),It)},Ft=new Map,bn=typeof window<"u"?window:{},bt=bn.document||{head:{}},wt={$flags$:0,$resourcesUrl$:"",jmp:Be=>Be(),raf:Be=>requestAnimationFrame(Be),ael:(Be,Ae,Me,Ze)=>Be.addEventListener(Ae,Me,Ze),rel:(Be,Ae,Me,Ze)=>Be.removeEventListener(Ae,Me,Ze),ce:(Be,Ae)=>new CustomEvent(Be,Ae)},Bt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Lt=[],Wt=[],Nt=(Be,Ae)=>Me=>{Be.push(Me),D||(D=!0,Ae&&4&wt.$flags$?Ut(zn):wt.raf(zn))},Ot=Be=>{for(let Ae=0;Ae{Ot(Lt),Ot(Wt),(D=Lt.length>0)&&wt.raf(zn)},Ut=Be=>Promise.resolve(void 0).then(Be),He=Nt(Wt,!0)},4801:function(Ce){typeof self<"u"&&self,Ce.exports=function(ee){var E={};function a(S){if(E[S])return E[S].exports;var p=E[S]={i:S,l:!1,exports:{}};return ee[S].call(p.exports,p,p.exports,a),p.l=!0,p.exports}return a.m=ee,a.c=E,a.d=function(S,p,O){a.o(S,p)||Object.defineProperty(S,p,{configurable:!1,enumerable:!0,get:O})},a.n=function(S){var p=S&&S.__esModule?function(){return S.default}:function(){return S};return a.d(p,"a",p),p},a.o=function(S,p){return Object.prototype.hasOwnProperty.call(S,p)},a.p="",a(a.s=3)}([function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=function(){function p(O,c){this.width=c,this.height=O.length/c,this.data=O}return p.createEmpty=function(O,c){return new p(new Uint8ClampedArray(O*c),O)},p.prototype.get=function(O,c){return!(O<0||O>=this.width||c<0||c>=this.height||!this.data[c*this.width+O])},p.prototype.set=function(O,c,D){this.data[c*this.width+O]=D?1:0},p.prototype.setRegion=function(O,c,D,C,_){for(var F=c;F=this.size&&(F=(F^this.primitive)&this.size-1);for(B=0;B1&&0===D[0]){for(var _=1;__.length&&(C=(D=[_,C])[0],_=D[1]);for(var F=new Uint8ClampedArray(_.length),B=_.length-C.length,m=0;mB?B:_}var D=function(){function _(F,B){this.width=F,this.data=new Uint8ClampedArray(F*B)}return _.prototype.get=function(F,B){return this.data[B*this.width+F]},_.prototype.set=function(F,B,m){this.data[B*this.width+F]=m},_}();E.binarize=function C(_,F,B,m){if(_.length!==F*B*4)throw new Error("Malformed data passed to binarizer.");for(var T=new D(F,B),A=0;A0&&W>0)){var n=(U.get(W,j-1)+2*U.get(W-1,j)+U.get(W-1,j-1))/4;me6&&(P.setRegion(M-11,0,3,6,!0),P.setRegion(0,M-11,6,3,!0)),P}(M),ie=[],me=0,te=0,se=!0,g=j-1;g>0;g-=2){6===g&&g--;for(var n=0;n=0;j--)for(var W=M-9;W>=M-11;W--)U=C(L.get(W,j),U);var ie=0;for(W=5;W>=0;W--)for(j=M-9;j>=M-11;j--)ie=C(L.get(W,j),ie);for(var te,me=1/0,se=0,g=c.VERSIONS;se=0;U--)6!==U&&(M=C(L.get(8,U),M));var j=L.height,W=0;for(U=j-1;U>=j-7;U--)W=C(L.get(8,U),W);for(P=j-8;P1){var n=U.ecBlocks[0].numBlocks,o=U.ecBlocks[1].numBlocks;for(me=0;me0;)for(var l=0,s=j;l=3;){if((M=T.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var P=Math.floor(M/100),U=Math.floor(M/10)%10,j=M%10;w.push(48+P,48+U,48+j),R+=P.toString()+U.toString()+j.toString(),L-=3}if(2===L){if((M=T.readBits(7))>=100)throw new Error("Invalid numeric value above 99");P=Math.floor(M/10),w.push(48+P,48+(U=M%10)),R+=P.toString()+U.toString()}else if(1===L){var M;if((M=T.readBits(4))>=10)throw new Error("Invalid numeric value above 9");w.push(48+M),R+=M.toString()}return{bytes:w,text:R}}var C=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function _(T,A){for(var w=[],R="",L=T.readBits([9,11,13][A]);L>=2;){var M=T.readBits(11),P=Math.floor(M/45),U=M%45;w.push(C[P].charCodeAt(0),C[U].charCodeAt(0)),R+=C[P]+C[U],L-=2}return 1===L&&(P=T.readBits(6),w.push(C[P].charCodeAt(0)),R+=C[P]),{bytes:w,text:R}}function F(T,A){for(var w=[],R="",L=T.readBits([8,16,16][A]),M=0;M>8,255&U),R+=String.fromCharCode(p.shiftJISTable[U])}return{bytes:w,text:R}}E.decode=function m(T,A){for(var w,R,$,L,M=new S.BitStream(T),P=A<=9?0:A<=26?1:2,U={text:"",bytes:[],chunks:[],version:A};M.available()>=4;){var j=M.readBits(4);if(j===c.Terminator)return U;if(j===c.ECI)0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(7)}):0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(14)}):0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(21)}):U.chunks.push({type:O.ECI,assignmentNumber:-1});else if(j===c.Numeric){var W=D(M,P);U.text+=W.text,(w=U.bytes).push.apply(w,W.bytes),U.chunks.push({type:O.Numeric,text:W.text})}else if(j===c.Alphanumeric){var ie=_(M,P);U.text+=ie.text,(R=U.bytes).push.apply(R,ie.bytes),U.chunks.push({type:O.Alphanumeric,text:ie.text})}else if(j===c.Byte){var me=F(M,P);U.text+=me.text,($=U.bytes).push.apply($,me.bytes),U.chunks.push({type:O.Byte,bytes:me.bytes,text:me.text})}else if(j===c.Kanji){var te=B(M,P);U.text+=te.text,(L=U.bytes).push.apply(L,te.bytes),U.chunks.push({type:O.Kanji,bytes:te.bytes,text:te.text})}}if(0===M.available()||0===M.readBits(M.available()))return U}},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=function(){function p(O){this.byteOffset=0,this.bitOffset=0,this.bytes=O}return p.prototype.readBits=function(O){if(O<1||O>32||O>this.available())throw new Error("Cannot read "+O.toString()+" bits");var c=0;if(this.bitOffset>0){var D=8-this.bitOffset,C=O>8-C<<(_=D-C))>>_,O-=C,this.bitOffset+=C,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(O>0){for(;O>=8;)c=c<<8|255&this.bytes[this.byteOffset],this.byteOffset++,O-=8;var _;O>0&&(c=c<>(_=8-O)<<_)>>_,this.bitOffset+=O)}return c},p.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},p}();E.BitStream=S},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=a(1),p=a(2);E.decode=function C(_,F){var B=new Uint8ClampedArray(_.length);B.set(_);for(var m=new S.default(285,256,0),T=new p.default(m,B),A=new Uint8ClampedArray(F),w=!1,R=0;R=m/2;){var L=A,M=R;if(R=$,(A=w).isZero())return null;w=L;for(var P=_.zero,U=A.getCoefficient(A.degree()),j=_.inverse(U);w.degree()>=A.degree()&&!w.isZero();){var W=w.degree()-A.degree(),ie=_.multiply(w.getCoefficient(w.degree()),j);P=P.addOrSubtract(_.buildMonomial(W,ie)),w=w.addOrSubtract(A.multiplyByMonomial(W,ie))}if($=P.multiplyPoly(R).addOrSubtract(M),w.degree()>=A.degree())return null}var me=$.getCoefficient(0);if(0===me)return null;var te=_.inverse(me);return[$.multiply(te),w.multiply(te)]}(m,m.buildMonomial(F,1),L,F);if(null===M)return null;var P=function c(_,F){var B=F.degree();if(1===B)return[F.getCoefficient(1)];for(var m=new Array(B),T=0,A=1;A<_.size&&TMath.abs(L.x-$.x);j?(W=Math.floor($.y),ie=Math.floor($.x),me=Math.floor(L.y),te=Math.floor(L.x)):(W=Math.floor($.x),ie=Math.floor($.y),me=Math.floor(L.x),te=Math.floor(L.y));for(var se=Math.abs(me-W),g=Math.abs(te-ie),n=Math.floor(-se/2),o=W0){if(v===te)break;v+=l,n-=se}}for(var r=[],f=0;f=15&&n.length?n[0]:g,dimension:W}}E.locate=function w($){for(var L=[],M=[],P=[],U=[],j=function(y){for(var d=0,r=!1,f=[0,0,0,0,0],k=function(V){var J=$.get(V,y);if(J===r)d++;else{f=[f[1],f[2],f[3],f[4],d],d=1,r=J;var oe=D(f)/7,ve=Math.abs(f[0]-oe)=re.bottom.startX&&tt<=re.bottom.endX||ae>=re.bottom.startX&&tt<=re.bottom.endX||tt<=re.bottom.startX&&ae>=re.bottom.endX&&f[2]/(re.bottom.endX-re.bottom.startX)<1.5&&f[2]/(re.bottom.endX-re.bottom.startX)>.5})).length>0?pe[0].bottom=ke:M.push({top:ke,bottom:ke})}if(Q){var pe,Ie=V-f[4],_e=Ie-f[3];ke={startX:_e,y,endX:Ie},(pe=U.filter(function(G){return _e>=G.bottom.startX&&_e<=G.bottom.endX||Ie>=G.bottom.startX&&_e<=G.bottom.endX||_e<=G.bottom.startX&&Ie>=G.bottom.endX&&f[2]/(G.bottom.endX-G.bottom.startX)<1.5&&f[2]/(G.bottom.endX-G.bottom.startX)>.5})).length>0?pe[0].bottom=ke:U.push({top:ke,bottom:ke})}}},I=-1;I<=$.width;I++)k(I);L.push.apply(L,M.filter(function(V){return V.bottom.y!==y&&V.bottom.y-V.top.y>=2})),M=M.filter(function(V){return V.bottom.y===y}),P.push.apply(P,U.filter(function(V){return V.bottom.y!==y})),U=U.filter(function(V){return V.bottom.y===y})},W=0;W<=$.height;W++)j(W);L.push.apply(L,M.filter(function(y){return y.bottom.y-y.top.y>=2})),P.push.apply(P,U);var ie=L.filter(function(y){return y.bottom.y-y.top.y>=2}).map(function(y){var d=(y.top.startX+y.top.endX+y.bottom.startX+y.bottom.endX)/4,r=(y.top.y+y.bottom.y+1)/2;if($.get(Math.round(d),Math.round(r))){var f=[y.top.endX-y.top.startX,y.bottom.endX-y.bottom.startX,y.bottom.y-y.top.y+1],k=D(f)/f.length;return{score:T({x:Math.round(d),y:Math.round(r)},[1,1,3,1,1],$),x:d,y:r,size:k}}}).filter(function(y){return!!y}).sort(function(y,d){return y.score-d.score}).map(function(y,d,r){if(d>4)return null;var f=r.filter(function(I,V){return d!==V}).map(function(I){return{x:I.x,y:I.y,score:I.score+Math.pow(I.size-y.size,2)/y.size,size:I.size}}).sort(function(I,V){return I.score-V.score});if(f.length<2)return null;var k=y.score+f[0].score+f[1].score;return{points:[y].concat(f.slice(0,2)),score:k}}).filter(function(y){return!!y}).sort(function(y,d){return y.score-d.score});if(0===ie.length)return null;var me=function C($,L,M){var P,U,j,W,se,g,n,ie=c($,L),me=c(L,M),te=c($,M);return me>=ie&&me>=te?(se=(P=[L,$,M])[0],g=P[1],n=P[2]):te>=me&&te>=ie?(se=(U=[$,L,M])[0],g=U[1],n=U[2]):(se=(j=[$,M,L])[0],g=j[1],n=j[2]),(n.x-g.x)*(se.y-g.y)-(n.y-g.y)*(se.x-g.x)<0&&(se=(W=[n,se])[0],n=W[1]),{bottomLeft:se,topLeft:g,topRight:n}}(ie[0].points[0],ie[0].points[1],ie[0].points[2]),te=me.topRight,se=me.topLeft,g=me.bottomLeft,n=R($,P,te,se,g),o=[];n&&o.push({alignmentPattern:{x:n.alignmentPattern.x,y:n.alignmentPattern.y},bottomLeft:{x:g.x,y:g.y},dimension:n.dimension,topLeft:{x:se.x,y:se.y},topRight:{x:te.x,y:te.y}});var l=A($,te),s=A($,se),h=A($,g),v=R($,P,l,s,h);return v&&o.push({alignmentPattern:{x:v.alignmentPattern.x,y:v.alignmentPattern.y},bottomLeft:{x:h.x,y:h.y},topLeft:{x:s.x,y:s.y},topRight:{x:l.x,y:l.y},dimension:v.dimension}),0===o.length?null:o}}]).default},4725:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(3686),p=E(7054).Buffer,O=new Array(16);function c(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function D(m,T){return m<>>32-T}function C(m,T,A,w,R,$,L){return D(m+(T&A|~T&w)+R+$|0,L)+T|0}function _(m,T,A,w,R,$,L){return D(m+(T&w|A&~w)+R+$|0,L)+T|0}function F(m,T,A,w,R,$,L){return D(m+(T^A^w)+R+$|0,L)+T|0}function B(m,T,A,w,R,$,L){return D(m+(A^(T|~w))+R+$|0,L)+T|0}a(c,S),c.prototype._update=function(){for(var m=O,T=0;T<16;++T)m[T]=this._block.readInt32LE(4*T);var A=this._a,w=this._b,R=this._c,$=this._d;A=C(A,w,R,$,m[0],3614090360,7),$=C($,A,w,R,m[1],3905402710,12),R=C(R,$,A,w,m[2],606105819,17),w=C(w,R,$,A,m[3],3250441966,22),A=C(A,w,R,$,m[4],4118548399,7),$=C($,A,w,R,m[5],1200080426,12),R=C(R,$,A,w,m[6],2821735955,17),w=C(w,R,$,A,m[7],4249261313,22),A=C(A,w,R,$,m[8],1770035416,7),$=C($,A,w,R,m[9],2336552879,12),R=C(R,$,A,w,m[10],4294925233,17),w=C(w,R,$,A,m[11],2304563134,22),A=C(A,w,R,$,m[12],1804603682,7),$=C($,A,w,R,m[13],4254626195,12),R=C(R,$,A,w,m[14],2792965006,17),A=_(A,w=C(w,R,$,A,m[15],1236535329,22),R,$,m[1],4129170786,5),$=_($,A,w,R,m[6],3225465664,9),R=_(R,$,A,w,m[11],643717713,14),w=_(w,R,$,A,m[0],3921069994,20),A=_(A,w,R,$,m[5],3593408605,5),$=_($,A,w,R,m[10],38016083,9),R=_(R,$,A,w,m[15],3634488961,14),w=_(w,R,$,A,m[4],3889429448,20),A=_(A,w,R,$,m[9],568446438,5),$=_($,A,w,R,m[14],3275163606,9),R=_(R,$,A,w,m[3],4107603335,14),w=_(w,R,$,A,m[8],1163531501,20),A=_(A,w,R,$,m[13],2850285829,5),$=_($,A,w,R,m[2],4243563512,9),R=_(R,$,A,w,m[7],1735328473,14),A=F(A,w=_(w,R,$,A,m[12],2368359562,20),R,$,m[5],4294588738,4),$=F($,A,w,R,m[8],2272392833,11),R=F(R,$,A,w,m[11],1839030562,16),w=F(w,R,$,A,m[14],4259657740,23),A=F(A,w,R,$,m[1],2763975236,4),$=F($,A,w,R,m[4],1272893353,11),R=F(R,$,A,w,m[7],4139469664,16),w=F(w,R,$,A,m[10],3200236656,23),A=F(A,w,R,$,m[13],681279174,4),$=F($,A,w,R,m[0],3936430074,11),R=F(R,$,A,w,m[3],3572445317,16),w=F(w,R,$,A,m[6],76029189,23),A=F(A,w,R,$,m[9],3654602809,4),$=F($,A,w,R,m[12],3873151461,11),R=F(R,$,A,w,m[15],530742520,16),A=B(A,w=F(w,R,$,A,m[2],3299628645,23),R,$,m[0],4096336452,6),$=B($,A,w,R,m[7],1126891415,10),R=B(R,$,A,w,m[14],2878612391,15),w=B(w,R,$,A,m[5],4237533241,21),A=B(A,w,R,$,m[12],1700485571,6),$=B($,A,w,R,m[3],2399980690,10),R=B(R,$,A,w,m[10],4293915773,15),w=B(w,R,$,A,m[1],2240044497,21),A=B(A,w,R,$,m[8],1873313359,6),$=B($,A,w,R,m[15],4264355552,10),R=B(R,$,A,w,m[6],2734768916,15),w=B(w,R,$,A,m[13],1309151649,21),A=B(A,w,R,$,m[4],4149444226,6),$=B($,A,w,R,m[11],3174756917,10),R=B(R,$,A,w,m[2],718787259,15),w=B(w,R,$,A,m[9],3951481745,21),this._a=this._a+A|0,this._b=this._b+w|0,this._c=this._c+R|0,this._d=this._d+$|0},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=p.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},Ce.exports=c},3459:(Ce,ee,E)=>{var a=E(7223),S=E(5294);function p(O){this.rand=O||new S.Rand}Ce.exports=p,p.create=function(c){return new p(c)},p.prototype._randbelow=function(c){var D=c.bitLength(),C=Math.ceil(D/8);do{var _=new a(this.rand.generate(C))}while(_.cmp(c)>=0);return _},p.prototype._randrange=function(c,D){var C=D.sub(c);return c.add(this._randbelow(C))},p.prototype.test=function(c,D,C){var _=c.bitLength(),F=a.mont(c),B=new a(1).toRed(F);D||(D=Math.max(1,_/48|0));for(var m=c.subn(1),T=0;!m.testn(T);T++);for(var A=c.shrn(T),w=m.toRed(F);D>0;D--){var $=this._randrange(new a(2),m);C&&C($);var L=$.toRed(F).redPow(A);if(0!==L.cmp(B)&&0!==L.cmp(w)){for(var M=1;M0;D--){var w=this._randrange(new a(2),B),R=c.gcd(w);if(0!==R.cmpn(1))return R;var $=w.toRed(_).redPow(T);if(0!==$.cmp(F)&&0!==$.cmp(A)){for(var L=1;L=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},9210:Ce=>{function ee(E,a){if(!E)throw new Error(a||"Assertion failed")}Ce.exports=ee,ee.equal=function(a,S,p){if(a!=S)throw new Error(p||"Assertion failed: "+a+" != "+S)}},1832:(Ce,ee)=>{"use strict";var E=ee;function S(O){return 1===O.length?"0"+O:O}function p(O){for(var c="",D=0;D>8,B=255&_;F?D.push(F,B):D.push(B)}return D},E.zero2=S,E.toHex=p,E.encode=function(c,D){return"hex"===D?p(c):c}},3138:(Ce,ee,E)=>{"use strict";var a=E(1990);ee.certificate=E(4772);var S=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});ee.RSAPrivateKey=S;var p=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});ee.RSAPublicKey=p;var O=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(O),this.key("subjectPublicKey").bitstr())});ee.PublicKey=c;var D=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(O),this.key("subjectPrivateKey").octstr())});ee.PrivateKey=D;var C=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});ee.EncryptedPrivateKey=C;var _=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});ee.DSAPrivateKey=_,ee.DSAparam=a.define("DSAparam",function(){this.int()});var F=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),B=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(F),this.key("publicKey").optional().explicit(1).bitstr())});ee.ECPrivateKey=B,ee.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},4772:(Ce,ee,E)=>{"use strict";var a=E(1990),S=a.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),p=a.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),O=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(O),this.key("subjectPublicKey").bitstr())}),D=a.define("RelativeDistinguishedName",function(){this.setof(p)}),C=a.define("RDNSequence",function(){this.seqof(D)}),_=a.define("Name",function(){this.choice({rdnSequence:this.use(C)})}),F=a.define("Validity",function(){this.seq().obj(this.key("notBefore").use(S),this.key("notAfter").use(S))}),B=a.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),m=a.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(O),this.key("issuer").use(_),this.key("validity").use(F),this.key("subject").use(_),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(B).optional())}),T=a.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(O),this.key("signatureValue").bitstr())});Ce.exports=T},9472:(Ce,ee,E)=>{"use strict";var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,O=E(8211),c=E(3388),D=E(7054).Buffer;Ce.exports=function(C,_){var m,F=C.toString(),B=F.match(a);if(B){var A="aes"+B[1],w=D.from(B[2],"hex"),R=D.from(B[3].replace(/[\r\n]/g,""),"base64"),$=O(_,w.slice(0,8),parseInt(B[1],10)).key,L=[],M=c.createDecipheriv(A,$,w);L.push(M.update(R)),L.push(M.final()),m=D.concat(L)}else{var T=F.match(p);m=D.from(T[2].replace(/[\r\n]/g,""),"base64")}return{tag:F.match(S)[1],data:m}}},5667:(Ce,ee,E)=>{"use strict";var a=E(3138),S=E(5579),p=E(9472),O=E(3388),c=E(3397),D=E(7054).Buffer;function _(F){var B;"object"==typeof F&&!D.isBuffer(F)&&(B=F.passphrase,F=F.key),"string"==typeof F&&(F=D.from(F));var w,R,m=p(F,B),T=m.tag,A=m.data;switch(T){case"CERTIFICATE":R=a.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(R||(R=a.PublicKey.decode(A,"der")),w=R.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(R.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return R.subjectPrivateKey=R.subjectPublicKey,{type:"ec",data:R};case"1.2.840.10040.4.1":return R.algorithm.params.pub_key=a.DSAparam.decode(R.subjectPublicKey.data,"der"),{type:"dsa",data:R.algorithm.params};default:throw new Error("unknown key id "+w)}case"ENCRYPTED PRIVATE KEY":A=function C(F,B){var m=F.algorithm.decrypt.kde.kdeparams.salt,T=parseInt(F.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=S[F.algorithm.decrypt.cipher.algo.join(".")],w=F.algorithm.decrypt.cipher.iv,R=F.subjectPrivateKey,$=parseInt(A.split("-")[1],10)/8,L=c.pbkdf2Sync(B,m,T,$,"sha1"),M=O.createDecipheriv(A,L,w),P=[];return P.push(M.update(R)),P.push(M.final()),D.concat(P)}(A=a.EncryptedPrivateKey.decode(A,"der"),B);case"PRIVATE KEY":switch(w=(R=a.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(R.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:R.algorithm.curve,privateKey:a.ECPrivateKey.decode(R.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return R.algorithm.params.priv_key=a.DSAparam.decode(R.subjectPrivateKey,"der"),{type:"dsa",params:R.algorithm.params};default:throw new Error("unknown key id "+w)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=a.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw new Error("unknown key type "+T)}}_.signature=a.signature,Ce.exports=_},3397:(Ce,ee,E)=>{ee.pbkdf2=E(2685),ee.pbkdf2Sync=E(9111)},2685:(Ce,ee,E)=>{var D,m,a=E(7054).Buffer,S=E(6111),p=E(5392),O=E(9111),c=E(6643),C=global.crypto&&global.crypto.subtle,_={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},F=[];function T(){return m||(m=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function A(R,$,L,M,P){return C.importKey("raw",R,{name:"PBKDF2"},!1,["deriveBits"]).then(function(U){return C.deriveBits({name:"PBKDF2",salt:$,iterations:L,hash:{name:P}},U,M<<3)}).then(function(U){return a.from(U)})}Ce.exports=function(R,$,L,M,P,U){"function"==typeof P&&(U=P,P=void 0);var j=_[(P=P||"sha1").toLowerCase()];if(j&&"function"==typeof global.Promise){if(S(L,M),R=c(R,p,"Password"),$=c($,p,"Salt"),"function"!=typeof U)throw new Error("No callback provided to pbkdf2");!function w(R,$){R.then(function(L){T()(function(){$(null,L)})},function(L){T()(function(){$(L)})})}(function B(R){if(global.process&&!global.process.browser||!C||!C.importKey||!C.deriveBits)return Promise.resolve(!1);if(void 0!==F[R])return F[R];var $=A(D=D||a.alloc(8),D,10,128,R).then(function(){return!0}).catch(function(){return!1});return F[R]=$,$}(j).then(function(W){return W?A(R,$,L,M,j):O(R,$,L,M,P)}),U)}else T()(function(){var W;try{W=O(R,$,L,M,P)}catch(ie){return U(ie)}U(null,W)})}},5392:Ce=>{var ee;ee=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",Ce.exports=ee},6111:Ce=>{var ee=Math.pow(2,30)-1;Ce.exports=function(E,a){if("number"!=typeof E)throw new TypeError("Iterations not a number");if(E<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>ee||a!=a)throw new TypeError("Bad key length")}},9111:(Ce,ee,E)=>{var a=E(3407),S=E(6636),p=E(5443),O=E(7054).Buffer,c=E(6111),D=E(5392),C=E(6643),_=O.alloc(128),F={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function B(A,w,R){var $=function m(A){return"rmd160"===A||"ripemd160"===A?function R($){return(new S).update($).digest()}:"md5"===A?a:function w($){return p(A).update($).digest()}}(A),L="sha512"===A||"sha384"===A?128:64;w.length>L?w=$(w):w.length{var a=E(7054).Buffer;Ce.exports=function(S,p,O){if(a.isBuffer(S))return S;if("string"==typeof S)return a.from(S,p);if(ArrayBuffer.isView(S))return a.from(S.buffer);throw new TypeError(O+" must be a string, a Buffer, a typed array or a DataView")}},9656:Ce=>{"use strict";Ce.exports=typeof process>"u"||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function ee(E,a,S,p){if("function"!=typeof E)throw new TypeError('"callback" argument must be a function');var c,D,O=arguments.length;switch(O){case 0:case 1:return process.nextTick(E);case 2:return process.nextTick(function(){E.call(null,a)});case 3:return process.nextTick(function(){E.call(null,a,S)});case 4:return process.nextTick(function(){E.call(null,a,S,p)});default:for(c=new Array(O-1),D=0;D{ee.publicEncrypt=E(7267),ee.privateDecrypt=E(8613),ee.privateEncrypt=function(S,p){return ee.publicEncrypt(S,p,!0)},ee.publicDecrypt=function(S,p){return ee.privateDecrypt(S,p,!0)}},715:(Ce,ee,E)=>{var a=E(7211),S=E(7054).Buffer;function p(O){var c=S.allocUnsafe(4);return c.writeUInt32BE(O,0),c}Ce.exports=function(O,c){for(var _,D=S.alloc(0),C=0;D.length=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(R=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?R(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var P={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(P[n])return P[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return P[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},8613:(Ce,ee,E)=>{var a=E(5667),S=E(715),p=E(7196),O=E(6508),c=E(4105),D=E(7211),C=E(568),_=E(7054).Buffer;Ce.exports=function(A,w,R){var $;$=A.padding?A.padding:R?1:4;var P,L=a(A),M=L.modulus.byteLength();if(w.length>M||new O(w).cmp(L.modulus)>=0)throw new Error("decryption error");P=R?C(new O(w),L):c(w,L);var U=_.alloc(M-P.length);if(P=_.concat([U,P],M),4===$)return function F(T,A){var w=T.modulus.byteLength(),R=D("sha1").update(_.alloc(0)).digest(),$=R.length;if(0!==A[0])throw new Error("decryption error");var L=A.slice(1,$+1),M=A.slice($+1),P=p(L,S(M,$)),U=p(M,S(P,w-$-1));if(function m(T,A){T=_.from(T),A=_.from(A);var w=0,R=T.length;T.length!==A.length&&(w++,R=Math.min(T.length,A.length));for(var $=-1;++$=A.length){L++;break}var M=A.slice(2,$-1);if(("0002"!==R.toString("hex")&&!w||"0001"!==R.toString("hex")&&w)&&L++,M.length<8&&L++,L)throw new Error("decryption error");return A.slice($)}(0,P,R);if(3===$)return P;throw new Error("unknown padding")}},7267:(Ce,ee,E)=>{var a=E(5667),S=E(3342),p=E(7211),O=E(715),c=E(7196),D=E(6508),C=E(568),_=E(4105),F=E(7054).Buffer;Ce.exports=function(w,R,$){var L;L=w.padding?w.padding:$?1:4;var P,M=a(w);if(4===L)P=function B(A,w){var R=A.modulus.byteLength(),$=w.length,L=p("sha1").update(F.alloc(0)).digest(),M=L.length,P=2*M;if($>R-P-2)throw new Error("message too long");var U=F.alloc(R-$-P-2),j=R-M-1,W=S(M),ie=c(F.concat([L,U,F.alloc(1,1),w],j),O(W,j)),me=c(W,O(ie,M));return new D(F.concat([F.alloc(1),me,ie],R))}(M,R);else if(1===L)P=function m(A,w,R){var M,$=w.length,L=A.modulus.byteLength();if($>L-11)throw new Error("message too long");return M=R?F.alloc(L-$-3,255):function T(A){for(var M,w=F.allocUnsafe(A),R=0,$=S(2*A),L=0;R=0)throw new Error("data too long for modulus")}return $?_(P,M):C(P,M)}},568:(Ce,ee,E)=>{var a=E(6508),S=E(7054).Buffer;Ce.exports=function p(O,c){return S.from(O.toRed(a.mont(c.modulus)).redPow(new a(c.publicExponent)).fromRed().toArray())}},7196:Ce=>{Ce.exports=function(E,a){for(var S=E.length,p=-1;++p{"use strict";var a=65536,O=E(7054).Buffer,c=global.crypto||global.msCrypto;Ce.exports=c&&c.getRandomValues?function D(C,_){if(C>4294967295)throw new RangeError("requested too many random bytes");var F=O.allocUnsafe(C);if(C>0)if(C>a)for(var B=0;B{"use strict";function a(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var S=E(7054),p=E(3342),O=S.Buffer,c=S.kMaxLength,D=global.crypto||global.msCrypto,C=Math.pow(2,32)-1;function _(A,w){if("number"!=typeof A||A!=A)throw new TypeError("offset must be a number");if(A>C||A<0)throw new TypeError("offset must be a uint32");if(A>c||A>w)throw new RangeError("offset out of range")}function F(A,w,R){if("number"!=typeof A||A!=A)throw new TypeError("size must be a number");if(A>C||A<0)throw new TypeError("size must be a uint32");if(A+w>R||A>c)throw new RangeError("buffer too small")}function m(A,w,R,$){if(process.browser){var M=new Uint8Array(A.buffer,w,R);return D.getRandomValues(M),$?void process.nextTick(function(){$(null,A)}):A}if(!$)return p(R).copy(A,w),A;p(R,function(U,j){if(U)return $(U);j.copy(A,w),$(null,A)})}D&&D.getRandomValues||!process.browser?(ee.randomFill=function B(A,w,R,$){if(!(O.isBuffer(A)||A instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof w)$=w,w=0,R=A.length;else if("function"==typeof R)$=R,R=A.length-w;else if("function"!=typeof $)throw new TypeError('"cb" argument must be a function');return _(w,A.length),F(R,w,A.length),m(A,w,R,$)},ee.randomFillSync=function T(A,w,R){if(typeof w>"u"&&(w=0),!(O.isBuffer(A)||A instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return _(w,A.length),void 0===R&&(R=A.length-w),F(R,w,A.length),m(A,w,R)}):(ee.randomFill=a,ee.randomFillSync=a)},4075:(Ce,ee,E)=>{"use strict";var a=E(9656),S=Object.keys||function(T){var A=[];for(var w in T)A.push(w);return A};Ce.exports=F;var p=Object.create(E(7637));p.inherits=E(1993);var O=E(9609),c=E(7849);p.inherits(F,O);for(var D=S(c.prototype),C=0;C{"use strict";Ce.exports=p;var a=E(2909),S=Object.create(E(7637));function p(O){if(!(this instanceof p))return new p(O);a.call(this,O)}S.inherits=E(1993),S.inherits(p,a),p.prototype._transform=function(O,c,D){D(null,O)}},9609:(Ce,ee,E)=>{"use strict";var a=E(9656);Ce.exports=U;var p,S=E(53);U.ReadableState=P,E(4356);var c=function(Q,ae){return Q.listeners(ae).length},D=E(8342),C=E(2655).Buffer,_=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},m=Object.create(E(7637));m.inherits=E(1993);var T=E(9838),A=void 0;A=T&&T.debuglog?T.debuglog("stream"):function(){};var $,w=E(7809),R=E(1509);m.inherits(U,D);var L=["error","close","destroy","pause","resume"];function P(Q,ae){var tt=ae instanceof(p=p||E(4075));this.objectMode=!!(Q=Q||{}).objectMode,tt&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var ke=Q.highWaterMark,pe=Q.readableHighWaterMark;this.highWaterMark=ke||0===ke?ke:tt&&(pe||0===pe)?pe:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&($||($=E(8454).I),this.decoder=new $(Q.encoding),this.encoding=Q.encoding)}function U(Q){if(p=p||E(4075),!(this instanceof U))return new U(Q);this._readableState=new P(Q,this),this.readable=!0,Q&&("function"==typeof Q.read&&(this._read=Q.read),"function"==typeof Q.destroy&&(this._destroy=Q.destroy)),D.call(this)}function j(Q,ae,tt,ke,pe){var _e,Ie=Q._readableState;return null===ae?(Ie.reading=!1,function n(Q,ae){if(!ae.ended){if(ae.decoder){var tt=ae.decoder.end();tt&&tt.length&&(ae.buffer.push(tt),ae.length+=ae.objectMode?1:tt.length)}ae.ended=!0,o(Q)}}(Q,Ie)):(pe||(_e=function ie(Q,ae){var tt;return!function B(Q){return C.isBuffer(Q)||Q instanceof _}(ae)&&"string"!=typeof ae&&void 0!==ae&&!Q.objectMode&&(tt=new TypeError("Invalid non-string/buffer chunk")),tt}(Ie,ae)),_e?Q.emit("error",_e):Ie.objectMode||ae&&ae.length>0?("string"!=typeof ae&&!Ie.objectMode&&Object.getPrototypeOf(ae)!==C.prototype&&(ae=function F(Q){return C.from(Q)}(ae)),ke?Ie.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):W(Q,Ie,ae,!0):Ie.ended?Q.emit("error",new Error("stream.push() after EOF")):(Ie.reading=!1,Ie.decoder&&!tt?(ae=Ie.decoder.write(ae),Ie.objectMode||0!==ae.length?W(Q,Ie,ae,!1):s(Q,Ie)):W(Q,Ie,ae,!1))):ke||(Ie.reading=!1)),function me(Q){return!Q.ended&&(Q.needReadable||Q.lengthae.highWaterMark&&(ae.highWaterMark=function se(Q){return Q>=8388608?Q=8388608:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(Q)),Q<=ae.length?Q:ae.ended?ae.length:(ae.needReadable=!0,0))}function o(Q){var ae=Q._readableState;ae.needReadable=!1,ae.emittedReadable||(A("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?a.nextTick(l,Q):l(Q))}function l(Q){A("emit readable"),Q.emit("readable"),f(Q)}function s(Q,ae){ae.readingMore||(ae.readingMore=!0,a.nextTick(h,Q,ae))}function h(Q,ae){for(var tt=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length=ae.length?(tt=ae.decoder?ae.buffer.join(""):1===ae.buffer.length?ae.buffer.head.data:ae.buffer.concat(ae.length),ae.buffer.clear()):tt=function I(Q,ae,tt){var ke;return QIe.length?Ie.length:Q;if(pe+=_e===Ie.length?Ie:Ie.slice(0,Q),0==(Q-=_e)){_e===Ie.length?(++ke,ae.head=tt.next?tt.next:ae.tail=null):(ae.head=tt,tt.data=Ie.slice(_e));break}++ke}return ae.length-=ke,pe}(Q,ae):function J(Q,ae){var tt=C.allocUnsafe(Q),ke=ae.head,pe=1;for(ke.data.copy(tt),Q-=ke.data.length;ke=ke.next;){var Ie=ke.data,_e=Q>Ie.length?Ie.length:Q;if(Ie.copy(tt,tt.length-Q,0,_e),0==(Q-=_e)){_e===Ie.length?(++pe,ae.head=ke.next?ke.next:ae.tail=null):(ae.head=ke,ke.data=Ie.slice(_e));break}++pe}return ae.length-=pe,tt}(Q,ae),ke}(Q,ae.buffer,ae.decoder),tt);var tt}function oe(Q){var ae=Q._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,a.nextTick(ve,ae,Q))}function ve(Q,ae){!Q.endEmitted&&0===Q.length&&(Q.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function De(Q,ae){for(var tt=0,ke=Q.length;tt=ae.highWaterMark||ae.ended))return A("read: emitReadable",ae.length,ae.ended),0===ae.length&&ae.ended?oe(this):o(this),null;if(0===(Q=g(Q,ae))&&ae.ended)return 0===ae.length&&oe(this),null;var pe,ke=ae.needReadable;return A("need readable",ke),(0===ae.length||ae.length-Q0?k(Q,ae):null)?(ae.needReadable=!0,Q=0):ae.length-=Q,0===ae.length&&(ae.ended||(ae.needReadable=!0),tt!==Q&&ae.ended&&oe(this)),null!==pe&&this.emit("data",pe),pe},U.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},U.prototype.pipe=function(Q,ae){var tt=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=Q;break;case 1:ke.pipes=[ke.pipes,Q];break;default:ke.pipes.push(Q)}ke.pipesCount+=1,A("pipe count=%d opts=%j",ke.pipesCount,ae);var Ie=ae&&!1===ae.end||Q===process.stdout||Q===process.stderr?ft:re;function re(){A("onend"),Q.end()}ke.endEmitted?a.nextTick(Ie):tt.once("end",Ie),Q.on("unpipe",function _e(un,At){A("onunpipe"),un===tt&&At&&!1===At.hasUnpiped&&(At.hasUnpiped=!0,function ge(){A("cleanup"),Q.removeListener("close",rn),Q.removeListener("finish",mt),Q.removeListener("drain",ne),Q.removeListener("error",rt),Q.removeListener("unpipe",_e),tt.removeListener("end",re),tt.removeListener("end",ft),tt.removeListener("data",Qe),G=!0,ke.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&ne()}())});var ne=function v(Q){return function(){var ae=Q._readableState;A("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,0===ae.awaitDrain&&c(Q,"data")&&(ae.flowing=!0,f(Q))}}(tt);Q.on("drain",ne);var G=!1,xt=!1;function Qe(un){A("ondata"),xt=!1,!1===Q.write(un)&&!xt&&((1===ke.pipesCount&&ke.pipes===Q||ke.pipesCount>1&&-1!==De(ke.pipes,Q))&&!G&&(A("false write response, pause",ke.awaitDrain),ke.awaitDrain++,xt=!0),tt.pause())}function rt(un){A("onerror",un),ft(),Q.removeListener("error",rt),0===c(Q,"error")&&Q.emit("error",un)}function rn(){Q.removeListener("finish",mt),ft()}function mt(){A("onfinish"),Q.removeListener("close",rn),ft()}function ft(){A("unpipe"),tt.unpipe(Q)}return tt.on("data",Qe),function M(Q,ae,tt){if("function"==typeof Q.prependListener)return Q.prependListener(ae,tt);Q._events&&Q._events[ae]?S(Q._events[ae])?Q._events[ae].unshift(tt):Q._events[ae]=[tt,Q._events[ae]]:Q.on(ae,tt)}(Q,"error",rt),Q.once("close",rn),Q.once("finish",mt),Q.emit("pipe",tt),ke.flowing||(A("pipe resume"),tt.resume()),Q},U.prototype.unpipe=function(Q){var ae=this._readableState,tt={hasUnpiped:!1};if(0===ae.pipesCount)return this;if(1===ae.pipesCount)return Q&&Q!==ae.pipes||(Q||(Q=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,Q&&Q.emit("unpipe",this,tt)),this;if(!Q){var ke=ae.pipes,pe=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Ie=0;Ie{"use strict";Ce.exports=O;var a=E(4075),S=Object.create(E(7637));function p(C,_){var F=this._transformState;F.transforming=!1;var B=F.writecb;if(!B)return this.emit("error",new Error("write callback called multiple times"));F.writechunk=null,F.writecb=null,null!=_&&this.push(_),B(C);var m=this._readableState;m.reading=!1,(m.needReadable||m.length{"use strict";var a=E(9656);function p(d){var r=this;this.next=null,this.entry=null,this.finish=function(){!function y(d,r,f){var k=d.entry;for(d.entry=null;k;){var I=k.callback;r.pendingcb--,I(f),k=k.next}r.corkedRequestsFree.next=d}(r,d)}}Ce.exports=L;var c,O=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;L.WritableState=R;var D=Object.create(E(7637));D.inherits=E(1993);var $,C={deprecate:E(3398)},_=E(8342),F=E(2655).Buffer,B=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},A=E(1509);function w(){}function R(d,r){c=c||E(4075);var f=r instanceof c;this.objectMode=!!(d=d||{}).objectMode,f&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var k=d.highWaterMark,I=d.writableHighWaterMark;this.highWaterMark=k||0===k?k:f&&(I||0===I)?I:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===d.decodeStrings),this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){!function te(d,r){var f=d._writableState,k=f.sync,I=f.writecb;if(function me(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}(f),r)!function ie(d,r,f,k,I){--r.pendingcb,f?(a.nextTick(I,k),a.nextTick(h,d,r),d._writableState.errorEmitted=!0,d.emit("error",k)):(I(k),d._writableState.errorEmitted=!0,d.emit("error",k),h(d,r))}(d,f,k,r,I);else{var V=o(f);!V&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&n(d,f),k?O(se,d,f,V,I):se(d,f,V,I)}}(r,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function L(d){if(c=c||E(4075),!($.call(L,this)||this instanceof c))return new L(d);this._writableState=new R(d,this),this.writable=!0,d&&("function"==typeof d.write&&(this._write=d.write),"function"==typeof d.writev&&(this._writev=d.writev),"function"==typeof d.destroy&&(this._destroy=d.destroy),"function"==typeof d.final&&(this._final=d.final)),_.call(this)}function W(d,r,f,k,I,V,J){r.writelen=k,r.writecb=J,r.writing=!0,r.sync=!0,f?d._writev(I,r.onwrite):d._write(I,V,r.onwrite),r.sync=!1}function se(d,r,f,k){f||function g(d,r){0===r.length&&r.needDrain&&(r.needDrain=!1,d.emit("drain"))}(d,r),r.pendingcb--,k(),h(d,r)}function n(d,r){r.bufferProcessing=!0;var f=r.bufferedRequest;if(d._writev&&f&&f.next){var I=new Array(r.bufferedRequestCount),V=r.corkedRequestsFree;V.entry=f;for(var J=0,oe=!0;f;)I[J]=f,f.isBuf||(oe=!1),f=f.next,J+=1;I.allBuffers=oe,W(d,r,!0,r.length,I,"",V.finish),r.pendingcb++,r.lastBufferedRequest=null,V.next?(r.corkedRequestsFree=V.next,V.next=null):r.corkedRequestsFree=new p(r),r.bufferedRequestCount=0}else{for(;f;){var ve=f.chunk;if(W(d,r,!1,r.objectMode?1:ve.length,ve,f.encoding,f.callback),f=f.next,r.bufferedRequestCount--,r.writing)break}null===f&&(r.lastBufferedRequest=null)}r.bufferedRequest=f,r.bufferProcessing=!1}function o(d){return d.ending&&0===d.length&&null===d.bufferedRequest&&!d.finished&&!d.writing}function l(d,r){d._final(function(f){r.pendingcb--,f&&d.emit("error",f),r.prefinished=!0,d.emit("prefinish"),h(d,r)})}function h(d,r){var f=o(r);return f&&(function s(d,r){!r.prefinished&&!r.finalCalled&&("function"==typeof d._final?(r.pendingcb++,r.finalCalled=!0,a.nextTick(l,d,r)):(r.prefinished=!0,d.emit("prefinish")))}(d,r),0===r.pendingcb&&(r.finished=!0,d.emit("finish"))),f}D.inherits(L,_),R.prototype.getBuffer=function(){for(var r=this.bufferedRequest,f=[];r;)f.push(r),r=r.next;return f},function(){try{Object.defineProperty(R.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(d){return!!$.call(this,d)||this===L&&d&&d._writableState instanceof R}})):$=function(d){return d instanceof this},L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},L.prototype.write=function(d,r,f){var k=this._writableState,I=!1,V=!k.objectMode&&function T(d){return F.isBuffer(d)||d instanceof B}(d);return V&&!F.isBuffer(d)&&(d=function m(d){return F.from(d)}(d)),"function"==typeof r&&(f=r,r=null),V?r="buffer":r||(r=k.defaultEncoding),"function"!=typeof f&&(f=w),k.ended?function M(d,r){var f=new Error("write after end");d.emit("error",f),a.nextTick(r,f)}(this,f):(V||function P(d,r,f,k){var I=!0,V=!1;return null===f?V=new TypeError("May not write null values to stream"):"string"!=typeof f&&void 0!==f&&!r.objectMode&&(V=new TypeError("Invalid non-string/buffer chunk")),V&&(d.emit("error",V),a.nextTick(k,V),I=!1),I}(this,k,d,f))&&(k.pendingcb++,I=function j(d,r,f,k,I,V){if(!f){var J=function U(d,r,f){return!d.objectMode&&!1!==d.decodeStrings&&"string"==typeof r&&(r=F.from(r,f)),r}(r,k,I);k!==J&&(f=!0,I="buffer",k=J)}var oe=r.objectMode?1:k.length;r.length+=oe;var ve=r.length-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this},Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(d,r,f){f(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(d,r,f){var k=this._writableState;"function"==typeof d?(f=d,d=null,r=null):"function"==typeof r&&(f=r,r=null),null!=d&&this.write(d,r),k.corked&&(k.corked=1,this.uncork()),k.ending||function v(d,r,f){r.ending=!0,h(d,r),f&&(r.finished?a.nextTick(f):d.once("finish",f)),r.ended=!0,d.writable=!1}(this,k,f)},Object.defineProperty(L.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),L.prototype.destroy=A.destroy,L.prototype._undestroy=A.undestroy,L.prototype._destroy=function(d,r){this.end(),r(d)}},7809:(Ce,ee,E)=>{"use strict";var S=E(2655).Buffer,p=E(5340);function O(c,D,C){c.copy(D,C)}Ce.exports=function(){function c(){(function a(c,D){if(!(c instanceof D))throw new TypeError("Cannot call a class as a function")})(this,c),this.head=null,this.tail=null,this.length=0}return c.prototype.push=function(C){var _={data:C,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length},c.prototype.unshift=function(C){var _={data:C,next:this.head};0===this.length&&(this.tail=_),this.head=_,++this.length},c.prototype.shift=function(){if(0!==this.length){var C=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,C}},c.prototype.clear=function(){this.head=this.tail=null,this.length=0},c.prototype.join=function(C){if(0===this.length)return"";for(var _=this.head,F=""+_.data;_=_.next;)F+=C+_.data;return F},c.prototype.concat=function(C){if(0===this.length)return S.alloc(0);for(var _=S.allocUnsafe(C>>>0),F=this.head,B=0;F;)O(F.data,_,B),B+=F.data.length,F=F.next;return _},c}(),p&&p.inspect&&p.inspect.custom&&(Ce.exports.prototype[p.inspect.custom]=function(){var c=p.inspect({length:this.length});return this.constructor.name+" "+c})},1509:(Ce,ee,E)=>{"use strict";var a=E(9656);function O(c,D){c.emit("error",D)}Ce.exports={destroy:function S(c,D){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(D?D(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(O,this,c)):a.nextTick(O,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(B){!D&&B?C._writableState?C._writableState.errorEmitted||(C._writableState.errorEmitted=!0,a.nextTick(O,C,B)):a.nextTick(O,C,B):D&&D(B)}),this)},undestroy:function p(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},8342:(Ce,ee,E)=>{Ce.exports=E(4356).EventEmitter},2655:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},5942:(Ce,ee,E)=>{(ee=Ce.exports=E(9609)).Stream=ee,ee.Readable=ee,ee.Writable=E(7849),ee.Duplex=E(4075),ee.Transform=E(2909),ee.PassThrough=E(8823)},6636:(Ce,ee,E)=>{"use strict";var a=E(3838).Buffer,S=E(1993),p=E(3686),O=new Array(16),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],C=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],F=[0,1518500249,1859775393,2400959708,2840853838],B=[1352829926,1548603684,1836072691,2053994217,0];function m(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function T(M,P){return M<>>32-P}function A(M,P,U,j,W,ie,me,te){return T(M+(P^U^j)+ie+me|0,te)+W|0}function w(M,P,U,j,W,ie,me,te){return T(M+(P&U|~P&j)+ie+me|0,te)+W|0}function R(M,P,U,j,W,ie,me,te){return T(M+((P|~U)^j)+ie+me|0,te)+W|0}function $(M,P,U,j,W,ie,me,te){return T(M+(P&j|U&~j)+ie+me|0,te)+W|0}function L(M,P,U,j,W,ie,me,te){return T(M+(P^(U|~j))+ie+me|0,te)+W|0}S(m,p),m.prototype._update=function(){for(var M=O,P=0;P<16;++P)M[P]=this._block.readInt32LE(4*P);for(var U=0|this._a,j=0|this._b,W=0|this._c,ie=0|this._d,me=0|this._e,te=0|this._a,se=0|this._b,g=0|this._c,n=0|this._d,o=0|this._e,l=0;l<80;l+=1){var s,h;l<16?(s=A(U,j,W,ie,me,M[c[l]],F[0],C[l]),h=L(te,se,g,n,o,M[D[l]],B[0],_[l])):l<32?(s=w(U,j,W,ie,me,M[c[l]],F[1],C[l]),h=$(te,se,g,n,o,M[D[l]],B[1],_[l])):l<48?(s=R(U,j,W,ie,me,M[c[l]],F[2],C[l]),h=R(te,se,g,n,o,M[D[l]],B[2],_[l])):l<64?(s=$(U,j,W,ie,me,M[c[l]],F[3],C[l]),h=w(te,se,g,n,o,M[D[l]],B[3],_[l])):(s=L(U,j,W,ie,me,M[c[l]],F[4],C[l]),h=A(te,se,g,n,o,M[D[l]],B[4],_[l])),U=me,me=ie,ie=T(W,10),W=j,j=s,te=o,o=n,n=T(g,10),g=se,se=h}var v=this._b+W+n|0;this._b=this._c+ie+o|0,this._c=this._d+me+te|0,this._d=this._e+U+se|0,this._e=this._a+j+g|0,this._a=v},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var M=a.alloc?a.alloc(20):new a(20);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M.writeInt32LE(this._e,16),M},Ce.exports=m},4412:(Ce,ee,E)=>{"use strict";E.d(ee,{t:()=>S});var a=E(1413);class S extends a.B{constructor(O){super(),this._value=O}get value(){return this.getValue()}_subscribe(O){const c=super._subscribe(O);return!c.closed&&O.next(this._value),c}getValue(){const{hasError:O,thrownError:c,_value:D}=this;if(O)throw c;return this._throwIfClosed(),D}next(O){super.next(this._value=O)}}},1985:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>_});var a=E(7707),S=E(8359),p=E(3494),O=E(1203),c=E(1026),D=E(8071),C=E(9786);let _=(()=>{class T{constructor(w){w&&(this._subscribe=w)}lift(w){const R=new T;return R.source=this,R.operator=w,R}subscribe(w,R,$){const L=function m(T){return T&&T instanceof a.vU||function B(T){return T&&(0,D.T)(T.next)&&(0,D.T)(T.error)&&(0,D.T)(T.complete)}(T)&&(0,S.Uv)(T)}(w)?w:new a.Ms(w,R,$);return(0,C.Y)(()=>{const{operator:M,source:P}=this;L.add(M?M.call(L,P):P?this._subscribe(L):this._trySubscribe(L))}),L}_trySubscribe(w){try{return this._subscribe(w)}catch(R){w.error(R)}}forEach(w,R){return new(R=F(R))(($,L)=>{const M=new a.Ms({next:P=>{try{w(P)}catch(U){L(U),M.unsubscribe()}},error:L,complete:$});this.subscribe(M)})}_subscribe(w){var R;return null===(R=this.source)||void 0===R?void 0:R.subscribe(w)}[p.s](){return this}pipe(...w){return(0,O.m)(w)(this)}toPromise(w){return new(w=F(w))((R,$)=>{let L;this.subscribe(M=>L=M,M=>$(M),()=>R(L))})}}return T.create=A=>new T(A),T})();function F(T){var A;return null!==(A=null!=T?T:c.$.Promise)&&void 0!==A?A:Promise}},2771:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>p});var a=E(1413),S=E(6129);class p extends a.B{constructor(c=1/0,D=1/0,C=S.U){super(),this._bufferSize=c,this._windowTime=D,this._timestampProvider=C,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=D===1/0,this._bufferSize=Math.max(1,c),this._windowTime=Math.max(1,D)}next(c){const{isStopped:D,_buffer:C,_infiniteTimeWindow:_,_timestampProvider:F,_windowTime:B}=this;D||(C.push(c),!_&&C.push(F.now()+B)),this._trimBuffer(),super.next(c)}_subscribe(c){this._throwIfClosed(),this._trimBuffer();const D=this._innerSubscribe(c),{_infiniteTimeWindow:C,_buffer:_}=this,F=_.slice();for(let B=0;B{"use strict";E.d(ee,{B:()=>C});var a=E(1985),S=E(8359);const O=(0,E(1853).L)(F=>function(){F(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var c=E(7908),D=E(9786);let C=(()=>{class F extends a.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(m){const T=new _(this,this);return T.operator=m,T}_throwIfClosed(){if(this.closed)throw new O}next(m){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const T of this.currentObservers)T.next(m)}})}error(m){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=m;const{observers:T}=this;for(;T.length;)T.shift().error(m)}})}complete(){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:m}=this;for(;m.length;)m.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var m;return(null===(m=this.observers)||void 0===m?void 0:m.length)>0}_trySubscribe(m){return this._throwIfClosed(),super._trySubscribe(m)}_subscribe(m){return this._throwIfClosed(),this._checkFinalizedStatuses(m),this._innerSubscribe(m)}_innerSubscribe(m){const{hasError:T,isStopped:A,observers:w}=this;return T||A?S.Kn:(this.currentObservers=null,w.push(m),new S.yU(()=>{this.currentObservers=null,(0,c.o)(w,m)}))}_checkFinalizedStatuses(m){const{hasError:T,thrownError:A,isStopped:w}=this;T?m.error(A):w&&m.complete()}asObservable(){const m=new a.c;return m.source=this,m}}return F.create=(B,m)=>new _(B,m),F})();class _ extends C{constructor(B,m){super(),this.destination=B,this.source=m}next(B){var m,T;null===(T=null===(m=this.destination)||void 0===m?void 0:m.next)||void 0===T||T.call(m,B)}error(B){var m,T;null===(T=null===(m=this.destination)||void 0===m?void 0:m.error)||void 0===T||T.call(m,B)}complete(){var B,m;null===(m=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===m||m.call(B)}_subscribe(B){var m,T;return null!==(T=null===(m=this.source)||void 0===m?void 0:m.subscribe(B))&&void 0!==T?T:S.Kn}}},7707:(Ce,ee,E)=>{"use strict";E.d(ee,{Ms:()=>$,vU:()=>T});var a=E(8071),S=E(8359),p=E(1026),O=E(5334),c=E(5343);const D=F("C",void 0,void 0);function F(j,W,ie){return{kind:j,value:W,error:ie}}var B=E(9270),m=E(9786);class T extends S.yU{constructor(W){super(),this.isStopped=!1,W?(this.destination=W,(0,S.Uv)(W)&&W.add(this)):this.destination=U}static create(W,ie,me){return new $(W,ie,me)}next(W){this.isStopped?P(function _(j){return F("N",j,void 0)}(W),this):this._next(W)}error(W){this.isStopped?P(function C(j){return F("E",void 0,j)}(W),this):(this.isStopped=!0,this._error(W))}complete(){this.isStopped?P(D,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(W){this.destination.next(W)}_error(W){try{this.destination.error(W)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const A=Function.prototype.bind;function w(j,W){return A.call(j,W)}class R{constructor(W){this.partialObserver=W}next(W){const{partialObserver:ie}=this;if(ie.next)try{ie.next(W)}catch(me){L(me)}}error(W){const{partialObserver:ie}=this;if(ie.error)try{ie.error(W)}catch(me){L(me)}else L(W)}complete(){const{partialObserver:W}=this;if(W.complete)try{W.complete()}catch(ie){L(ie)}}}class $ extends T{constructor(W,ie,me){let te;if(super(),(0,a.T)(W)||!W)te={next:null!=W?W:void 0,error:null!=ie?ie:void 0,complete:null!=me?me:void 0};else{let se;this&&p.$.useDeprecatedNextContext?(se=Object.create(W),se.unsubscribe=()=>this.unsubscribe(),te={next:W.next&&w(W.next,se),error:W.error&&w(W.error,se),complete:W.complete&&w(W.complete,se)}):te=W}this.destination=new R(te)}}function L(j){p.$.useDeprecatedSynchronousErrorHandling?(0,m.l)(j):(0,O.m)(j)}function P(j,W){const{onStoppedNotification:ie}=p.$;ie&&B.f.setTimeout(()=>ie(j,W))}const U={closed:!0,next:c.l,error:function M(j){throw j},complete:c.l}},8359:(Ce,ee,E)=>{"use strict";E.d(ee,{Kn:()=>D,yU:()=>c,Uv:()=>C});var a=E(8071);const p=(0,E(1853).L)(F=>function(m){F(this),this.message=m?`${m.length} errors occurred during unsubscription:\n${m.map((T,A)=>`${A+1}) ${T.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=m});var O=E(7908);class c{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:m}=this;if(m)if(this._parentage=null,Array.isArray(m))for(const w of m)w.remove(this);else m.remove(this);const{initialTeardown:T}=this;if((0,a.T)(T))try{T()}catch(w){B=w instanceof p?w.errors:[w]}const{_finalizers:A}=this;if(A){this._finalizers=null;for(const w of A)try{_(w)}catch(R){B=null!=B?B:[],R instanceof p?B=[...B,...R.errors]:B.push(R)}}if(B)throw new p(B)}}add(B){var m;if(B&&B!==this)if(this.closed)_(B);else{if(B instanceof c){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(m=this._finalizers)&&void 0!==m?m:[]).push(B)}}_hasParent(B){const{_parentage:m}=this;return m===B||Array.isArray(m)&&m.includes(B)}_addParent(B){const{_parentage:m}=this;this._parentage=Array.isArray(m)?(m.push(B),m):m?[m,B]:B}_removeParent(B){const{_parentage:m}=this;m===B?this._parentage=null:Array.isArray(m)&&(0,O.o)(m,B)}remove(B){const{_finalizers:m}=this;m&&(0,O.o)(m,B),B instanceof c&&B._removeParent(this)}}c.EMPTY=(()=>{const F=new c;return F.closed=!0,F})();const D=c.EMPTY;function C(F){return F instanceof c||F&&"closed"in F&&(0,a.T)(F.remove)&&(0,a.T)(F.add)&&(0,a.T)(F.unsubscribe)}function _(F){(0,a.T)(F)?F():F.unsubscribe()}},1026:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>S});var a=E(9350);function S(p,O){const c="object"==typeof O;return new Promise((D,C)=>{let F,_=!1;p.subscribe({next:B=>{F=B,_=!0},error:C,complete:()=>{_?D(F):c?D(O.defaultValue):C(new a.G)}})})}},17:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>D});var a=E(1985),S=E(8359),p=E(9898),O=E(4360),c=E(9974);class D extends a.c{constructor(_,F){super(),this.source=_,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,c.S)(_)&&(this.lift=_.lift)}_subscribe(_){return this.getSubject().subscribe(_)}getSubject(){const _=this._subject;return(!_||_.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:_}=this;this._subject=this._connection=null,null==_||_.unsubscribe()}connect(){let _=this._connection;if(!_){_=this._connection=new S.yU;const F=this.getSubject();_.add(this.source.subscribe((0,O._)(F,void 0,()=>{this._teardown(),F.complete()},B=>{this._teardown(),F.error(B)},()=>this._teardown()))),_.closed&&(this._connection=null,_=S.yU.EMPTY)}return _}refCount(){return(0,p.B)()(this)}}},4572:(Ce,ee,E)=>{"use strict";E.d(ee,{z:()=>B});var a=E(1985),S=E(3073),p=E(6648),O=E(3669),c=E(6450),D=E(9326),C=E(8496),_=E(4360),F=E(5225);function B(...A){const w=(0,D.lI)(A),R=(0,D.ms)(A),{args:$,keys:L}=(0,S.D)(A);if(0===$.length)return(0,p.H)([],w);const M=new a.c(function m(A,w,R=O.D){return $=>{T(w,()=>{const{length:L}=A,M=new Array(L);let P=L,U=L;for(let j=0;j{const W=(0,p.H)(A[j],w);let ie=!1;W.subscribe((0,_._)($,me=>{M[j]=me,ie||(ie=!0,U--),U||$.next(R(M.slice()))},()=>{--P||$.complete()}))},$)},$)}}($,w,L?P=>(0,C.e)(L,P):O.D));return R?M.pipe((0,c.I)(R)):M}function T(A,w,R){A?(0,F.N)(R,A,w):w()}},8793:(Ce,ee,E)=>{"use strict";E.d(ee,{x:()=>c});var a=E(6365),p=E(9326),O=E(6648);function c(...D){return function S(){return(0,a.U)(1)}()((0,O.H)(D,(0,p.lI)(D)))}},9030:(Ce,ee,E)=>{"use strict";E.d(ee,{v:()=>p});var a=E(1985),S=E(8750);function p(O){return new a.c(c=>{(0,S.Tg)(O()).subscribe(c)})}},983:(Ce,ee,E)=>{"use strict";E.d(ee,{w:()=>S});const S=new(E(1985).c)(c=>c.complete())},7468:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>_});var a=E(1985),S=E(3073),p=E(8750),O=E(9326),c=E(4360),D=E(6450),C=E(8496);function _(...F){const B=(0,O.ms)(F),{args:m,keys:T}=(0,S.D)(F),A=new a.c(w=>{const{length:R}=m;if(!R)return void w.complete();const $=new Array(R);let L=R,M=R;for(let P=0;P{U||(U=!0,M--),$[P]=j},()=>L--,void 0,()=>{(!L||!U)&&(M||w.next(T?(0,C.e)(T,$):$),w.complete())}))}});return B?A.pipe((0,D.I)(B)):A}},6648:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>me});var a=E(8750),S=E(5225),p=E(9974),O=E(4360);function c(te,se=0){return(0,p.N)((g,n)=>{g.subscribe((0,O._)(n,o=>(0,S.N)(n,te,()=>n.next(o),se),()=>(0,S.N)(n,te,()=>n.complete(),se),o=>(0,S.N)(n,te,()=>n.error(o),se)))})}function D(te,se=0){return(0,p.N)((g,n)=>{n.add(te.schedule(()=>g.subscribe(n),se))})}var F=E(1985),m=E(4761),T=E(8071);function w(te,se){if(!te)throw new Error("Iterable cannot be null");return new F.c(g=>{(0,S.N)(g,se,()=>{const n=te[Symbol.asyncIterator]();(0,S.N)(g,se,()=>{n.next().then(o=>{o.done?g.complete():g.next(o.value)})},0,!0)})})}var R=E(5055),$=E(9858),L=E(7441),M=E(5397),P=E(7953),U=E(591),j=E(5196);function me(te,se){return se?function ie(te,se){if(null!=te){if((0,R.l)(te))return function C(te,se){return(0,a.Tg)(te).pipe(D(se),c(se))}(te,se);if((0,L.X)(te))return function B(te,se){return new F.c(g=>{let n=0;return se.schedule(function(){n===te.length?g.complete():(g.next(te[n++]),g.closed||this.schedule())})})}(te,se);if((0,$.y)(te))return function _(te,se){return(0,a.Tg)(te).pipe(D(se),c(se))}(te,se);if((0,P.T)(te))return w(te,se);if((0,M.x)(te))return function A(te,se){return new F.c(g=>{let n;return(0,S.N)(g,se,()=>{n=te[m.l](),(0,S.N)(g,se,()=>{let o,l;try{({value:o,done:l}=n.next())}catch(s){return void g.error(s)}l?g.complete():g.next(o)},0,!0)}),()=>(0,T.T)(null==n?void 0:n.return)&&n.return()})}(te,se);if((0,j.U)(te))return function W(te,se){return w((0,j.C)(te),se)}(te,se)}throw(0,U.L)(te)}(te,se):(0,a.Tg)(te)}},3726:(Ce,ee,E)=>{"use strict";E.d(ee,{R:()=>B});var a=E(8750),S=E(1985),p=E(3028),O=E(7441),c=E(8071),D=E(6450);const C=["addListener","removeListener"],_=["addEventListener","removeEventListener"],F=["on","off"];function B(R,$,L,M){if((0,c.T)(L)&&(M=L,L=void 0),M)return B(R,$,L).pipe((0,D.I)(M));const[P,U]=function w(R){return(0,c.T)(R.addEventListener)&&(0,c.T)(R.removeEventListener)}(R)?_.map(j=>W=>R[j]($,W,L)):function T(R){return(0,c.T)(R.addListener)&&(0,c.T)(R.removeListener)}(R)?C.map(m(R,$)):function A(R){return(0,c.T)(R.on)&&(0,c.T)(R.off)}(R)?F.map(m(R,$)):[];if(!P&&(0,O.X)(R))return(0,p.Z)(j=>B(j,$,L))((0,a.Tg)(R));if(!P)throw new TypeError("Invalid event target");return new S.c(j=>{const W=(...ie)=>j.next(1U(W)})}function m(R,$){return L=>M=>R[L]($,M)}},8750:(Ce,ee,E)=>{"use strict";E.d(ee,{Tg:()=>A});var a=E(1635),S=E(7441),p=E(9858),O=E(1985),c=E(5055),D=E(7953),C=E(591),_=E(5397),F=E(5196),B=E(8071),m=E(5334),T=E(3494);function A(j){if(j instanceof O.c)return j;if(null!=j){if((0,c.l)(j))return function w(j){return new O.c(W=>{const ie=j[T.s]();if((0,B.T)(ie.subscribe))return ie.subscribe(W);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(j);if((0,S.X)(j))return function R(j){return new O.c(W=>{for(let ie=0;ie{j.then(ie=>{W.closed||(W.next(ie),W.complete())},ie=>W.error(ie)).then(null,m.m)})}(j);if((0,D.T)(j))return M(j);if((0,_.x)(j))return function L(j){return new O.c(W=>{for(const ie of j)if(W.next(ie),W.closed)return;W.complete()})}(j);if((0,F.U)(j))return function P(j){return M((0,F.C)(j))}(j)}throw(0,C.L)(j)}function M(j){return new O.c(W=>{(function U(j,W){var ie,me,te,se;return(0,a.sH)(this,void 0,void 0,function*(){try{for(ie=(0,a.xN)(j);!(me=yield ie.next()).done;)if(W.next(me.value),W.closed)return}catch(g){te={error:g}}finally{try{me&&!me.done&&(se=ie.return)&&(yield se.call(ie))}finally{if(te)throw te.error}}W.complete()})})(j,W).catch(ie=>W.error(ie))})}},7673:(Ce,ee,E)=>{"use strict";E.d(ee,{of:()=>p});var a=E(9326),S=E(6648);function p(...O){const c=(0,a.lI)(O);return(0,S.H)(O,c)}},8810:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>p});var a=E(1985),S=E(8071);function p(O,c){const D=(0,S.T)(O)?O:()=>O,C=_=>_.error(D());return new a.c(c?_=>c.schedule(C,0,_):C)}},4360:(Ce,ee,E)=>{"use strict";E.d(ee,{_:()=>S});var a=E(7707);function S(O,c,D,C,_){return new p(O,c,D,C,_)}class p extends a.vU{constructor(c,D,C,_,F,B){super(c),this.onFinalize=F,this.shouldUnsubscribe=B,this._next=D?function(m){try{D(m)}catch(T){c.error(T)}}:super._next,this._error=_?function(m){try{_(m)}catch(T){c.error(T)}finally{this.unsubscribe()}}:super._error,this._complete=C?function(){try{C()}catch(m){c.error(m)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:D}=this;super.unsubscribe(),!D&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}}},9437:(Ce,ee,E)=>{"use strict";E.d(ee,{W:()=>O});var a=E(8750),S=E(4360),p=E(9974);function O(c){return(0,p.N)((D,C)=>{let B,_=null,F=!1;_=D.subscribe((0,S._)(C,void 0,void 0,m=>{B=(0,a.Tg)(c(m,O(c)(D))),_?(_.unsubscribe(),_=null,B.subscribe(C)):F=!0})),F&&(_.unsubscribe(),_=null,B.subscribe(C))})}},274:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>p});var a=E(3028),S=E(8071);function p(O,c){return(0,S.T)(c)?(0,a.Z)(O,c,1):(0,a.Z)(O,1)}},5964:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>p});var a=E(9974),S=E(4360);function p(O,c){return(0,a.N)((D,C)=>{let _=0;D.subscribe((0,S._)(C,F=>O.call(c,F,_++)&&C.next(F)))})}},980:(Ce,ee,E)=>{"use strict";E.d(ee,{j:()=>S});var a=E(9974);function S(p){return(0,a.N)((O,c)=>{try{O.subscribe(c)}finally{c.add(p)}})}},6354:(Ce,ee,E)=>{"use strict";E.d(ee,{T:()=>p});var a=E(9974),S=E(4360);function p(O,c){return(0,a.N)((D,C)=>{let _=0;D.subscribe((0,S._)(C,F=>{C.next(O.call(c,F,_++))}))})}},3703:(Ce,ee,E)=>{"use strict";E.d(ee,{u:()=>S});var a=E(6354);function S(p){return(0,a.T)(()=>p)}},6365:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>p});var a=E(3028),S=E(3669);function p(O=1/0){return(0,a.Z)(S.D,O)}},5412:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>O});var a=E(8750),S=E(5225),p=E(4360);function O(c,D,C,_,F,B,m,T){const A=[];let w=0,R=0,$=!1;const L=()=>{$&&!A.length&&!w&&D.complete()},M=U=>w<_?P(U):A.push(U),P=U=>{B&&D.next(U),w++;let j=!1;(0,a.Tg)(C(U,R++)).subscribe((0,p._)(D,W=>{null==F||F(W),B?M(W):D.next(W)},()=>{j=!0},void 0,()=>{if(j)try{for(w--;A.length&&w<_;){const W=A.shift();m?(0,S.N)(D,m,()=>P(W)):P(W)}L()}catch(W){D.error(W)}}))};return c.subscribe((0,p._)(D,M,()=>{$=!0,L()})),()=>{null==T||T()}}},3028:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>D});var a=E(6354),S=E(8750),p=E(9974),O=E(5412),c=E(8071);function D(C,_,F=1/0){return(0,c.T)(_)?D((B,m)=>(0,a.T)((T,A)=>_(B,T,m,A))((0,S.Tg)(C(B,m))),F):("number"==typeof _&&(F=_),(0,p.N)((B,m)=>(0,O.h)(B,m,C,F)))}},9898:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>p});var a=E(9974),S=E(4360);function p(){return(0,a.N)((O,c)=>{let D=null;O._refCount++;const C=(0,S._)(c,void 0,void 0,void 0,()=>{if(!O||O._refCount<=0||0<--O._refCount)return void(D=null);const _=O._connection,F=D;D=null,_&&(!F||_===F)&&_.unsubscribe(),c.unsubscribe()});O.subscribe(C),C.closed||(D=O.connect())})}},6649:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>S});var a=E(4360);function S(p,O,c,D,C){return(_,F)=>{let B=c,m=O,T=0;_.subscribe((0,a._)(F,A=>{const w=T++;m=B?p(m,A,w):(B=!0,A),D&&F.next(m)},C&&(()=>{B&&F.next(m),F.complete()})))}}},5558:(Ce,ee,E)=>{"use strict";E.d(ee,{n:()=>O});var a=E(8750),S=E(9974),p=E(4360);function O(c,D){return(0,S.N)((C,_)=>{let F=null,B=0,m=!1;const T=()=>m&&!F&&_.complete();C.subscribe((0,p._)(_,A=>{null==F||F.unsubscribe();let w=0;const R=B++;(0,a.Tg)(c(A,R)).subscribe(F=(0,p._)(_,$=>_.next(D?D(A,$,R,w++):$),()=>{F=null,T()}))},()=>{m=!0,T()}))})}},6697:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>O});var a=E(983),S=E(9974),p=E(4360);function O(c){return c<=0?()=>a.w:(0,S.N)((D,C)=>{let _=0;D.subscribe((0,p._)(C,F=>{++_<=c&&(C.next(F),c<=_&&C.complete())}))})}},8141:(Ce,ee,E)=>{"use strict";E.d(ee,{M:()=>c});var a=E(8071),S=E(9974),p=E(4360),O=E(3669);function c(D,C,_){const F=(0,a.T)(D)||C||_?{next:D,error:C,complete:_}:D;return F?(0,S.N)((B,m)=>{var T;null===(T=F.subscribe)||void 0===T||T.call(F);let A=!0;B.subscribe((0,p._)(m,w=>{var R;null===(R=F.next)||void 0===R||R.call(F,w),m.next(w)},()=>{var w;A=!1,null===(w=F.complete)||void 0===w||w.call(F),m.complete()},w=>{var R;A=!1,null===(R=F.error)||void 0===R||R.call(F,w),m.error(w)},()=>{var w,R;A&&(null===(w=F.unsubscribe)||void 0===w||w.call(F)),null===(R=F.finalize)||void 0===R||R.call(F)}))}):O.D}},6129:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>a});const a={now:()=>(a.delegate||Date).now(),delegate:void 0}},9270:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>a});const a={setTimeout(S,p,...O){const{delegate:c}=a;return null!=c&&c.setTimeout?c.setTimeout(S,p,...O):setTimeout(S,p,...O)},clearTimeout(S){const{delegate:p}=a;return((null==p?void 0:p.clearTimeout)||clearTimeout)(S)},delegate:void 0}},4761:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>S});const S=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>S});const S=(0,E(1853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Ce,ee,E)=>{"use strict";E.d(ee,{R0:()=>D,lI:()=>c,ms:()=>O});var a=E(8071),S=E(9470);function p(C){return C[C.length-1]}function O(C){return(0,a.T)(p(C))?C.pop():void 0}function c(C){return(0,S.m)(p(C))?C.pop():void 0}function D(C,_){return"number"==typeof p(C)?C.pop():_}},3073:(Ce,ee,E)=>{"use strict";E.d(ee,{D:()=>c});const{isArray:a}=Array,{getPrototypeOf:S,prototype:p,keys:O}=Object;function c(C){if(1===C.length){const _=C[0];if(a(_))return{args:_,keys:null};if(function D(C){return C&&"object"==typeof C&&S(C)===p}(_)){const F=O(_);return{args:F.map(B=>_[B]),keys:F}}}return{args:C,keys:null}}},7908:(Ce,ee,E)=>{"use strict";function a(S,p){if(S){const O=S.indexOf(p);0<=O&&S.splice(O,1)}}E.d(ee,{o:()=>a})},1853:(Ce,ee,E)=>{"use strict";function a(S){const O=S(c=>{Error.call(c),c.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}E.d(ee,{L:()=>a})},8496:(Ce,ee,E)=>{"use strict";function a(S,p){return S.reduce((O,c,D)=>(O[c]=p[D],O),{})}E.d(ee,{e:()=>a})},9786:(Ce,ee,E)=>{"use strict";E.d(ee,{Y:()=>p,l:()=>O});var a=E(1026);let S=null;function p(c){if(a.$.useDeprecatedSynchronousErrorHandling){const D=!S;if(D&&(S={errorThrown:!1,error:null}),c(),D){const{errorThrown:C,error:_}=S;if(S=null,C)throw _}}else c()}function O(c){a.$.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=c)}},5225:(Ce,ee,E)=>{"use strict";function a(S,p,O,c=0,D=!1){const C=p.schedule(function(){O(),D?S.add(this.schedule(null,c)):this.unsubscribe()},c);if(S.add(C),!D)return C}E.d(ee,{N:()=>a})},3669:(Ce,ee,E)=>{"use strict";function a(S){return S}E.d(ee,{D:()=>a})},7441:(Ce,ee,E)=>{"use strict";E.d(ee,{X:()=>a});const a=S=>S&&"number"==typeof S.length&&"function"!=typeof S},7953:(Ce,ee,E)=>{"use strict";E.d(ee,{T:()=>S});var a=E(8071);function S(p){return Symbol.asyncIterator&&(0,a.T)(null==p?void 0:p[Symbol.asyncIterator])}},8071:(Ce,ee,E)=>{"use strict";function a(S){return"function"==typeof S}E.d(ee,{T:()=>a})},5055:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>p});var a=E(3494),S=E(8071);function p(O){return(0,S.T)(O[a.s])}},5397:(Ce,ee,E)=>{"use strict";E.d(ee,{x:()=>p});var a=E(4761),S=E(8071);function p(O){return(0,S.T)(null==O?void 0:O[a.l])}},4402:(Ce,ee,E)=>{"use strict";E.d(ee,{A:()=>p});var a=E(1985),S=E(8071);function p(O){return!!O&&(O instanceof a.c||(0,S.T)(O.lift)&&(0,S.T)(O.subscribe))}},9858:(Ce,ee,E)=>{"use strict";E.d(ee,{y:()=>S});var a=E(8071);function S(p){return(0,a.T)(null==p?void 0:p.then)}},5196:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>p,U:()=>O});var a=E(1635),S=E(8071);function p(c){return(0,a.AQ)(this,arguments,function*(){const C=c.getReader();try{for(;;){const{value:_,done:F}=yield(0,a.N3)(C.read());if(F)return yield(0,a.N3)(void 0);yield yield(0,a.N3)(_)}}finally{C.releaseLock()}})}function O(c){return(0,S.T)(null==c?void 0:c.getReader)}},9470:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>S});var a=E(8071);function S(p){return p&&(0,a.T)(p.schedule)}},9974:(Ce,ee,E)=>{"use strict";E.d(ee,{N:()=>p,S:()=>S});var a=E(8071);function S(O){return(0,a.T)(null==O?void 0:O.lift)}function p(O){return c=>{if(S(c))return c.lift(function(D){try{return O(D,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Ce,ee,E)=>{"use strict";E.d(ee,{I:()=>O});var a=E(6354);const{isArray:S}=Array;function O(c){return(0,a.T)(D=>function p(c,D){return S(D)?c(...D):c(D)}(c,D))}},5343:(Ce,ee,E)=>{"use strict";function a(){}E.d(ee,{l:()=>a})},1203:(Ce,ee,E)=>{"use strict";E.d(ee,{F:()=>S,m:()=>p});var a=E(3669);function S(...O){return p(O)}function p(O){return 0===O.length?a.D:1===O.length?O[0]:function(D){return O.reduce((C,_)=>_(C),D)}}},5334:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>p});var a=E(1026),S=E(9270);function p(O){S.f.setTimeout(()=>{const{onUnhandledError:c}=a.$;if(!c)throw O;c(O)})}},591:(Ce,ee,E)=>{"use strict";function a(S){return new TypeError(`You provided ${null!==S&&"object"==typeof S?"an invalid object":`'${S}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(ee,{L:()=>a})},7054:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),O.prototype=Object.create(S.prototype),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},463:(Ce,ee,E)=>{var a=E(7054).Buffer;function S(p,O){this._block=a.alloc(p),this._finalSize=O,this._blockSize=p,this._len=0}S.prototype.update=function(p,O){"string"==typeof p&&(p=a.from(p,O=O||"utf8"));for(var c=this._block,D=this._blockSize,C=p.length,_=this._len,F=0;F=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var D=(4294967295&c)>>>0;this._block.writeUInt32BE((c-D)/4294967296,this._blockSize-8),this._block.writeUInt32BE(D,this._blockSize-4)}this._update(this._block);var _=this._hash();return p?_.toString(p):_},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ce.exports=S},5443:(Ce,ee,E)=>{var a=Ce.exports=function(p){p=p.toLowerCase();var O=a[p];if(!O)throw new Error(p+" is not supported (we accept pull requests)");return new O};a.sha=E(8585),a.sha1=E(1270),a.sha224=E(2709),a.sha256=E(2148),a.sha384=E(1856),a.sha512=E(3121)},8585:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(B){return B<<5|B>>>27}function _(B){return B<<30|B>>>2}function F(B,m,T,A){return 0===B?m&T|~m&A:2===B?m&T|m&A|T&A:m^T^A}a(D,S),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(B){for(var m=this._w,T=0|this._a,A=0|this._b,w=0|this._c,R=0|this._d,$=0|this._e,L=0;L<16;++L)m[L]=B.readInt32BE(4*L);for(;L<80;++L)m[L]=m[L-3]^m[L-8]^m[L-14]^m[L-16];for(var M=0;M<80;++M){var P=~~(M/20),U=C(T)+F(P,A,w,R)+$+m[M]+O[P]|0;$=R,R=w,w=_(A),A=T,T=U}this._a=T+this._a|0,this._b=A+this._b|0,this._c=w+this._c|0,this._d=R+this._d|0,this._e=$+this._e|0},D.prototype._hash=function(){var B=p.allocUnsafe(20);return B.writeInt32BE(0|this._a,0),B.writeInt32BE(0|this._b,4),B.writeInt32BE(0|this._c,8),B.writeInt32BE(0|this._d,12),B.writeInt32BE(0|this._e,16),B},Ce.exports=D},1270:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(m){return m<<1|m>>>31}function _(m){return m<<5|m>>>27}function F(m){return m<<30|m>>>2}function B(m,T,A,w){return 0===m?T&A|~T&w:2===m?T&A|T&w|A&w:T^A^w}a(D,S),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(m){for(var T=this._w,A=0|this._a,w=0|this._b,R=0|this._c,$=0|this._d,L=0|this._e,M=0;M<16;++M)T[M]=m.readInt32BE(4*M);for(;M<80;++M)T[M]=C(T[M-3]^T[M-8]^T[M-14]^T[M-16]);for(var P=0;P<80;++P){var U=~~(P/20),j=_(A)+B(U,w,R,$)+L+T[P]+O[U]|0;L=$,$=R,R=F(w),w=A,A=j}this._a=A+this._a|0,this._b=w+this._b|0,this._c=R+this._c|0,this._d=$+this._d|0,this._e=L+this._e|0},D.prototype._hash=function(){var m=p.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},Ce.exports=D},2709:(Ce,ee,E)=>{var a=E(1993),S=E(2148),p=E(463),O=E(7054).Buffer,c=new Array(64);function D(){this.init(),this._w=c,p.call(this,64,56)}a(D,S),D.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},D.prototype._hash=function(){var C=O.allocUnsafe(28);return C.writeInt32BE(this._a,0),C.writeInt32BE(this._b,4),C.writeInt32BE(this._c,8),C.writeInt32BE(this._d,12),C.writeInt32BE(this._e,16),C.writeInt32BE(this._f,20),C.writeInt32BE(this._g,24),C},Ce.exports=D},2148:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(A,w,R){return R^A&(w^R)}function _(A,w,R){return A&w|R&(A|w)}function F(A){return(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10)}function B(A){return(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7)}function m(A){return(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3}function T(A){return(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10}a(D,S),D.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},D.prototype._update=function(A){for(var w=this._w,R=0|this._a,$=0|this._b,L=0|this._c,M=0|this._d,P=0|this._e,U=0|this._f,j=0|this._g,W=0|this._h,ie=0;ie<16;++ie)w[ie]=A.readInt32BE(4*ie);for(;ie<64;++ie)w[ie]=T(w[ie-2])+w[ie-7]+m(w[ie-15])+w[ie-16]|0;for(var me=0;me<64;++me){var te=W+B(P)+C(P,U,j)+O[me]+w[me]|0,se=F(R)+_(R,$,L)|0;W=j,j=U,U=P,P=M+te|0,M=L,L=$,$=R,R=te+se|0}this._a=R+this._a|0,this._b=$+this._b|0,this._c=L+this._c|0,this._d=M+this._d|0,this._e=P+this._e|0,this._f=U+this._f|0,this._g=j+this._g|0,this._h=W+this._h|0},D.prototype._hash=function(){var A=p.allocUnsafe(32);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A.writeInt32BE(this._h,28),A},Ce.exports=D},1856:(Ce,ee,E)=>{var a=E(1993),S=E(3121),p=E(463),O=E(7054).Buffer,c=new Array(160);function D(){this.init(),this._w=c,p.call(this,128,112)}a(D,S),D.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},D.prototype._hash=function(){var C=O.allocUnsafe(48);function _(F,B,m){C.writeInt32BE(F,m),C.writeInt32BE(B,m+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),C},Ce.exports=D},3121:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function D(){this.init(),this._w=c,S.call(this,128,112)}function C($,L,M){return M^$&(L^M)}function _($,L,M){return $&L|M&($|L)}function F($,L){return($>>>28|L<<4)^(L>>>2|$<<30)^(L>>>7|$<<25)}function B($,L){return($>>>14|L<<18)^($>>>18|L<<14)^(L>>>9|$<<23)}function m($,L){return($>>>1|L<<31)^($>>>8|L<<24)^$>>>7}function T($,L){return($>>>1|L<<31)^($>>>8|L<<24)^($>>>7|L<<25)}function A($,L){return($>>>19|L<<13)^(L>>>29|$<<3)^$>>>6}function w($,L){return($>>>19|L<<13)^(L>>>29|$<<3)^($>>>6|L<<26)}function R($,L){return $>>>0>>0?1:0}a(D,S),D.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},D.prototype._update=function($){for(var L=this._w,M=0|this._ah,P=0|this._bh,U=0|this._ch,j=0|this._dh,W=0|this._eh,ie=0|this._fh,me=0|this._gh,te=0|this._hh,se=0|this._al,g=0|this._bl,n=0|this._cl,o=0|this._dl,l=0|this._el,s=0|this._fl,h=0|this._gl,v=0|this._hl,y=0;y<32;y+=2)L[y]=$.readInt32BE(4*y),L[y+1]=$.readInt32BE(4*y+4);for(;y<160;y+=2){var d=L[y-30],r=L[y-30+1],f=m(d,r),k=T(r,d),I=A(d=L[y-4],r=L[y-4+1]),V=w(r,d),ve=L[y-32],De=L[y-32+1],Q=k+L[y-14+1]|0,ae=f+L[y-14]+R(Q,k)|0;ae=(ae=ae+I+R(Q=Q+V|0,V)|0)+ve+R(Q=Q+De|0,De)|0,L[y]=ae,L[y+1]=Q}for(var tt=0;tt<160;tt+=2){ae=L[tt],Q=L[tt+1];var ke=_(M,P,U),pe=_(se,g,n),Ie=F(M,se),_e=F(se,M),re=B(W,l),ne=B(l,W),G=O[tt],ge=O[tt+1],xt=C(W,ie,me),Qe=C(l,s,h),rt=v+ne|0,rn=te+re+R(rt,v)|0;rn=(rn=(rn=rn+xt+R(rt=rt+Qe|0,Qe)|0)+G+R(rt=rt+ge|0,ge)|0)+ae+R(rt=rt+Q|0,Q)|0;var mt=_e+pe|0,ft=Ie+ke+R(mt,_e)|0;te=me,v=h,me=ie,h=s,ie=W,s=l,W=j+rn+R(l=o+rt|0,o)|0,j=U,o=n,U=P,n=g,P=M,g=se,M=rn+ft+R(se=rt+mt|0,rt)|0}this._al=this._al+se|0,this._bl=this._bl+g|0,this._cl=this._cl+n|0,this._dl=this._dl+o|0,this._el=this._el+l|0,this._fl=this._fl+s|0,this._gl=this._gl+h|0,this._hl=this._hl+v|0,this._ah=this._ah+M+R(this._al,se)|0,this._bh=this._bh+P+R(this._bl,g)|0,this._ch=this._ch+U+R(this._cl,n)|0,this._dh=this._dh+j+R(this._dl,o)|0,this._eh=this._eh+W+R(this._el,l)|0,this._fh=this._fh+ie+R(this._fl,s)|0,this._gh=this._gh+me+R(this._gl,h)|0,this._hh=this._hh+te+R(this._hl,v)|0},D.prototype._hash=function(){var $=p.allocUnsafe(64);function L(M,P,U){$.writeInt32BE(M,U),$.writeInt32BE(P,U+4)}return L(this._ah,this._al,0),L(this._bh,this._bl,8),L(this._ch,this._cl,16),L(this._dh,this._dl,24),L(this._eh,this._el,32),L(this._fh,this._fl,40),L(this._gh,this._gl,48),L(this._hh,this._hl,56),$},Ce.exports=D},7045:(Ce,ee,E)=>{Ce.exports=p;var a=E(4356).EventEmitter;function p(){a.call(this)}E(1993)(p,a),p.Readable=E(1092),p.Writable=E(5492),p.Duplex=E(1030),p.Transform=E(3410),p.PassThrough=E(3824),p.finished=E(7854),p.pipeline=E(6846),p.Stream=p,p.prototype.pipe=function(O,c){var D=this;function C(w){O.writable&&!1===O.write(w)&&D.pause&&D.pause()}function _(){D.readable&&D.resume&&D.resume()}D.on("data",C),O.on("drain",_),!O._isStdio&&(!c||!1!==c.end)&&(D.on("end",B),D.on("close",m));var F=!1;function B(){F||(F=!0,O.end())}function m(){F||(F=!0,"function"==typeof O.destroy&&O.destroy())}function T(w){if(A(),0===a.listenerCount(this,"error"))throw w}function A(){D.removeListener("data",C),O.removeListener("drain",_),D.removeListener("end",B),D.removeListener("close",m),D.removeListener("error",T),O.removeListener("error",T),D.removeListener("end",A),D.removeListener("close",A),O.removeListener("close",A)}return D.on("error",T),O.on("error",T),D.on("end",A),D.on("close",A),O.on("close",A),O.emit("pipe",D),O}},8083:Ce=>{"use strict";var E={};function a(D,C,_){_||(_=Error);var B=function(m){function T(A,w,R){return m.call(this,function F(m,T,A){return"string"==typeof C?C:C(m,T,A)}(A,w,R))||this}return function ee(D,C){D.prototype=Object.create(C.prototype),D.prototype.constructor=D,D.__proto__=C}(T,m),T}(_);B.prototype.name=_.name,B.prototype.code=D,E[D]=B}function S(D,C){if(Array.isArray(D)){var _=D.length;return D=D.map(function(F){return String(F)}),_>2?"one of ".concat(C," ").concat(D.slice(0,_-1).join(", "),", or ")+D[_-1]:2===_?"one of ".concat(C," ").concat(D[0]," or ").concat(D[1]):"of ".concat(C," ").concat(D[0])}return"of ".concat(C," ").concat(String(D))}a("ERR_INVALID_OPT_VALUE",function(D,C){return'The value "'+C+'" is invalid for option "'+D+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(D,C,_){var F,B;if("string"==typeof C&&function p(D,C,_){return D.substr(!_||_<0?0:+_,C.length)===C}(C,"not ")?(F="must not be",C=C.replace(/^not /,"")):F="must be",function O(D,C,_){return(void 0===_||_>D.length)&&(_=D.length),D.substring(_-C.length,_)===C}(D," argument"))B="The ".concat(D," ").concat(F," ").concat(S(C,"type"));else{var m=function c(D,C,_){return"number"!=typeof _&&(_=0),!(_+C.length>D.length)&&-1!==D.indexOf(C,_)}(D,".")?"property":"argument";B='The "'.concat(D,'" ').concat(m," ").concat(F," ").concat(S(C,"type"))}return B+". Received type ".concat(typeof _)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(D){return"The "+D+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(D){return"Cannot call "+D+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(D){return"Unknown encoding: "+D},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ce.exports.F=E},1030:(Ce,ee,E)=>{"use strict";var a=Object.keys||function(B){var m=[];for(var T in B)m.push(T);return m};Ce.exports=C;var S=E(1092),p=E(5492);E(1993)(C,S);for(var O=a(p.prototype),c=0;c{"use strict";Ce.exports=S;var a=E(3410);function S(p){if(!(this instanceof S))return new S(p);a.call(this,p)}E(1993)(S,a),S.prototype._transform=function(p,O,c){c(null,p)}},1092:(Ce,ee,E)=>{"use strict";var a;Ce.exports=g,g.ReadableState=se,E(4356);var B,p=function(Ie,_e){return Ie.listeners(_e).length},O=E(2601),c=E(3838).Buffer,D=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},F=E(7199);B=F&&F.debuglog?F.debuglog("stream"):function(){};var U,j,W,m=E(7606),T=E(8152),w=E(2827).getHighWaterMark,R=E(8083).F,$=R.ERR_INVALID_ARG_TYPE,L=R.ERR_STREAM_PUSH_AFTER_EOF,M=R.ERR_METHOD_NOT_IMPLEMENTED,P=R.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;E(1993)(g,O);var ie=T.errorOrDestroy,me=["error","close","destroy","pause","resume"];function se(pe,Ie,_e){a=a||E(1030),"boolean"!=typeof _e&&(_e=Ie instanceof a),this.objectMode=!!(pe=pe||{}).objectMode,_e&&(this.objectMode=this.objectMode||!!pe.readableObjectMode),this.highWaterMark=w(this,pe,"readableHighWaterMark",_e),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==pe.emitClose,this.autoDestroy=!!pe.autoDestroy,this.destroyed=!1,this.defaultEncoding=pe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,pe.encoding&&(U||(U=E(8454).I),this.decoder=new U(pe.encoding),this.encoding=pe.encoding)}function g(pe){if(a=a||E(1030),!(this instanceof g))return new g(pe);this._readableState=new se(pe,this,this instanceof a),this.readable=!0,pe&&("function"==typeof pe.read&&(this._read=pe.read),"function"==typeof pe.destroy&&(this._destroy=pe.destroy)),O.call(this)}function n(pe,Ie,_e,re,ne){B("readableAddChunk",Ie);var ge,G=pe._readableState;if(null===Ie)G.reading=!1,function y(pe,Ie){if(B("onEofChunk"),!Ie.ended){if(Ie.decoder){var _e=Ie.decoder.end();_e&&_e.length&&(Ie.buffer.push(_e),Ie.length+=Ie.objectMode?1:_e.length)}Ie.ended=!0,Ie.sync?d(pe):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,r(pe)))}}(pe,G);else if(ne||(ge=function l(pe,Ie){var _e;return!function _(pe){return c.isBuffer(pe)||pe instanceof D}(Ie)&&"string"!=typeof Ie&&void 0!==Ie&&!pe.objectMode&&(_e=new $("chunk",["string","Buffer","Uint8Array"],Ie)),_e}(G,Ie)),ge)ie(pe,ge);else if(G.objectMode||Ie&&Ie.length>0)if("string"!=typeof Ie&&!G.objectMode&&Object.getPrototypeOf(Ie)!==c.prototype&&(Ie=function C(pe){return c.from(pe)}(Ie)),re)G.endEmitted?ie(pe,new P):o(pe,G,Ie,!0);else if(G.ended)ie(pe,new L);else{if(G.destroyed)return!1;G.reading=!1,G.decoder&&!_e?(Ie=G.decoder.write(Ie),G.objectMode||0!==Ie.length?o(pe,G,Ie,!1):f(pe,G)):o(pe,G,Ie,!1)}else re||(G.reading=!1,f(pe,G));return!G.ended&&(G.lengthIe.highWaterMark&&(Ie.highWaterMark=function h(pe){return pe>=s?pe=s:(pe--,pe|=pe>>>1,pe|=pe>>>2,pe|=pe>>>4,pe|=pe>>>8,pe|=pe>>>16,pe++),pe}(pe)),pe<=Ie.length?pe:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}function d(pe){var Ie=pe._readableState;B("emitReadable",Ie.needReadable,Ie.emittedReadable),Ie.needReadable=!1,Ie.emittedReadable||(B("emitReadable",Ie.flowing),Ie.emittedReadable=!0,process.nextTick(r,pe))}function r(pe){var Ie=pe._readableState;B("emitReadable_",Ie.destroyed,Ie.length,Ie.ended),!Ie.destroyed&&(Ie.length||Ie.ended)&&(pe.emit("readable"),Ie.emittedReadable=!1),Ie.needReadable=!Ie.flowing&&!Ie.ended&&Ie.length<=Ie.highWaterMark,De(pe)}function f(pe,Ie){Ie.readingMore||(Ie.readingMore=!0,process.nextTick(k,pe,Ie))}function k(pe,Ie){for(;!Ie.reading&&!Ie.ended&&(Ie.length0,Ie.resumeScheduled&&!Ie.paused?Ie.flowing=!0:pe.listenerCount("data")>0&&pe.resume()}function J(pe){B("readable nexttick read 0"),pe.read(0)}function ve(pe,Ie){B("resume",Ie.reading),Ie.reading||pe.read(0),Ie.resumeScheduled=!1,pe.emit("resume"),De(pe),Ie.flowing&&!Ie.reading&&pe.read(0)}function De(pe){var Ie=pe._readableState;for(B("flow",Ie.flowing);Ie.flowing&&null!==pe.read(););}function Q(pe,Ie){return 0===Ie.length?null:(Ie.objectMode?_e=Ie.buffer.shift():!pe||pe>=Ie.length?(_e=Ie.decoder?Ie.buffer.join(""):1===Ie.buffer.length?Ie.buffer.first():Ie.buffer.concat(Ie.length),Ie.buffer.clear()):_e=Ie.buffer.consume(pe,Ie.decoder),_e);var _e}function ae(pe){var Ie=pe._readableState;B("endReadable",Ie.endEmitted),Ie.endEmitted||(Ie.ended=!0,process.nextTick(tt,Ie,pe))}function tt(pe,Ie){if(B("endReadableNT",pe.endEmitted,pe.length),!pe.endEmitted&&0===pe.length&&(pe.endEmitted=!0,Ie.readable=!1,Ie.emit("end"),pe.autoDestroy)){var _e=Ie._writableState;(!_e||_e.autoDestroy&&_e.finished)&&Ie.destroy()}}function ke(pe,Ie){for(var _e=0,re=pe.length;_e=Ie.highWaterMark:Ie.length>0)||Ie.ended))return B("read: emitReadable",Ie.length,Ie.ended),0===Ie.length&&Ie.ended?ae(this):d(this),null;if(0===(pe=v(pe,Ie))&&Ie.ended)return 0===Ie.length&&ae(this),null;var ne,re=Ie.needReadable;return B("need readable",re),(0===Ie.length||Ie.length-pe0?Q(pe,Ie):null)?(Ie.needReadable=Ie.length<=Ie.highWaterMark,pe=0):(Ie.length-=pe,Ie.awaitDrain=0),0===Ie.length&&(Ie.ended||(Ie.needReadable=!0),_e!==pe&&Ie.ended&&ae(this)),null!==ne&&this.emit("data",ne),ne},g.prototype._read=function(pe){ie(this,new M("_read()"))},g.prototype.pipe=function(pe,Ie){var _e=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=pe;break;case 1:re.pipes=[re.pipes,pe];break;default:re.pipes.push(pe)}re.pipesCount+=1,B("pipe count=%d opts=%j",re.pipesCount,Ie);var G=Ie&&!1===Ie.end||pe===process.stdout||pe===process.stderr?It:xt;function xt(){B("onend"),pe.end()}re.endEmitted?process.nextTick(G):_e.once("end",G),pe.on("unpipe",function ge(Cn,St){B("onunpipe"),Cn===_e&&St&&!1===St.hasUnpiped&&(St.hasUnpiped=!0,function rn(){B("cleanup"),pe.removeListener("close",un),pe.removeListener("finish",At),pe.removeListener("drain",Qe),pe.removeListener("error",ft),pe.removeListener("unpipe",ge),_e.removeListener("end",xt),_e.removeListener("end",It),_e.removeListener("data",mt),rt=!0,re.awaitDrain&&(!pe._writableState||pe._writableState.needDrain)&&Qe()}())});var Qe=function I(pe){return function(){var _e=pe._readableState;B("pipeOnDrain",_e.awaitDrain),_e.awaitDrain&&_e.awaitDrain--,0===_e.awaitDrain&&p(pe,"data")&&(_e.flowing=!0,De(pe))}}(_e);pe.on("drain",Qe);var rt=!1;function mt(Cn){B("ondata");var St=pe.write(Cn);B("dest.write",St),!1===St&&((1===re.pipesCount&&re.pipes===pe||re.pipesCount>1&&-1!==ke(re.pipes,pe))&&!rt&&(B("false write response, pause",re.awaitDrain),re.awaitDrain++),_e.pause())}function ft(Cn){B("onerror",Cn),It(),pe.removeListener("error",ft),0===p(pe,"error")&&ie(pe,Cn)}function un(){pe.removeListener("finish",At),It()}function At(){B("onfinish"),pe.removeListener("close",un),It()}function It(){B("unpipe"),_e.unpipe(pe)}return _e.on("data",mt),function te(pe,Ie,_e){if("function"==typeof pe.prependListener)return pe.prependListener(Ie,_e);pe._events&&pe._events[Ie]?Array.isArray(pe._events[Ie])?pe._events[Ie].unshift(_e):pe._events[Ie]=[_e,pe._events[Ie]]:pe.on(Ie,_e)}(pe,"error",ft),pe.once("close",un),pe.once("finish",At),pe.emit("pipe",_e),re.flowing||(B("pipe resume"),_e.resume()),pe},g.prototype.unpipe=function(pe){var Ie=this._readableState,_e={hasUnpiped:!1};if(0===Ie.pipesCount)return this;if(1===Ie.pipesCount)return pe&&pe!==Ie.pipes||(pe||(pe=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,pe&&pe.emit("unpipe",this,_e)),this;if(!pe){var re=Ie.pipes,ne=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var G=0;G0,!1!==re.flowing&&this.resume()):"readable"===pe&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,B("on readable",re.length,re.reading),re.length?d(this):re.reading||process.nextTick(J,this)),_e},g.prototype.removeListener=function(pe,Ie){var _e=O.prototype.removeListener.call(this,pe,Ie);return"readable"===pe&&process.nextTick(V,this),_e},g.prototype.removeAllListeners=function(pe){var Ie=O.prototype.removeAllListeners.apply(this,arguments);return("readable"===pe||void 0===pe)&&process.nextTick(V,this),Ie},g.prototype.resume=function(){var pe=this._readableState;return pe.flowing||(B("resume"),pe.flowing=!pe.readableListening,function oe(pe,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,process.nextTick(ve,pe,Ie))}(this,pe)),pe.paused=!1,this},g.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},g.prototype.wrap=function(pe){var Ie=this,_e=this._readableState,re=!1;for(var ne in pe.on("end",function(){if(B("wrapped end"),_e.decoder&&!_e.ended){var ge=_e.decoder.end();ge&&ge.length&&Ie.push(ge)}Ie.push(null)}),pe.on("data",function(ge){B("wrapped data"),_e.decoder&&(ge=_e.decoder.write(ge)),_e.objectMode&&null==ge||!(_e.objectMode||ge&&ge.length)||Ie.push(ge)||(re=!0,pe.pause())}),pe)void 0===this[ne]&&"function"==typeof pe[ne]&&(this[ne]=function(xt){return function(){return pe[xt].apply(pe,arguments)}}(ne));for(var G=0;G{"use strict";Ce.exports=_;var a=E(8083).F,S=a.ERR_METHOD_NOT_IMPLEMENTED,p=a.ERR_MULTIPLE_CALLBACK,O=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=a.ERR_TRANSFORM_WITH_LENGTH_0,D=E(1030);function C(m,T){var A=this._transformState;A.transforming=!1;var w=A.writecb;if(null===w)return this.emit("error",new p);A.writechunk=null,A.writecb=null,null!=T&&this.push(T),w(m);var R=this._readableState;R.reading=!1,(R.needReadable||R.length{"use strict";function S(De){var Q=this;this.next=null,this.entry=null,this.finish=function(){!function ve(De,Q,ae){var tt=De.entry;for(De.entry=null;tt;){var ke=tt.callback;Q.pendingcb--,ke(ae),tt=tt.next}Q.corkedRequestsFree.next=De}(Q,De)}}var p;Ce.exports=se,se.WritableState=me;var te,O={deprecate:E(3398)},c=E(2601),D=E(3838).Buffer,C=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},B=E(8152),T=E(2827).getHighWaterMark,A=E(8083).F,w=A.ERR_INVALID_ARG_TYPE,R=A.ERR_METHOD_NOT_IMPLEMENTED,$=A.ERR_MULTIPLE_CALLBACK,L=A.ERR_STREAM_CANNOT_PIPE,M=A.ERR_STREAM_DESTROYED,P=A.ERR_STREAM_NULL_VALUES,U=A.ERR_STREAM_WRITE_AFTER_END,j=A.ERR_UNKNOWN_ENCODING,W=B.errorOrDestroy;function ie(){}function me(De,Q,ae){p=p||E(1030),"boolean"!=typeof ae&&(ae=Q instanceof p),this.objectMode=!!(De=De||{}).objectMode,ae&&(this.objectMode=this.objectMode||!!De.writableObjectMode),this.highWaterMark=T(this,De,"writableHighWaterMark",ae),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===De.decodeStrings),this.defaultEncoding=De.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){!function y(De,Q){var ae=De._writableState,tt=ae.sync,ke=ae.writecb;if("function"!=typeof ke)throw new $;if(function v(De){De.writing=!1,De.writecb=null,De.length-=De.writelen,De.writelen=0}(ae),Q)!function h(De,Q,ae,tt,ke){--Q.pendingcb,ae?(process.nextTick(ke,tt),process.nextTick(J,De,Q),De._writableState.errorEmitted=!0,W(De,tt)):(ke(tt),De._writableState.errorEmitted=!0,W(De,tt),J(De,Q))}(De,ae,tt,Q,ke);else{var pe=k(ae)||De.destroyed;!pe&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&f(De,ae),tt?process.nextTick(d,De,ae,pe,ke):d(De,ae,pe,ke)}}(Q,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==De.emitClose,this.autoDestroy=!!De.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new S(this)}function se(De){var Q=this instanceof(p=p||E(1030));if(!Q&&!te.call(se,this))return new se(De);this._writableState=new me(De,this,Q),this.writable=!0,De&&("function"==typeof De.write&&(this._write=De.write),"function"==typeof De.writev&&(this._writev=De.writev),"function"==typeof De.destroy&&(this._destroy=De.destroy),"function"==typeof De.final&&(this._final=De.final)),c.call(this)}function s(De,Q,ae,tt,ke,pe,Ie){Q.writelen=tt,Q.writecb=Ie,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new M("write")):ae?De._writev(ke,Q.onwrite):De._write(ke,pe,Q.onwrite),Q.sync=!1}function d(De,Q,ae,tt){ae||function r(De,Q){0===Q.length&&Q.needDrain&&(Q.needDrain=!1,De.emit("drain"))}(De,Q),Q.pendingcb--,tt(),J(De,Q)}function f(De,Q){Q.bufferProcessing=!0;var ae=Q.bufferedRequest;if(De._writev&&ae&&ae.next){var ke=new Array(Q.bufferedRequestCount),pe=Q.corkedRequestsFree;pe.entry=ae;for(var Ie=0,_e=!0;ae;)ke[Ie]=ae,ae.isBuf||(_e=!1),ae=ae.next,Ie+=1;ke.allBuffers=_e,s(De,Q,!0,Q.length,ke,"",pe.finish),Q.pendingcb++,Q.lastBufferedRequest=null,pe.next?(Q.corkedRequestsFree=pe.next,pe.next=null):Q.corkedRequestsFree=new S(Q),Q.bufferedRequestCount=0}else{for(;ae;){var re=ae.chunk;if(s(De,Q,!1,Q.objectMode?1:re.length,re,ae.encoding,ae.callback),ae=ae.next,Q.bufferedRequestCount--,Q.writing)break}null===ae&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=ae,Q.bufferProcessing=!1}function k(De){return De.ending&&0===De.length&&null===De.bufferedRequest&&!De.finished&&!De.writing}function I(De,Q){De._final(function(ae){Q.pendingcb--,ae&&W(De,ae),Q.prefinished=!0,De.emit("prefinish"),J(De,Q)})}function J(De,Q){var ae=k(Q);if(ae&&(function V(De,Q){!Q.prefinished&&!Q.finalCalled&&("function"!=typeof De._final||Q.destroyed?(Q.prefinished=!0,De.emit("prefinish")):(Q.pendingcb++,Q.finalCalled=!0,process.nextTick(I,De,Q)))}(De,Q),0===Q.pendingcb&&(Q.finished=!0,De.emit("finish"),Q.autoDestroy))){var tt=De._readableState;(!tt||tt.autoDestroy&&tt.endEmitted)&&De.destroy()}return ae}E(1993)(se,c),me.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,ae=[];Q;)ae.push(Q),Q=Q.next;return ae},function(){try{Object.defineProperty(me.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(te=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(Q){return!!te.call(this,Q)||this===se&&Q&&Q._writableState instanceof me}})):te=function(Q){return Q instanceof this},se.prototype.pipe=function(){W(this,new L)},se.prototype.write=function(De,Q,ae){var tt=this._writableState,ke=!1,pe=!tt.objectMode&&function F(De){return D.isBuffer(De)||De instanceof C}(De);return pe&&!D.isBuffer(De)&&(De=function _(De){return D.from(De)}(De)),"function"==typeof Q&&(ae=Q,Q=null),pe?Q="buffer":Q||(Q=tt.defaultEncoding),"function"!=typeof ae&&(ae=ie),tt.ending?function g(De,Q){var ae=new U;W(De,ae),process.nextTick(Q,ae)}(this,ae):(pe||function n(De,Q,ae,tt){var ke;return null===ae?ke=new P:"string"!=typeof ae&&!Q.objectMode&&(ke=new w("chunk",["string","Buffer"],ae)),!ke||(W(De,ke),process.nextTick(tt,ke),!1)}(this,tt,De,ae))&&(tt.pendingcb++,ke=function l(De,Q,ae,tt,ke,pe){if(!ae){var Ie=function o(De,Q,ae){return!De.objectMode&&!1!==De.decodeStrings&&"string"==typeof Q&&(Q=D.from(Q,ae)),Q}(Q,tt,ke);tt!==Ie&&(ae=!0,ke="buffer",tt=Ie)}var _e=Q.objectMode?1:tt.length;Q.length+=_e;var re=Q.length-1))throw new j(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),se.prototype._write=function(De,Q,ae){ae(new R("_write()"))},se.prototype._writev=null,se.prototype.end=function(De,Q,ae){var tt=this._writableState;return"function"==typeof De?(ae=De,De=null,Q=null):"function"==typeof Q&&(ae=Q,Q=null),null!=De&&this.write(De,Q),tt.corked&&(tt.corked=1,this.uncork()),tt.ending||function oe(De,Q,ae){Q.ending=!0,J(De,Q),ae&&(Q.finished?process.nextTick(ae):De.once("finish",ae)),Q.ended=!0,De.writable=!1}(this,tt,ae),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),se.prototype.destroy=B.destroy,se.prototype._undestroy=B.undestroy,se.prototype._destroy=function(De,Q){Q(De)}},2683:(Ce,ee,E)=>{"use strict";var a;function S(U,j,W){return j=function p(U){var j=function O(U,j){if("object"!=typeof U||null===U)return U;var W=U[Symbol.toPrimitive];if(void 0!==W){var ie=W.call(U,j||"default");if("object"!=typeof ie)return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===j?String:Number)(U)}(U,"string");return"symbol"==typeof j?j:String(j)}(j),j in U?Object.defineProperty(U,j,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[j]=W,U}var c=E(7854),D=Symbol("lastResolve"),C=Symbol("lastReject"),_=Symbol("error"),F=Symbol("ended"),B=Symbol("lastPromise"),m=Symbol("handlePromise"),T=Symbol("stream");function A(U,j){return{value:U,done:j}}function w(U){var j=U[D];if(null!==j){var W=U[T].read();null!==W&&(U[B]=null,U[D]=null,U[C]=null,j(A(W,!1)))}}function R(U){process.nextTick(w,U)}var L=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((S(a={get stream(){return this[T]},next:function(){var j=this,W=this[_];if(null!==W)return Promise.reject(W);if(this[F])return Promise.resolve(A(void 0,!0));if(this[T].destroyed)return new Promise(function(se,g){process.nextTick(function(){j[_]?g(j[_]):se(A(void 0,!0))})});var me,ie=this[B];if(ie)me=new Promise(function $(U,j){return function(W,ie){U.then(function(){j[F]?W(A(void 0,!0)):j[m](W,ie)},ie)}}(ie,this));else{var te=this[T].read();if(null!==te)return Promise.resolve(A(te,!1));me=new Promise(this[m])}return this[B]=me,me}},Symbol.asyncIterator,function(){return this}),S(a,"return",function(){var j=this;return new Promise(function(W,ie){j[T].destroy(null,function(me){me?ie(me):W(A(void 0,!0))})})}),a),L);Ce.exports=function(j){var W,ie=Object.create(M,(S(W={},T,{value:j,writable:!0}),S(W,D,{value:null,writable:!0}),S(W,C,{value:null,writable:!0}),S(W,_,{value:null,writable:!0}),S(W,F,{value:j._readableState.endEmitted,writable:!0}),S(W,m,{value:function(te,se){var g=ie[T].read();g?(ie[B]=null,ie[D]=null,ie[C]=null,te(A(g,!1))):(ie[D]=te,ie[C]=se)},writable:!0}),W));return ie[B]=null,c(j,function(me){if(me&&"ERR_STREAM_PREMATURE_CLOSE"!==me.code){var te=ie[C];return null!==te&&(ie[B]=null,ie[D]=null,ie[C]=null,te(me)),void(ie[_]=me)}var se=ie[D];null!==se&&(ie[B]=null,ie[D]=null,ie[C]=null,se(A(void 0,!0))),ie[F]=!0}),j.on("readable",R.bind(null,ie)),ie}},7606:(Ce,ee,E)=>{"use strict";function a(R,$){var L=Object.keys(R);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(R);$&&(M=M.filter(function(P){return Object.getOwnPropertyDescriptor(R,P).enumerable})),L.push.apply(L,M)}return L}function S(R){for(var $=1;$0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(L){var M={data:L,next:this.head};0===this.length&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(0!==this.length){var L=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(0===this.length)return"";for(var M=this.head,P=""+M.data;M=M.next;)P+=L+M.data;return P}},{key:"concat",value:function(L){if(0===this.length)return B.alloc(0);for(var M=B.allocUnsafe(L>>>0),P=this.head,U=0;P;)w(P.data,M,U),U+=P.data.length,P=P.next;return M}},{key:"consume",value:function(L,M){var P;return Lj.length?j.length:L;if(U+=W===j.length?j:j.slice(0,L),0==(L-=W)){W===j.length?(++P,this.head=M.next?M.next:this.tail=null):(this.head=M,M.data=j.slice(W));break}++P}return this.length-=P,U}},{key:"_getBuffer",value:function(L){var M=B.allocUnsafe(L),P=this.head,U=1;for(P.data.copy(M),L-=P.data.length;P=P.next;){var j=P.data,W=L>j.length?j.length:L;if(j.copy(M,M.length-L,0,W),0==(L-=W)){W===j.length?(++U,this.head=P.next?P.next:this.tail=null):(this.head=P,P.data=j.slice(W));break}++U}return this.length-=U,M}},{key:A,value:function(L,M){return T(this,S(S({},M),{},{depth:0,customInspect:!1}))}}]),R}()},8152:Ce=>{"use strict";function E(c,D){p(c,D),a(c)}function a(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function p(c,D){c.emit("error",D)}Ce.exports={destroy:function ee(c,D){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(D?D(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,c)):process.nextTick(p,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(B){!D&&B?C._writableState?C._writableState.errorEmitted?process.nextTick(a,C):(C._writableState.errorEmitted=!0,process.nextTick(E,C,B)):process.nextTick(E,C,B):D?(process.nextTick(a,C),D(B)):process.nextTick(a,C)}),this)},undestroy:function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function O(c,D){var C=c._readableState,_=c._writableState;C&&C.autoDestroy||_&&_.autoDestroy?c.destroy(D):c.emit("error",D)}}},7854:(Ce,ee,E)=>{"use strict";var a=E(8083).F.ERR_STREAM_PREMATURE_CLOSE;function p(){}Ce.exports=function c(D,C,_){if("function"==typeof C)return c(D,null,C);C||(C={}),_=function S(D){var C=!1;return function(){if(!C){C=!0;for(var _=arguments.length,F=new Array(_),B=0;B<_;B++)F[B]=arguments[B];D.apply(this,F)}}}(_||p);var F=C.readable||!1!==C.readable&&D.readable,B=C.writable||!1!==C.writable&&D.writable,m=function(){D.writable||A()},T=D._writableState&&D._writableState.finished,A=function(){B=!1,T=!0,F||_.call(D)},w=D._readableState&&D._readableState.endEmitted,R=function(){F=!1,w=!0,B||_.call(D)},$=function(U){_.call(D,U)},L=function(){var U;return F&&!w?((!D._readableState||!D._readableState.ended)&&(U=new a),_.call(D,U)):B&&!T?((!D._writableState||!D._writableState.ended)&&(U=new a),_.call(D,U)):void 0},M=function(){D.req.on("finish",A)};return function O(D){return D.setHeader&&"function"==typeof D.abort}(D)?(D.on("complete",A),D.on("abort",L),D.req?M():D.on("request",M)):B&&!D._writableState&&(D.on("end",m),D.on("close",m)),D.on("end",R),D.on("finish",A),!1!==C.error&&D.on("error",$),D.on("close",L),function(){D.removeListener("complete",A),D.removeListener("abort",L),D.removeListener("request",M),D.req&&D.req.removeListener("finish",A),D.removeListener("end",m),D.removeListener("close",m),D.removeListener("finish",A),D.removeListener("end",R),D.removeListener("error",$),D.removeListener("close",L)}}},7765:Ce=>{Ce.exports=function(){throw new Error("Readable.from is not available in the browser")}},6846:(Ce,ee,E)=>{"use strict";var a,p=E(8083).F,O=p.ERR_MISSING_ARGS,c=p.ERR_STREAM_DESTROYED;function D(A){if(A)throw A}function F(A){A()}function B(A,w){return A.pipe(w)}Ce.exports=function T(){for(var A=arguments.length,w=new Array(A),R=0;R0,function(ie){L||(L=ie),ie&&M.forEach(F),!j&&(M.forEach(F),$(L))})});return w.reduce(B)}},2827:(Ce,ee,E)=>{"use strict";var a=E(8083).F.ERR_INVALID_OPT_VALUE;Ce.exports={getHighWaterMark:function p(O,c,D,C){var _=function S(O,c,D){return null!=O.highWaterMark?O.highWaterMark:c?O[D]:null}(c,C,D);if(null!=_){if(!isFinite(_)||Math.floor(_)!==_||_<0)throw new a(C?D:"highWaterMark",_);return Math.floor(_)}return O.objectMode?16:16384}}},2601:(Ce,ee,E)=>{Ce.exports=E(4356).EventEmitter},8454:(Ce,ee,E)=>{"use strict";var a=E(4272).Buffer,S=a.isEncoding||function(M){switch((M=""+M)&&M.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(M){var P;switch(this.encoding=function O(M){var P=function p(M){if(!M)return"utf8";for(var P;;)switch(M){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return M;default:if(P)return;M=(""+M).toLowerCase(),P=!0}}(M);if("string"!=typeof P&&(a.isEncoding===S||!S(M)))throw new Error("Unknown encoding: "+M);return P||M}(M),this.encoding){case"utf16le":this.text=T,this.end=A,P=4;break;case"utf8":this.fillLast=F,P=4;break;case"base64":this.text=w,this.end=R,P=3;break;default:return this.write=$,void(this.end=L)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(P)}function D(M){return M<=127?0:M>>5==6?2:M>>4==14?3:M>>3==30?4:M>>6==2?-1:-2}function F(M){var P=this.lastTotal-this.lastNeed,U=function _(M,P,U){if(128!=(192&P[0]))return M.lastNeed=0,"\ufffd";if(M.lastNeed>1&&P.length>1){if(128!=(192&P[1]))return M.lastNeed=1,"\ufffd";if(M.lastNeed>2&&P.length>2&&128!=(192&P[2]))return M.lastNeed=2,"\ufffd"}}(this,M);return void 0!==U?U:this.lastNeed<=M.length?(M.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(M.copy(this.lastChar,P,0,M.length),void(this.lastNeed-=M.length))}function T(M,P){if((M.length-P)%2==0){var U=M.toString("utf16le",P);if(U){var j=U.charCodeAt(U.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",P,M.length-1)}function A(M){var P=M&&M.length?this.write(M):"";return this.lastNeed?P+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):P}function w(M,P){var U=(M.length-P)%3;return 0===U?M.toString("base64",P):(this.lastNeed=3-U,this.lastTotal=3,1===U?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",P,M.length-U))}function R(M){var P=M&&M.length?this.write(M):"";return this.lastNeed?P+this.lastChar.toString("base64",0,3-this.lastNeed):P}function $(M){return M.toString(this.encoding)}function L(M){return M&&M.length?this.write(M):""}ee.I=c,c.prototype.write=function(M){if(0===M.length)return"";var P,U;if(this.lastNeed){if(void 0===(P=this.fillLast(M)))return"";U=this.lastNeed,this.lastNeed=0}else U=0;return U=0?(W>0&&(M.lastNeed=W-1),W):--j=0?(W>0&&(M.lastNeed=W-2),W):--j=0?(W>0&&(2===W?W=0:M.lastNeed=W-3),W):0}(this,M,P);if(!this.lastNeed)return M.toString("utf8",P);this.lastTotal=U;var j=M.length-(U-this.lastNeed);return M.copy(this.lastChar,0,j),M.toString("utf8",P,j)},c.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length}},4272:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},3398:Ce=>{function E(a){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[a];return null!=S&&"true"===String(S).toLowerCase()}Ce.exports=function ee(a,S){if(E("noDeprecation"))return a;var p=!1;return function O(){if(!p){if(E("throwDeprecation"))throw new Error(S);E("traceDeprecation")?console.trace(S):console.warn(S),p=!0}return a.apply(this,arguments)}}},6421:(Ce,ee,E)=>{"use strict";E.d(ee,{A:()=>m});const S={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let p;const O=new Uint8Array(16);function c(){if(!p&&(p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(O)}const D=[];for(let T=0;T<256;++T)D.push((T+256).toString(16).slice(1));const m=function B(T,A,w){if(S.randomUUID&&!A&&!T)return S.randomUUID();const R=(T=T||{}).random||(T.rng||c)();if(R[6]=15&R[6]|64,R[8]=63&R[8]|128,A){w=w||0;for(let $=0;$<16;++$)A[w+$]=R[$];return A}return function C(T,A=0){return D[T[A+0]]+D[T[A+1]]+D[T[A+2]]+D[T[A+3]]+"-"+D[T[A+4]]+D[T[A+5]]+"-"+D[T[A+6]]+D[T[A+7]]+"-"+D[T[A+8]]+D[T[A+9]]+"-"+D[T[A+10]]+D[T[A+11]]+D[T[A+12]]+D[T[A+13]]+D[T[A+14]]+D[T[A+15]]}(R)}},8326:(__unused_webpack_module,exports)=>{var indexOf=function(Ce,ee){if(Ce.indexOf)return Ce.indexOf(ee);for(var E=0;E{var a={"./ion-accordion_2.entry.js":[4756,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[6972,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,2076,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,771,7428],"./ion-datetime_3.entry.js":[5266,771,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-internal.entry.js":[1433,2076,1433],"./ion-picker-internal.entry.js":[2628,2628],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return Promise.all(O.slice(1).map(E.e)).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=8996,Ce.exports=S},5235:(Ce,ee,E)=>{var a={"./pwa-action-sheet.entry.js":[6301,6301],"./pwa-camera-modal-instance.entry.js":[5640,5640],"./pwa-camera-modal.entry.js":[2982,2982],"./pwa-camera.entry.js":[6086,6086],"./pwa-toast.entry.js":[3574,3574]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return E.e(O[1]).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=5235,Ce.exports=S},7321:(Ce,ee,E)=>{var a={"./jeep-sqlite.entry.js":[477,477]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return E.e(O[1]).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=7321,Ce.exports=S},8982:()=>{},7790:()=>{},7965:()=>{},6089:()=>{},9368:()=>{},4688:()=>{},1069:()=>{},5340:()=>{},9838:()=>{},3779:()=>{},7199:()=>{},177:(Ce,ee,E)=>{"use strict";E.d(ee,{AJ:()=>Ai,B3:()=>dt,MD:()=>Di,N0:()=>Bi,QT:()=>p,Sm:()=>$,Sq:()=>Tn,T3:()=>pt,UE:()=>Kr,VF:()=>c,Vw:()=>_,Vy:()=>wi,Xr:()=>mo,YU:()=>kt,ZD:()=>O,_b:()=>lt,aZ:()=>M,bT:()=>fr,fw:()=>L,hb:()=>w,hj:()=>F,qQ:()=>C});var a=E(4438);let S=null;function p(){return S}function O(Y){var xe;null!==(xe=S)&&void 0!==xe||(S=Y)}class c{}const C=new a.nKC("");let _=(()=>{var Y;class xe{historyGo(de){throw new Error("")}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>(0,a.WQX)(B),providedIn:"platform"}),xe})();const F=new a.nKC("");let B=(()=>{var Y;class xe extends _{constructor(){super(),this._doc=(0,a.WQX)(C),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return p().getBaseHref(this._doc)}onPopState(de){const We=p().getGlobalEventTarget(this._doc,"window");return We.addEventListener("popstate",de,!1),()=>We.removeEventListener("popstate",de)}onHashChange(de){const We=p().getGlobalEventTarget(this._doc,"window");return We.addEventListener("hashchange",de,!1),()=>We.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,We,ht){this._history.pushState(de,We,ht)}replaceState(de,We,ht){this._history.replaceState(de,We,ht)}forward(){this._history.forward()}back(){this._history.back()}historyGo(de=0){this._history.go(de)}getState(){return this._history.state}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>new Y,providedIn:"platform"}),xe})();function m(Y,xe){if(0==Y.length)return xe;if(0==xe.length)return Y;let at=0;return Y.endsWith("/")&&at++,xe.startsWith("/")&&at++,2==at?Y+xe.substring(1):1==at?Y+xe:Y+"/"+xe}function T(Y){const xe=Y.match(/#|\?|$/),at=xe&&xe.index||Y.length;return Y.slice(0,at-("/"===Y[at-1]?1:0))+Y.slice(at)}function A(Y){return Y&&"?"!==Y[0]?"?"+Y:Y}let w=(()=>{var Y;class xe{historyGo(de){throw new Error("")}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>(0,a.WQX)($),providedIn:"root"}),xe})();const R=new a.nKC("");let $=(()=>{var Y;class xe extends w{constructor(de,We){var ht,Jt,mn;super(),this._platformLocation=de,this._removeListenerFns=[],this._baseHref=null!==(ht=null!==(Jt=null!=We?We:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Jt?Jt:null===(mn=(0,a.WQX)(C).location)||void 0===mn?void 0:mn.origin)&&void 0!==ht?ht:""}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}prepareExternalUrl(de){return m(this._baseHref,de)}path(de=!1){const We=this._platformLocation.pathname+A(this._platformLocation.search),ht=this._platformLocation.hash;return ht&&de?`${We}${ht}`:We}pushState(de,We,ht,Jt){const mn=this.prepareExternalUrl(ht+A(Jt));this._platformLocation.pushState(de,We,mn)}replaceState(de,We,ht,Jt){const mn=this.prepareExternalUrl(ht+A(Jt));this._platformLocation.replaceState(de,We,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){var We,ht;null===(We=(ht=this._platformLocation).historyGo)||void 0===We||We.call(ht,de)}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.KVO(_),a.KVO(R,8))},Y.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),xe})(),L=(()=>{var Y;class xe extends w{constructor(de,We){super(),this._platformLocation=de,this._baseHref="",this._removeListenerFns=[],null!=We&&(this._baseHref=We)}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){var We;const ht=null!==(We=this._platformLocation.hash)&&void 0!==We?We:"#";return ht.length>0?ht.substring(1):ht}prepareExternalUrl(de){const We=m(this._baseHref,de);return We.length>0?"#"+We:We}pushState(de,We,ht,Jt){let mn=this.prepareExternalUrl(ht+A(Jt));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.pushState(de,We,mn)}replaceState(de,We,ht,Jt){let mn=this.prepareExternalUrl(ht+A(Jt));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.replaceState(de,We,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){var We,ht;null===(We=(ht=this._platformLocation).historyGo)||void 0===We||We.call(ht,de)}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.KVO(_),a.KVO(R,8))},Y.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac}),xe})(),M=(()=>{var Y;class xe{constructor(de){this._subject=new a.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=de;const We=this._locationStrategy.getBaseHref();this._basePath=function W(Y){if(new RegExp("^(https?:)?//").test(Y)){const[,at]=Y.split(/\/\/[^\/]+/);return at}return Y}(T(j(We))),this._locationStrategy.onPopState(ht=>{this._subject.emit({url:this.path(!0),pop:!0,state:ht.state,type:ht.type})})}ngOnDestroy(){var de;null===(de=this._urlChangeSubscription)||void 0===de||de.unsubscribe(),this._urlChangeListeners=[]}path(de=!1){return this.normalize(this._locationStrategy.path(de))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(de,We=""){return this.path()==this.normalize(de+A(We))}normalize(de){return xe.stripTrailingSlash(function U(Y,xe){if(!Y||!xe.startsWith(Y))return xe;const at=xe.substring(Y.length);return""===at||["/",";","?","#"].includes(at[0])?at:xe}(this._basePath,j(de)))}prepareExternalUrl(de){return de&&"/"!==de[0]&&(de="/"+de),this._locationStrategy.prepareExternalUrl(de)}go(de,We="",ht=null){this._locationStrategy.pushState(ht,"",de,We),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+A(We)),ht)}replaceState(de,We="",ht=null){this._locationStrategy.replaceState(ht,"",de,We),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+A(We)),ht)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(de=0){var We,ht;null===(We=(ht=this._locationStrategy).historyGo)||void 0===We||We.call(ht,de)}onUrlChange(de){var We;return this._urlChangeListeners.push(de),null!==(We=this._urlChangeSubscription)&&void 0!==We||(this._urlChangeSubscription=this.subscribe(ht=>{this._notifyUrlChangeListeners(ht.url,ht.state)})),()=>{const ht=this._urlChangeListeners.indexOf(de);var Jt;this._urlChangeListeners.splice(ht,1),0===this._urlChangeListeners.length&&(null===(Jt=this._urlChangeSubscription)||void 0===Jt||Jt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(de="",We){this._urlChangeListeners.forEach(ht=>ht(de,We))}subscribe(de,We,ht){return this._subject.subscribe({next:de,error:We,complete:ht})}}return(Y=xe).normalizeQueryParams=A,Y.joinWithSlash=m,Y.stripTrailingSlash=T,Y.\u0275fac=function(de){return new(de||Y)(a.KVO(w))},Y.\u0275prov=a.jDH({token:Y,factory:()=>function P(){return new M((0,a.KVO)(w))}(),providedIn:"root"}),xe})();function j(Y){return Y.replace(/\/index.html$/,"")}function lt(Y,xe){xe=encodeURIComponent(xe);for(const at of Y.split(";")){const de=at.indexOf("="),[We,ht]=-1==de?[at,""]:[at.slice(0,de),at.slice(de+1)];if(We.trim()===xe)return decodeURIComponent(ht)}return null}const Tt=/\s+/,Mt=[];let kt=(()=>{var Y;class xe{constructor(de,We){this._ngEl=de,this._renderer=We,this.initialClasses=Mt,this.stateMap=new Map}set klass(de){this.initialClasses=null!=de?de.trim().split(Tt):Mt}set ngClass(de){this.rawClass="string"==typeof de?de.trim().split(Tt):de}ngDoCheck(){for(const We of this.initialClasses)this._updateState(We,!0);const de=this.rawClass;if(Array.isArray(de)||de instanceof Set)for(const We of de)this._updateState(We,!0);else if(null!=de)for(const We of Object.keys(de))this._updateState(We,!!de[We]);this._applyStateDiff()}_updateState(de,We){const ht=this.stateMap.get(de);void 0!==ht?(ht.enabled!==We&&(ht.changed=!0,ht.enabled=We),ht.touched=!0):this.stateMap.set(de,{enabled:We,changed:!0,touched:!0})}_applyStateDiff(){for(const de of this.stateMap){const We=de[0],ht=de[1];ht.changed?(this._toggleClass(We,ht.enabled),ht.changed=!1):ht.touched||(ht.enabled&&this._toggleClass(We,!1),this.stateMap.delete(We)),ht.touched=!1}}_toggleClass(de,We){(de=de.trim()).length>0&&de.split(Tt).forEach(ht=>{We?this._renderer.addClass(this._ngEl.nativeElement,ht):this._renderer.removeClass(this._ngEl.nativeElement,ht)})}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.aKT),a.rXU(a.sFG))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngClass",""]],inputs:{klass:[a.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0}),xe})();class Qt{constructor(xe,at,de,We){this.$implicit=xe,this.ngForOf=at,this.index=de,this.count=We}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 Tn=(()=>{var Y;class xe{set ngForOf(de){this._ngForOf=de,this._ngForOfDirty=!0}set ngForTrackBy(de){this._trackByFn=de}get ngForTrackBy(){return this._trackByFn}constructor(de,We,ht){this._viewContainer=de,this._template=We,this._differs=ht,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 We=this._viewContainer;de.forEachOperation((ht,Jt,mn)=>{if(null==ht.previousIndex)We.createEmbeddedView(this._template,new Qt(ht.item,this._ngForOf,-1,-1),null===mn?void 0:mn);else if(null==mn)We.remove(null===Jt?void 0:Jt);else if(null!==Jt){const Zn=We.get(Jt);We.move(Zn,mn),wn(Zn,ht)}});for(let ht=0,Jt=We.length;ht{wn(We.get(ht.currentIndex),ht)})}static ngTemplateContextGuard(de,We){return!0}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b),a.rXU(a.C4Q),a.rXU(a._q3))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),xe})();function wn(Y,xe){Y.context.$implicit=xe.item}let fr=(()=>{var Y;class xe{constructor(de,We){this._viewContainer=de,this._context=new Ge,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=We}set ngIf(de){this._context.$implicit=this._context.ngIf=de,this._updateView()}set ngIfThen(de){et("ngIfThen",de),this._thenTemplateRef=de,this._thenViewRef=null,this._updateView()}set ngIfElse(de){et("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,We){return!0}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b),a.rXU(a.C4Q))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),xe})();class Ge{constructor(){this.$implicit=null,this.ngIf=null}}function et(Y,xe){if(xe&&!xe.createEmbeddedView)throw new Error(`${Y} must be a TemplateRef, but received '${(0,a.Tbb)(xe)}'.`)}let dt=(()=>{var Y;class xe{constructor(de,We,ht){this._ngEl=de,this._differs=We,this._renderer=ht,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,We){const[ht,Jt]=de.split("."),mn=-1===ht.indexOf("-")?void 0:a.czy.DashCase;null!=We?this._renderer.setStyle(this._ngEl.nativeElement,ht,Jt?`${We}${Jt}`:We,mn):this._renderer.removeStyle(this._ngEl.nativeElement,ht,mn)}_applyChanges(de){de.forEachRemovedItem(We=>this._setStyle(We.key,null)),de.forEachAddedItem(We=>this._setStyle(We.key,We.currentValue)),de.forEachChangedItem(We=>this._setStyle(We.key,We.currentValue))}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.aKT),a.rXU(a.MKu),a.rXU(a.sFG))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),xe})(),pt=(()=>{var Y;class xe{constructor(de){this._viewContainerRef=de,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(de){if(this._shouldRecreateView(de)){var We;const ht=this._viewContainerRef;if(this._viewRef&&ht.remove(ht.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Jt=this._createContextForwardProxy();this._viewRef=ht.createEmbeddedView(this.ngTemplateOutlet,Jt,{injector:null!==(We=this.ngTemplateOutletInjector)&&void 0!==We?We:void 0})}}_shouldRecreateView(de){return!!de.ngTemplateOutlet||!!de.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(de,We,ht)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,We,ht),get:(de,We,ht)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,We,ht)}})}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.OA$]}),xe})(),Di=(()=>{var Y;class xe{}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275mod=a.$C({type:Y}),Y.\u0275inj=a.G2t({}),xe})();const Ai="browser",ji="server";function Kr(Y){return Y===Ai}function wi(Y){return Y===ji}let mo=(()=>{var Y;class xe{}return(Y=xe).\u0275prov=(0,a.jDH)({token:Y,providedIn:"root",factory:()=>Kr((0,a.WQX)(a.Agw))?new Ir((0,a.WQX)(C),window):new Ni}),xe})();class Ir{constructor(xe,at){this.document=xe,this.window=at,this.offset=()=>[0,0]}setOffset(xe){this.offset=Array.isArray(xe)?()=>xe:xe}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(xe){this.window.scrollTo(xe[0],xe[1])}scrollToAnchor(xe){const at=function si(Y,xe){const at=Y.getElementById(xe)||Y.getElementsByName(xe)[0];if(at)return at;if("function"==typeof Y.createTreeWalker&&Y.body&&"function"==typeof Y.body.attachShadow){const de=Y.createTreeWalker(Y.body,NodeFilter.SHOW_ELEMENT);let We=de.currentNode;for(;We;){const ht=We.shadowRoot;if(ht){const Jt=ht.getElementById(xe)||ht.querySelector(`[name="${xe}"]`);if(Jt)return Jt}We=de.nextNode()}}return null}(this.document,xe);at&&(this.scrollToElement(at),at.focus())}setHistoryScrollRestoration(xe){this.window.history.scrollRestoration=xe}scrollToElement(xe){const at=xe.getBoundingClientRect(),de=at.left+this.window.pageXOffset,We=at.top+this.window.pageYOffset,ht=this.offset();this.window.scrollTo(de-ht[0],We-ht[1])}}class Ni{setOffset(xe){}getScrollPosition(){return[0,0]}scrollToPosition(xe){}scrollToAnchor(xe){}setHistoryScrollRestoration(xe){}}class Bi{}},1626:(Ce,ee,E)=>{"use strict";E.d(ee,{Lr:()=>w,Qq:()=>k,q1:()=>en}),E(467);var S=E(4438),p=E(7673),O=E(1985),c=E(6648),D=E(274),C=E(5964),_=E(6354),F=E(980),B=E(5558),m=E(177);class T{}class A{}class w{constructor(lt){this.normalizedNames=new Map,this.lazyUpdate=null,lt?"string"==typeof lt?this.lazyInit=()=>{this.headers=new Map,lt.split("\n").forEach(Tt=>{const Mt=Tt.indexOf(":");if(Mt>0){const kt=Tt.slice(0,Mt),Zt=kt.toLowerCase(),qt=Tt.slice(Mt+1).trim();this.maybeSetNormalizedName(kt,Zt),this.headers.has(Zt)?this.headers.get(Zt).push(qt):this.headers.set(Zt,[qt])}})}:typeof Headers<"u"&< instanceof Headers?(this.headers=new Map,lt.forEach((Tt,Mt)=>{this.setHeaderEntries(Mt,Tt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(lt).forEach(([Tt,Mt])=>{this.setHeaderEntries(Tt,Mt)})}:this.headers=new Map}has(lt){return this.init(),this.headers.has(lt.toLowerCase())}get(lt){this.init();const Tt=this.headers.get(lt.toLowerCase());return Tt&&Tt.length>0?Tt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(lt){return this.init(),this.headers.get(lt.toLowerCase())||null}append(lt,Tt){return this.clone({name:lt,value:Tt,op:"a"})}set(lt,Tt){return this.clone({name:lt,value:Tt,op:"s"})}delete(lt,Tt){return this.clone({name:lt,value:Tt,op:"d"})}maybeSetNormalizedName(lt,Tt){this.normalizedNames.has(Tt)||this.normalizedNames.set(Tt,lt)}init(){this.lazyInit&&(this.lazyInit instanceof w?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(lt=>this.applyUpdate(lt)),this.lazyUpdate=null))}copyFrom(lt){lt.init(),Array.from(lt.headers.keys()).forEach(Tt=>{this.headers.set(Tt,lt.headers.get(Tt)),this.normalizedNames.set(Tt,lt.normalizedNames.get(Tt))})}clone(lt){const Tt=new w;return Tt.lazyInit=this.lazyInit&&this.lazyInit instanceof w?this.lazyInit:this,Tt.lazyUpdate=(this.lazyUpdate||[]).concat([lt]),Tt}applyUpdate(lt){const Tt=lt.name.toLowerCase();switch(lt.op){case"a":case"s":let Mt=lt.value;if("string"==typeof Mt&&(Mt=[Mt]),0===Mt.length)return;this.maybeSetNormalizedName(lt.name,Tt);const kt=("a"===lt.op?this.headers.get(Tt):void 0)||[];kt.push(...Mt),this.headers.set(Tt,kt);break;case"d":const Zt=lt.value;if(Zt){let qt=this.headers.get(Tt);if(!qt)return;qt=qt.filter(Qt=>-1===Zt.indexOf(Qt)),0===qt.length?(this.headers.delete(Tt),this.normalizedNames.delete(Tt)):this.headers.set(Tt,qt)}else this.headers.delete(Tt),this.normalizedNames.delete(Tt)}}setHeaderEntries(lt,Tt){const Mt=(Array.isArray(Tt)?Tt:[Tt]).map(Zt=>Zt.toString()),kt=lt.toLowerCase();this.headers.set(kt,Mt),this.maybeSetNormalizedName(lt,kt)}forEach(lt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Tt=>lt(this.normalizedNames.get(Tt),this.headers.get(Tt)))}}class ${encodeKey(lt){return U(lt)}encodeValue(lt){return U(lt)}decodeKey(lt){return decodeURIComponent(lt)}decodeValue(lt){return decodeURIComponent(lt)}}const M=/%(\d[a-f0-9])/gi,P={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function U($e){return encodeURIComponent($e).replace(M,(lt,Tt)=>{var Mt;return null!==(Mt=P[Tt])&&void 0!==Mt?Mt:lt})}function j($e){return`${$e}`}class W{constructor(lt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=lt.encoder||new $,lt.fromString){if(lt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function L($e,lt){const Tt=new Map;return $e.length>0&&$e.replace(/^\?/,"").split("&").forEach(kt=>{const Zt=kt.indexOf("="),[qt,Qt]=-1==Zt?[lt.decodeKey(kt),""]:[lt.decodeKey(kt.slice(0,Zt)),lt.decodeValue(kt.slice(Zt+1))],Tn=Tt.get(qt)||[];Tn.push(Qt),Tt.set(qt,Tn)}),Tt}(lt.fromString,this.encoder)}else lt.fromObject?(this.map=new Map,Object.keys(lt.fromObject).forEach(Tt=>{const Mt=lt.fromObject[Tt],kt=Array.isArray(Mt)?Mt.map(j):[j(Mt)];this.map.set(Tt,kt)})):this.map=null}has(lt){return this.init(),this.map.has(lt)}get(lt){this.init();const Tt=this.map.get(lt);return Tt?Tt[0]:null}getAll(lt){return this.init(),this.map.get(lt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(lt,Tt){return this.clone({param:lt,value:Tt,op:"a"})}appendAll(lt){const Tt=[];return Object.keys(lt).forEach(Mt=>{const kt=lt[Mt];Array.isArray(kt)?kt.forEach(Zt=>{Tt.push({param:Mt,value:Zt,op:"a"})}):Tt.push({param:Mt,value:kt,op:"a"})}),this.clone(Tt)}set(lt,Tt){return this.clone({param:lt,value:Tt,op:"s"})}delete(lt,Tt){return this.clone({param:lt,value:Tt,op:"d"})}toString(){return this.init(),this.keys().map(lt=>{const Tt=this.encoder.encodeKey(lt);return this.map.get(lt).map(Mt=>Tt+"="+this.encoder.encodeValue(Mt)).join("&")}).filter(lt=>""!==lt).join("&")}clone(lt){const Tt=new W({encoder:this.encoder});return Tt.cloneFrom=this.cloneFrom||this,Tt.updates=(this.updates||[]).concat(lt),Tt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(lt=>this.map.set(lt,this.cloneFrom.map.get(lt))),this.updates.forEach(lt=>{switch(lt.op){case"a":case"s":const Tt=("a"===lt.op?this.map.get(lt.param):void 0)||[];Tt.push(j(lt.value)),this.map.set(lt.param,Tt);break;case"d":if(void 0===lt.value){this.map.delete(lt.param);break}{let Mt=this.map.get(lt.param)||[];const kt=Mt.indexOf(j(lt.value));-1!==kt&&Mt.splice(kt,1),Mt.length>0?this.map.set(lt.param,Mt):this.map.delete(lt.param)}}}),this.cloneFrom=this.updates=null)}}class me{constructor(){this.map=new Map}set(lt,Tt){return this.map.set(lt,Tt),this}get(lt){return this.map.has(lt)||this.map.set(lt,lt.defaultValue()),this.map.get(lt)}delete(lt){return this.map.delete(lt),this}has(lt){return this.map.has(lt)}keys(){return this.map.keys()}}function se($e){return typeof ArrayBuffer<"u"&&$e instanceof ArrayBuffer}function g($e){return typeof Blob<"u"&&$e instanceof Blob}function n($e){return typeof FormData<"u"&&$e instanceof FormData}class l{constructor(lt,Tt,Mt,kt){var Zt,qt;let Qt;if(this.url=Tt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=lt.toUpperCase(),function te($e){switch($e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||kt?(this.body=void 0!==Mt?Mt:null,Qt=kt):Qt=Mt,Qt&&(this.reportProgress=!!Qt.reportProgress,this.withCredentials=!!Qt.withCredentials,Qt.responseType&&(this.responseType=Qt.responseType),Qt.headers&&(this.headers=Qt.headers),Qt.context&&(this.context=Qt.context),Qt.params&&(this.params=Qt.params),this.transferCache=Qt.transferCache),null!==(Zt=this.headers)&&void 0!==Zt||(this.headers=new w),null!==(qt=this.context)&&void 0!==qt||(this.context=new me),this.params){const Tn=this.params.toString();if(0===Tn.length)this.urlWithParams=Tt;else{const wn=Tt.indexOf("?");this.urlWithParams=Tt+(-1===wn?"?":wnCt.set(Gt,lt.setHeaders[Gt]),et)),lt.setParams&&(Fe=Object.keys(lt.setParams).reduce((Ct,Gt)=>Ct.set(Gt,lt.setParams[Gt]),Fe)),new l(qt,Qt,Kn,{params:Fe,headers:et,context:qe,reportProgress:Ge,responseType:Tn,withCredentials:fr,transferCache:wn})}}var s=function($e){return $e[$e.Sent=0]="Sent",$e[$e.UploadProgress=1]="UploadProgress",$e[$e.ResponseHeader=2]="ResponseHeader",$e[$e.DownloadProgress=3]="DownloadProgress",$e[$e.Response=4]="Response",$e[$e.User=5]="User",$e}(s||{});class h{constructor(lt,Tt=r.Ok,Mt="OK"){this.headers=lt.headers||new w,this.status=void 0!==lt.status?lt.status:Tt,this.statusText=lt.statusText||Mt,this.url=lt.url||null,this.ok=this.status>=200&&this.status<300}}class v extends h{constructor(lt={}){super(lt),this.type=s.ResponseHeader}clone(lt={}){return new v({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class y extends h{constructor(lt={}){super(lt),this.type=s.Response,this.body=void 0!==lt.body?lt.body:null}clone(lt={}){return new y({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class d extends h{constructor(lt){super(lt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${lt.url||"(unknown url)"}`:`Http failure response for ${lt.url||"(unknown url)"}: ${lt.status} ${lt.statusText}`,this.error=lt.error||null}}var r=function($e){return $e[$e.Continue=100]="Continue",$e[$e.SwitchingProtocols=101]="SwitchingProtocols",$e[$e.Processing=102]="Processing",$e[$e.EarlyHints=103]="EarlyHints",$e[$e.Ok=200]="Ok",$e[$e.Created=201]="Created",$e[$e.Accepted=202]="Accepted",$e[$e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",$e[$e.NoContent=204]="NoContent",$e[$e.ResetContent=205]="ResetContent",$e[$e.PartialContent=206]="PartialContent",$e[$e.MultiStatus=207]="MultiStatus",$e[$e.AlreadyReported=208]="AlreadyReported",$e[$e.ImUsed=226]="ImUsed",$e[$e.MultipleChoices=300]="MultipleChoices",$e[$e.MovedPermanently=301]="MovedPermanently",$e[$e.Found=302]="Found",$e[$e.SeeOther=303]="SeeOther",$e[$e.NotModified=304]="NotModified",$e[$e.UseProxy=305]="UseProxy",$e[$e.Unused=306]="Unused",$e[$e.TemporaryRedirect=307]="TemporaryRedirect",$e[$e.PermanentRedirect=308]="PermanentRedirect",$e[$e.BadRequest=400]="BadRequest",$e[$e.Unauthorized=401]="Unauthorized",$e[$e.PaymentRequired=402]="PaymentRequired",$e[$e.Forbidden=403]="Forbidden",$e[$e.NotFound=404]="NotFound",$e[$e.MethodNotAllowed=405]="MethodNotAllowed",$e[$e.NotAcceptable=406]="NotAcceptable",$e[$e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",$e[$e.RequestTimeout=408]="RequestTimeout",$e[$e.Conflict=409]="Conflict",$e[$e.Gone=410]="Gone",$e[$e.LengthRequired=411]="LengthRequired",$e[$e.PreconditionFailed=412]="PreconditionFailed",$e[$e.PayloadTooLarge=413]="PayloadTooLarge",$e[$e.UriTooLong=414]="UriTooLong",$e[$e.UnsupportedMediaType=415]="UnsupportedMediaType",$e[$e.RangeNotSatisfiable=416]="RangeNotSatisfiable",$e[$e.ExpectationFailed=417]="ExpectationFailed",$e[$e.ImATeapot=418]="ImATeapot",$e[$e.MisdirectedRequest=421]="MisdirectedRequest",$e[$e.UnprocessableEntity=422]="UnprocessableEntity",$e[$e.Locked=423]="Locked",$e[$e.FailedDependency=424]="FailedDependency",$e[$e.TooEarly=425]="TooEarly",$e[$e.UpgradeRequired=426]="UpgradeRequired",$e[$e.PreconditionRequired=428]="PreconditionRequired",$e[$e.TooManyRequests=429]="TooManyRequests",$e[$e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",$e[$e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",$e[$e.InternalServerError=500]="InternalServerError",$e[$e.NotImplemented=501]="NotImplemented",$e[$e.BadGateway=502]="BadGateway",$e[$e.ServiceUnavailable=503]="ServiceUnavailable",$e[$e.GatewayTimeout=504]="GatewayTimeout",$e[$e.HttpVersionNotSupported=505]="HttpVersionNotSupported",$e[$e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",$e[$e.InsufficientStorage=507]="InsufficientStorage",$e[$e.LoopDetected=508]="LoopDetected",$e[$e.NotExtended=510]="NotExtended",$e[$e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",$e}(r||{});function f($e,lt){return{body:lt,headers:$e.headers,context:$e.context,observe:$e.observe,params:$e.params,reportProgress:$e.reportProgress,responseType:$e.responseType,withCredentials:$e.withCredentials,transferCache:$e.transferCache}}let k=(()=>{var $e;class lt{constructor(Mt){this.handler=Mt}request(Mt,kt,Zt={}){let qt;if(Mt instanceof l)qt=Mt;else{let wn,Kn;wn=Zt.headers instanceof w?Zt.headers:new w(Zt.headers),Zt.params&&(Kn=Zt.params instanceof W?Zt.params:new W({fromObject:Zt.params})),qt=new l(Mt,kt,void 0!==Zt.body?Zt.body:null,{headers:wn,context:Zt.context,params:Kn,reportProgress:Zt.reportProgress,responseType:Zt.responseType||"json",withCredentials:Zt.withCredentials,transferCache:Zt.transferCache})}const Qt=(0,p.of)(qt).pipe((0,D.H)(wn=>this.handler.handle(wn)));if(Mt instanceof l||"events"===Zt.observe)return Qt;const Tn=Qt.pipe((0,C.p)(wn=>wn instanceof y));switch(Zt.observe||"body"){case"body":switch(qt.responseType){case"arraybuffer":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&!(wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wn.body}));case"blob":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&!(wn.body instanceof Blob))throw new Error("Response is not a Blob.");return wn.body}));case"text":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&"string"!=typeof wn.body)throw new Error("Response is not a string.");return wn.body}));default:return Tn.pipe((0,_.T)(wn=>wn.body))}case"response":return Tn;default:throw new Error(`Unreachable: unhandled observe type ${Zt.observe}}`)}}delete(Mt,kt={}){return this.request("DELETE",Mt,kt)}get(Mt,kt={}){return this.request("GET",Mt,kt)}head(Mt,kt={}){return this.request("HEAD",Mt,kt)}jsonp(Mt,kt){return this.request("JSONP",Mt,{params:(new W).append(kt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Mt,kt={}){return this.request("OPTIONS",Mt,kt)}patch(Mt,kt,Zt={}){return this.request("PATCH",Mt,f(Zt,kt))}post(Mt,kt,Zt={}){return this.request("POST",Mt,f(Zt,kt))}put(Mt,kt,Zt={}){return this.request("PUT",Mt,f(Zt,kt))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(T))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();function ae($e,lt){return lt($e)}function tt($e,lt){return(Tt,Mt)=>lt.intercept(Tt,{handle:kt=>$e(kt,Mt)})}const pe=new S.nKC(""),Ie=new S.nKC(""),_e=new S.nKC(""),re=new S.nKC("");function ne(){let $e=null;return(lt,Tt)=>{var Mt;null===$e&&($e=(null!==(Mt=(0,S.WQX)(pe,{optional:!0}))&&void 0!==Mt?Mt:[]).reduceRight(tt,ae));const kt=(0,S.WQX)(S.TgB),Zt=kt.add();return $e(lt,Tt).pipe((0,F.j)(()=>kt.remove(Zt)))}}let xt=(()=>{var $e;class lt extends T{constructor(Mt,kt){super(),this.backend=Mt,this.injector=kt,this.chain=null,this.pendingTasks=(0,S.WQX)(S.TgB);const Zt=(0,S.WQX)(re,{optional:!0});this.backend=null!=Zt?Zt:Mt}handle(Mt){if(null===this.chain){const Zt=Array.from(new Set([...this.injector.get(Ie),...this.injector.get(_e,[])]));this.chain=Zt.reduceRight((qt,Qt)=>function ke($e,lt,Tt){return(Mt,kt)=>(0,S.N4e)(Tt,()=>lt(Mt,Zt=>$e(Zt,kt)))}(qt,Qt,this.injector),ae)}const kt=this.pendingTasks.add();return this.chain(Mt,Zt=>this.backend.handle(Zt)).pipe((0,F.j)(()=>this.pendingTasks.remove(kt)))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(A),S.KVO(S.uvJ))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();const bn=/^\)\]\}',?\n/;let wt=(()=>{var $e;class lt{constructor(Mt){this.xhrFactory=Mt}handle(Mt){if("JSONP"===Mt.method)throw new S.wOt(-2800,!1);const kt=this.xhrFactory;return(kt.\u0275loadImpl?(0,c.H)(kt.\u0275loadImpl()):(0,p.of)(null)).pipe((0,B.n)(()=>new O.c(qt=>{const Qt=kt.build();if(Qt.open(Mt.method,Mt.urlWithParams),Mt.withCredentials&&(Qt.withCredentials=!0),Mt.headers.forEach((Ct,Gt)=>Qt.setRequestHeader(Ct,Gt.join(","))),Mt.headers.has("Accept")||Qt.setRequestHeader("Accept","application/json, text/plain, */*"),!Mt.headers.has("Content-Type")){const Ct=Mt.detectContentTypeHeader();null!==Ct&&Qt.setRequestHeader("Content-Type",Ct)}if(Mt.responseType){const Ct=Mt.responseType.toLowerCase();Qt.responseType="json"!==Ct?Ct:"text"}const Tn=Mt.serializeBody();let wn=null;const Kn=()=>{if(null!==wn)return wn;const Ct=Qt.statusText||"OK",Gt=new w(Qt.getAllResponseHeaders()),vn=function bt($e){return"responseURL"in $e&&$e.responseURL?$e.responseURL:/^X-Request-URL:/m.test($e.getAllResponseHeaders())?$e.getResponseHeader("X-Request-URL"):null}(Qt)||Mt.url;return wn=new v({headers:Gt,status:Qt.status,statusText:Ct,url:vn}),wn},fr=()=>{let{headers:Ct,status:Gt,statusText:vn,url:gt}=Kn(),zt=null;Gt!==r.NoContent&&(zt=typeof Qt.response>"u"?Qt.responseText:Qt.response),0===Gt&&(Gt=zt?r.Ok:0);let ye=Gt>=200&&Gt<300;if("json"===Mt.responseType&&"string"==typeof zt){const Ke=zt;zt=zt.replace(bn,"");try{zt=""!==zt?JSON.parse(zt):null}catch(dt){zt=Ke,ye&&(ye=!1,zt={error:dt,text:zt})}}ye?(qt.next(new y({body:zt,headers:Ct,status:Gt,statusText:vn,url:gt||void 0})),qt.complete()):qt.error(new d({error:zt,headers:Ct,status:Gt,statusText:vn,url:gt||void 0}))},Ge=Ct=>{const{url:Gt}=Kn(),vn=new d({error:Ct,status:Qt.status||0,statusText:Qt.statusText||"Unknown Error",url:Gt||void 0});qt.error(vn)};let et=!1;const Fe=Ct=>{et||(qt.next(Kn()),et=!0);let Gt={type:s.DownloadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Gt.total=Ct.total),"text"===Mt.responseType&&Qt.responseText&&(Gt.partialText=Qt.responseText),qt.next(Gt)},qe=Ct=>{let Gt={type:s.UploadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Gt.total=Ct.total),qt.next(Gt)};return Qt.addEventListener("load",fr),Qt.addEventListener("error",Ge),Qt.addEventListener("timeout",Ge),Qt.addEventListener("abort",Ge),Mt.reportProgress&&(Qt.addEventListener("progress",Fe),null!==Tn&&Qt.upload&&Qt.upload.addEventListener("progress",qe)),Qt.send(Tn),qt.next({type:s.Sent}),()=>{Qt.removeEventListener("error",Ge),Qt.removeEventListener("abort",Ge),Qt.removeEventListener("load",fr),Qt.removeEventListener("timeout",Ge),Mt.reportProgress&&(Qt.removeEventListener("progress",Fe),null!==Tn&&Qt.upload&&Qt.upload.removeEventListener("progress",qe)),Qt.readyState!==Qt.DONE&&Qt.abort()}})))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(m.N0))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();const Dn=new S.nKC(""),Lt=new S.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Nt=new S.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ot{}let zn=(()=>{var $e;class lt{constructor(Mt,kt,Zt){this.doc=Mt,this.platform=kt,this.cookieName=Zt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Mt=this.doc.cookie||"";return Mt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m._b)(Mt,this.cookieName),this.lastCookieString=Mt),this.lastToken}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(m.qQ),S.KVO(S.Agw),S.KVO(Lt))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();function Ut($e,lt){const Tt=$e.url.toLowerCase();if(!(0,S.WQX)(Dn)||"GET"===$e.method||"HEAD"===$e.method||Tt.startsWith("http://")||Tt.startsWith("https://"))return lt($e);const Mt=(0,S.WQX)(Ot).getToken(),kt=(0,S.WQX)(Nt);return null!=Mt&&!$e.headers.has(kt)&&($e=$e.clone({headers:$e.headers.set(kt,Mt)})),lt($e)}var Be=function($e){return $e[$e.Interceptors=0]="Interceptors",$e[$e.LegacyInterceptors=1]="LegacyInterceptors",$e[$e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",$e[$e.NoXsrfProtection=3]="NoXsrfProtection",$e[$e.JsonpSupport=4]="JsonpSupport",$e[$e.RequestsMadeViaParent=5]="RequestsMadeViaParent",$e[$e.Fetch=6]="Fetch",$e}(Be||{});function Ae($e,lt){return{\u0275kind:$e,\u0275providers:lt}}function Me(...$e){const lt=[k,wt,xt,{provide:T,useExisting:xt},{provide:A,useExisting:wt},{provide:Ie,useValue:Ut,multi:!0},{provide:Dn,useValue:!0},{provide:Ot,useClass:zn}];for(const Tt of $e)lt.push(...Tt.\u0275providers);return(0,S.EmA)(lt)}const je=new S.nKC("");let en=(()=>{var $e;class lt{}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)},$e.\u0275mod=S.$C({type:$e}),$e.\u0275inj=S.G2t({providers:[Me(Ae(Be.LegacyInterceptors,[{provide:je,useFactory:ne},{provide:Ie,useExisting:je,multi:!0}]))]}),lt})()},4438:(Ce,ee,E)=>{"use strict";E.d(ee,{iLQ:()=>vf,sZ2:()=>Lh,hnV:()=>Qg,Hbi:()=>MA,o8S:()=>Qo,BIS:()=>cy,gRc:()=>c1,Ql9:()=>QD,Ocv:()=>oA,Z63:()=>Un,aKT:()=>Za,uvJ:()=>fi,zcH:()=>So,bkB:()=>co,$GK:()=>nn,nKC:()=>kt,zZn:()=>Fi,_q3:()=>Af,MKu:()=>Mf,xe9:()=>gc,Co$:()=>Jx,Vns:()=>ys,SKi:()=>zr,Xx1:()=>Kr,Agw:()=>o0,PLl:()=>$h,sFG:()=>O9,_9s:()=>ax,czy:()=>Su,WPN:()=>ms,kdw:()=>_i,C4Q:()=>xl,NYb:()=>zD,giA:()=>Yg,RxE:()=>jg,c1b:()=>Xu,gXe:()=>ni,mal:()=>px,L39:()=>e3,a0P:()=>l3,Ol2:()=>md,w6W:()=>RC,oH4:()=>s1,SmG:()=>cA,Rfq:()=>Ut,WQX:()=>$n,QuC:()=>li,EmA:()=>Ro,fpN:()=>AA,HJs:()=>u3,N4e:()=>ro,O8t:()=>n3,H3F:()=>Hg,H8p:()=>No,KH2:()=>ba,TgB:()=>ra,wOt:()=>G,WHO:()=>Gg,e01:()=>Xg,lNU:()=>ne,h9k:()=>ip,$MX:()=>Mu,ZF7:()=>Ys,Kcf:()=>Iy,e5t:()=>Ry,UyX:()=>Fy,cWb:()=>Ty,osQ:()=>Py,H5H:()=>zd,Zy3:()=>ge,mq5:()=>tm,JZv:()=>bt,LfX:()=>kn,plB:()=>Go,jNT:()=>pf,zjR:()=>Zg,TL$:()=>ly,Tbb:()=>Wt,rcV:()=>Io,Vt3:()=>pd,Mj6:()=>gi,GFd:()=>Qx,OA$:()=>dr,Jv_:()=>pg,aNF:()=>xg,R7$:()=>Ip,BMQ:()=>Bd,ZvI:()=>Kv,AVh:()=>Rd,wni:()=>Hm,VBU:()=>Ba,FsC:()=>ns,jDH:()=>Mn,G2t:()=>Ln,$C:()=>ts,EJ8:()=>Co,rXU:()=>Js,nrm:()=>Ud,eu8:()=>Hd,k0s:()=>lc,j41:()=>ac,RV6:()=>Jv,xGo:()=>ah,KVO:()=>Dr,kS0:()=>du,QTQ:()=>Fp,bIt:()=>Gd,lsd:()=>Km,XpG:()=>Fm,nI1:()=>Mg,bMT:()=>wg,SdG:()=>Rm,NAR:()=>Pm,Y8G:()=>Fd,FS9:()=>Yd,lJ4:()=>mg,eq3:()=>gg,l_i:()=>Eg,mGM:()=>Wm,Njj:()=>Lf,tSv:()=>cp,eBV:()=>kf,npT:()=>op,f$h:()=>y0,B4B:()=>E0,n$t:()=>sp,muq:()=>Gm,DNE:()=>ia,EFF:()=>rg,JRh:()=>Qd,SpI:()=>hc,Lme:()=>Jd,DH7:()=>fg,mxI:()=>ef,R50:()=>qd,GBs:()=>zm}),E(467);let p=null,c=1;const D=Symbol("SIGNAL");function C(e){const t=p;return p=e,t}function w(e){if((!me(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==c)){if(!e.producerMustRecompute(e)&&!U(e))return e.dirty=!1,void(e.lastCleanEpoch=c);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=c}}function U(e){te(e);for(let t=0;t0}function te(e){var t,i,u;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(i=e.producerIndexOfThis)&&void 0!==i||(e.producerIndexOfThis=[]),null!==(u=e.producerLastReadVersion)&&void 0!==u||(e.producerLastReadVersion=[])}let v=null;var ke=E(1413),pe=E(8359),Ie=E(4412),_e=E(6354);const ne="https://g.co/ng/security#xss";class G extends Error{constructor(t,i){super(ge(t,i)),this.code=t}}function ge(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function ft(e){return{toString:e}.toString()}const At="__parameters__";function Ft(e,t,i){return ft(()=>{const u=function St(e){return function(...i){if(e){const u=e(...i);for(const x in u)this[x]=u[x]}}}(t);function x(...b){if(this instanceof x)return u.apply(this,b),this;const N=new x(...b);return H.annotation=N,H;function H(K,he,we){const Oe=K.hasOwnProperty(At)?K[At]:Object.defineProperty(K,At,{value:[]})[At];for(;Oe.length<=we;)Oe.push(null);return(Oe[we]=Oe[we]||[]).push(N),K}}return i&&(x.prototype=Object.create(i.prototype)),x.prototype.ngMetadataName=e,x.annotationCls=x,x})}const bt=globalThis;function Bt(e){for(let t in e)if(e[t]===Bt)return t;throw Error("Could not find renamed property on target object.")}function Lt(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function Wt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Wt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function Nt(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const zn=Bt({__forward_ref__:Bt});function Ut(e){return e.__forward_ref__=Ut,e.toString=function(){return Wt(this())},e}function He(e){return Be(e)?e():e}function Be(e){return"function"==typeof e&&e.hasOwnProperty(zn)&&e.__forward_ref__===Ut}function Mn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fn(e){return Gn(e,$e)||Gn(e,Tt)}function kn(e){return null!==Fn(e)}function Gn(e,t){return e.hasOwnProperty(t)?e[t]:null}function jn(e){return e&&(e.hasOwnProperty(lt)||e.hasOwnProperty(Mt))?e[lt]:null}const $e=Bt({\u0275prov:Bt}),lt=Bt({\u0275inj:Bt}),Tt=Bt({ngInjectableDef:Bt}),Mt=Bt({ngInjectorDef:Bt});class kt{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Mn({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function qe(e){return e&&!!e.\u0275providers}const Ct=Bt({\u0275cmp:Bt}),Gt=Bt({\u0275dir:Bt}),vn=Bt({\u0275pipe:Bt}),gt=Bt({\u0275mod:Bt}),zt=Bt({\u0275fac:Bt}),ye=Bt({__NG_ELEMENT_ID__:Bt}),Ke=Bt({__NG_ENV_ID__:Bt});function dt(e){return"string"==typeof e?e:null==e?"":String(e)}function cn(e,t){throw new G(-201,!1)}var nn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(nn||{});let _n;function Sn(){return _n}function Pn(e){const t=_n;return _n=e,t}function hr(e,t,i){const u=Fn(e);return u&&"root"==u.providedIn?void 0===u.value?u.value=u.factory():u.value:i&nn.Optional?null:void 0!==t?t:void cn()}const le={},Ye="__NG_DI_FLAG__",_t="ngTempTokenPath",pr=/\n/gm,qr="__source";let Wr;function jr(e){const t=Wr;return Wr=e,t}function Vi(e,t=nn.Default){if(void 0===Wr)throw new G(-203,!1);return null===Wr?hr(e,void 0,t):Wr.get(e,t&nn.Optional?null:void 0,t)}function Dr(e,t=nn.Default){return(Sn()||Vi)(He(e),t)}function $n(e,t=nn.Default){return Dr(e,mi(t))}function mi(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Oi(e){const t=[];for(let i=0;iArray.isArray(i)?si(i,t):t(i))}function Ni(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Re(e,t,i){let u=Te(e,t);return u>=0?e[1|u]=i:(u=~u,function qo(e,t,i,u){let x=e.length;if(x==t)e.push(i,u);else if(1===x)e.push(u,e[0]),e[0]=i;else{for(x--,e.push(e[x-1],e[x]);x>t;)e[x]=e[x-2],x--;e[t]=i,e[t+1]=u}}(e,u,t,i)),u}function Le(e,t){const i=Te(e,t);if(i>=0)return e[1|i]}function Te(e,t){return function Vt(e,t,i){let u=0,x=e.length>>i;for(;x!==u;){const b=u+(x-u>>1),N=e[b<t?x=b:u=b+1}return~(x<t){N=b-1;break}}}for(;b-1){let b;for(;++xb?"":x[we+1].toLowerCase(),2&u&&he!==Oe){if(Hr(u))return!1;N=!0}}}}else{if(!N&&!Hr(u)&&!Hr(K))return!1;if(N&&Hr(K))continue;N=!1,u=K|1&u}}return Hr(u)||N}function Hr(e){return!(1&e)}function Eo(e,t,i,u){if(null===t)return-1;let x=0;if(u||!i){let b=!1;for(;x-1)for(i++;i0?'="'+H+'"':"")+"]"}else 8&u?x+="."+N:4&u&&(x+=" "+N);else""!==x&&!Hr(N)&&(t+=_a(b,x),x=""),u=N,b=b||!Hr(u);i++}return""!==x&&(t+=_a(b,x)),t}function Ba(e){return ft(()=>{var t;const i=rs(e),u={...i,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Or.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ni.Emulated,styles:e.styles||fn,_:null,schemas:e.schemas||null,tView:null,id:""};is(u);const x=e.dependencies;return u.directiveDefs=Wi(x,!1),u.pipeDefs=Wi(x,!0),u.id=function Ta(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const x of i)t=Math.imul(31,t)+x.charCodeAt(0)|0;return t+=2147483648,"c"+t}(u),u})}function Xl(e){return er(e)||Nr(e)}function Sa(e){return null!==e}function ts(e){return ft(()=>({type:e.type,bootstrap:e.bootstrap||fn,declarations:e.declarations||fn,imports:e.imports||fn,exports:e.exports||fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ia(e,t){if(null==e)return dn;const i={};for(const x in e)if(e.hasOwnProperty(x)){const b=e[x];let N,H,K=gi.None;var u;Array.isArray(b)?(K=b[0],N=b[1],H=null!==(u=b[2])&&void 0!==u?u:N):(N=b,H=b),t?(i[N]=K!==gi.None?[x,K]:x,t[N]=H):i[N]=x}return i}function ns(e){return ft(()=>{const t=rs(e);return is(t),t})}function Co(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function er(e){return e[Ct]||null}function Nr(e){return e[Gt]||null}function Pr(e){return e[vn]||null}function li(e){const t=er(e)||Nr(e)||Pr(e);return null!==t&&t.standalone}function Gr(e,t){const i=e[gt]||null;if(!i&&!0===t)throw new Error(`Type ${Wt(e)} does not have '\u0275mod' property.`);return i}function rs(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||dn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ia(e.inputs,t),outputs:Ia(e.outputs),debugInfo:null}}function is(e){var t;null===(t=e.features)||void 0===t||t.forEach(i=>i(e))}function Wi(e,t){if(!e)return null;const i=t?Pr:Xl;return()=>("function"==typeof e?e():e).map(u=>i(u)).filter(Sa)}function Ro(e){return{\u0275providers:e}}function Bs(...e){return{\u0275providers:Oo(0,e),\u0275fromNgModule:!0}}function Oo(e,...t){const i=[],u=new Set;let x;const b=N=>{i.push(N)};return si(t,N=>{const H=N;eo(H,b,[],u)&&(x||(x=[]),x.push(H))}),void 0!==x&&Ss(x,b),i}function Ss(e,t){for(let i=0;i{t(b,u)})}}function eo(e,t,i,u){if(!(e=He(e)))return!1;let x=null,b=jn(e);const N=!b&&er(e);if(b||N){if(N&&!N.standalone)return!1;x=e}else{const K=e.ngModule;if(b=jn(K),!b)return!1;x=K}const H=u.has(x);if(N){if(H)return!1;if(u.add(x),N.dependencies){const K="function"==typeof N.dependencies?N.dependencies():N.dependencies;for(const he of K)eo(he,t,i,u)}}else{if(!b)return!1;{if(null!=b.imports&&!H){let he;u.add(x);try{si(b.imports,we=>{eo(we,t,i,u)&&(he||(he=[]),he.push(we))})}finally{}void 0!==he&&Ss(he,t)}if(!H){const he=ti(x)||(()=>new x);t({provide:x,useFactory:he,deps:fn},x),t({provide:Vn,useValue:x,multi:!0},x),t({provide:Un,useValue:()=>Dr(x),multi:!0},x)}const K=b.providers;if(null!=K&&!H){const he=e;Is(K,we=>{t(we,he)})}}}return x!==e&&void 0!==e.providers}function Is(e,t){for(let i of e)qe(i)&&(i=i.\u0275providers),Array.isArray(i)?Is(i,t):t(i)}const Zl=Bt({provide:String,useValue:Bt});function Ts(e){return null!==e&&"object"==typeof e&&Zl in e}function Ki(e){return"function"==typeof e}const No=new kt(""),Fs={},Oa={};let Ps;function ko(){return void 0===Ps&&(Ps=new lr),Ps}class fi{}class to extends fi{get destroyed(){return this._destroyed}constructor(t,i,u,x){super(),this.parent=i,this.source=u,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Lo(t,N=>this.processProvider(N)),this.records.set(mr,no(void 0,this)),x.has("environment")&&this.records.set(fi,no(void 0,this));const b=this.records.get(No);null!=b&&"string"==typeof b.value&&this.scopes.add(b.value),this.injectorDefTypes=new Set(this.get(Vn,fn,nn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=C(null);try{for(const u of this._ngOnDestroyHooks)u.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const u of i)u()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=jr(this),u=Pn(void 0);try{return t()}finally{jr(i),Pn(u)}}get(t,i=le,u=nn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ke))return t[Ke](this);u=mi(u);const b=jr(this),N=Pn(void 0);try{if(!(u&nn.SkipSelf)){let K=this.records.get(t);if(void 0===K){const he=function Do(e){return"function"==typeof e||"object"==typeof e&&e instanceof kt}(t)&&Fn(t);K=he&&this.injectableDefInScope(he)?no(Rs(t),Fs):null,this.records.set(t,K)}if(null!=K)return this.hydrate(t,K)}return(u&nn.Self?ko():this.parent).get(t,i=u&nn.Optional&&i===le?null:i)}catch(H){if("NullInjectorError"===H.name){if((H[_t]=H[_t]||[]).unshift(Wt(t)),b)throw H;return function ji(e,t,i,u){const x=e[_t];throw t[qr]&&x.unshift(t[qr]),e.message=function Mi(e,t,i,u=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let x=Wt(t);if(Array.isArray(t))x=t.map(Wt).join(" -> ");else if("object"==typeof t){let b=[];for(let N in t)if(t.hasOwnProperty(N)){let H=t[N];b.push(N+":"+("string"==typeof H?JSON.stringify(H):Wt(H)))}x=`{${b.join(", ")}}`}return`${i}${u?"("+u+")":""}[${x}]: ${e.replace(pr,"\n ")}`}("\n"+e.message,x,i,u),e.ngTokenPath=x,e[_t]=null,e}(H,t,"R3InjectorError",this.source)}throw H}finally{Pn(N),jr(b)}}resolveInjectorInitializers(){const t=C(null),i=jr(this),u=Pn(void 0);try{const b=this.get(Un,fn,nn.Self);for(const N of b)N()}finally{jr(i),Pn(u),C(t)}}toString(){const t=[],i=this.records;for(const u of i.keys())t.push(Wt(u));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(t){let i=Ki(t=He(t))?t:He(t&&t.provide);const u=function Jl(e){return Ts(e)?no(void 0,e.useValue):no(os(e),Fs)}(t);if(!Ki(t)&&!0===t.multi){let x=this.records.get(i);x||(x=no(void 0,Fs,!0),x.factory=()=>Oi(x.multi),this.records.set(i,x)),i=t,x.multi.push(t)}this.records.set(i,u)}hydrate(t,i){const u=C(null);try{return i.value===Fs&&(i.value=Oa,i.value=i.factory()),"object"==typeof i.value&&i.value&&function bo(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{C(u)}}injectableDefInScope(t){if(!t.providedIn)return!1;const i=He(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Rs(e){const t=Fn(e),i=null!==t?t.factory:ti(e);if(null!==i)return i;if(e instanceof kt)throw new G(204,!1);if(e instanceof Function)return function Ql(e){if(e.length>0)throw new G(204,!1);const i=function Xn(e){return e&&(e[$e]||e[Tt])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new G(204,!1)}function os(e,t,i){let u;if(Ki(e)){const x=He(e);return ti(x)||Rs(x)}if(Ts(e))u=()=>He(e.useValue);else if(function Pa(e){return!(!e||!e.useFactory)}(e))u=()=>e.useFactory(...Oi(e.deps||[]));else if(function Fa(e){return!(!e||!e.useExisting)}(e))u=()=>Dr(He(e.useExisting));else{const x=He(e&&(e.useClass||e.provide));if(!function ql(e){return!!e.deps}(e))return ti(x)||Rs(x);u=()=>new x(...Oi(e.deps))}return u}function no(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Lo(e,t){for(const i of e)Array.isArray(i)?Lo(i,t):i&&qe(i)?Lo(i.\u0275providers,t):t(i)}function ro(e,t){e instanceof to&&e.assertNotDestroyed();const u=jr(e),x=Pn(void 0);try{return t()}finally{jr(u),Pn(x)}}function Na(){return void 0!==Sn()||null!=function ei(){return Wr}()}const xr=0,yn=1,Rn=2,ir=3,Lr=4,Ar=5,Sr=6,ki=7,Cr=8,Rr=9,Si=10,Qn=11,ss=12,Os=13,Ao=14,Tr=15,Uo=16,ri=17,Li=18,Ns=19,_c=20,Mo=21,Vo=22,io=23,Jn=25,ka=1,Gi=7,jo=9,kr=10;var eu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(eu||{});function ii(e){return Array.isArray(e)&&"object"==typeof e[ka]}function Jr(e){return Array.isArray(e)&&!0===e[ka]}function La(e){return!!(4&e.flags)}function Ho(e){return e.componentOffset>-1}function us(e){return!(1&~e.flags)}function Ii(e){return!!e.template}function $a(e){return!!(512&e[Rn])}class qn{constructor(t,i,u){this.previousValue=t,this.currentValue=i,this.firstChange=u}isFirstChange(){return this.firstChange}}function Mr(e,t,i,u){null!==t?t.applyValueToInputSignal(t,u):e[i]=u}function dr(){return Xr}function Xr(e){return e.type.prototype.ngOnChanges&&(e.setInput=cs),wo}function wo(){const e=Wo(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===dn)e.previous=t;else for(let u in t)i[u]=t[u];e.current=null,this.ngOnChanges(t)}}function cs(e,t,i,u,x){const b=this.declaredInputs[u],N=Wo(e)||function ds(e,t){return e[zo]=t}(e,{previous:dn,current:null}),H=N.current||(N.current={}),K=N.previous,he=K[b];H[b]=new qn(he&&he.currentValue,i,K===dn),Mr(e,t,x,i)}dr.ngInherit=!0;const zo="__ngSimpleChanges__";function Wo(e){return e[zo]||null}const oo=function(e,t,i){};let Ff=!1;function br(e){for(;Array.isArray(e);)e=e[xr];return e}function ja(e,t){return br(t[e])}function hi(e,t){return br(t[e.index])}function Ha(e,t){return e.data[t]}function Ti(e,t){const i=t[e];return ii(i)?i:i[xr]}function Fc(e){return!(128&~e[Rn])}function so(e,t){return null==t?null:e[t]}function Pf(e){e[ri]=0}function Q1(e){1024&e[Rn]||(e[Rn]|=1024,Fc(e)&&za(e))}function Pc(e){var t;return!!(9216&e[Rn]||null!==(t=e[io])&&void 0!==t&&t.dirty)}function Rc(e){var t;if(null===(t=e[Si].changeDetectionScheduler)||void 0===t||t.notify(1),Pc(e))za(e);else if(64&e[Rn])if(function G1(){return Ff}())e[Rn]|=1024,za(e);else{var i;null===(i=e[Si].changeDetectionScheduler)||void 0===i||i.notify()}}function za(e){var t;null===(t=e[Si].changeDetectionScheduler)||void 0===t||t.notify();let i=hs(e);for(;null!==i&&!(8192&i[Rn])&&(i[Rn]|=8192,Fc(i));)i=hs(i)}function nu(e,t){if(!(256&~e[Rn]))throw new G(911,!1);null===e[Mo]&&(e[Mo]=[]),e[Mo].push(t)}function hs(e){const t=e[ir];return Jr(t)?t[ir]:t}const tr={lFrame:Wf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Nf(){return tr.bindingsEnabled}function $s(){return null!==tr.skipHydrationRootTNode}function sn(){return tr.lFrame.lView}function ur(){return tr.lFrame.tView}function kf(e){return tr.lFrame.contextLView=e,e[Cr]}function Lf(e){return tr.lFrame.contextLView=null,e}function yr(){let e=$f();for(;null!==e&&64===e.type;)e=e.parent;return e}function $f(){return tr.lFrame.currentTNode}function ao(e,t){const i=tr.lFrame;i.currentTNode=e,i.isParent=t}function Nc(){return tr.lFrame.isParent}function kc(){tr.lFrame.isParent=!1}function pi(){const e=tr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xi(){return tr.lFrame.bindingIndex++}function Bo(e){const t=tr.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function lE(e,t){const i=tr.lFrame;i.bindingIndex=i.bindingRootIndex=e,Lc(t)}function Lc(e){tr.lFrame.currentDirectiveIndex=e}function Uc(){return tr.lFrame.currentQueryIndex}function ru(e){tr.lFrame.currentQueryIndex=e}function cE(e){const t=e[yn];return 2===t.type?t.declTNode:1===t.type?e[Ar]:null}function Hf(e,t,i){if(i&nn.SkipSelf){let x=t,b=e;for(;!(x=x.parent,null!==x||i&nn.Host||(x=cE(b),null===x||(b=b[Ao],10&x.type))););if(null===x)return!1;t=x,e=b}const u=tr.lFrame=zf();return u.currentTNode=t,u.lView=e,!0}function Vc(e){const t=zf(),i=e[yn];tr.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function zf(){const e=tr.lFrame,t=null===e?null:e.child;return null===t?Wf(e):t}function Wf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Kf(){const e=tr.lFrame;return tr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gf=Kf;function jc(){const e=Kf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ui(){return tr.lFrame.selectedIndex}function ps(e){tr.lFrame.selectedIndex=e}function Br(){const e=tr.lFrame;return Ha(e.tView,e.selectedIndex)}let Yf=!0;function Ka(){return Yf}function lo(e){Yf=e}function iu(e,t){for(let he=t.directiveStart,we=t.directiveEnd;he=u)break}else t[K]<0&&(e[ri]+=65536),(H>14>16&&(3&e[Rn])===t&&(e[Rn]+=16384,Qf(H,b)):Qf(H,b)}const Us=-1;class Ga{constructor(t,i,u){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=u}}function Wc(e){return e!==Us}function Xa(e){return 32767&e}function Ya(e,t){let i=function bE(e){return e>>16}(e),u=t;for(;i>0;)u=u[Ao],i--;return u}let Kc=!0;function au(e){const t=Kc;return Kc=e,t}const Jf=255,qf=5;let DE=0;const uo={};function lu(e,t){const i=eh(e,t);if(-1!==i)return i;const u=t[yn];u.firstCreatePass&&(e.injectorIndex=t.length,Gc(u.data,e),Gc(t,null),Gc(u.blueprint,null));const x=uu(e,t),b=e.injectorIndex;if(Wc(x)){const N=Xa(x),H=Ya(x,t),K=H[yn].data;for(let he=0;he<8;he++)t[b+he]=H[N+he]|K[N+he]}return t[b+8]=x,b}function Gc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function eh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function uu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,u=null,x=t;for(;null!==x;){if(u=lh(x),null===u)return Us;if(i++,x=x[Ao],-1!==u.injectorIndex)return u.injectorIndex|i<<16}return Us}function Xc(e,t,i){!function AE(e,t,i){let u;"string"==typeof i?u=i.charCodeAt(0)||0:i.hasOwnProperty(ye)&&(u=i[ye]),null==u&&(u=i[ye]=DE++);const x=u&Jf;t.data[e+(x>>qf)]|=1<=0?t&Jf:BE:t}(i);if("function"==typeof b){if(!Hf(t,e,u))return u&nn.Host?th(x,0,u):nh(t,i,u,x);try{let N;if(N=b(u),null!=N||u&nn.Optional)return N;cn()}finally{Gf()}}else if("number"==typeof b){let N=null,H=eh(e,t),K=Us,he=u&nn.Host?t[Tr][Ar]:null;for((-1===H||u&nn.SkipSelf)&&(K=-1===H?uu(e,t):t[H+8],K!==Us&&sh(u,!1)?(N=t[yn],H=Xa(K),t=Ya(K,t)):H=-1);-1!==H;){const we=t[yn];if(oh(b,H,we.data)){const Oe=wE(H,t,i,N,u,he);if(Oe!==uo)return Oe}K=t[H+8],K!==Us&&sh(u,t[yn].data[H+8]===he)&&oh(b,H,t)?(N=we,H=Xa(K),t=Ya(K,t)):H=-1}}return x}function wE(e,t,i,u,x,b){const N=t[yn],H=N.data[e+8],we=cu(H,N,i,null==u?Ho(H)&&Kc:u!=N&&!!(3&H.type),x&nn.Host&&b===H);return null!==we?xs(t,N,we,H):uo}function cu(e,t,i,u,x){const b=e.providerIndexes,N=t.data,H=1048575&b,K=e.directiveStart,we=b>>20,ct=x?H+we:e.directiveEnd;for(let Dt=u?H:H+we;Dt=K&&jt.type===i)return Dt}if(x){const Dt=N[K];if(Dt&&Ii(Dt)&&Dt.type===i)return K}return null}function xs(e,t,i,u){let x=e[i];const b=t.data;if(function gE(e){return e instanceof Ga}(x)){const N=x;N.resolving&&function an(e,t){throw t&&t.join(" > "),new G(-200,e)}(function pt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():dt(e)}(b[i]));const H=au(N.canSeeViewProviders);N.resolving=!0;const he=N.injectImpl?Pn(N.injectImpl):null;Hf(e,u,nn.Default);try{x=e[i]=N.factory(void 0,b,e,u),t.firstCreatePass&&i>=u.directiveStart&&function vE(e,t,i){const{ngOnChanges:u,ngOnInit:x,ngDoCheck:b}=t.type.prototype;if(u){var N,H;const Oe=Xr(t);(null!==(N=i.preOrderHooks)&&void 0!==N?N:i.preOrderHooks=[]).push(e,Oe),(null!==(H=i.preOrderCheckHooks)&&void 0!==H?H:i.preOrderCheckHooks=[]).push(e,Oe)}var K,he,we;x&&(null!==(K=i.preOrderHooks)&&void 0!==K?K:i.preOrderHooks=[]).push(0-e,x),b&&((null!==(he=i.preOrderHooks)&&void 0!==he?he:i.preOrderHooks=[]).push(e,b),(null!==(we=i.preOrderCheckHooks)&&void 0!==we?we:i.preOrderCheckHooks=[]).push(e,b))}(i,b[i],t)}finally{null!==he&&Pn(he),au(H),N.resolving=!1,Gf()}}return x}function oh(e,t,i){return!!(i[t+(e>>qf)]&1<{const t=e.prototype.constructor,i=t[zt]||Yc(t),u=Object.prototype;let x=Object.getPrototypeOf(e.prototype).constructor;for(;x&&x!==u;){const b=x[zt]||Yc(x);if(b&&b!==i)return b;x=Object.getPrototypeOf(x)}return b=>new b})}function Yc(e){return Be(e)?()=>{const t=Yc(He(e));return t&&t()}:ti(e)}function lh(e){const t=e[yn],i=t.type;return 2===i?t.declTNode:1===i?e[Ar]:null}function du(e){return function ME(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const u=i.length;let x=0;for(;x{var e;class t{static create(u,x){if(Array.isArray(u))return hh({name:""},x,u,"");{var b;const N=null!==(b=u.name)&&void 0!==b?b:"";return hh({name:N},u.parent,u.providers,N)}}}return(e=t).THROW_IF_NOT_FOUND=le,e.NULL=new lr,e.\u0275prov=Mn({token:e,providedIn:"any",factory:()=>Dr(mr)}),e.__NG_ELEMENT_ID__=-1,t})();function Qc(e){return e.ngOriginalError}class So{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&Qc(t);for(;i&&Qc(i);)i=Qc(i);return i||null}}const vh=new kt("",{providedIn:"root",factory:()=>$n(So).handleError.bind(void 0)});let Hs=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=LE,e.__NG_ENV_ID__=i=>i,t})();class kE extends Hs{constructor(t){super(),this._lView=t}onDestroy(t){return nu(this._lView,t),()=>function Oc(e,t){if(null===e[Mo])return;const i=e[Mo].indexOf(t);-1!==i&&e[Mo].splice(i,1)}(this._lView,t)}}function LE(){return new kE(sn())}function $E(){return zs(yr(),sn())}function zs(e,t){return new Za(hi(e,t))}let Za=(()=>{class t{constructor(u){this.nativeElement=u}}return t.__NG_ELEMENT_ID__=$E,t})();function gh(e){return e instanceof Za?e.nativeElement:e}function Jc(e){return t=>{setTimeout(e,void 0,t)}}const co=class UE extends ke.B{constructor(t=!1){var i;super(),this.destroyRef=void 0,this.__isAsync=t,Na()&&(this.destroyRef=null!==(i=$n(Hs,{optional:!0}))&&void 0!==i?i:void 0)}emit(t){const i=C(null);try{super.next(t)}finally{C(i)}}subscribe(t,i,u){let x=t,b=i||(()=>null),N=u;if(t&&"object"==typeof t){var H,K,he;const Oe=t;x=null===(H=Oe.next)||void 0===H?void 0:H.bind(Oe),b=null===(K=Oe.error)||void 0===K?void 0:K.bind(Oe),N=null===(he=Oe.complete)||void 0===he?void 0:he.bind(Oe)}this.__isAsync&&(b=Jc(b),x&&(x=Jc(x)),N&&(N=Jc(N)));const we=super.subscribe({next:x,error:b,complete:N});return t instanceof pe.yU&&t.add(we),we}};function VE(){return this._results[Symbol.iterator]()}class qc{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new co}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const i=qc.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=VE)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){this.dirty=!1;const u=function Ir(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function mo(e,t,i){if(e.length!==t.length)return!1;for(let u=0;uuy}),uy="ng",$h=new kt(""),o0=new kt("",{providedIn:"platform",factory:()=>"unknown"}),cy=new kt("",{providedIn:"root",factory:()=>{var e;return(null===(e=Ko().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Uh=()=>null;function c0(e,t,i=!1){return Uh(e,t,i)}const Wh=new kt("",{providedIn:"root",factory:()=>!1});let Du,Au;function Xs(e){var t;return(null===(t=function p0(){if(void 0===Du&&(Du=null,bt.trustedTypes))try{Du=bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Du}())||void 0===t?void 0:t.createHTML(e))||e}function x0(){if(void 0===Au&&(Au=null,bt.trustedTypes))try{Au=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Au}function Gh(e){var t;return(null===(t=x0())||void 0===t?void 0:t.createHTML(e))||e}function Yh(e){var t;return(null===(t=x0())||void 0===t?void 0:t.createScriptURL(e))||e}class vs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class Ay extends vs{getTypeName(){return"HTML"}}class My extends vs{getTypeName(){return"Style"}}class wy extends vs{getTypeName(){return"Script"}}class _y extends vs{getTypeName(){return"URL"}}class By extends vs{getTypeName(){return"ResourceURL"}}function Io(e){return e instanceof vs?e.changingThisBreaksApplicationSecurity:e}function Ys(e,t){const i=function Sy(e){return e instanceof vs&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${ne})`)}return i===t}function Iy(e){return new Ay(e)}function Ty(e){return new My(e)}function Fy(e){return new wy(e)}function Py(e){return new _y(e)}function Ry(e){return new By(e)}class Oy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(Xs(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class Ny{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=Xs(t),i}}const Ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mu(e){return(e=String(e)).match(Ly)?e:"unsafe:"+e}function To(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function il(...e){const t={};for(const i of e)for(const u in i)i.hasOwnProperty(u)&&(t[u]=!0);return t}const Qh=To("area,br,col,hr,img,wbr"),Jh=To("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qh=To("rp,rt"),v0=il(Qh,il(Jh,To("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")),il(qh,To("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")),il(qh,Jh)),m0=To("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ep=il(m0,To("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"),To("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")),$y=To("script,style,template");class Uy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,u=!0,x=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?u=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,u&&i.firstChild)x.push(i),i=Hy(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let b=jy(i);if(b){i=b;break}i=x.pop()}return this.buf.join("")}startElement(t){const i=tp(t).toLowerCase();if(!v0.hasOwnProperty(i))return this.sanitizedSomething=!0,!$y.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const u=t.attributes;for(let x=0;x"),!0}endElement(t){const i=tp(t).toLowerCase();v0.hasOwnProperty(i)&&!Qh.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(rp(t))}}function jy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw np(t);return t}function Hy(e){const t=e.firstChild;if(t&&function Vy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw np(t);return t}function tp(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function np(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wy=/([^\#-~ |!])/g;function rp(e){return e.replace(/&/g,"&").replace(zy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Wy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wu;function ip(e,t){let i=null;try{wu=wu||function Zh(e){const t=new Ny(e);return function ky(){try{return!!(new window.DOMParser).parseFromString(Xs(""),"text/html")}catch{return!1}}()?new Oy(t):t}(e);let u=t?String(t):"";i=wu.getInertBodyElement(u);let x=5,b=u;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,u=b,b=i.innerHTML,i=wu.getInertBodyElement(u)}while(u!==b);return Xs((new Uy).sanitizeChildren(g0(i)||i))}finally{if(i){const u=g0(i)||i;for(;u.firstChild;)u.removeChild(u.firstChild)}}}function g0(e){return"content"in e&&function Ky(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ms=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ms||{});function op(e){const t=ol();return t?Gh(t.sanitize(ms.HTML,e)||""):Ys(e,"HTML")?Gh(Io(e)):ip(Ko(),dt(e))}function E0(e){const t=ol();return t?t.sanitize(ms.URL,e)||"":Ys(e,"URL")?Io(e):Mu(dt(e))}function y0(e){const t=ol();if(t)return Yh(t.sanitize(ms.RESOURCE_URL,e)||"");if(Ys(e,"ResourceURL"))return Yh(Io(e));throw new G(904,!1)}function sp(e,t,i){return function Qy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?y0:E0}(t,i)(e)}function ol(){const e=sn();return e&&e[Si].sanitizer}const Jy=/^>|^->||--!>|)/g,e8="\u200b$1\u200b";function cp(e){return e.ownerDocument.defaultView}function Pi(e){return e instanceof Function?e():e}var Su=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Su||{});let A0;function M0(e,t){return A0(e,t)}function Qs(e,t,i,u,x){if(null!=u){let b,N=!1;Jr(u)?b=u:ii(u)&&(N=!0,u=u[xr]);const H=br(u);0===e&&null!==i?null==x?Ep(t,i,H):gs(t,i,H,x||null,!0):1===e&&null!==i?gs(t,i,H,x||null,!0):2===e?function ll(e,t,i){const u=Fu(e,t);u&&function g8(e,t,i,u){e.removeChild(t,i,u)}(e,u,t,i)}(t,H,N):3===e&&t.destroyNode(H),null!=b&&function C8(e,t,i,u,x){const b=i[Gi];b!==br(i)&&Qs(t,e,u,b,x);for(let H=kr;Ht.replace(qy,e8))}(t))}function Iu(e,t,i){return e.createElement(t,i)}function vp(e,t){var i;null===(i=t[Si].changeDetectionScheduler)||void 0===i||i.notify(1),Ru(e,t,t[Qn],2,null,null)}function mp(e,t){const i=e[jo],u=i.indexOf(t);i.splice(u,1)}function sl(e,t){if(e.length<=kr)return;const i=kr+t,u=e[i];if(u){const x=u[Uo];null!==x&&x!==e&&mp(x,u),t>0&&(e[i-1][Lr]=u[Lr]);const b=Bi(e,kr+t);!function d8(e,t){vp(e,t),t[xr]=null,t[Ar]=null}(u[yn],u);const N=b[Li];null!==N&&N.detachView(b[yn]),u[ir]=null,u[Lr]=null,u[Rn]&=-129}return u}function Tu(e,t){if(!(256&t[Rn])){const i=t[Qn];i.destroyNode&&Ru(e,t,i,3,null,null),function h8(e){let t=e[ss];if(!t)return B0(e[yn],e);for(;t;){let i=null;if(ii(t))i=t[ss];else{const u=t[kr];u&&(i=u)}if(!i){for(;t&&!t[Lr]&&t!==e;)ii(t)&&B0(t[yn],t),t=t[ir];null===t&&(t=e),ii(t)&&B0(t[yn],t),i=t&&t[Lr]}t=i}}(t)}}function B0(e,t){if(256&t[Rn])return;const i=C(null);try{t[Rn]&=-129,t[Rn]|=256,t[io]&&function j(e){if(te(e),me(e))for(let t=0;t=0?u[N]():u[-N].unsubscribe(),b+=2}else i[b].call(u[i[b+1]]);null!==u&&(t[ki]=null);const x=t[Mo];if(null!==x){t[Mo]=null;for(let b=0;b-1){const{encapsulation:b}=e.data[u.directiveStart+x];if(b===ni.None||b===ni.Emulated)return null}return hi(u,i)}}(e,t.parent,i)}function gs(e,t,i,u,x){e.insertBefore(t,i,u,x)}function Ep(e,t,i){e.appendChild(t,i)}function yp(e,t,i,u,x){null!==u?gs(e,t,i,u,x):Ep(e,t,i)}function Fu(e,t){return e.parentNode(t)}function Cp(e,t,i){return Dp(e,t,i)}let I0,Dp=function bp(e,t,i){return 40&e.type?hi(e,i):null};function Pu(e,t,i,u){const x=S0(e,u,t),b=t[Qn],H=Cp(u.parent||t[Ar],u,t);if(null!=x)if(Array.isArray(i))for(let K=0;KJn&&Tp(e,t,Jn,!1),oo(N?2:0,x),i(u,x)}finally{ps(b),oo(N?3:1,x)}}function R0(e,t,i){if(La(t)){const u=C(null);try{const b=t.directiveEnd;for(let N=t.directiveStart;Nnull;function kp(e,t,i,u,x){for(let N in t){var b;if(!t.hasOwnProperty(N))continue;const H=t[N];if(void 0===H)continue;null!==(b=u)&&void 0!==b||(u={});let K,he=gi.None;Array.isArray(H)?(K=H[0],he=H[1]):K=H;let we=N;if(null!==x){if(!x.hasOwnProperty(N))continue;we=x[N]}0===e?Lp(u,i,we,K,he):Lp(u,i,we,K)}return u}function Lp(e,t,i,u,x){let b;e.hasOwnProperty(i)?(b=e[i]).push(t,u):b=e[i]=[t,u],void 0!==x&&b.push(x)}function Ci(e,t,i,u,x,b,N,H){const K=hi(t,i);let we,he=t.inputs;!H&&null!=he&&(we=he[u])?(j0(e,i,we,u,x),Ho(t)&&function R8(e,t){const i=Ti(t,e);16&i[Rn]||(i[Rn]|=64)}(i,t.index)):3&t.type&&(u=function P8(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(u),x=null!=N?N(x,t.value||"",u):x,b.setProperty(K,u,x))}function L0(e,t,i,u){if(Nf()){const x=null===u?null:{"":-1},b=function U8(e,t){const i=e.directiveRegistry;let u=null,x=null;if(i)for(let N=0;N0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(N)!=H&&N.push(H),N.push(i,u,b)}}(e,t,u,ul(e,i,x.hostVars,rr),x)}function fo(e,t,i,u,x,b){const N=hi(e,t);!function U0(e,t,i,u,x,b,N){if(null==b)e.removeAttribute(t,x,i);else{const H=null==N?dt(b):N(b,u||"",x);e.setAttribute(t,x,H,i)}}(t[Qn],N,b,e.value,i,u,x)}function K8(e,t,i,u,x,b){const N=b[t];if(null!==N)for(let H=0;H0&&(i[x-1][Lr]=t),u!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{za(e.lView)},consumerOnSignalRead(){this.lView[io]=this}},Yp=100;function Lu(e,t=!0,i=0){const u=e[Si],x=u.rendererFactory;var N;null===(N=x.begin)||void 0===N||N.call(x);try{!function t9(e,t){W0(e,t);let i=0;for(;Pc(e);){if(i===Yp)throw new G(103,!1);i++,W0(e,1)}}(e,i)}catch(he){throw t&&ku(e,he),he}finally{var H,K;null===(H=x.end)||void 0===H||H.call(x),null===(K=u.inlineEffectRunner)||void 0===K||K.flush()}}function n9(e,t,i,u){var x;const b=t[Rn];if(!(256&~b))return;null===(x=t[Si].inlineEffectRunner)||void 0===x||x.flush(),Vc(t);let H=null,K=null;(function r9(e){return 2!==e.type})(e)&&(K=function Q8(e){var t;return null!==(t=e[io])&&void 0!==t?t:function J8(e){var t;const i=null!==(t=Xp.pop())&&void 0!==t?t:Object.create(e9);return i.lView=e,i}(e)}(t),H=function M(e){return e&&(e.nextProducerIndex=0),C(e)}(K));try{Pf(t),function Vf(e){return tr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&Rp(e,t,i,2,u);const he=!(3&~b);if(he){const ct=e.preOrderCheckHooks;null!==ct&&ou(t,ct,null)}else{const ct=e.preOrderHooks;null!==ct&&su(t,ct,0,null),Hc(t,0)}if(function i9(e){for(let t=Bh(e);null!==t;t=Sh(t)){if(!(t[Rn]&eu.HasTransplantedViews))continue;const i=t[jo];for(let u=0;ue.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(K,H),function q8(e){e.lView[io]!==e&&(e.lView=null,Xp.push(e))}(K)),jc()}}function Zp(e,t){for(let i=Bh(e);null!==i;i=Sh(i))for(let u=kr;u-1&&(sl(t,u),Bi(i,u))}this._attachedToViewContainer=!1}Tu(this._lView[yn],this._lView)}onDestroy(t){nu(this._lView,t)}markForCheck(){hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Rn]&=-129}reattach(){Rc(this._lView),this._lView[Rn]|=128}detectChanges(){this._lView[Rn]|=1024,Lu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,vp(this._lView[yn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=t,Rc(this._lView)}}let xl=(()=>{class t{}return t.__NG_ELEMENT_ID__=l9,t})();const s9=xl,a9=class extends s9{constructor(t,i,u){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=u}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,u){const x=function cl(e,t,i,u){const x=C(null);try{var b,N,H;const K=t.tView,Oe=Ou(e,K,i,4096&e[Rn]?4096:16,null,t,null,null,null!==(b=null==u?void 0:u.injector)&&void 0!==b?b:null,null!==(N=null==u?void 0:u.embeddedViewInjector)&&void 0!==N?N:null,null!==(H=null==u?void 0:u.dehydratedView)&&void 0!==H?H:null);Oe[Uo]=e[t.index];const Dt=e[Li];return null!==Dt&&(Oe[Li]=Dt.createEmbeddedView(K)),H0(K,Oe,i),Oe}finally{C(x)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:i,dehydratedView:u});return new pl(x)}};function l9(){return $u(yr(),sn())}function $u(e,t){return 4&e.type?new a9(t,e,zs(e,t)):null}class Q0{}class F9{}class ox{}class R9{resolveComponentFactory(t){throw function P9(e){const t=Error(`No component factory found for ${Wt(e)}.`);return t.ngComponent=e,t}(t)}}let zu=(()=>{class t{}return t.NULL=new R9,t})();class ax{}let O9=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function N9(){const e=sn(),i=Ti(yr().index,e);return(ii(i)?i:e)[Qn]}(),t})(),k9=(()=>{var e;class t{}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:()=>null}),t})();const J0={},lx=new Set;function ho(e){var t,i;lx.has(e)||(lx.add(e),null===(t=performance)||void 0===t||null===(i=t.mark)||void 0===i||i.call(t,"mark_feature_usage",{detail:{feature:e}}))}function ux(...e){}class zr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:u=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!u&&i,x.shouldCoalesceRunChangeDetection=u,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function L9(){const e="function"==typeof bt.requestAnimationFrame;let t=bt[e?"requestAnimationFrame":"setTimeout"],i=bt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const u=t[Zone.__symbol__("OriginalDelegate")];u&&(t=u);const x=i[Zone.__symbol__("OriginalDelegate")];x&&(i=x)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function V9(e){const t=()=>{!function U9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ed(e),e.isCheckStableRunning=!0,q0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ed(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,u,x,b,N,H)=>{if(function j9(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(H))return i.invokeTask(x,b,N,H);try{return cx(e),i.invokeTask(x,b,N,H)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===b.type||e.shouldCoalesceRunChangeDetection)&&t(),dx(e)}},onInvoke:(i,u,x,b,N,H,K)=>{try{return cx(e),i.invoke(x,b,N,H,K)}finally{e.shouldCoalesceRunChangeDetection&&t(),dx(e)}},onHasTask:(i,u,x,b)=>{i.hasTask(x,b),u===x&&("microTask"==b.change?(e._hasPendingMicrotasks=b.microTask,ed(e),q0(e)):"macroTask"==b.change&&(e.hasPendingMacrotasks=b.macroTask))},onHandleError:(i,u,x,b)=>(i.handleError(x,b),e.runOutsideAngular(()=>e.onError.emit(b)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zr.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(zr.isInAngularZone())throw new G(909,!1)}run(t,i,u){return this._inner.run(t,i,u)}runTask(t,i,u,x){const b=this._inner,N=b.scheduleEventTask("NgZoneEvent: "+x,t,$9,ux,ux);try{return b.runTask(N,i,u)}finally{b.cancelTask(N)}}runGuarded(t,i,u){return this._inner.runGuarded(t,i,u)}runOutsideAngular(t){return this._outer.run(t)}}const $9={};function q0(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ed(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cx(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dx(e){e._nesting--,q0(e)}class fx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,i,u){return t.apply(i,u)}runGuarded(t,i,u){return t.apply(i,u)}runOutsideAngular(t){return t()}runTask(t,i,u,x){return t.apply(i,u)}}var Es=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Es||{});const hx={destroy(){}};function px(e,t){var i,u,x;!t&&function $o(e){if(!Na())throw new G(-203,!1)}();const b=null!==(i=null==t?void 0:t.injector)&&void 0!==i?i:$n(Fi);if(!function Yi(e){return"browser"===(null!=e?e:$n(Fi)).get(o0)}(b))return hx;ho("NgAfterNextRender");const N=b.get(yl),H=null!==(u=N.handler)&&void 0!==u?u:N.handler=new vx,K=null!==(x=null==t?void 0:t.phase)&&void 0!==x?x:Es.MixedReadWrite,he=()=>{H.unregister(Oe),we()},we=b.get(Hs).onDestroy(he),Oe=ro(b,()=>new xx(K,()=>{he(),e()}));return H.register(Oe),{destroy:he}}class xx{constructor(t,i){var u;this.phase=t,this.callbackFn=i,this.zone=$n(zr),this.errorHandler=$n(So,{optional:!0}),null===(u=$n(Q0,{optional:!0}))||void 0===u||u.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(i)}}}class vx{constructor(){this.executingCallbacks=!1,this.buckets={[Es.EarlyRead]:new Set,[Es.Write]:new Set,[Es.MixedReadWrite]:new Set,[Es.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const i of t)i.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let yl=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var u;this.executeInternalCallbacks(),null===(u=this.handler)||void 0===u||u.execute()}executeInternalCallbacks(){const u=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const x of u)x()}ngOnDestroy(){var u;null===(u=this.handler)||void 0===u||u.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:()=>new e}),t})();function Go(e){return!!Gr(e)}function Ku(e,t,i){let u=i?e.styles:null,x=i?e.classes:null,b=0;if(null!==t)for(let N=0;N0&&Bp(e,i,b.join(" "))}}(tn,Ji,gn,u),void 0!==i&&function eC(e,t,i){const u=e.projection=[];for(let x=0;x{class t{}return t.__NG_ELEMENT_ID__=nC,t})();function nC(){return Dx(yr(),sn())}const rC=Xu,Cx=class extends rC{constructor(t,i,u){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=u}get element(){return zs(this._hostTNode,this._hostLView)}get injector(){return new Yr(this._hostTNode,this._hostLView)}get parentInjector(){const t=uu(this._hostTNode,this._hostLView);if(Wc(t)){const i=Ya(t,this._hostLView),u=Xa(t);return new Yr(i[yn].data[u+8],i)}return new Yr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=bx(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-kr}createEmbeddedView(t,i,u){let x,b;"number"==typeof u?x=u:null!=u&&(x=u.index,b=u.injector);const H=t.createEmbeddedViewImpl(i||{},b,null);return this.insertImpl(H,x,ea(this._hostTNode,null)),H}createComponent(t,i,u,x,b){var N,K;const he=t&&!function Jt(e){return"function"==typeof e}(t);let we;if(he)we=i;else{const gn=i||{};we=gn.index,u=gn.injector,x=gn.projectableNodes,b=gn.environmentInjector||gn.ngModuleRef}const Oe=he?t:new Dl(er(t)),ct=u||this.parentInjector;if(!b&&null==Oe.ngModule){const on=(he?ct:this.parentInjector).get(fi,null);on&&(b=on)}const Dt=er(null!==(N=Oe.componentType)&&void 0!==N?N:{}),jt=(null==Dt?void 0:Dt.id,null),tn=null!==(K=null==jt?void 0:jt.firstChild)&&void 0!==K?K:null,pn=Oe.create(ct,x,tn,b);return this.insertImpl(pn.hostView,we,ea(this._hostTNode,jt)),pn}insert(t,i){return this.insertImpl(t,i,!0)}insertImpl(t,i,u){const x=t._lView;if(function Z1(e){return Jr(e[ir])}(x)){const H=this.indexOf(t);if(-1!==H)this.detach(H);else{const K=x[ir],he=new Cx(K,K[Ar],K[ir]);he.detach(he.indexOf(t))}}const b=this._adjustIndex(i),N=this._lContainer;return dl(N,x,b,u),t.attachToViewContainerRef(),Ni(id(N),b,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=bx(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),u=sl(this._lContainer,i);u&&(Bi(id(this._lContainer),i),Tu(u[yn],u))}detach(t){const i=this._adjustIndex(t,-1),u=sl(this._lContainer,i);return u&&null!=Bi(id(this._lContainer),i)?new pl(u):null}_adjustIndex(t,i=0){return null==t?this.length+i:t}};function bx(e){return e[8]}function id(e){return e[8]||(e[8]=[])}function Dx(e,t){let i;const u=t[e.index];return Jr(u)?i=u:(i=Vp(u,t,null,e),t[e.index]=i,Nu(t,i)),Ax(i,t,e,u),new Cx(i,e,t)}let Ax=function wx(e,t,i,u){if(e[Gi])return;let x;x=8&i.type?br(u):function iC(e,t){const i=e[Qn],u=i.createComment(""),x=hi(t,e);return gs(i,Fu(i,x),u,function E8(e,t){return e.nextSibling(t)}(i,x),!1),u}(t,i),e[Gi]=x},od=()=>!1;class sd{constructor(t){this.queryList=t,this.matches=null}clone(){return new sd(this.queryList)}setDirty(){this.queryList.setDirty()}}class ad{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const u=null!==t.contentQueries?t.contentQueries[0]:i.length,x=[];for(let b=0;bt.trim())}(t):t}}class ld{constructor(t=[]){this.queries=t}elementStart(t,i){for(let u=0;u0)u.push(N[H/2]);else{const he=b[H+1],we=t[-K];for(let Oe=kr;Oe=0;u--){const x=e[u];x.hostVars=t+=x.hostVars,x.hostAttrs=Xe(x.hostAttrs,i=Xe(i,x.hostAttrs))}}(u)}function AC(e,t){for(const u in t.inputs){if(!t.inputs.hasOwnProperty(u)||e.inputs.hasOwnProperty(u))continue;const x=t.inputs[u];if(void 0!==x&&(e.inputs[u]=x,e.declaredInputs[u]=t.declaredInputs[u],null!==t.inputTransforms)){var i;const b=Array.isArray(x)?x[0]:x;if(!t.inputTransforms.hasOwnProperty(b))continue;null!==(i=e.inputTransforms)&&void 0!==i||(e.inputTransforms={}),e.inputTransforms[b]=t.inputTransforms[b]}}}function Zu(e){return e===dn?{}:e===fn?[]:e}function wC(e,t){const i=e.viewQuery;e.viewQuery=i?(u,x)=>{t(u,x),i(u,x)}:t}function _C(e,t){const i=e.contentQueries;e.contentQueries=i?(u,x,b)=>{t(u,x,b),i(u,x,b)}:t}function BC(e,t){const i=e.hostBindings;e.hostBindings=i?(u,x)=>{t(u,x),i(u,x)}:t}function Qx(e){const t=e.inputConfig,i={};for(const u in t)if(t.hasOwnProperty(u)){const x=t[u];Array.isArray(x)&&x[3]&&(i[u]=x[3])}e.inputTransforms=i}class ys{}class Jx{}function RC(e,t){return new xd(e,null!=t?t:null,[])}class xd extends ys{constructor(t,i,u){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ex(this);const x=Gr(t);this._bootstrapComponents=Pi(x.bootstrap),this._r3Injector=ph(t,i,[{provide:ys,useValue:this},{provide:zu,useValue:this.componentFactoryResolver},...u],Wt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends Jx{constructor(t){super(),this.moduleType=t}create(t){return new xd(this.moduleType,t,[])}}class qx extends ys{constructor(t){super(),this.componentFactoryResolver=new Ex(this),this.instance=null;const i=new to([...t.providers,{provide:ys,useValue:this},{provide:zu,useValue:this.componentFactoryResolver}],t.parent||ko(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function md(e,t,i=null){return new qx({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let ra=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ie.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const u=this.taskId++;return this.pendingTasks.add(u),u}remove(u){this.pendingTasks.delete(u),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ju(e){return!!gd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function gd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function po(e,t,i){return e[t]=i}function $r(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function Cs(e,t,i,u){const x=$r(e,t,i);return $r(e,t+1,u)||x}function ia(e,t,i,u,x,b,N,H){const K=sn(),he=ur(),we=e+Jn,Oe=he.firstCreatePass?function VC(e,t,i,u,x,b,N,H,K){const he=t.consts,we=qs(t,e,4,N||null,so(he,H));L0(t,i,we,so(he,K)),iu(t,we);const Oe=we.tView=k0(2,we,u,x,b,t.directiveRegistry,t.pipeRegistry,null,t.schemas,he,null);return null!==t.queries&&(t.queries.template(t,we),Oe.queries=t.queries.embeddedTView(we)),we}(we,he,K,t,i,u,x,b,N):he.data[we];ao(Oe,!1);const ct=ev(he,K,Oe,e);Ka()&&Pu(he,K,ct,Oe),ci(ct,K);const Dt=Vp(ct,K,ct,Oe);return K[we]=Dt,Nu(K,Dt),function Mx(e,t,i){return od(e,t,i)}(Dt,Oe,K),us(Oe)&&O0(he,K,Oe),null!=N&&N0(K,Oe,H),ia}let ev=function tv(e,t,i,u){return lo(!0),t[Qn].createComment("")};function Bd(e,t,i,u){const x=sn();return $r(x,Xi(),t)&&(ur(),fo(Br(),x,e,t,i,u)),Bd}function fa(e,t,i,u){return $r(e,Xi(),i)?t+dt(i)+u:rr}function ha(e,t,i,u,x,b){const H=Cs(e,function _o(){return tr.lFrame.bindingIndex}(),i,x);return Bo(2),H?t+dt(i)+u+dt(x)+b:rr}function oc(e,t){return e<<17|t<<2}function Zo(e){return e>>17&32767}function Sd(e){return 2|e}function Ds(e){return(131068&e)>>2}function Id(e,t){return-131069&e|t<<2}function Td(e){return 1|e}function Fv(e,t,i,u){const x=e[i+1],b=null===t;let N=u?Zo(x):Ds(x),H=!1;for(;0!==N&&(!1===H||b);){const he=e[N+1];_2(e[N],t)&&(H=!0,e[N+1]=u?Td(he):Sd(he)),N=u?Zo(he):Ds(he)}H&&(e[i+1]=u?Sd(x):Td(x))}function _2(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Te(e,t)>=0}const Zr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pv(e){return e.substring(Zr.key,Zr.keyEnd)}function B2(e){return e.substring(Zr.value,Zr.valueEnd)}function Rv(e,t){const i=Zr.textEnd;return i===t?-1:(t=Zr.keyEnd=function T2(e,t,i){for(;t32;)t++;return t}(e,Zr.key=t,i),ya(e,t,i))}function Ov(e,t){const i=Zr.textEnd;let u=Zr.key=ya(e,t,i);return i===u?-1:(u=Zr.keyEnd=function F2(e,t,i){let u;for(;t=65&&(-33&u)<=90||u>=48&&u<=57);)t++;return t}(e,u,i),u=kv(e,u,i),u=Zr.value=ya(e,u,i),u=Zr.valueEnd=function P2(e,t,i){let u=-1,x=-1,b=-1,N=t,H=N;for(;N32&&(H=N),b=x,x=u,u=-33&K}return H}(e,u,i),kv(e,u,i))}function Nv(e){Zr.key=0,Zr.keyEnd=0,Zr.value=0,Zr.valueEnd=0,Zr.textEnd=e.length}function ya(e,t,i){for(;t=0;i=Ov(t,i))jv(e,Pv(t),B2(t))}function vo(e,t){for(let i=function S2(e){return Nv(e),Rv(e,ya(e,0,Zr.textEnd))}(t);i>=0;i=Rv(t,i))Re(e,Pv(t),!0)}function Qi(e,t,i,u){const x=ur(),b=Bo(2);x.firstUpdatePass&&Vv(x,null,b,u);const N=sn();if(i!==rr&&$r(N,b,i)){const H=x.data[ui()];if(Wv(H,u)&&!Uv(x,b)){let K=u?H.classesWithoutHost:H.stylesWithoutHost;null!==K&&(i=Nt(K,i||"")),Pd(x,H,N,i,u)}else!function j2(e,t,i,u,x,b,N,H){x===rr&&(x=fn);let K=0,he=0,we=0=e.expandoStartIndex}function Vv(e,t,i,u){const x=e.data;if(null===x[i+1]){const b=x[ui()],N=Uv(e,i);Wv(b,u)&&null===t&&!N&&(t=!1),t=function N2(e,t,i,u){const x=function $c(e){const t=tr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let b=u?t.residualClasses:t.residualStyles;if(null===x)0===(u?t.classBindings:t.styleBindings)&&(i=Il(i=Od(null,e,t,i,u),t.attrs,u),b=null);else{const N=t.directiveStylingLast;if(-1===N||e[N]!==x)if(i=Od(x,e,t,i,u),null===b){let K=function k2(e,t,i){const u=i?t.classBindings:t.styleBindings;if(0!==Ds(u))return e[Zo(u)]}(e,t,u);void 0!==K&&Array.isArray(K)&&(K=Od(null,e,t,K[1],u),K=Il(K,t.attrs,u),function L2(e,t,i,u){e[Zo(i?t.classBindings:t.styleBindings)]=u}(e,t,u,K))}else b=function $2(e,t,i){let u;const x=t.directiveEnd;for(let b=1+t.directiveStylingLast;b0)&&(he=!0)):we=i,x)if(0!==K){const ct=Zo(e[H+1]);e[u+1]=oc(ct,H),0!==ct&&(e[ct+1]=Id(e[ct+1],u)),e[H+1]=function D2(e,t){return 131071&e|t<<17}(e[H+1],u)}else e[u+1]=oc(H,0),0!==H&&(e[H+1]=Id(e[H+1],u)),H=u;else e[u+1]=oc(K,0),0===H?H=u:e[K+1]=Id(e[K+1],u),K=u;he&&(e[u+1]=Sd(e[u+1])),Fv(e,we,u,!0),Fv(e,we,u,!1),function w2(e,t,i,u,x){const b=x?e.residualClasses:e.residualStyles;null!=b&&"string"==typeof t&&Te(b,t)>=0&&(i[u+1]=Td(i[u+1]))}(t,we,e,u,b),N=oc(H,K),b?t.classBindings=N:t.styleBindings=N}(x,b,t,i,N,u)}}function Od(e,t,i,u,x){let b=null;const N=i.directiveEnd;let H=i.directiveStylingLast;for(-1===H?H=i.directiveStart:H++;H0;){const K=e[x],he=Array.isArray(K),we=he?K[1]:K,Oe=null===we;let ct=i[x+1];ct===rr&&(ct=Oe?fn:void 0);let Dt=Oe?Le(ct,u):we===u?ct:void 0;if(he&&!sc(Dt)&&(Dt=Le(K,u)),sc(Dt)&&(H=Dt,N))return H;const jt=e[x+1];x=N?Zo(jt):Ds(jt)}if(null!==t){let K=b?t.residualClasses:t.residualStyles;null!=K&&(H=Le(K,u))}return H}function sc(e){return void 0!==e}function Wv(e,t){return!!(e.flags&(t?8:16))}function Kv(e,t,i){Qi(Re,vo,fa(sn(),e,t,i),!0)}function ac(e,t,i,u){const x=sn(),b=ur(),N=Jn+e,H=x[Qn],K=b.firstCreatePass?function db(e,t,i,u,x,b){const N=t.consts,K=qs(t,e,2,u,so(N,x));return L0(t,i,K,so(N,b)),null!==K.attrs&&Ku(K,K.attrs,!1),null!==K.mergedAttrs&&Ku(K,K.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,K),K}(N,b,x,t,i,u):b.data[N],he=Zv(b,x,K,H,t,e);x[N]=he;const we=us(K);return ao(K,!0),Sp(H,he,K),!function wl(e){return!(32&~e.flags)}(K)&&Ka()&&Pu(b,x,he,K),0===function J1(){return tr.lFrame.elementDepthCount}()&&ci(he,x),function q1(){tr.lFrame.elementDepthCount++}(),we&&(O0(b,x,K),R0(b,K,x)),null!==u&&N0(x,K),ac}function lc(){let e=yr();Nc()?kc():(e=e.parent,ao(e,!1));const t=e;(function tE(e){return tr.skipHydrationRootTNode===e})(t)&&function oE(){tr.skipHydrationRootTNode=null}(),function eE(){tr.lFrame.elementDepthCount--}();const i=ur();return i.firstCreatePass&&(iu(i,e),La(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function yE(e){return!!(8&e.flags)}(t)&&Pd(i,t,sn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function CE(e){return!!(16&e.flags)}(t)&&Pd(i,t,sn(),t.stylesWithoutHost,!1),lc}function Ud(e,t,i,u){return ac(e,t,i,u),lc(),Ud}let Zv=(e,t,i,u,x,b)=>(lo(!0),Iu(u,x,function Xf(){return tr.lFrame.currentNamespace}()));function Vd(e,t,i){const u=sn(),x=ur(),b=e+Jn,N=x.firstCreatePass?function pb(e,t,i,u,x){const b=t.consts,N=so(b,u),H=qs(t,e,8,"ng-container",N);return null!==N&&Ku(H,N,!0),L0(t,i,H,so(b,x)),null!==t.queries&&t.queries.elementStart(t,H),H}(b,x,u,t,i):x.data[b];ao(N,!0);const H=Qv(x,u,N,e);return u[b]=H,Ka()&&Pu(x,u,H,N),ci(H,u),us(N)&&(O0(x,u,N),R0(x,N,u)),null!=i&&N0(u,N),Vd}function jd(){let e=yr();const t=ur();return Nc()?kc():(e=e.parent,ao(e,!1)),t.firstCreatePass&&(iu(t,e),La(e)&&t.queries.elementEnd(e)),jd}function Hd(e,t,i){return Vd(e,t,i),jd(),Hd}let Qv=(e,t,i,u)=>(lo(!0),_0(t[Qn],""));function Jv(){return sn()}const As=void 0;var gb=["en",[["a","p"],["AM","PM"],As],[["AM","PM"],As,As],[["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"]],As,[["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"]],As,[["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}",As,"{1} 'at' {0}",As],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function mb(e){const i=Math.floor(Math.abs(e)),u=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===u?1:5}];let Ca={};function zd(e){const t=function Eb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=nm(t);if(i)return i;const u=t.split("-")[0];if(i=nm(u),i)return i;if("en"===u)return gb;throw new G(701,!1)}function tm(e){return zd(e)[ba.PluralCase]}function nm(e){return e in Ca||(Ca[e]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[e]),Ca[e]}var ba=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ba||{});const Da="en-US";let rm=Da;function Gd(e,t,i,u){const x=sn(),b=ur(),N=yr();return Xd(b,x,x[Qn],N,e,t,u),Gd}function Xd(e,t,i,u,x,b,N){const H=us(u),he=e.firstCreatePass&&zp(e),we=t[Cr],Oe=Hp(t);let ct=!0;if(3&u.type||N){const tn=hi(u,t),pn=N?N(tn):tn,gn=Oe.length,on=N?or=>N(br(or[u.index])):u.index;let Yn=null;if(!N&&H&&(Yn=function x6(e,t,i,u){const x=e.cleanup;if(null!=x)for(let b=0;bK?H[K]:null}"string"==typeof N&&(b+=2)}return null}(e,t,x,u.index)),null!==Yn)(Yn.__ngLastListenerFn__||Yn).__ngNextListenerFn__=b,Yn.__ngLastListenerFn__=b,ct=!1;else{b=Tm(u,t,we,b,!1);const or=i.listen(pn,x,b);Oe.push(b,or),he&&he.push(x,on,gn,gn+1)}}else b=Tm(u,t,we,b,!1);const Dt=u.outputs;let jt;if(ct&&null!==Dt&&(jt=Dt[x])){const tn=jt.length;if(tn)for(let pn=0;pn-1?Ti(e.index,t):t);let K=Im(t,i,u,N),he=b.__ngNextListenerFn__;for(;he;)K=Im(t,i,he,N)&&K,he=he.__ngNextListenerFn__;return x&&!1===K&&N.preventDefault(),K}}function Fm(e=1){return function dE(e){return(tr.lFrame.contextLView=function Rf(e,t){for(;e>0;)t=t[Ao],e--;return t}(e,tr.lFrame.contextLView))[Cr]}(e)}function v6(e,t){let i=null;const u=function yo(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let x=0;x(lo(!0),function w0(e,t){return e.createText(t)}(t[Qn],u));function Qd(e){return hc("",e,""),Qd}function hc(e,t,i){const u=sn(),x=fa(u,e,t,i);return x!==rr&&Fo(u,ui(),x),hc}function Jd(e,t,i,u,x){const b=sn(),N=ha(b,e,t,i,u,x);return N!==rr&&Fo(b,ui(),N),Jd}function qd(e,t,i){Nx(t)&&(t=t());const u=sn();return $r(u,Xi(),t)&&Ci(ur(),Br(),u,e,t,u[Qn],i,!1),qd}function fg(e,t){const i=Nx(e);return i&&e.set(t),i}function ef(e,t){const i=sn(),u=ur(),x=yr();return Xd(u,i,i[Qn],x,e,t),ef}function tf(e,t,i,u,x){if(e=He(e),Array.isArray(e))for(let b=0;b>20;if(Ki(e)||!e.multi){const Dt=new Ga(he,x,Js),jt=rf(K,t,x?we:we+ct,Oe);-1===jt?(Xc(lu(H,N),b,K),nf(b,e,t.length),t.push(K),H.directiveStart++,H.directiveEnd++,x&&(H.providerIndexes+=1048576),i.push(Dt),N.push(Dt)):(i[jt]=Dt,N[jt]=Dt)}else{const Dt=rf(K,t,we+ct,Oe),jt=rf(K,t,we,we+ct),pn=jt>=0&&i[jt];if(x&&!pn||!x&&!(Dt>=0&&i[Dt])){Xc(lu(H,N),b,K);const gn=function O6(e,t,i,u,x){const b=new Ga(e,i,Js);return b.multi=[],b.index=t,b.componentProviders=0,hg(b,x,u&&!i),b}(x?R6:P6,i.length,x,u,he);!x&&pn&&(i[jt].providerFactory=gn),nf(b,e,t.length,0),t.push(K),H.directiveStart++,H.directiveEnd++,x&&(H.providerIndexes+=1048576),i.push(gn),N.push(gn)}else nf(b,e,Dt>-1?Dt:jt,hg(i[x?jt:Dt],he,!x&&u));!x&&u&&pn&&i[jt].componentProviders++}}}function nf(e,t,i,u){const x=Ki(t),b=function Ra(e){return!!e.useClass}(t);if(x||b){const K=(b?He(t.useClass):t).prototype.ngOnDestroy;if(K){const he=e.destroyHooks||(e.destroyHooks=[]);if(!x&&t.multi){const we=he.indexOf(i);-1===we?he.push(i,[u,K]):he[we+1].push(u,K)}else he.push(i,K)}}}function hg(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function rf(e,t,i,u){for(let x=i;x{i.providersResolver=(u,x)=>function F6(e,t,i){const u=ur();if(u.firstCreatePass){const x=Ii(e);tf(i,u.data,u.blueprint,x,!0),tf(t,u.data,u.blueprint,x,!1)}}(u,x?x(e):e,t)}}let N6=(()=>{var e;class t{constructor(u){this._injector=u,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(u){if(!u.standalone)return null;if(!this.cachedInjectors.has(u)){const x=Oo(0,u.type),b=x.length>0?md([x],this._injector,`Standalone[${u.type.name}]`):null;this.cachedInjectors.set(u,b)}return this.cachedInjectors.get(u)}ngOnDestroy(){try{for(const u of this.cachedInjectors.values())null!==u&&u.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Mn({token:e,providedIn:"environment",factory:()=>new e(Dr(fi))}),t})();function xg(e){ho("NgStandalone"),e.getStandaloneInjector=t=>t.get(N6).getOrCreateStandaloneInjector(e)}function mg(e,t,i){const u=pi()+e,x=sn();return x[u]===rr?po(x,u,i?t.call(i):t()):function Ml(e,t){return e[t]}(x,u)}function gg(e,t,i,u){return yg(sn(),pi(),e,t,i,u)}function Eg(e,t,i,u,x){return function Cg(e,t,i,u,x,b,N){const H=t+i;return Cs(e,H,x,b)?po(e,H+2,N?u.call(N,x,b):u(x,b)):kl(e,H+2)}(sn(),pi(),e,t,i,u,x)}function kl(e,t){const i=e[t];return i===rr?void 0:i}function yg(e,t,i,u,x,b){const N=t+i;return $r(e,N,x)?po(e,N+1,b?u.call(b,x):u(x)):kl(e,N+1)}function Mg(e,t){const i=ur();let u;const x=e+Jn;var b;i.firstCreatePass?(u=function K6(e,t){if(t)for(let i=t.length-1;i>=0;i--){const u=t[i];if(e===u.name)return u}}(t,i.pipeRegistry),i.data[x]=u,u.onDestroy&&(null!==(b=i.destroyHooks)&&void 0!==b?b:i.destroyHooks=[]).push(x,u.onDestroy)):u=i.data[x];const N=u.factory||(u.factory=ti(u.type)),K=Pn(Js);try{const he=au(!1),we=N();return au(he),function y6(e,t,i,u){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=u}(i,sn(),x,we),we}finally{Pn(K)}}function wg(e,t,i){const u=e+Jn,x=sn(),b=function Ls(e,t){return e[t]}(x,u);return function Ll(e,t){return e[yn].data[t].pure}(x,u)?yg(x,pi(),t,b.transform,i,b):b.transform(i)}class jg{constructor(t){this.full=t;const i=t.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}let Hg=(()=>{var e;class t{log(u){console.log(u)}warn(u){console.warn(u)}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Gg=new kt(""),Xg=new kt("");let hf,zD=(()=>{var e;class t{constructor(u,x,b){this._ngZone=u,this.registry=x,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,hf||(function WD(e){hf=e}(b),b.addToWindow(x)),this._watchAngularEvents(),u.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let u=this._callbacks.pop();clearTimeout(u.timeoutId),u.doneCb()}});else{let u=this.getPendingTasks();this._callbacks=this._callbacks.filter(x=>!x.updateCb||!x.updateCb(u)||(clearTimeout(x.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(u=>({source:u.source,creationLocation:u.creationLocation,data:u.data})):[]}addCallback(u,x,b){let N=-1;x&&x>0&&(N=setTimeout(()=>{this._callbacks=this._callbacks.filter(H=>H.timeoutId!==N),u()},x)),this._callbacks.push({doneCb:u,timeoutId:N,updateCb:b})}whenStable(u,x,b){if(b&&!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(u,x,b),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(u){this.registry.registerApplication(u,this)}unregisterApplication(u){this.registry.unregisterApplication(u)}findProviders(u,x,b){return[]}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(zr),Dr(Yg),Dr(Xg))},e.\u0275prov=Mn({token:e,factory:e.\u0275fac}),t})(),Yg=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(u,x){this._applications.set(u,x)}unregisterApplication(u){this._applications.delete(u)}unregisterAllApplications(){this._applications.clear()}getTestability(u){return this._applications.get(u)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(u,x=!0){var b,N;return null!==(b=null===(N=hf)||void 0===N?void 0:N.findTestabilityInTree(this,u,x))&&void 0!==b?b:null}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function pf(e){return!!e&&"function"==typeof e.then}function Zg(e){return!!e&&"function"==typeof e.subscribe}const Qg=new kt("");let xf=(()=>{var e;class t{constructor(){var u;this.initialized=!1,this.done=!1,this.donePromise=new Promise((x,b)=>{this.resolve=x,this.reject=b}),this.appInits=null!==(u=$n(Qg,{optional:!0}))&&void 0!==u?u:[]}runInitializers(){if(this.initialized)return;const u=[];for(const b of this.appInits){const N=b();if(pf(N))u.push(N);else if(Zg(N)){const H=new Promise((K,he)=>{N.subscribe({complete:K,error:he})});u.push(H)}}const x=()=>{this.done=!0,this.resolve()};Promise.all(u).then(()=>{x()}).catch(b=>{this.reject(b)}),0===u.length&&x(),this.initialized=!0}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const vf=new kt("");function e1(e,t){return Array.isArray(t)?t.reduce(e1,e):{...e,...t}}let Qo=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=$n(vh),this.afterRenderEffectManager=$n(yl),this.externalTestViews=new Set,this.beforeRender=new ke.B,this.afterTick=new ke.B,this.componentTypes=[],this.components=[],this.isStable=$n(ra).hasPendingTasks.pipe((0,_e.T)(u=>!u)),this._injector=$n(fi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(u,x){const b=u instanceof ox;if(!this._injector.get(xf).done)throw!b&&li(u),new G(405,!1);let H;H=b?u:this._injector.get(zu).resolveComponentFactory(u),this.componentTypes.push(H.componentType);const K=function KD(e){return e.isBoundToModule}(H)?void 0:this._injector.get(ys),we=H.create(Fi.NULL,[],x||H.selector,K),Oe=we.location.nativeElement,ct=we.injector.get(Gg,null);return null==ct||ct.registerApplication(Oe),we.onDestroy(()=>{this.detachView(we.hostView),mc(this.components,we),null==ct||ct.unregisterApplication(Oe)}),this._loadComponent(we),we}tick(){this._tick(!0)}_tick(u){if(this._runningTick)throw new G(101,!1);const x=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(u)}catch(b){this.internalErrorHandler(b)}finally{this.afterTick.next(),this._runningTick=!1,C(x)}}detectChangesInAttachedViews(u){let x=0;const b=this.afterRenderEffectManager;for(;;){if(x===Yp)throw new G(103,!1);if(u){const N=0===x;this.beforeRender.next(N);for(let{_lView:H,notifyErrorHandler:K}of this._views)XD(H,N,K)}if(x++,b.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:N})=>mf(N))&&(b.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:N})=>mf(N))))break}}attachView(u){const x=u;this._views.push(x),x.attachToAppRef(this)}detachView(u){const x=u;mc(this._views,x),x.detachFromAppRef()}_loadComponent(u){this.attachView(u.hostView),this.tick(),this.components.push(u);const x=this._injector.get(vf,[]);[...this._bootstrapListeners,...x].forEach(b=>b(u))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(u=>u()),this._views.slice().forEach(u=>u.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(u){return this._destroyListeners.push(u),()=>mc(this._destroyListeners,u)}destroy(){if(this._destroyed)throw new G(406,!1);const u=this._injector;u.destroy&&!u.destroyed&&u.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function mc(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function XD(e,t,i){!t&&!mf(e)||function YD(e,t,i){let u;i?(u=0,e[Rn]|=1024):u=64&e[Rn]?0:1,Lu(e,t,u)}(e,i,t)}function mf(e){return Pc(e)}class ZD{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let QD=(()=>{var e;class t{compileModuleSync(u){return new vd(u)}compileModuleAsync(u){return Promise.resolve(this.compileModuleSync(u))}compileModuleAndAllComponentsSync(u){const x=this.compileModuleSync(u),N=Pi(Gr(u).declarations).reduce((H,K)=>{const he=er(K);return he&&H.push(new Dl(he)),H},[]);return new ZD(x,N)}compileModuleAndAllComponentsAsync(u){return Promise.resolve(this.compileModuleAndAllComponentsSync(u))}clearCache(){}clearCacheFor(u){}getModuleId(u){}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),eA=(()=>{var e;class t{constructor(){this.zone=$n(zr),this.applicationRef=$n(Qo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var u;null===(u=this._onMicrotaskEmptySubscription)||void 0===u||u.unsubscribe()}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function tA(){const e=$n(zr),t=$n(So);return i=>e.runOutsideAngular(()=>t.handleError(i))}let rA=(()=>{var e;class t{constructor(){this.subscription=new pe.yU,this.initialized=!1,this.zone=$n(zr),this.pendingTasks=$n(ra)}initialize(){if(this.initialized)return;this.initialized=!0;let u=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(u=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{zr.assertNotInAngularZone(),queueMicrotask(()=>{null!==u&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(u),u=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var x;zr.assertInAngularZone(),null!==(x=u)&&void 0!==x||(u=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const gc=new kt("",{providedIn:"root",factory:()=>$n(gc,nn.Optional|nn.SkipSelf)||function iA(){return typeof $localize<"u"&&$localize.locale||Da}()}),oA=new kt("",{providedIn:"root",factory:()=>"USD"}),gf=new kt("");let i1=(()=>{var e;class t{constructor(u){this._injector=u,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(u,x){const b=function H9(e="zone.js",t){return"noop"===e?new fx:"zone.js"===e?new zr(t):e}(null==x?void 0:x.ngZone,function r1(e){var t,i;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(i=null==e?void 0:e.runCoalescing)&&void 0!==i&&i}}({eventCoalescing:null==x?void 0:x.ngZoneEventCoalescing,runCoalescing:null==x?void 0:x.ngZoneRunCoalescing}));return b.run(()=>{const N=function OC(e,t,i){return new xd(e,t,i)}(u.moduleType,this.injector,function n1(e){return[{provide:zr,useFactory:e},{provide:Un,multi:!0,useFactory:()=>{const t=$n(eA,{optional:!0});return()=>t.initialize()}},{provide:Un,multi:!0,useFactory:()=>{const t=$n(rA);return()=>{t.initialize()}}},{provide:vh,useFactory:tA}]}(()=>b)),H=N.injector.get(So,null);return b.runOutsideAngular(()=>{const K=b.onError.subscribe({next:he=>{H.handleError(he)}});N.onDestroy(()=>{mc(this._modules,N),K.unsubscribe()})}),function qg(e,t,i){try{const u=i();return pf(u)?u.catch(x=>{throw t.runOutsideAngular(()=>e.handleError(x)),x}):u}catch(u){throw t.runOutsideAngular(()=>e.handleError(u)),u}}(H,b,()=>{const K=N.injector.get(xf);return K.runInitializers(),K.donePromise.then(()=>(function im(e){"string"==typeof e&&(rm=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(gc,Da)||Da),this._moduleDoBootstrap(N),N))})})}bootstrapModule(u,x=[]){const b=e1({},x);return function qD(e,t,i){const u=new vd(i);return Promise.resolve(u)}(0,0,u).then(N=>this.bootstrapModuleFactory(N,b))}_moduleDoBootstrap(u){const x=u.injector.get(Qo);if(u._bootstrapComponents.length>0)u._bootstrapComponents.forEach(b=>x.bootstrap(b));else{if(!u.instance.ngDoBootstrap)throw new G(-403,!1);u.instance.ngDoBootstrap(x)}this._modules.push(u)}onDestroy(u){this._destroyListeners.push(u)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(x=>x.destroy()),this._destroyListeners.forEach(x=>x());const u=this._injector.get(gf,null);u&&(u.forEach(x=>x()),u.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(Fi))},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Jo=null;const o1=new kt("");function s1(e,t,i=[]){const u=`Platform: ${t}`,x=new kt(u);return(b=[])=>{let N=Ef();if(!N||N.injector.get(o1,!1)){const H=[...i,...b,{provide:x,useValue:!0}];e?e(H):function aA(e){if(Jo&&!Jo.get(o1,!1))throw new G(400,!1);(function Jg(){!function d(e){v=e}(()=>{throw new G(600,!1)})})(),Jo=e;const t=e.get(i1);(function l1(e){const t=e.get($h,null);null==t||t.forEach(i=>i())})(e)}(function a1(e=[],t){return Fi.create({name:t,providers:[{provide:No,useValue:"platform"},{provide:gf,useValue:new Set([()=>Jo=null])},...e]})}(H,u))}return function lA(e){const t=Ef();if(!t)throw new G(401,!1);return t}()}}function Ef(){var e,t;return null!==(e=null===(t=Jo)||void 0===t?void 0:t.get(i1))&&void 0!==e?e:null}function cA(){}let c1=(()=>{class t{}return t.__NG_ELEMENT_ID__=dA,t})();function dA(e){return function fA(e,t,i){if(Ho(e)&&!i){const u=Ti(e.index,t);return new pl(u,u)}return 47&e.type?new pl(t[Tr],t):null}(yr(),sn(),!(16&~e))}class p1{constructor(){}supports(t){return Ju(t)}create(t){return new mA(t)}}const vA=(e,t)=>t;class mA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vA}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,u=this._removalsHead,x=0,b=null;for(;i||u;){const N=!u||i&&i.currentIndex{N=this._trackByFn(x,H),null!==i&&Object.is(i.trackById,N)?(u&&(i=this._verifyReinsertion(i,H,N,x)),Object.is(i.item,H)||this._addIdentityChange(i,H)):(i=this._mismatch(i,H,N,x),u=!0),i=i._next,x++}),this.length=x;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,u,x){let b;return null===t?b=this._itTail:(b=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,b,x)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(u,x))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,b,x)):t=this._addAfter(new gA(i,u),b,x),t}_verifyReinsertion(t,i,u,x){let b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null);return null!==b?t=this._reinsertAfter(b,t._prev,x):t.currentIndex!=x&&(t.currentIndex=x,this._addToMoves(t,x)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,u){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const x=t._prevRemoved,b=t._nextRemoved;return null===x?this._removalsHead=b:x._nextRemoved=b,null===b?this._removalsTail=x:b._prevRemoved=x,this._insertAfter(t,i,u),this._addToMoves(t,u),t}_moveAfter(t,i,u){return this._unlink(t),this._insertAfter(t,i,u),this._addToMoves(t,u),t}_addAfter(t,i,u){return this._insertAfter(t,i,u),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,u){const x=null===i?this._itHead:i._next;return t._next=x,t._prev=i,null===x?this._itTail=t:x._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new x1),this._linkedRecords.put(t),t.currentIndex=u,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,u=t._next;return null===i?this._itHead=u:i._next=u,null===u?this._itTail=i:u._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new x1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class gA{constructor(t,i){this.item=t,this.trackById=i,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 EA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let u;for(u=this._head;null!==u;u=u._nextDup)if((null===i||i<=u.currentIndex)&&Object.is(u.trackById,t))return u;return null}remove(t){const i=t._prevDup,u=t._nextDup;return null===i?this._head=u:i._nextDup=u,null===u?this._tail=i:u._prevDup=i,null===this._head}}class x1{constructor(){this.map=new Map}put(t){const i=t.trackById;let u=this.map.get(i);u||(u=new EA,this.map.set(i,u)),u.add(t)}get(t,i){const x=this.map.get(t);return x?x.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function v1(e,t,i){const u=e.previousIndex;if(null===u)return u;let x=0;return i&&u{if(i&&i.key===x)this._maybeAddToChanges(i,u),this._appendAfter=i,i=i._next;else{const b=this._getOrCreateRecordForKey(x,u);i=this._insertBeforeOrAppend(i,b)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let u=i;null!==u;u=u._nextRemoved)u===this._mapHead&&(this._mapHead=null),this._records.delete(u.key),u._nextRemoved=u._next,u.previousValue=u.currentValue,u.currentValue=null,u._prev=null,u._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const u=t._prev;return i._next=t,i._prev=u,t._prev=i,u&&(u._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const x=this._records.get(t);this._maybeAddToChanges(x,i);const b=x._prev,N=x._next;return b&&(b._next=N),N&&(N._prev=b),x._next=null,x._prev=null,x}const u=new CA(t);return this._records.set(t,u),u.currentValue=i,this._addToAdditions(u),u}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(u=>i(t[u],u))}}class CA{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function g1(){return new Af([new p1])}let Af=(()=>{var e;class t{constructor(u){this.factories=u}static create(u,x){if(null!=x){const b=x.factories.slice();u=u.concat(b)}return new t(u)}static extend(u){return{provide:t,useFactory:x=>t.create(u,x||g1()),deps:[[t,new _i,new Kr]]}}find(u){const x=this.factories.find(b=>b.supports(u));if(null!=x)return x;throw new G(901,!1)}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:g1}),t})();function E1(){return new Mf([new m1])}let Mf=(()=>{var e;class t{constructor(u){this.factories=u}static create(u,x){if(x){const b=x.factories.slice();u=u.concat(b)}return new t(u)}static extend(u){return{provide:t,useFactory:x=>t.create(u,x||E1()),deps:[[t,new _i,new Kr]]}}find(u){const x=this.factories.find(b=>b.supports(u));if(x)return x;throw new G(901,!1)}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:E1}),t})();const AA=s1(null,"core",[]);let MA=(()=>{var e;class t{constructor(u){}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(Qo))},e.\u0275mod=ts({type:e}),e.\u0275inj=Ln({}),t})();function e3(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function n3(e){const t=C(null);try{return e()}finally{C(t)}}function l3(e,t){const i=er(e),u=t.elementInjector||ko();return new Dl(i).create(u,t.projectableNodes,t.hostElement,t.environmentInjector)}function u3(e){const t=er(e);if(!t)return null;const i=new Dl(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(Ce,ee,E)=>{"use strict";E.d(ee,{BC:()=>ne,VZ:()=>ti,X1:()=>Ei,YN:()=>es,cz:()=>L,kq:()=>_,vO:()=>pe,vS:()=>pt,zX:()=>_i});var a=E(4438),S=E(177),p=E(6648),O=E(7468),c=E(6354);let D=(()=>{var be;class ce{constructor(Ee,ot){this._renderer=Ee,this._elementRef=ot,this.onChange=En=>{},this.onTouched=()=>{}}setProperty(Ee,ot){this._renderer.setProperty(this._elementRef.nativeElement,Ee,ot)}registerOnTouched(Ee){this.onTouched=Ee}registerOnChange(Ee){this.onChange=Ee}setDisabledState(Ee){this.setProperty("disabled",Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(a.sFG),a.rXU(a.aKT))},be.\u0275dir=a.FsC({type:be}),ce})(),C=(()=>{var be;class ce extends D{}return(be=ce).\u0275fac=(()=>{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,features:[a.Vt3]}),ce})();const _=new a.nKC(""),m={provide:_,useExisting:(0,a.Rfq)(()=>w),multi:!0},A=new a.nKC("");let w=(()=>{var be;class ce extends D{constructor(Ee,ot,En){super(Ee,ot),this._compositionMode=En,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const be=(0,S.QT)()?(0,S.QT)().getUserAgent():"";return/android (\d+)/.test(be.toLowerCase())}())}writeValue(Ee){this.setProperty("value",null==Ee?"":Ee)}_handleInput(Ee){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ee)}_compositionStart(){this._composing=!0}_compositionEnd(Ee){this._composing=!1,this._compositionMode&&this.onChange(Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(a.sFG),a.rXU(a.aKT),a.rXU(A,8))},be.\u0275dir=a.FsC({type:be,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(Ee,ot){1&Ee&&a.bIt("input",function(Hn){return ot._handleInput(Hn.target.value)})("blur",function(){return ot.onTouched()})("compositionstart",function(){return ot._compositionStart()})("compositionend",function(Hn){return ot._compositionEnd(Hn.target.value)})},features:[a.Jv_([m]),a.Vt3]}),ce})();function R(be){return null==be||("string"==typeof be||Array.isArray(be))&&0===be.length}const L=new a.nKC(""),M=new a.nKC("");function o(be){return null}function l(be){return null!=be}function s(be){return(0,a.jNT)(be)?(0,p.H)(be):be}function h(be){let ce={};return be.forEach(Xe=>{ce=null!=Xe?{...ce,...Xe}:ce}),0===Object.keys(ce).length?null:ce}function v(be,ce){return ce.map(Xe=>Xe(be))}function d(be){return be.map(ce=>function y(be){return!be.validate}(ce)?ce:Xe=>ce.validate(Xe))}function f(be){return null!=be?function r(be){if(!be)return null;const ce=be.filter(l);return 0==ce.length?null:function(Xe){return h(v(Xe,ce))}}(d(be)):null}function I(be){return null!=be?function k(be){if(!be)return null;const ce=be.filter(l);return 0==ce.length?null:function(Xe){const Ee=v(Xe,ce).map(s);return(0,O.p)(Ee).pipe((0,c.T)(h))}}(d(be)):null}function V(be,ce){return null===be?[ce]:Array.isArray(be)?[...be,ce]:[be,ce]}function ve(be){return be?Array.isArray(be)?be:[be]:[]}function De(be,ce){return Array.isArray(be)?be.includes(ce):be===ce}function Q(be,ce){const Xe=ve(ce);return ve(be).forEach(ot=>{De(Xe,ot)||Xe.push(ot)}),Xe}function ae(be,ce){return ve(ce).filter(Xe=>!De(be,Xe))}class tt{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(ce){this._rawValidators=ce||[],this._composedValidatorFn=f(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=I(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,Xe){return!!this.control&&this.control.hasError(ce,Xe)}getError(ce,Xe){return this.control?this.control.getError(ce,Xe):null}}class ke extends tt{get formDirective(){return null}get path(){return null}}class pe extends tt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ie{constructor(ce){this._cd=ce}get isTouched(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.touched)}get isUntouched(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.untouched)}get isPristine(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.pristine)}get isDirty(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.dirty)}get isValid(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.valid)}get isInvalid(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.invalid)}get isPending(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.pending)}get isSubmitted(){var ce;return!(null===(ce=this._cd)||void 0===ce||!ce.submitted)}}let ne=(()=>{var be;class ce extends Ie{constructor(Ee){super(Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(pe,2))},be.\u0275dir=a.FsC({type:be,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ee,ot){2&Ee&&a.AVh("ng-untouched",ot.isUntouched)("ng-touched",ot.isTouched)("ng-pristine",ot.isPristine)("ng-dirty",ot.isDirty)("ng-valid",ot.isValid)("ng-invalid",ot.isInvalid)("ng-pending",ot.isPending)},features:[a.Vt3]}),ce})();const Bt="VALID",Lt="INVALID",Wt="PENDING",Nt="DISABLED";function Be(be){return null!=be&&!Array.isArray(be)&&"object"==typeof be}class Ze{constructor(ce,Xe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ce),this._assignAsyncValidators(Xe)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===Lt}get pending(){return this.status==Wt}get disabled(){return this.status===Nt}get enabled(){return this.status!==Nt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(Q(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(Q(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(ae(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(ae(ce,this._rawAsyncValidators))}hasValidator(ce){return De(this._rawValidators,ce)}hasAsyncValidator(ce){return De(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){this.touched=!0,this._parent&&!ce.onlySelf&&this._parent.markAsTouched(ce)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ce=>ce.markAllAsTouched())}markAsUntouched(ce={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Xe=>{Xe.markAsUntouched({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}markAsDirty(ce={}){this.pristine=!1,this._parent&&!ce.onlySelf&&this._parent.markAsDirty(ce)}markAsPristine(ce={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Xe=>{Xe.markAsPristine({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}markAsPending(ce={}){this.status=Wt,!1!==ce.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ce.onlySelf&&this._parent.markAsPending(ce)}disable(ce={}){const Xe=this._parentMarkedDirty(ce.onlySelf);this.status=Nt,this.errors=null,this._forEachChild(Ee=>{Ee.disable({...ce,onlySelf:!0})}),this._updateValue(),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Xe}),this._onDisabledChange.forEach(Ee=>Ee(!0))}enable(ce={}){const Xe=this._parentMarkedDirty(ce.onlySelf);this.status=Bt,this._forEachChild(Ee=>{Ee.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Xe}),this._onDisabledChange.forEach(Ee=>Ee(!1))}_updateAncestors(ce){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===Wt)&&this._runAsyncValidator(ce.emitEvent)),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity(ce)}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(Xe=>Xe._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nt:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce){if(this.asyncValidator){this.status=Wt,this._hasOwnPendingAsyncValidator=!0;const Xe=s(this.asyncValidator(this));this._asyncValidationSubscription=Xe.subscribe(Ee=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ee,{emitEvent:ce})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ce,Xe={}){this.errors=ce,this._updateControlsErrors(!1!==Xe.emitEvent)}get(ce){let Xe=ce;return null==Xe||(Array.isArray(Xe)||(Xe=Xe.split(".")),0===Xe.length)?null:Xe.reduce((Ee,ot)=>Ee&&Ee._find(ot),this)}getError(ce,Xe){const Ee=Xe?this.get(Xe):this;return Ee&&Ee.errors?Ee.errors[ce]:null}hasError(ce,Xe){return!!this.getError(ce,Xe)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ce)}_initObservables(){this.valueChanges=new a.bkB,this.statusChanges=new a.bkB}_calculateStatus(){return this._allControlsDisabled()?Nt:this.errors?Lt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wt)?Wt:this._anyControlsHaveStatus(Lt)?Lt:Bt}_anyControlsHaveStatus(ce){return this._anyControls(Xe=>Xe.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}_updateTouched(ce={}){this.touched=this._anyControlsTouched(),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){Be(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function zn(be){return Array.isArray(be)?f(be):be||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function He(be){return Array.isArray(be)?I(be):be||null}(this._rawAsyncValidators)}}const Je=new a.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>st}),st="always";function yt(be,ce,Xe=st){var Ee,ot;(function Rt(be,ce){const Xe=function J(be){return be._rawValidators}(be);null!==ce.validator?be.setValidators(V(Xe,ce.validator)):"function"==typeof Xe&&be.setValidators([Xe]);const Ee=function oe(be){return be._rawAsyncValidators}(be);null!==ce.asyncValidator?be.setAsyncValidators(V(Ee,ce.asyncValidator)):"function"==typeof Ee&&be.setAsyncValidators([Ee]);const ot=()=>be.updateValueAndValidity();Kt(ce._rawValidators,ot),Kt(ce._rawAsyncValidators,ot)})(be,ce),ce.valueAccessor.writeValue(be.value),(be.disabled||"always"===Xe)&&(null===(Ee=(ot=ce.valueAccessor).setDisabledState)||void 0===Ee||Ee.call(ot,be.disabled)),function An(be,ce){ce.valueAccessor.registerOnChange(Xe=>{be._pendingValue=Xe,be._pendingChange=!0,be._pendingDirty=!0,"change"===be.updateOn&&Mn(be,ce)})}(be,ce),function Wn(be,ce){const Xe=(Ee,ot)=>{ce.valueAccessor.writeValue(Ee),ot&&ce.viewToModelUpdate(Ee)};be.registerOnChange(Xe),ce._registerOnDestroy(()=>{be._unregisterOnChange(Xe)})}(be,ce),function Bn(be,ce){ce.valueAccessor.registerOnTouched(()=>{be._pendingTouched=!0,"blur"===be.updateOn&&be._pendingChange&&Mn(be,ce),"submit"!==be.updateOn&&be.markAsTouched()})}(be,ce),function Pt(be,ce){if(ce.valueAccessor.setDisabledState){const Xe=Ee=>{ce.valueAccessor.setDisabledState(Ee)};be.registerOnDisabledChange(Xe),ce._registerOnDestroy(()=>{be._unregisterOnDisabledChange(Xe)})}}(be,ce)}function Kt(be,ce){be.forEach(Xe=>{Xe.registerOnValidatorChange&&Xe.registerOnValidatorChange(ce)})}function Mn(be,ce){be._pendingDirty&&be.markAsDirty(),be.setValue(be._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(be._pendingValue),be._pendingChange=!1}function Kn(be,ce){const Xe=be.indexOf(ce);Xe>-1&&be.splice(Xe,1)}function fr(be){return"object"==typeof be&&null!==be&&2===Object.keys(be).length&&"value"in be&&"disabled"in be}Promise.resolve();const Ge=class extends Ze{constructor(ce=null,Xe,Ee){super(function Ot(be){return(Be(be)?be.validators:be)||null}(Xe),function Ut(be,ce){return(Be(ce)?ce.asyncValidators:be)||null}(Ee,Xe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ce),this._setUpdateStrategy(Xe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Be(Xe)&&(Xe.nonNullable||Xe.initialValueIsDefault)&&(this.defaultValue=fr(ce)?ce.value:ce)}setValue(ce,Xe={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==Xe.emitModelToViewChange&&this._onChange.forEach(Ee=>Ee(this.value,!1!==Xe.emitViewToModelChange)),this.updateValueAndValidity(Xe)}patchValue(ce,Xe={}){this.setValue(ce,Xe)}reset(ce=this.defaultValue,Xe={}){this._applyFormState(ce),this.markAsPristine(Xe),this.markAsUntouched(Xe),this.setValue(this.value,Xe),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){Kn(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){Kn(this._onDisabledChange,ce)}_forEachChild(ce){}_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(ce){fr(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},Ke={provide:pe,useExisting:(0,a.Rfq)(()=>pt)},dt=Promise.resolve();let pt=(()=>{var be;class ce extends pe{constructor(Ee,ot,En,Hn,Fr,di){super(),this._changeDetectorRef=Fr,this.callSetDisabledState=di,this.control=new Ge,this._registered=!1,this.name="",this.update=new a.bkB,this._parent=Ee,this._setValidators(ot),this._setAsyncValidators(En),this.valueAccessor=function kt(be,ce){if(!ce)return null;let Xe,Ee,ot;return Array.isArray(ce),ce.forEach(En=>{En.constructor===w?Xe=En:function Tt(be){return Object.getPrototypeOf(be.constructor)===C}(En)?Ee=En:ot=En}),ot||Ee||Xe||null}(0,Hn)}ngOnChanges(Ee){if(this._checkForErrors(),!this._registered||"name"in Ee){if(this._registered&&(this._checkName(),this.formDirective)){const ot=Ee.name.previousValue;this.formDirective.removeControl({name:ot,path:this._getPath(ot)})}this._setUpControl()}"isDisabled"in Ee&&this._updateDisabled(Ee),function lt(be,ce){if(!be.hasOwnProperty("model"))return!1;const Xe=be.model;return!!Xe.isFirstChange()||!Object.is(ce,Xe.currentValue)}(Ee,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(Ee){this.viewModel=Ee,this.update.emit(Ee)}_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(){yt(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(Ee){dt.then(()=>{var ot;this.control.setValue(Ee,{emitViewToModelChange:!1}),null===(ot=this._changeDetectorRef)||void 0===ot||ot.markForCheck()})}_updateDisabled(Ee){const ot=Ee.isDisabled.currentValue,En=0!==ot&&(0,a.L39)(ot);dt.then(()=>{var Hn;En&&!this.control.disabled?this.control.disable():!En&&this.control.disabled&&this.control.enable(),null===(Hn=this._changeDetectorRef)||void 0===Hn||Hn.markForCheck()})}_getPath(Ee){return this._parent?function en(be,ce){return[...ce.path,be]}(Ee,this._parent):[Ee]}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(ke,9),a.rXU(L,10),a.rXU(M,10),a.rXU(_,10),a.rXU(a.gRc,8),a.rXU(Je,8))},be.\u0275dir=a.FsC({type:be,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[a.Mj6.None,"disabled","isDisabled"],model:[a.Mj6.None,"ngModel","model"],options:[a.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.Jv_([Ke]),a.Vt3,a.OA$]}),ce})();const Pn=new a.nKC("");function Hi(be){return"number"==typeof be?be:parseFloat(be)}let Kr=(()=>{var be;class ce{constructor(){this._validator=o}ngOnChanges(Ee){if(this.inputName in Ee){const ot=this.normalizeInput(Ee[this.inputName].currentValue);this._enabled=this.enabled(ot),this._validator=this._enabled?this.createValidator(ot):o,this._onChange&&this._onChange()}}validate(Ee){return this._validator(Ee)}registerOnValidatorChange(Ee){this._onChange=Ee}enabled(Ee){return null!=Ee}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275dir=a.FsC({type:be,features:[a.OA$]}),ce})();const wi={provide:L,useExisting:(0,a.Rfq)(()=>_i),multi:!0};let _i=(()=>{var be;class ce extends Kr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ee=>Hi(Ee),this.createValidator=Ee=>function W(be){return ce=>{if(R(ce.value)||R(be))return null;const Xe=parseFloat(ce.value);return!isNaN(Xe)&&Xe>be?{max:{max:be,actual:ce.value}}:null}}(Ee)}}return(be=ce).\u0275fac=(()=>{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ot){2&Ee&&a.BMQ("max",ot._enabled?ot.max:null)},inputs:{max:"max"},features:[a.Jv_([wi]),a.Vt3]}),ce})();const Po={provide:L,useExisting:(0,a.Rfq)(()=>ti),multi:!0};let ti=(()=>{var be;class ce extends Kr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ee=>Hi(Ee),this.createValidator=Ee=>function j(be){return ce=>{if(R(ce.value)||R(be))return null;const Xe=parseFloat(ce.value);return!isNaN(Xe)&&Xe{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ot){2&Ee&&a.BMQ("min",ot._enabled?ot.min:null)},inputs:{min:"min"},features:[a.Jv_([Po]),a.Vt3]}),ce})(),dn=(()=>{var be;class ce{}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({}),ce})(),es=(()=>{var be;class ce{static withConfig(Ee){var ot;return{ngModule:ce,providers:[{provide:Je,useValue:null!==(ot=Ee.callSetDisabledState)&&void 0!==ot?ot:st}]}}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({imports:[dn]}),ce})(),Ei=(()=>{var be;class ce{static withConfig(Ee){var ot,En;return{ngModule:ce,providers:[{provide:Pn,useValue:null!==(ot=Ee.warnOnNgModelWithFormControl)&&void 0!==ot?ot:"always"},{provide:Je,useValue:null!==(En=Ee.callSetDisabledState)&&void 0!==En?En:st}]}}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({imports:[dn]}),ce})()},345:(Ce,ee,E)=>{"use strict";E.d(ee,{Bb:()=>Ie,hE:()=>ne,sG:()=>ae,up:()=>bn});var a=E(4438),S=E(177);class p extends S.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends p{static makeCurrent(){(0,S.ZD)(new O)}onAndCancel(Be,Ae,Me){return Be.addEventListener(Ae,Me),()=>{Be.removeEventListener(Ae,Me)}}dispatchEvent(Be,Ae){Be.dispatchEvent(Ae)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,Ae){return(Ae=Ae||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,Ae){return"window"===Ae?window:"document"===Ae?Be:"body"===Ae?Be.body:null}getBaseHref(Be){const Ae=function D(){return c=c||document.querySelector("base"),c?c.getAttribute("href"):null}();return null==Ae?null:function C(He){return new URL(He,document.baseURI).pathname}(Ae)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,S._b)(document.cookie,Be)}}let c=null,F=(()=>{var He;class Be{build(){return new XMLHttpRequest}}return(He=Be).\u0275fac=function(Me){return new(Me||He)},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const B=new a.nKC("");let m=(()=>{var He;class Be{constructor(Me,Ze){this._zone=Ze,this._eventNameToPlugin=new Map,Me.forEach(je=>{je.manager=this}),this._plugins=Me.slice().reverse()}addEventListener(Me,Ze,je){return this._findPluginFor(Ze).addEventListener(Me,Ze,je)}getZone(){return this._zone}_findPluginFor(Me){let Ze=this._eventNameToPlugin.get(Me);if(Ze)return Ze;if(Ze=this._plugins.find(it=>it.supports(Me)),!Ze)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(Me,Ze),Ze}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(B),a.KVO(a.SKi))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();class T{constructor(Be){this._doc=Be}}const A="ng-app-id";let w=(()=>{var He;class Be{constructor(Me,Ze,je,it={}){this.doc=Me,this.appId=Ze,this.nonce=je,this.platformId=it,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,S.Vy)(it),this.resetHostNodes()}addStyles(Me){for(const Ze of Me)1===this.changeUsageCount(Ze,1)&&this.onStyleAdded(Ze)}removeStyles(Me){for(const Ze of Me)this.changeUsageCount(Ze,-1)<=0&&this.onStyleRemoved(Ze)}ngOnDestroy(){const Me=this.styleNodesInDOM;Me&&(Me.forEach(Ze=>Ze.remove()),Me.clear());for(const Ze of this.getAllStyles())this.onStyleRemoved(Ze);this.resetHostNodes()}addHost(Me){this.hostNodes.add(Me);for(const Ze of this.getAllStyles())this.addStyleToHost(Me,Ze)}removeHost(Me){this.hostNodes.delete(Me)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Me){for(const Ze of this.hostNodes)this.addStyleToHost(Ze,Me)}onStyleRemoved(Me){var Ze;const je=this.styleRef;null===(Ze=je.get(Me))||void 0===Ze||null===(Ze=Ze.elements)||void 0===Ze||Ze.forEach(it=>it.remove()),je.delete(Me)}collectServerRenderedStyles(){var Me;const Ze=null===(Me=this.doc.head)||void 0===Me?void 0:Me.querySelectorAll(`style[${A}="${this.appId}"]`);if(null!=Ze&&Ze.length){const je=new Map;return Ze.forEach(it=>{null!=it.textContent&&je.set(it.textContent,it)}),je}return null}changeUsageCount(Me,Ze){const je=this.styleRef;if(je.has(Me)){const it=je.get(Me);return it.usage+=Ze,it.usage}return je.set(Me,{usage:Ze,elements:[]}),Ze}getStyleElement(Me,Ze){const je=this.styleNodesInDOM,it=null==je?void 0:je.get(Ze);if((null==it?void 0:it.parentNode)===Me)return je.delete(Ze),it.removeAttribute(A),it;{const Pe=this.doc.createElement("style");return this.nonce&&Pe.setAttribute("nonce",this.nonce),Pe.textContent=Ze,this.platformIsServer&&Pe.setAttribute(A,this.appId),Me.appendChild(Pe),Pe}}addStyleToHost(Me,Ze){var je;const it=this.getStyleElement(Me,Ze),Pe=this.styleRef,Se=null===(je=Pe.get(Ze))||void 0===je?void 0:je.elements;Se?Se.push(it):Pe.set(Ze,{elements:[it],usage:1})}resetHostNodes(){const Me=this.hostNodes;Me.clear(),Me.add(this.doc.head)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const R={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/"},$=/%COMP%/g,L="%COMP%",M=`_nghost-${L}`,P=`_ngcontent-${L}`,j=new a.nKC("",{providedIn:"root",factory:()=>!0});function me(He,Be){return Be.map(Ae=>Ae.replace($,He))}let te=(()=>{var He;class Be{constructor(Me,Ze,je,it,Pe,Se,ze,Et=null){this.eventManager=Me,this.sharedStylesHost=Ze,this.appId=je,this.removeStylesOnCompDestroy=it,this.doc=Pe,this.platformId=Se,this.ngZone=ze,this.nonce=Et,this.rendererByCompId=new Map,this.platformIsServer=(0,S.Vy)(Se),this.defaultRenderer=new se(Me,Pe,ze,this.platformIsServer)}createRenderer(Me,Ze){if(!Me||!Ze)return this.defaultRenderer;this.platformIsServer&&Ze.encapsulation===a.gXe.ShadowDom&&(Ze={...Ze,encapsulation:a.gXe.Emulated});const je=this.getOrCreateRenderer(Me,Ze);return je instanceof h?je.applyToHost(Me):je instanceof s&&je.applyStyles(),je}getOrCreateRenderer(Me,Ze){const je=this.rendererByCompId;let it=je.get(Ze.id);if(!it){const Pe=this.doc,Se=this.ngZone,ze=this.eventManager,Et=this.sharedStylesHost,Je=this.removeStylesOnCompDestroy,st=this.platformIsServer;switch(Ze.encapsulation){case a.gXe.Emulated:it=new h(ze,Et,Ze,this.appId,Je,Pe,Se,st);break;case a.gXe.ShadowDom:return new l(ze,Et,Me,Ze,Pe,Se,this.nonce,st);default:it=new s(ze,Et,Ze,Je,Pe,Se,st)}je.set(Ze.id,it)}return it}ngOnDestroy(){this.rendererByCompId.clear()}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(m),a.KVO(w),a.KVO(a.sZ2),a.KVO(j),a.KVO(S.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();class se{constructor(Be,Ae,Me,Ze){this.eventManager=Be,this.doc=Ae,this.ngZone=Me,this.platformIsServer=Ze,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,Ae){return Ae?this.doc.createElementNS(R[Ae]||Ae,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,Ae){(o(Be)?Be.content:Be).appendChild(Ae)}insertBefore(Be,Ae,Me){Be&&(o(Be)?Be.content:Be).insertBefore(Ae,Me)}removeChild(Be,Ae){Be&&Be.removeChild(Ae)}selectRootElement(Be,Ae){let Me="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Me)throw new a.wOt(-5104,!1);return Ae||(Me.textContent=""),Me}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,Ae,Me,Ze){if(Ze){Ae=Ze+":"+Ae;const je=R[Ze];je?Be.setAttributeNS(je,Ae,Me):Be.setAttribute(Ae,Me)}else Be.setAttribute(Ae,Me)}removeAttribute(Be,Ae,Me){if(Me){const Ze=R[Me];Ze?Be.removeAttributeNS(Ze,Ae):Be.removeAttribute(`${Me}:${Ae}`)}else Be.removeAttribute(Ae)}addClass(Be,Ae){Be.classList.add(Ae)}removeClass(Be,Ae){Be.classList.remove(Ae)}setStyle(Be,Ae,Me,Ze){Ze&(a.czy.DashCase|a.czy.Important)?Be.style.setProperty(Ae,Me,Ze&a.czy.Important?"important":""):Be.style[Ae]=Me}removeStyle(Be,Ae,Me){Me&a.czy.DashCase?Be.style.removeProperty(Ae):Be.style[Ae]=""}setProperty(Be,Ae,Me){null!=Be&&(Be[Ae]=Me)}setValue(Be,Ae){Be.nodeValue=Ae}listen(Be,Ae,Me){if("string"==typeof Be&&!(Be=(0,S.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${Ae}`);return this.eventManager.addEventListener(Be,Ae,this.decoratePreventDefault(Me))}decoratePreventDefault(Be){return Ae=>{if("__ngUnwrap__"===Ae)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(Ae)):Be(Ae))&&Ae.preventDefault()}}}function o(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class l extends se{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){super(Be,je,it,Se),this.sharedStylesHost=Ae,this.hostEl=Me,this.shadowRoot=Me.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ze=me(Ze.id,Ze.styles);for(const Et of ze){const Je=document.createElement("style");Pe&&Je.setAttribute("nonce",Pe),Je.textContent=Et,this.shadowRoot.appendChild(Je)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,Ae){return super.appendChild(this.nodeOrShadowRoot(Be),Ae)}insertBefore(Be,Ae,Me){return super.insertBefore(this.nodeOrShadowRoot(Be),Ae,Me)}removeChild(Be,Ae){return super.removeChild(this.nodeOrShadowRoot(Be),Ae)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class s extends se{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){super(Be,je,it,Pe),this.sharedStylesHost=Ae,this.removeStylesOnCompDestroy=Ze,this.styles=Se?me(Se,Me.styles):Me.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class h extends s{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){const ze=Ze+"-"+Me.id;super(Be,Ae,Me,je,it,Pe,Se,ze),this.contentAttr=function W(He){return P.replace($,He)}(ze),this.hostAttr=function ie(He){return M.replace($,He)}(ze)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,Ae){const Me=super.createElement(Be,Ae);return super.setAttribute(Me,this.contentAttr,""),Me}}let v=(()=>{var He;class Be extends T{constructor(Me){super(Me)}supports(Me){return!0}addEventListener(Me,Ze,je){return Me.addEventListener(Ze,je,!1),()=>this.removeEventListener(Me,Ze,je)}removeEventListener(Me,Ze,je){return Me.removeEventListener(Ze,je)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const y=["alt","control","meta","shift"],d={"\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"},r={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let f=(()=>{var He;class Be extends T{constructor(Me){super(Me)}supports(Me){return null!=Be.parseEventName(Me)}addEventListener(Me,Ze,je){const it=Be.parseEventName(Ze),Pe=Be.eventCallback(it.fullKey,je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,S.QT)().onAndCancel(Me,it.domEventName,Pe))}static parseEventName(Me){const Ze=Me.toLowerCase().split("."),je=Ze.shift();if(0===Ze.length||"keydown"!==je&&"keyup"!==je)return null;const it=Be._normalizeKey(Ze.pop());let Pe="",Se=Ze.indexOf("code");if(Se>-1&&(Ze.splice(Se,1),Pe="code."),y.forEach(Et=>{const Je=Ze.indexOf(Et);Je>-1&&(Ze.splice(Je,1),Pe+=Et+".")}),Pe+=it,0!=Ze.length||0===it.length)return null;const ze={};return ze.domEventName=je,ze.fullKey=Pe,ze}static matchEventFullKeyCode(Me,Ze){let je=d[Me.key]||Me.key,it="";return Ze.indexOf("code.")>-1&&(je=Me.code,it="code."),!(null==je||!je)&&(je=je.toLowerCase()," "===je?je="space":"."===je&&(je="dot"),y.forEach(Pe=>{Pe!==je&&(0,r[Pe])(Me)&&(it+=Pe+".")}),it+=je,it===Ze)}static eventCallback(Me,Ze,je){return it=>{Be.matchEventFullKeyCode(it,Me)&&je.runGuarded(()=>Ze(it))}}static _normalizeKey(Me){return"esc"===Me?"escape":Me}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const ae=(0,a.oH4)(a.fpN,"browser",[{provide:a.Agw,useValue:S.AJ},{provide:a.PLl,useValue:function oe(){O.makeCurrent()},multi:!0},{provide:S.qQ,useFactory:function De(){return(0,a.TL$)(document),document},deps:[]}]),tt=new a.nKC(""),ke=[{provide:a.e01,useClass:class _{addToWindow(Be){a.JZv.getAngularTestability=(Me,Ze=!0)=>{const je=Be.findTestabilityInTree(Me,Ze);if(null==je)throw new a.wOt(5103,!1);return je},a.JZv.getAllAngularTestabilities=()=>Be.getAllTestabilities(),a.JZv.getAllAngularRootElements=()=>Be.getAllRootElements(),a.JZv.frameworkStabilizers||(a.JZv.frameworkStabilizers=[]),a.JZv.frameworkStabilizers.push(Me=>{const Ze=a.JZv.getAllAngularTestabilities();let je=Ze.length;const it=function(){je--,0==je&&Me()};Ze.forEach(Pe=>{Pe.whenStable(it)})})}findTestabilityInTree(Be,Ae,Me){if(null==Ae)return null;const Ze=Be.getTestability(Ae);return null!=Ze?Ze:Me?(0,S.QT)().isShadowRoot(Ae)?this.findTestabilityInTree(Be,Ae.host,!0):this.findTestabilityInTree(Be,Ae.parentElement,!0):null}},deps:[]},{provide:a.WHO,useClass:a.NYb,deps:[a.SKi,a.giA,a.e01]},{provide:a.NYb,useClass:a.NYb,deps:[a.SKi,a.giA,a.e01]}],pe=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function ve(){return new a.zcH},deps:[]},{provide:B,useClass:v,multi:!0,deps:[S.qQ,a.SKi,a.Agw]},{provide:B,useClass:f,multi:!0,deps:[S.qQ]},te,w,m,{provide:a._9s,useExisting:te},{provide:S.N0,useClass:F,deps:[]},[]];let Ie=(()=>{var He;class Be{constructor(Me){}static withServerTransition(Me){return{ngModule:Be,providers:[{provide:a.sZ2,useValue:Me.appId}]}}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(tt,12))},He.\u0275mod=a.$C({type:He}),He.\u0275inj=a.G2t({providers:[...pe,...ke],imports:[S.MD,a.Hbi]}),Be})(),ne=(()=>{var He;class Be{constructor(Me){this._doc=Me}getTitle(){return this._doc.title}setTitle(Me){this._doc.title=Me||""}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Be})(),bn=(()=>{var He;class Be{}return(He=Be).\u0275fac=function(Me){return new(Me||He)},He.\u0275prov=a.jDH({token:He,factory:function(Me){let Ze=null;return Ze=Me?new(Me||He):a.KVO(bt),Ze},providedIn:"root"}),Be})(),bt=(()=>{var He;class Be extends bn{constructor(Me){super(),this._doc=Me}sanitize(Me,Ze){if(null==Ze)return null;switch(Me){case a.WPN.NONE:return Ze;case a.WPN.HTML:return(0,a.ZF7)(Ze,"HTML")?(0,a.rcV)(Ze):(0,a.h9k)(this._doc,String(Ze)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Ze,"Style")?(0,a.rcV)(Ze):Ze;case a.WPN.SCRIPT:if((0,a.ZF7)(Ze,"Script"))return(0,a.rcV)(Ze);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Ze,"URL")?(0,a.rcV)(Ze):(0,a.$MX)(String(Ze));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Ze,"ResourceURL"))return(0,a.rcV)(Ze);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(Me){return(0,a.Kcf)(Me)}bypassSecurityTrustStyle(Me){return(0,a.cWb)(Me)}bypassSecurityTrustScript(Me){return(0,a.UyX)(Me)}bypassSecurityTrustUrl(Me){return(0,a.osQ)(Me)}bypassSecurityTrustResourceUrl(Me){return(0,a.e5t)(Me)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Be})()},3021:(Ce,ee,E)=>{"use strict";E.d(ee,{nX:()=>ei,Zp:()=>Ue,Z:()=>Fe,Xk:()=>tt,Kp:()=>Si,b:()=>Zn,Ix:()=>ir,Wk:()=>Sr,iI:()=>$a,Sd:()=>Lt});var a=E(467),S=E(4438),p=E(4402),O=E(6648),c=E(7673),D=E(4412),C=E(4572),_=E(9350),F=E(8793),B=E(9030),m=E(1203),T=E(8810),A=E(983),w=E(17),R=E(1413),$=E(8359),L=E(177),M=E(6354),P=E(5558),U=E(6697),j=E(9326),W=E(9974),me=E(5964),te=E(3028),se=E(4360);function g(z){return(0,W.N)((q,ue)=>{let Z=!1;q.subscribe((0,se._)(ue,fe=>{Z=!0,ue.next(fe)},()=>{Z||ue.next(z),ue.complete()}))})}function n(z=o){return(0,W.N)((q,ue)=>{let Z=!1;q.subscribe((0,se._)(ue,fe=>{Z=!0,ue.next(fe)},()=>Z?ue.complete():ue.error(z())))})}function o(){return new _.G}var l=E(3669);function s(z,q){const ue=arguments.length>=2;return Z=>Z.pipe(z?(0,me.p)((fe,Ne)=>z(fe,Ne,Z)):l.D,(0,U.s)(1),ue?g(q):n(()=>new _.G))}var h=E(274),v=E(8141),y=E(9437),d=E(6649);function f(z){return z<=0?()=>A.w:(0,W.N)((q,ue)=>{let Z=[];q.subscribe((0,se._)(ue,fe=>{Z.push(fe),z{for(const fe of Z)ue.next(fe);ue.complete()},void 0,()=>{Z=null}))})}var I=E(3703),V=E(980),J=E(9898),oe=E(8750),ve=E(5343),Q=E(6365),ae=E(345);const tt="primary",ke=Symbol("RouteTitle");class pe{constructor(q){this.params=q||{}}has(q){return Object.prototype.hasOwnProperty.call(this.params,q)}get(q){if(this.has(q)){const ue=this.params[q];return Array.isArray(ue)?ue[0]:ue}return null}getAll(q){if(this.has(q)){const ue=this.params[q];return Array.isArray(ue)?ue:[ue]}return[]}get keys(){return Object.keys(this.params)}}function Ie(z){return new pe(z)}function _e(z,q,ue){const Z=ue.path.split("/");if(Z.length>z.length||"full"===ue.pathMatch&&(q.hasChildren()||Z.lengthZ[Ne]===fe)}return z===q}function xt(z){return z.length>0?z[z.length-1]:null}function Qe(z){return(0,p.A)(z)?z:(0,S.jNT)(z)?(0,O.H)(Promise.resolve(z)):(0,c.of)(z)}const rt={exact:function un(z,q,ue){if(!Dn(z.segments,q.segments)||!St(z.segments,q.segments,ue)||z.numberOfChildren!==q.numberOfChildren)return!1;for(const Z in q.children)if(!z.children[Z]||!un(z.children[Z],q.children[Z],ue))return!1;return!0},subset:It},rn={exact:function ft(z,q){return ne(z,q)},subset:function At(z,q){return Object.keys(q).length<=Object.keys(z).length&&Object.keys(q).every(ue=>ge(z[ue],q[ue]))},ignored:()=>!0};function mt(z,q,ue){return rt[ue.paths](z.root,q.root,ue.matrixParams)&&rn[ue.queryParams](z.queryParams,q.queryParams)&&!("exact"===ue.fragment&&z.fragment!==q.fragment)}function It(z,q,ue){return Cn(z,q,q.segments,ue)}function Cn(z,q,ue,Z){if(z.segments.length>ue.length){const fe=z.segments.slice(0,ue.length);return!(!Dn(fe,ue)||q.hasChildren()||!St(fe,ue,Z))}if(z.segments.length===ue.length){if(!Dn(z.segments,ue)||!St(z.segments,ue,Z))return!1;for(const fe in q.children)if(!z.children[fe]||!It(z.children[fe],q.children[fe],Z))return!1;return!0}{const fe=ue.slice(0,z.segments.length),Ne=ue.slice(z.segments.length);return!!(Dn(z.segments,fe)&&St(z.segments,fe,Z)&&z.children[tt])&&Cn(z.children[tt],q,Ne,Z)}}function St(z,q,ue){return q.every((Z,fe)=>rn[ue](z[fe].parameters,Z.parameters))}class Ft{constructor(q=new bn([],{}),ue={},Z=null){this.root=q,this.queryParams=ue,this.fragment=Z}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class bn{constructor(q,ue){this.segments=q,this.children=ue,this.parent=null,Object.values(ue).forEach(Z=>Z.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ot(this)}}class bt{constructor(q,ue){this.path=q,this.parameters=ue}get parameterMap(){var q;return null!==(q=this._parameterMap)&&void 0!==q||(this._parameterMap=Ie(this.parameters)),this._parameterMap}toString(){return je(this)}}function Dn(z,q){return z.length===q.length&&z.every((ue,Z)=>ue.path===q[Z].path)}let Lt=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>new Wt,providedIn:"root"}),q})();class Wt{parse(q){const ue=new Kt(q);return new Ft(ue.parseRootSegment(),ue.parseQueryParams(),ue.parseFragment())}serialize(q){const ue=`/${zn(q.root,!0)}`,Z=function Pe(z){const q=Object.entries(z).map(([ue,Z])=>Array.isArray(Z)?Z.map(fe=>`${He(ue)}=${He(fe)}`).join("&"):`${He(ue)}=${He(Z)}`).filter(ue=>ue);return q.length?`?${q.join("&")}`:""}(q.queryParams);return`${ue}${Z}${"string"==typeof q.fragment?`#${function Be(z){return encodeURI(z)}(q.fragment)}`:""}`}}const Nt=new Wt;function Ot(z){return z.segments.map(q=>je(q)).join("/")}function zn(z,q){if(!z.hasChildren())return Ot(z);if(q){const ue=z.children[tt]?zn(z.children[tt],!1):"",Z=[];return Object.entries(z.children).forEach(([fe,Ne])=>{fe!==tt&&Z.push(`${fe}:${zn(Ne,!1)}`)}),Z.length>0?`${ue}(${Z.join("//")})`:ue}{const ue=function Bt(z,q){let ue=[];return Object.entries(z.children).forEach(([Z,fe])=>{Z===tt&&(ue=ue.concat(q(fe,Z)))}),Object.entries(z.children).forEach(([Z,fe])=>{Z!==tt&&(ue=ue.concat(q(fe,Z)))}),ue}(z,(Z,fe)=>fe===tt?[zn(z.children[tt],!1)]:[`${fe}:${zn(Z,!1)}`]);return 1===Object.keys(z.children).length&&null!=z.children[tt]?`${Ot(z)}/${ue[0]}`:`${Ot(z)}/(${ue.join("//")})`}}function Ut(z){return encodeURIComponent(z).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function He(z){return Ut(z).replace(/%3B/gi,";")}function Ae(z){return Ut(z).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Me(z){return decodeURIComponent(z)}function Ze(z){return Me(z.replace(/\+/g,"%20"))}function je(z){return`${Ae(z.path)}${function it(z){return Object.entries(z).map(([q,ue])=>`;${Ae(q)}=${Ae(ue)}`).join("")}(z.parameters)}`}const Se=/^[^\/()?;#]+/;function ze(z){const q=z.match(Se);return q?q[0]:""}const Et=/^[^\/()?;=#]+/,st=/^[^=?&#]+/,yt=/^[^&#]+/;class Kt{constructor(q){this.url=q,this.remaining=q}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bn([],{}):new bn([],this.parseChildren())}parseQueryParams(){const q={};if(this.consumeOptional("?"))do{this.parseQueryParam(q)}while(this.consumeOptional("&"));return q}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const q=[];for(this.peekStartsWith("(")||q.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),q.push(this.parseSegment());let ue={};this.peekStartsWith("/(")&&(this.capture("/"),ue=this.parseParens(!0));let Z={};return this.peekStartsWith("(")&&(Z=this.parseParens(!1)),(q.length>0||Object.keys(ue).length>0)&&(Z[tt]=new bn(q,ue)),Z}parseSegment(){const q=ze(this.remaining);if(""===q&&this.peekStartsWith(";"))throw new S.wOt(4009,!1);return this.capture(q),new bt(Me(q),this.parseMatrixParams())}parseMatrixParams(){const q={};for(;this.consumeOptional(";");)this.parseParam(q);return q}parseParam(q){const ue=function Je(z){const q=z.match(Et);return q?q[0]:""}(this.remaining);if(!ue)return;this.capture(ue);let Z="";if(this.consumeOptional("=")){const fe=ze(this.remaining);fe&&(Z=fe,this.capture(Z))}q[Me(ue)]=Me(Z)}parseQueryParam(q){const ue=function en(z){const q=z.match(st);return q?q[0]:""}(this.remaining);if(!ue)return;this.capture(ue);let Z="";if(this.consumeOptional("=")){const nt=function vt(z){const q=z.match(yt);return q?q[0]:""}(this.remaining);nt&&(Z=nt,this.capture(Z))}const fe=Ze(ue),Ne=Ze(Z);if(q.hasOwnProperty(fe)){let nt=q[fe];Array.isArray(nt)||(nt=[nt],q[fe]=nt),nt.push(Ne)}else q[fe]=Ne}parseParens(q){const ue={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Z=ze(this.remaining),fe=this.remaining[Z.length];if("/"!==fe&&")"!==fe&&";"!==fe)throw new S.wOt(4010,!1);let Ne;Z.indexOf(":")>-1?(Ne=Z.slice(0,Z.indexOf(":")),this.capture(Ne),this.capture(":")):q&&(Ne=tt);const nt=this.parseChildren();ue[Ne]=1===Object.keys(nt).length?nt[tt]:new bn([],nt),this.consumeOptional("//")}return ue}peekStartsWith(q){return this.remaining.startsWith(q)}consumeOptional(q){return!!this.peekStartsWith(q)&&(this.remaining=this.remaining.substring(q.length),!0)}capture(q){if(!this.consumeOptional(q))throw new S.wOt(4011,!1)}}function Pt(z){return z.segments.length>0?new bn([],{[tt]:z}):z}function Rt(z){const q={};for(const[Z,fe]of Object.entries(z.children)){const Ne=Rt(fe);if(Z===tt&&0===Ne.segments.length&&Ne.hasChildren())for(const[nt,Ht]of Object.entries(Ne.children))q[nt]=Ht;else(Ne.segments.length>0||Ne.hasChildren())&&(q[Z]=Ne)}return function On(z){if(1===z.numberOfChildren&&z.children[tt]){const q=z.children[tt];return new bn(z.segments.concat(q.segments),q.children)}return z}(new bn(z.segments,q))}function An(z){return z instanceof Ft}function Mn(z){var q;let ue;const Ne=Pt(function Z(nt){const Ht={};for(const Xt of nt.children){const In=Z(Xt);Ht[Xt.outlet]=In}const hn=new bn(nt.url,Ht);return nt===z&&(ue=hn),hn}(z.root));return null!==(q=ue)&&void 0!==q?q:Ne}function Wn(z,q,ue,Z){let fe=z;for(;fe.parent;)fe=fe.parent;if(0===q.length)return kn(fe,fe,fe,ue,Z);const Ne=function jn(z){if("string"==typeof z[0]&&1===z.length&&"/"===z[0])return new Xn(!0,0,z);let q=0,ue=!1;const Z=z.reduce((fe,Ne,nt)=>{if("object"==typeof Ne&&null!=Ne){if(Ne.outlets){const Ht={};return Object.entries(Ne.outlets).forEach(([hn,Xt])=>{Ht[hn]="string"==typeof Xt?Xt.split("/"):Xt}),[...fe,{outlets:Ht}]}if(Ne.segmentPath)return[...fe,Ne.segmentPath]}return"string"!=typeof Ne?[...fe,Ne]:0===nt?(Ne.split("/").forEach((Ht,hn)=>{0==hn&&"."===Ht||(0==hn&&""===Ht?ue=!0:".."===Ht?q++:""!=Ht&&fe.push(Ht))}),fe):[...fe,Ne]},[]);return new Xn(ue,q,Z)}(q);if(Ne.toRoot())return kn(fe,fe,new bn([],{}),ue,Z);const nt=function lt(z,q,ue){if(z.isAbsolute)return new $e(q,!0,0);if(!ue)return new $e(q,!1,NaN);if(null===ue.parent)return new $e(ue,!0,0);const Z=Ln(z.commands[0])?0:1;return function Tt(z,q,ue){let Z=z,fe=q,Ne=ue;for(;Ne>fe;){if(Ne-=fe,Z=Z.parent,!Z)throw new S.wOt(4005,!1);fe=Z.segments.length}return new $e(Z,!1,fe-Ne)}(ue,ue.segments.length-1+Z,z.numberOfDoubleDots)}(Ne,fe,z),Ht=nt.processChildren?Zt(nt.segmentGroup,nt.index,Ne.commands):kt(nt.segmentGroup,nt.index,Ne.commands);return kn(fe,nt.segmentGroup,Ht,ue,Z)}function Ln(z){return"object"==typeof z&&null!=z&&!z.outlets&&!z.segmentPath}function Fn(z){return"object"==typeof z&&null!=z&&z.outlets}function kn(z,q,ue,Z,fe){let nt,Ne={};Z&&Object.entries(Z).forEach(([hn,Xt])=>{Ne[hn]=Array.isArray(Xt)?Xt.map(In=>`${In}`):`${Xt}`}),nt=z===q?ue:Gn(z,q,ue);const Ht=Pt(Rt(nt));return new Ft(Ht,Ne,fe)}function Gn(z,q,ue){const Z={};return Object.entries(z.children).forEach(([fe,Ne])=>{Z[fe]=Ne===q?ue:Gn(Ne,q,ue)}),new bn(z.segments,Z)}class Xn{constructor(q,ue,Z){if(this.isAbsolute=q,this.numberOfDoubleDots=ue,this.commands=Z,q&&Z.length>0&&Ln(Z[0]))throw new S.wOt(4003,!1);const fe=Z.find(Fn);if(fe&&fe!==xt(Z))throw new S.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $e{constructor(q,ue,Z){this.segmentGroup=q,this.processChildren=ue,this.index=Z}}function kt(z,q,ue){var Z;if(null!==(Z=z)&&void 0!==Z||(z=new bn([],{})),0===z.segments.length&&z.hasChildren())return Zt(z,q,ue);const fe=function qt(z,q,ue){let Z=0,fe=q;const Ne={match:!1,pathIndex:0,commandIndex:0};for(;fe=ue.length)return Ne;const nt=z.segments[fe],Ht=ue[Z];if(Fn(Ht))break;const hn=`${Ht}`,Xt=Z0&&void 0===hn)break;if(hn&&Xt&&"object"==typeof Xt&&void 0===Xt.outlets){if(!Kn(hn,Xt,nt))return Ne;Z+=2}else{if(!Kn(hn,{},nt))return Ne;Z++}fe++}return{match:!0,pathIndex:fe,commandIndex:Z}}(z,q,ue),Ne=ue.slice(fe.commandIndex);if(fe.match&&fe.pathIndexNe!==tt)&&z.children[tt]&&1===z.numberOfChildren&&0===z.children[tt].segments.length){const Ne=Zt(z.children[tt],q,ue);return new bn(z.segments,Ne.children)}return Object.entries(Z).forEach(([Ne,nt])=>{"string"==typeof nt&&(nt=[nt]),null!==nt&&(fe[Ne]=kt(z.children[Ne],q,nt))}),Object.entries(z.children).forEach(([Ne,nt])=>{void 0===Z[Ne]&&(fe[Ne]=nt)}),new bn(z.segments,fe)}}function Qt(z,q,ue){const Z=z.segments.slice(0,q);let fe=0;for(;fe{"string"==typeof Z&&(Z=[Z]),null!==Z&&(q[ue]=Qt(new bn([],{}),0,Z))}),q}function wn(z){const q={};return Object.entries(z).forEach(([ue,Z])=>q[ue]=`${Z}`),q}function Kn(z,q,ue){return z==ue.path&&ne(q,ue.parameters)}const fr="imperative";var Ge=function(z){return z[z.NavigationStart=0]="NavigationStart",z[z.NavigationEnd=1]="NavigationEnd",z[z.NavigationCancel=2]="NavigationCancel",z[z.NavigationError=3]="NavigationError",z[z.RoutesRecognized=4]="RoutesRecognized",z[z.ResolveStart=5]="ResolveStart",z[z.ResolveEnd=6]="ResolveEnd",z[z.GuardsCheckStart=7]="GuardsCheckStart",z[z.GuardsCheckEnd=8]="GuardsCheckEnd",z[z.RouteConfigLoadStart=9]="RouteConfigLoadStart",z[z.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",z[z.ChildActivationStart=11]="ChildActivationStart",z[z.ChildActivationEnd=12]="ChildActivationEnd",z[z.ActivationStart=13]="ActivationStart",z[z.ActivationEnd=14]="ActivationEnd",z[z.Scroll=15]="Scroll",z[z.NavigationSkipped=16]="NavigationSkipped",z}(Ge||{});class et{constructor(q,ue){this.id=q,this.url=ue}}class Fe extends et{constructor(q,ue,Z="imperative",fe=null){super(q,ue),this.type=Ge.NavigationStart,this.navigationTrigger=Z,this.restoredState=fe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qe extends et{constructor(q,ue,Z){super(q,ue),this.urlAfterRedirects=Z,this.type=Ge.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Ct=function(z){return z[z.Redirect=0]="Redirect",z[z.SupersededByNewNavigation=1]="SupersededByNewNavigation",z[z.NoDataFromResolver=2]="NoDataFromResolver",z[z.GuardRejected=3]="GuardRejected",z}(Ct||{}),Gt=function(z){return z[z.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",z[z.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",z}(Gt||{});class vn extends et{constructor(q,ue,Z,fe){super(q,ue),this.reason=Z,this.code=fe,this.type=Ge.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gt extends et{constructor(q,ue,Z,fe){super(q,ue),this.reason=Z,this.code=fe,this.type=Ge.NavigationSkipped}}class zt extends et{constructor(q,ue,Z,fe){super(q,ue),this.error=Z,this.target=fe,this.type=Ge.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ye extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ke extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dt extends et{constructor(q,ue,Z,fe,Ne){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.shouldActivate=Ne,this.type=Ge.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pt extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yt extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t{constructor(q){this.route=q,this.type=Ge.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class an{constructor(q){this.route=q,this.type=Ge.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ln{constructor(q){this.snapshot=q,this.type=Ge.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xn{constructor(q){this.snapshot=q,this.type=Ge.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cn{constructor(q){this.snapshot=q,this.type=Ge.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nn{constructor(q){this.snapshot=q,this.type=Ge.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _n{constructor(q,ue,Z){this.routerEvent=q,this.position=ue,this.anchor=Z,this.type=Ge.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sn{}class Pn{constructor(q){this.url=q}}class X{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ue,this.attachRef=null}}let Ue=(()=>{var z;class q{constructor(){this.contexts=new Map}onChildOutletCreated(Z,fe){const Ne=this.getOrCreateContext(Z);Ne.outlet=fe,this.contexts.set(Z,Ne)}onChildOutletDestroyed(Z){const fe=this.getContext(Z);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const Z=this.contexts;return this.contexts=new Map,Z}onOutletReAttached(Z){this.contexts=Z}getOrCreateContext(Z){let fe=this.getContext(Z);return fe||(fe=new X,this.contexts.set(Z,fe)),fe}getContext(Z){return this.contexts.get(Z)||null}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();class le{constructor(q){this._root=q}get root(){return this._root.value}parent(q){const ue=this.pathFromRoot(q);return ue.length>1?ue[ue.length-2]:null}children(q){const ue=Ye(q,this._root);return ue?ue.children.map(Z=>Z.value):[]}firstChild(q){const ue=Ye(q,this._root);return ue&&ue.children.length>0?ue.children[0].value:null}siblings(q){const ue=_t(q,this._root);return ue.length<2?[]:ue[ue.length-2].children.map(fe=>fe.value).filter(fe=>fe!==q)}pathFromRoot(q){return _t(q,this._root).map(ue=>ue.value)}}function Ye(z,q){if(z===q.value)return q;for(const ue of q.children){const Z=Ye(z,ue);if(Z)return Z}return null}function _t(z,q){if(z===q.value)return[q];for(const ue of q.children){const Z=_t(z,ue);if(Z.length)return Z.unshift(q),Z}return[]}class Nn{constructor(q,ue){this.value=q,this.children=ue}toString(){return`TreeNode(${this.value})`}}function pr(z){const q={};return z&&z.children.forEach(ue=>q[ue.value.outlet]=ue),q}class wr extends le{constructor(q,ue){super(q),this.snapshot=ue,vi(this,q)}toString(){return this.snapshot.toString()}}function qr(z){const q=function Wr(z){const Ne=new Vi([],{},{},"",{},tt,z,null,{});return new Dr("",new Nn(Ne,[]))}(z),ue=new D.t([new bt("",{})]),Z=new D.t({}),fe=new D.t({}),Ne=new D.t({}),nt=new D.t(""),Ht=new ei(ue,Z,Ne,nt,fe,tt,z,q.root);return Ht.snapshot=q.root,new wr(new Nn(Ht,[]),q)}class ei{constructor(q,ue,Z,fe,Ne,nt,Ht,hn){var Xt,In;this.urlSubject=q,this.paramsSubject=ue,this.queryParamsSubject=Z,this.fragmentSubject=fe,this.dataSubject=Ne,this.outlet=nt,this.component=Ht,this._futureSnapshot=hn,this.title=null!==(Xt=null===(In=this.dataSubject)||void 0===In?void 0:In.pipe((0,M.T)(qn=>qn[ke])))&&void 0!==Xt?Xt:(0,c.of)(void 0),this.url=q,this.params=ue,this.queryParams=Z,this.fragment=fe,this.data=Ne}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(){var q;return null!==(q=this._paramMap)&&void 0!==q||(this._paramMap=this.params.pipe((0,M.T)(ue=>Ie(ue)))),this._paramMap}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=this.queryParams.pipe((0,M.T)(ue=>Ie(ue)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jr(z,q,ue="emptyOnly"){var Z;let fe;const{routeConfig:Ne}=z;var nt;return fe=null===q||"always"!==ue&&""!==(null==Ne?void 0:Ne.path)&&(q.component||null!==(Z=q.routeConfig)&&void 0!==Z&&Z.loadComponent)?{params:{...z.params},data:{...z.data},resolve:{...z.data,...null!==(nt=z._resolvedData)&&void 0!==nt?nt:{}}}:{params:{...q.params,...z.params},data:{...q.data,...z.data},resolve:{...z.data,...q.data,...null==Ne?void 0:Ne.data,...z._resolvedData}},Ne&&Di(Ne)&&(fe.resolve[ke]=Ne.title),fe}class Vi{get title(){var q;return null===(q=this.data)||void 0===q?void 0:q[ke]}constructor(q,ue,Z,fe,Ne,nt,Ht,hn,Xt){this.url=q,this.params=ue,this.queryParams=Z,this.fragment=fe,this.data=Ne,this.outlet=nt,this.component=Ht,this.routeConfig=hn,this._resolve=Xt}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(){var q;return null!==(q=this._paramMap)&&void 0!==q||(this._paramMap=Ie(this.params)),this._paramMap}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Z=>Z.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dr extends le{constructor(q,ue){super(ue),this.url=q,vi(this,ue)}toString(){return $n(this._root)}}function vi(z,q){q.value._routerState=z,q.children.forEach(ue=>vi(z,ue))}function $n(z){const q=z.children.length>0?` { ${z.children.map($n).join(", ")} } `:"";return`${z.value}${q}`}function mi(z){if(z.snapshot){const q=z.snapshot,ue=z._futureSnapshot;z.snapshot=ue,ne(q.queryParams,ue.queryParams)||z.queryParamsSubject.next(ue.queryParams),q.fragment!==ue.fragment&&z.fragmentSubject.next(ue.fragment),ne(q.params,ue.params)||z.paramsSubject.next(ue.params),function re(z,q){if(z.length!==q.length)return!1;for(let ue=0;uene(ue.parameters,q[Z].parameters))}(z.url,q.url);return ue&&!(!z.parent!=!q.parent)&&(!z.parent||Oi(z.parent,q.parent))}function Di(z){return"string"==typeof z.title||null===z.title}let Ai=(()=>{var z;class q{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new S.bkB,this.deactivateEvents=new S.bkB,this.attachEvents=new S.bkB,this.detachEvents=new S.bkB,this.parentContexts=(0,S.WQX)(Ue),this.location=(0,S.WQX)(S.c1b),this.changeDetector=(0,S.WQX)(S.gRc),this.environmentInjector=(0,S.WQX)(S.uvJ),this.inputBinder=(0,S.WQX)(Mi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Z){if(Z.name){const{firstChange:fe,previousValue:Ne}=Z.name;if(fe)return;this.isTrackedInParentContexts(Ne)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ne)),this.initializeOutletWithName()}}ngOnDestroy(){var Z;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(Z=this.inputBinder)||void 0===Z||Z.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Z){var fe;return(null===(fe=this.parentContexts.getContext(Z))||void 0===fe?void 0:fe.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Z=this.parentContexts.getContext(this.name);null!=Z&&Z.route&&(Z.attachRef?this.attach(Z.attachRef,Z.route):this.activateWith(Z.route,Z.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S.wOt(4012,!1);this.location.detach();const Z=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Z.instance),Z}attach(Z,fe){var Ne;this.activated=Z,this._activatedRoute=fe,this.location.insert(Z.hostView),null===(Ne=this.inputBinder)||void 0===Ne||Ne.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Z.instance)}deactivate(){if(this.activated){const Z=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Z)}}activateWith(Z,fe){var Ne;if(this.isActivated)throw new S.wOt(4013,!1);this._activatedRoute=Z;const nt=this.location,hn=Z.snapshot.component,Xt=this.parentContexts.getOrCreateContext(this.name).children,In=new ji(Z,Xt,nt.injector);this.activated=nt.createComponent(hn,{index:nt.length,injector:In,environmentInjector:null!=fe?fe:this.environmentInjector}),this.changeDetector.markForCheck(),null===(Ne=this.inputBinder)||void 0===Ne||Ne.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275dir=S.FsC({type:z,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[S.OA$]}),q})();class ji{__ngOutletInjector(q){return new ji(this.route,this.childContexts,q)}constructor(q,ue,Z){this.route=q,this.childContexts=ue,this.parent=Z}get(q,ue){return q===ei?this.route:q===Ue?this.childContexts:this.parent.get(q,ue)}}const Mi=new S.nKC("");let Hi=(()=>{var z;class q{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Z){this.unsubscribeFromRouteData(Z),this.subscribeToRouteData(Z)}unsubscribeFromRouteData(Z){var fe;null===(fe=this.outletDataSubscriptions.get(Z))||void 0===fe||fe.unsubscribe(),this.outletDataSubscriptions.delete(Z)}subscribeToRouteData(Z){const{activatedRoute:fe}=Z,Ne=(0,C.z)([fe.queryParams,fe.params,fe.data]).pipe((0,P.n)(([nt,Ht,hn],Xt)=>(hn={...nt,...Ht,...hn},0===Xt?(0,c.of)(hn):Promise.resolve(hn)))).subscribe(nt=>{if(!Z.isActivated||!Z.activatedComponentRef||Z.activatedRoute!==fe||null===fe.component)return void this.unsubscribeFromRouteData(Z);const Ht=(0,S.HJs)(fe.component);if(Ht)for(const{templateName:hn}of Ht.inputs)Z.activatedComponentRef.setInput(hn,nt[hn]);else this.unsubscribeFromRouteData(Z)});this.outletDataSubscriptions.set(Z,Ne)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac}),q})();function wi(z,q,ue){if(ue&&z.shouldReuseRoute(q.value,ue.value.snapshot)){const Z=ue.value;Z._futureSnapshot=q.value;const fe=function _i(z,q,ue){return q.children.map(Z=>{for(const fe of ue.children)if(z.shouldReuseRoute(Z.value,fe.value.snapshot))return wi(z,Z,fe);return wi(z,Z)})}(z,q,ue);return new Nn(Z,fe)}{if(z.shouldAttach(q.value)){const Ne=z.retrieve(q.value);if(null!==Ne){const nt=Ne.route;return nt.value._futureSnapshot=q.value,nt.children=q.children.map(Ht=>wi(z,Ht)),nt}}const Z=function Po(z){return new ei(new D.t(z.url),new D.t(z.params),new D.t(z.queryParams),new D.t(z.fragment),new D.t(z.data),z.outlet,z.component,z)}(q.value),fe=q.children.map(Ne=>wi(z,Ne));return new Nn(Z,fe)}}const ti="ngNavigationCancelingError";function mo(z,q){const{redirectTo:ue,navigationBehaviorOptions:Z}=An(q)?{redirectTo:q,navigationBehaviorOptions:void 0}:q,fe=Ir(!1,Ct.Redirect);return fe.url=ue,fe.navigationBehaviorOptions=Z,fe}function Ir(z,q){const ue=new Error(`NavigationCancelingError: ${z||""}`);return ue[ti]=!0,ue.cancellationCode=q,ue}function Ni(z){return!!z&&z[ti]}let Bi=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275cmp=S.VBU({type:z,selectors:[["ng-component"]],standalone:!0,features:[S.aNF],decls:1,vars:0,template:function(Z,fe){1&Z&&S.nrm(0,"router-outlet")},dependencies:[Ai],encapsulation:2}),q})();function Vt(z){const q=z.children&&z.children.map(Vt),ue=q?{...z,children:q}:{...z};return!ue.component&&!ue.loadComponent&&(q||ue.loadChildren)&&ue.outlet&&ue.outlet!==tt&&(ue.component=Bi),ue}function dn(z){return z.outlet||tt}function Un(z){var q;if(!z)return null;if(null!==(q=z.routeConfig)&&void 0!==q&&q._injector)return z.routeConfig._injector;for(let ue=z.parent;ue;ue=ue.parent){const Z=ue.routeConfig;if(null!=Z&&Z._loadedInjector)return Z._loadedInjector;if(null!=Z&&Z._injector)return Z._injector}return null}class lr{constructor(q,ue,Z,fe,Ne){this.routeReuseStrategy=q,this.futureState=ue,this.currState=Z,this.forwardEvent=fe,this.inputBindingEnabled=Ne}activate(q){const ue=this.futureState._root,Z=this.currState?this.currState._root:null;this.deactivateChildRoutes(ue,Z,q),mi(this.futureState.root),this.activateChildRoutes(ue,Z,q)}deactivateChildRoutes(q,ue,Z){const fe=pr(ue);q.children.forEach(Ne=>{const nt=Ne.value.outlet;this.deactivateRoutes(Ne,fe[nt],Z),delete fe[nt]}),Object.values(fe).forEach(Ne=>{this.deactivateRouteAndItsChildren(Ne,Z)})}deactivateRoutes(q,ue,Z){const fe=q.value,Ne=ue?ue.value:null;if(fe===Ne)if(fe.component){const nt=Z.getContext(fe.outlet);nt&&this.deactivateChildRoutes(q,ue,nt.children)}else this.deactivateChildRoutes(q,ue,Z);else Ne&&this.deactivateRouteAndItsChildren(ue,Z)}deactivateRouteAndItsChildren(q,ue){q.value.component&&this.routeReuseStrategy.shouldDetach(q.value.snapshot)?this.detachAndStoreRouteSubtree(q,ue):this.deactivateRouteAndOutlet(q,ue)}detachAndStoreRouteSubtree(q,ue){const Z=ue.getContext(q.value.outlet),fe=Z&&q.value.component?Z.children:ue,Ne=pr(q);for(const nt of Object.values(Ne))this.deactivateRouteAndItsChildren(nt,fe);if(Z&&Z.outlet){const nt=Z.outlet.detach(),Ht=Z.children.onOutletDeactivated();this.routeReuseStrategy.store(q.value.snapshot,{componentRef:nt,route:q,contexts:Ht})}}deactivateRouteAndOutlet(q,ue){const Z=ue.getContext(q.value.outlet),fe=Z&&q.value.component?Z.children:ue,Ne=pr(q);for(const nt of Object.values(Ne))this.deactivateRouteAndItsChildren(nt,fe);Z&&(Z.outlet&&(Z.outlet.deactivate(),Z.children.onOutletDeactivated()),Z.attachRef=null,Z.route=null)}activateChildRoutes(q,ue,Z){const fe=pr(ue);q.children.forEach(Ne=>{this.activateRoutes(Ne,fe[Ne.value.outlet],Z),this.forwardEvent(new nn(Ne.value.snapshot))}),q.children.length&&this.forwardEvent(new xn(q.value.snapshot))}activateRoutes(q,ue,Z){const fe=q.value,Ne=ue?ue.value:null;if(mi(fe),fe===Ne)if(fe.component){const nt=Z.getOrCreateContext(fe.outlet);this.activateChildRoutes(q,ue,nt.children)}else this.activateChildRoutes(q,ue,Z);else if(fe.component){const nt=Z.getOrCreateContext(fe.outlet);if(this.routeReuseStrategy.shouldAttach(fe.snapshot)){const Ht=this.routeReuseStrategy.retrieve(fe.snapshot);this.routeReuseStrategy.store(fe.snapshot,null),nt.children.onOutletReAttached(Ht.contexts),nt.attachRef=Ht.componentRef,nt.route=Ht.route.value,nt.outlet&&nt.outlet.attach(Ht.componentRef,Ht.route.value),mi(Ht.route.value),this.activateChildRoutes(q,null,nt.children)}else{const Ht=Un(fe.snapshot);nt.attachRef=null,nt.route=fe,nt.injector=Ht,nt.outlet&&nt.outlet.activateWith(fe,nt.injector),this.activateChildRoutes(q,null,nt.children)}}else this.activateChildRoutes(q,null,Z)}}class Or{constructor(q){this.path=q,this.route=this.path[this.path.length-1]}}class ni{constructor(q,ue){this.component=q,this.route=ue}}function gi(z,q,ue){const Z=z._root;return be(Z,q?q._root:null,ue,[Z.value])}function Ei(z,q){const ue=Symbol(),Z=q.get(z,ue);return Z===ue?"function"!=typeof z||(0,S.LfX)(z)?q.get(z):z:Z}function be(z,q,ue,Z,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=pr(q);return z.children.forEach(nt=>{(function ce(z,q,ue,Z,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=z.value,nt=q?q.value:null,Ht=ue?ue.getContext(z.value.outlet):null;if(nt&&Ne.routeConfig===nt.routeConfig){const hn=function Xe(z,q,ue){if("function"==typeof ue)return ue(z,q);switch(ue){case"pathParamsChange":return!Dn(z.url,q.url);case"pathParamsOrQueryParamsChange":return!Dn(z.url,q.url)||!ne(z.queryParams,q.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oi(z,q)||!ne(z.queryParams,q.queryParams);default:return!Oi(z,q)}}(nt,Ne,Ne.routeConfig.runGuardsAndResolvers);hn?fe.canActivateChecks.push(new Or(Z)):(Ne.data=nt.data,Ne._resolvedData=nt._resolvedData),be(z,q,Ne.component?Ht?Ht.children:null:ue,Z,fe),hn&&Ht&&Ht.outlet&&Ht.outlet.isActivated&&fe.canDeactivateChecks.push(new ni(Ht.outlet.component,nt))}else nt&&Ee(q,Ht,fe),fe.canActivateChecks.push(new Or(Z)),be(z,null,Ne.component?Ht?Ht.children:null:ue,Z,fe)})(nt,Ne[nt.value.outlet],ue,Z.concat([nt.value]),fe),delete Ne[nt.value.outlet]}),Object.entries(Ne).forEach(([nt,Ht])=>Ee(Ht,ue.getContext(nt),fe)),fe}function Ee(z,q,ue){const Z=pr(z),fe=z.value;Object.entries(Z).forEach(([Ne,nt])=>{Ee(nt,fe.component?q?q.children.getContext(Ne):null:q,ue)}),ue.canDeactivateChecks.push(new ni(fe.component&&q&&q.outlet&&q.outlet.isActivated?q.outlet.component:null,fe))}function ot(z){return"function"==typeof z}function _s(z){return z instanceof _.G||"EmptyError"===(null==z?void 0:z.name)}const yo=Symbol("INITIAL_VALUE");function qi(){return(0,P.n)(z=>(0,C.z)(z.map(q=>q.pipe((0,U.s)(1),function ie(...z){const q=(0,j.lI)(z);return(0,W.N)((ue,Z)=>{(q?(0,F.x)(z,ue,q):(0,F.x)(z,ue)).subscribe(Z)})}(yo)))).pipe((0,M.T)(q=>{for(const ue of q)if(!0!==ue){if(ue===yo)return yo;if(!1===ue||ue instanceof Ft)return ue}return!0}),(0,me.p)(q=>q!==yo),(0,U.s)(1)))}function ts(z){return(0,m.F)((0,v.M)(q=>{if(An(q))throw mo(0,q)}),(0,M.T)(q=>!0===q))}class ns{constructor(q){this.segmentGroup=q||null}}class Co extends Error{constructor(q){super(),this.urlTree=q}}function er(z){return(0,T.$)(new ns(z))}class Gr{constructor(q,ue){this.urlSerializer=q,this.urlTree=ue}lineralizeSegments(q,ue){let Z=[],fe=ue.root;for(;;){if(Z=Z.concat(fe.segments),0===fe.numberOfChildren)return(0,c.of)(Z);if(fe.numberOfChildren>1||!fe.children[tt])return(0,T.$)(new S.wOt(4e3,!1));fe=fe.children[tt]}}applyRedirectCommands(q,ue,Z){const fe=this.applyRedirectCreateUrlTree(ue,this.urlSerializer.parse(ue),q,Z);if(ue.startsWith("/"))throw new Co(fe);return fe}applyRedirectCreateUrlTree(q,ue,Z,fe){const Ne=this.createSegmentGroup(q,ue.root,Z,fe);return new Ft(Ne,this.createQueryParams(ue.queryParams,this.urlTree.queryParams),ue.fragment)}createQueryParams(q,ue){const Z={};return Object.entries(q).forEach(([fe,Ne])=>{if("string"==typeof Ne&&Ne.startsWith(":")){const Ht=Ne.substring(1);Z[fe]=ue[Ht]}else Z[fe]=Ne}),Z}createSegmentGroup(q,ue,Z,fe){const Ne=this.createSegments(q,ue.segments,Z,fe);let nt={};return Object.entries(ue.children).forEach(([Ht,hn])=>{nt[Ht]=this.createSegmentGroup(q,hn,Z,fe)}),new bn(Ne,nt)}createSegments(q,ue,Z,fe){return ue.map(Ne=>Ne.path.startsWith(":")?this.findPosParam(q,Ne,fe):this.findOrReturn(Ne,Z))}findPosParam(q,ue,Z){const fe=Z[ue.path.substring(1)];if(!fe)throw new S.wOt(4001,!1);return fe}findOrReturn(q,ue){let Z=0;for(const fe of ue){if(fe.path===q.path)return ue.splice(Z),fe;Z++}return q}}const rs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function is(z,q,ue,Z,fe){const Ne=Wi(z,q,ue);return Ne.matched?(Z=function ai(z,q){var ue;return z.providers&&!z._injector&&(z._injector=(0,S.Ol2)(z.providers,q,`Route: ${z.path}`)),null!==(ue=z._injector)&&void 0!==ue?ue:q}(q,Z),function Ia(z,q,ue,Z){const fe=q.canMatch;if(!fe||0===fe.length)return(0,c.of)(!0);const Ne=fe.map(nt=>{const Ht=Ei(nt,z);return Qe(function Eo(z){return z&&ot(z.canMatch)}(Ht)?Ht.canMatch(q,ue):(0,S.N4e)(z,()=>Ht(q,ue)))});return(0,c.of)(Ne).pipe(qi(),ts())}(Z,q,ue).pipe((0,M.T)(nt=>!0===nt?Ne:{...rs}))):(0,c.of)(Ne)}function Wi(z,q,ue){var Z,fe;if("**"===q.path)return function Yl(z){return{matched:!0,parameters:z.length>0?xt(z).parameters:{},consumedSegments:z,remainingSegments:[],positionalParamSegments:{}}}(ue);if(""===q.path)return"full"===q.pathMatch&&(z.hasChildren()||ue.length>0)?{...rs}:{matched:!0,consumedSegments:[],remainingSegments:ue,parameters:{},positionalParamSegments:{}};const nt=(q.matcher||_e)(ue,z,q);if(!nt)return{...rs};const Ht={};Object.entries(null!==(Z=nt.posParams)&&void 0!==Z?Z:{}).forEach(([Xt,In])=>{Ht[Xt]=In.path});const hn=nt.consumed.length>0?{...Ht,...nt.consumed[nt.consumed.length-1].parameters}:Ht;return{matched:!0,consumedSegments:nt.consumed,remainingSegments:ue.slice(nt.consumed.length),parameters:hn,positionalParamSegments:null!==(fe=nt.posParams)&&void 0!==fe?fe:{}}}function Ta(z,q,ue,Z){return ue.length>0&&function Oo(z,q,ue){return ue.some(Z=>eo(z,q,Z)&&dn(Z)!==tt)}(z,ue,Z)?{segmentGroup:new bn(q,Bs(Z,new bn(ue,z.children))),slicedSegments:[]}:0===ue.length&&function Ss(z,q,ue){return ue.some(Z=>eo(z,q,Z))}(z,ue,Z)?{segmentGroup:new bn(z.segments,Ro(z,ue,Z,z.children)),slicedSegments:ue}:{segmentGroup:new bn(z.segments,z.children),slicedSegments:ue}}function Ro(z,q,ue,Z){const fe={};for(const Ne of ue)if(eo(z,q,Ne)&&!Z[dn(Ne)]){const nt=new bn([],{});fe[dn(Ne)]=nt}return{...Z,...fe}}function Bs(z,q){const ue={};ue[tt]=q;for(const Z of z)if(""===Z.path&&dn(Z)!==tt){const fe=new bn([],{});ue[dn(Z)]=fe}return ue}function eo(z,q,ue){return(!(z.hasChildren()||q.length>0)||"full"!==ue.pathMatch)&&""===ue.path}class Zl{}class Pa{constructor(q,ue,Z,fe,Ne,nt,Ht){this.injector=q,this.configLoader=ue,this.rootComponentType=Z,this.config=fe,this.urlTree=Ne,this.paramsInheritanceStrategy=nt,this.urlSerializer=Ht,this.applyRedirects=new Gr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(q){return new S.wOt(4002,`'${q.segmentGroup}'`)}recognize(){const q=Ta(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(q).pipe((0,M.T)(ue=>{const Z=new Vi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,{}),fe=new Nn(Z,ue),Ne=new Dr("",fe),nt=function Bn(z,q,ue=null,Z=null){return Wn(Mn(z),q,ue,Z)}(Z,[],this.urlTree.queryParams,this.urlTree.fragment);return nt.queryParams=this.urlTree.queryParams,Ne.url=this.urlSerializer.serialize(nt),this.inheritParamsAndData(Ne._root,null),{state:Ne,tree:nt}}))}match(q){return this.processSegmentGroup(this.injector,this.config,q,tt).pipe((0,y.W)(Z=>{if(Z instanceof Co)return this.urlTree=Z.urlTree,this.match(Z.urlTree.root);throw Z instanceof ns?this.noMatchError(Z):Z}))}inheritParamsAndData(q,ue){const Z=q.value,fe=jr(Z,ue,this.paramsInheritanceStrategy);Z.params=Object.freeze(fe.params),Z.data=Object.freeze(fe.data),q.children.forEach(Ne=>this.inheritParamsAndData(Ne,Z))}processSegmentGroup(q,ue,Z,fe){return 0===Z.segments.length&&Z.hasChildren()?this.processChildren(q,ue,Z):this.processSegment(q,ue,Z,Z.segments,fe,!0).pipe((0,M.T)(Ne=>Ne instanceof Nn?[Ne]:[]))}processChildren(q,ue,Z){const fe=[];for(const Ne of Object.keys(Z.children))"primary"===Ne?fe.unshift(Ne):fe.push(Ne);return(0,O.H)(fe).pipe((0,h.H)(Ne=>{const nt=Z.children[Ne],Ht=function fn(z,q){const ue=z.filter(Z=>dn(Z)===q);return ue.push(...z.filter(Z=>dn(Z)!==q)),ue}(ue,Ne);return this.processSegmentGroup(q,Ht,nt,Ne)}),function r(z,q){return(0,W.N)((0,d.S)(z,q,arguments.length>=2,!0))}((Ne,nt)=>(Ne.push(...nt),Ne)),g(null),function k(z,q){const ue=arguments.length>=2;return Z=>Z.pipe(z?(0,me.p)((fe,Ne)=>z(fe,Ne,Z)):l.D,f(1),ue?g(q):n(()=>new _.G))}(),(0,te.Z)(Ne=>{if(null===Ne)return er(Z);const nt=No(Ne);return function Ki(z){z.sort((q,ue)=>q.value.outlet===tt?-1:ue.value.outlet===tt?1:q.value.outlet.localeCompare(ue.value.outlet))}(nt),(0,c.of)(nt)}))}processSegment(q,ue,Z,fe,Ne,nt){return(0,O.H)(ue).pipe((0,h.H)(Ht=>{var hn;return this.processSegmentAgainstRoute(null!==(hn=Ht._injector)&&void 0!==hn?hn:q,ue,Ht,Z,fe,Ne,nt).pipe((0,y.W)(Xt=>{if(Xt instanceof ns)return(0,c.of)(null);throw Xt}))}),s(Ht=>!!Ht),(0,y.W)(Ht=>{if(_s(Ht))return function Is(z,q,ue){return 0===q.length&&!z.children[ue]}(Z,fe,Ne)?(0,c.of)(new Zl):er(Z);throw Ht}))}processSegmentAgainstRoute(q,ue,Z,fe,Ne,nt,Ht){return function wc(z,q,ue,Z){return!!(dn(z)===Z||Z!==tt&&eo(q,ue,z))&&Wi(q,z,ue).matched}(Z,fe,Ne,nt)?void 0===Z.redirectTo?this.matchSegmentAgainstRoute(q,fe,Z,Ne,nt):this.allowRedirects&&Ht?this.expandSegmentAgainstRouteUsingRedirect(q,fe,ue,Z,Ne,nt):er(fe):er(fe)}expandSegmentAgainstRouteUsingRedirect(q,ue,Z,fe,Ne,nt){const{matched:Ht,consumedSegments:hn,positionalParamSegments:Xt,remainingSegments:In}=Wi(ue,fe,Ne);if(!Ht)return er(ue);fe.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const qn=this.applyRedirects.applyRedirectCommands(hn,fe.redirectTo,Xt);return this.applyRedirects.lineralizeSegments(fe,qn).pipe((0,te.Z)(Mr=>this.processSegment(q,Z,ue,Mr.concat(In),nt,!1)))}matchSegmentAgainstRoute(q,ue,Z,fe,Ne){const nt=is(ue,Z,fe,q);return"**"===Z.path&&(ue.children={}),nt.pipe((0,P.n)(Ht=>{var hn;return Ht.matched?(q=null!==(hn=Z._injector)&&void 0!==hn?hn:q,this.getChildConfig(q,Z,fe).pipe((0,P.n)(({routes:Xt})=>{var In,qn,Mr;const dr=null!==(In=Z._loadedInjector)&&void 0!==In?In:q,{consumedSegments:Xr,remainingSegments:wo,parameters:cs}=Ht,zo=new Vi(Xr,cs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Oa(z){return z.data||{}}(Z),dn(Z),null!==(qn=null!==(Mr=Z.component)&&void 0!==Mr?Mr:Z._loadedComponent)&&void 0!==qn?qn:null,Z,function Ps(z){return z.resolve||{}}(Z)),{segmentGroup:Wo,slicedSegments:ds}=Ta(ue,Xr,wo,Xt);if(0===ds.length&&Wo.hasChildren())return this.processChildren(dr,Xt,Wo).pipe((0,M.T)(fs=>null===fs?null:new Nn(zo,fs)));if(0===Xt.length&&0===ds.length)return(0,c.of)(new Nn(zo,[]));const Va=dn(Z)===Ne;return this.processSegment(dr,Xt,Wo,ds,Va?tt:Ne,!0).pipe((0,M.T)(fs=>new Nn(zo,fs instanceof Nn?[fs]:[])))}))):er(ue)}))}getChildConfig(q,ue,Z){return ue.children?(0,c.of)({routes:ue.children,injector:q}):ue.loadChildren?void 0!==ue._loadedRoutes?(0,c.of)({routes:ue._loadedRoutes,injector:ue._loadedInjector}):function Sa(z,q,ue,Z){const fe=q.canLoad;if(void 0===fe||0===fe.length)return(0,c.of)(!0);const Ne=fe.map(nt=>{const Ht=Ei(nt,z);return Qe(function Hn(z){return z&&ot(z.canLoad)}(Ht)?Ht.canLoad(q,ue):(0,S.N4e)(z,()=>Ht(q,ue)))});return(0,c.of)(Ne).pipe(qi(),ts())}(q,ue,Z).pipe((0,te.Z)(fe=>fe?this.configLoader.loadChildren(q,ue).pipe((0,v.M)(Ne=>{ue._loadedRoutes=Ne.routes,ue._loadedInjector=Ne.injector})):function li(z){return(0,T.$)(Ir(!1,Ct.GuardRejected))}())):(0,c.of)({routes:[],injector:q})}}function Ra(z){const q=z.value.routeConfig;return q&&""===q.path}function No(z){const q=[],ue=new Set;for(const Z of z){if(!Ra(Z)){q.push(Z);continue}const fe=q.find(Ne=>Z.value.routeConfig===Ne.value.routeConfig);void 0!==fe?(fe.children.push(...Z.children),ue.add(fe)):q.push(Z)}for(const Z of ue){const fe=No(Z.children);q.push(new Nn(Z.value,fe))}return q.filter(Z=>!ue.has(Z))}function to(z){const q=z.children.map(ue=>to(ue)).flat();return[z,...q]}function os(z){return(0,P.n)(q=>{const ue=z(q);return ue?(0,O.H)(ue).pipe((0,M.T)(()=>q)):(0,c.of)(q)})}let no=(()=>{var z;class q{buildTitle(Z){let fe,Ne=Z.root;for(;void 0!==Ne;){var nt;fe=null!==(nt=this.getResolvedTitleForRoute(Ne))&&void 0!==nt?nt:fe,Ne=Ne.children.find(Ht=>Ht.outlet===tt)}return fe}getResolvedTitleForRoute(Z){return Z.data[ke]}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(ql),providedIn:"root"}),q})(),ql=(()=>{var z;class q extends no{constructor(Z){super(),this.title=Z}updateTitle(Z){const fe=this.buildTitle(Z);void 0!==fe&&this.title.setTitle(fe)}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(ae.hE))},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const bo=new S.nKC("",{providedIn:"root",factory:()=>({})}),Do=new S.nKC("");let Lo=(()=>{var z;class q{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,S.WQX)(S.Ql9)}loadComponent(Z){if(this.componentLoaders.get(Z))return this.componentLoaders.get(Z);if(Z._loadedComponent)return(0,c.of)(Z._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Z);const fe=Qe(Z.loadComponent()).pipe((0,M.T)($o),(0,v.M)(nt=>{this.onLoadEndListener&&this.onLoadEndListener(Z),Z._loadedComponent=nt}),(0,V.j)(()=>{this.componentLoaders.delete(Z)})),Ne=new w.G(fe,()=>new R.B).pipe((0,J.B)());return this.componentLoaders.set(Z,Ne),Ne}loadChildren(Z,fe){if(this.childrenLoaders.get(fe))return this.childrenLoaders.get(fe);if(fe._loadedRoutes)return(0,c.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(fe);const nt=function ro(z,q,ue,Z){return Qe(z.loadChildren()).pipe((0,M.T)($o),(0,te.Z)(fe=>fe instanceof S.Co$||Array.isArray(fe)?(0,c.of)(fe):(0,O.H)(q.compileModuleAsync(fe))),(0,M.T)(fe=>{Z&&Z(z);let Ne,nt,Ht=!1;return Array.isArray(fe)?(nt=fe,!0):(Ne=fe.create(ue).injector,nt=Ne.get(Do,[],{optional:!0,self:!0}).flat()),{routes:nt.map(Vt),injector:Ne}}))}(fe,this.compiler,Z,this.onLoadEndListener).pipe((0,V.j)(()=>{this.childrenLoaders.delete(fe)})),Ht=new w.G(nt,()=>new R.B).pipe((0,J.B)());return this.childrenLoaders.set(fe,Ht),Ht}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();function $o(z){return function Na(z){return z&&"object"==typeof z&&"default"in z}(z)?z.default:z}let Y=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(xe),providedIn:"root"}),q})(),xe=(()=>{var z;class q{shouldProcessUrl(Z){return!0}extract(Z){return Z}merge(Z,fe){return Z}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const at=new S.nKC(""),de=new S.nKC("");function We(z,q,ue){const Z=z.get(de),fe=z.get(L.qQ);return z.get(S.SKi).runOutsideAngular(()=>{if(!fe.startViewTransition||Z.skipNextTransition)return Z.skipNextTransition=!1,new Promise(Xt=>setTimeout(Xt));let Ne;const nt=new Promise(Xt=>{Ne=Xt}),Ht=fe.startViewTransition(()=>(Ne(),function ht(z){return new Promise(q=>{(0,S.mal)(q,{injector:z})})}(z))),{onViewTransitionCreated:hn}=Z;return hn&&(0,S.N4e)(z,()=>hn({transition:Ht,from:q,to:ue})),nt})}let Jt=(()=>{var z;class q{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new R.B,this.transitionAbortSubject=new R.B,this.configLoader=(0,S.WQX)(Lo),this.environmentInjector=(0,S.WQX)(S.uvJ),this.urlSerializer=(0,S.WQX)(Lt),this.rootContexts=(0,S.WQX)(Ue),this.location=(0,S.WQX)(L.aZ),this.inputBindingEnabled=null!==(0,S.WQX)(Mi,{optional:!0}),this.titleStrategy=(0,S.WQX)(no),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,S.WQX)(Y),this.createViewTransition=(0,S.WQX)(at,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,c.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ne=>this.events.next(new an(Ne)),this.configLoader.onLoadStartListener=Ne=>this.events.next(new $t(Ne))}complete(){var Z;null===(Z=this.transitions)||void 0===Z||Z.complete()}handleNavigationRequest(Z){var fe;const Ne=++this.navigationId;null===(fe=this.transitions)||void 0===fe||fe.next({...this.transitions.value,...Z,id:Ne})}setupNavigations(Z,fe,Ne){return this.transitions=new D.t({id:0,currentUrlTree:fe,currentRawUrl:fe,extractedUrl:this.urlHandlingStrategy.extract(fe),urlAfterRedirects:this.urlHandlingStrategy.extract(fe),rawUrl:fe,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fr,restoredState:null,currentSnapshot:Ne.snapshot,targetSnapshot:null,currentRouterState:Ne,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,me.p)(nt=>0!==nt.id),(0,M.T)(nt=>({...nt,extractedUrl:this.urlHandlingStrategy.extract(nt.rawUrl)})),(0,P.n)(nt=>{let Ht=!1,hn=!1;return(0,c.of)(nt).pipe((0,P.n)(Xt=>{var In;if(this.navigationId>nt.id)return this.cancelNavigationTransition(nt,"",Ct.SupersededByNewNavigation),A.w;this.currentTransition=nt,this.currentNavigation={id:Xt.id,initialUrl:Xt.rawUrl,extractedUrl:Xt.extractedUrl,trigger:Xt.source,extras:Xt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const qn=!Z.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Mr=null!==(In=Xt.extras.onSameUrlNavigation)&&void 0!==In?In:Z.onSameUrlNavigation;if(!qn&&"reload"!==Mr){const dr="";return this.events.next(new gt(Xt.id,this.urlSerializer.serialize(Xt.rawUrl),dr,Gt.IgnoredSameUrlNavigation)),Xt.resolve(null),A.w}if(this.urlHandlingStrategy.shouldProcessUrl(Xt.rawUrl))return(0,c.of)(Xt).pipe((0,P.n)(dr=>{var Xr,wo;const cs=null===(Xr=this.transitions)||void 0===Xr?void 0:Xr.getValue();return this.events.next(new Fe(dr.id,this.urlSerializer.serialize(dr.extractedUrl),dr.source,dr.restoredState)),cs!==(null===(wo=this.transitions)||void 0===wo?void 0:wo.getValue())?A.w:Promise.resolve(dr)}),function ko(z,q,ue,Z,fe,Ne){return(0,te.Z)(nt=>function Ts(z,q,ue,Z,fe,Ne,nt="emptyOnly"){return new Pa(z,q,ue,Z,fe,nt,Ne).recognize()}(z,q,ue,Z,nt.extractedUrl,fe,Ne).pipe((0,M.T)(({state:Ht,tree:hn})=>({...nt,targetSnapshot:Ht,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Z.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,v.M)(dr=>{nt.targetSnapshot=dr.targetSnapshot,nt.urlAfterRedirects=dr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:dr.urlAfterRedirects};const Xr=new ye(dr.id,this.urlSerializer.serialize(dr.extractedUrl),this.urlSerializer.serialize(dr.urlAfterRedirects),dr.targetSnapshot);this.events.next(Xr)}));if(qn&&this.urlHandlingStrategy.shouldProcessUrl(Xt.currentRawUrl)){const{id:dr,extractedUrl:Xr,source:wo,restoredState:cs,extras:zo}=Xt,Wo=new Fe(dr,this.urlSerializer.serialize(Xr),wo,cs);this.events.next(Wo);const ds=qr(this.rootComponentType).snapshot;return this.currentTransition=nt={...Xt,targetSnapshot:ds,urlAfterRedirects:Xr,extras:{...zo,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Xr,(0,c.of)(nt)}{const dr="";return this.events.next(new gt(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),dr,Gt.IgnoredByUrlHandlingStrategy)),Xt.resolve(null),A.w}}),(0,v.M)(Xt=>{const In=new Ke(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects),Xt.targetSnapshot);this.events.next(In)}),(0,M.T)(Xt=>(this.currentTransition=nt={...Xt,guards:gi(Xt.targetSnapshot,Xt.currentSnapshot,this.rootContexts)},nt)),function Er(z,q){return(0,te.Z)(ue=>{const{targetSnapshot:Z,currentSnapshot:fe,guards:{canActivateChecks:Ne,canDeactivateChecks:nt}}=ue;return 0===nt.length&&0===Ne.length?(0,c.of)({...ue,guardsResult:!0}):function zl(z,q,ue,Z){return(0,O.H)(z).pipe((0,te.Z)(fe=>function Xl(z,q,ue,Z,fe){const Ne=q&&q.routeConfig?q.routeConfig.canDeactivate:null;if(!Ne||0===Ne.length)return(0,c.of)(!0);const nt=Ne.map(Ht=>{var hn;const Xt=null!==(hn=Un(q))&&void 0!==hn?hn:fe,In=Ei(Ht,Xt);return Qe(function Hr(z){return z&&ot(z.canDeactivate)}(In)?In.canDeactivate(z,q,ue,Z):(0,S.N4e)(Xt,()=>In(z,q,ue,Z))).pipe(s())});return(0,c.of)(nt).pipe(qi())}(fe.component,fe.route,ue,q,Z)),s(fe=>!0!==fe,!0))}(nt,Z,fe,z).pipe((0,te.Z)(Ht=>Ht&&function En(z){return"boolean"==typeof z}(Ht)?function _a(z,q,ue,Z){return(0,O.H)(q).pipe((0,h.H)(fe=>(0,F.x)(function Kl(z,q){return null!==z&&q&&q(new ln(z)),(0,c.of)(!0)}(fe.route.parent,Z),function Wl(z,q){return null!==z&&q&&q(new cn(z)),(0,c.of)(!0)}(fe.route,Z),function Ba(z,q,ue){const Z=q[q.length-1],Ne=q.slice(0,q.length-1).reverse().map(nt=>function es(z){const q=z.routeConfig?z.routeConfig.canActivateChild:null;return q&&0!==q.length?{node:z,guards:q}:null}(nt)).filter(nt=>null!==nt).map(nt=>(0,B.v)(()=>{const Ht=nt.guards.map(hn=>{var Xt;const In=null!==(Xt=Un(nt.node))&&void 0!==Xt?Xt:ue,qn=Ei(hn,In);return Qe(function di(z){return z&&ot(z.canActivateChild)}(qn)?qn.canActivateChild(Z,z):(0,S.N4e)(In,()=>qn(Z,z))).pipe(s())});return(0,c.of)(Ht).pipe(qi())}));return(0,c.of)(Ne).pipe(qi())}(z,fe.path,ue),function Gl(z,q,ue){const Z=q.routeConfig?q.routeConfig.canActivate:null;if(!Z||0===Z.length)return(0,c.of)(!0);const fe=Z.map(Ne=>(0,B.v)(()=>{var nt;const Ht=null!==(nt=Un(q))&&void 0!==nt?nt:ue,hn=Ei(Ne,Ht);return Qe(function Fr(z){return z&&ot(z.canActivate)}(hn)?hn.canActivate(q,z):(0,S.N4e)(Ht,()=>hn(q,z))).pipe(s())}));return(0,c.of)(fe).pipe(qi())}(z,fe.route,ue))),s(fe=>!0!==fe,!0))}(Z,Ne,z,q):(0,c.of)(Ht)),(0,M.T)(Ht=>({...ue,guardsResult:Ht})))})}(this.environmentInjector,Xt=>this.events.next(Xt)),(0,v.M)(Xt=>{if(nt.guardsResult=Xt.guardsResult,An(Xt.guardsResult))throw mo(0,Xt.guardsResult);const In=new dt(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects),Xt.targetSnapshot,!!Xt.guardsResult);this.events.next(In)}),(0,me.p)(Xt=>!!Xt.guardsResult||(this.cancelNavigationTransition(Xt,"",Ct.GuardRejected),!1)),os(Xt=>{if(Xt.guards.canActivateChecks.length)return(0,c.of)(Xt).pipe((0,v.M)(In=>{const qn=new pt(In.id,this.urlSerializer.serialize(In.extractedUrl),this.urlSerializer.serialize(In.urlAfterRedirects),In.targetSnapshot);this.events.next(qn)}),(0,P.n)(In=>{let qn=!1;return(0,c.of)(In).pipe(function fi(z,q){return(0,te.Z)(ue=>{const{targetSnapshot:Z,guards:{canActivateChecks:fe}}=ue;if(!fe.length)return(0,c.of)(ue);const Ne=new Set(fe.map(hn=>hn.route)),nt=new Set;for(const hn of Ne)if(!nt.has(hn))for(const Xt of to(hn))nt.add(Xt);let Ht=0;return(0,O.H)(nt).pipe((0,h.H)(hn=>Ne.has(hn)?function Rs(z,q,ue,Z){const fe=z.routeConfig,Ne=z._resolve;return void 0!==(null==fe?void 0:fe.title)&&!Di(fe)&&(Ne[ke]=fe.title),function Ql(z,q,ue,Z){const fe=G(z);if(0===fe.length)return(0,c.of)({});const Ne={};return(0,O.H)(fe).pipe((0,te.Z)(nt=>function Jl(z,q,ue,Z){var fe;const Ne=null!==(fe=Un(q))&&void 0!==fe?fe:Z,nt=Ei(z,Ne);return Qe(nt.resolve?nt.resolve(q,ue):(0,S.N4e)(Ne,()=>nt(q,ue)))}(z[nt],q,ue,Z).pipe(s(),(0,v.M)(Ht=>{Ne[nt]=Ht}))),f(1),(0,I.u)(Ne),(0,y.W)(nt=>_s(nt)?A.w:(0,T.$)(nt)))}(Ne,z,q,Z).pipe((0,M.T)(nt=>(z._resolvedData=nt,z.data=jr(z,z.parent,ue).resolve,null)))}(hn,Z,z,q):(hn.data=jr(hn,hn.parent,z).resolve,(0,c.of)(void 0))),(0,v.M)(()=>Ht++),f(1),(0,te.Z)(hn=>Ht===nt.size?(0,c.of)(ue):A.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,v.M)({next:()=>qn=!0,complete:()=>{qn||this.cancelNavigationTransition(In,"",Ct.NoDataFromResolver)}}))}),(0,v.M)(In=>{const qn=new Yt(In.id,this.urlSerializer.serialize(In.extractedUrl),this.urlSerializer.serialize(In.urlAfterRedirects),In.targetSnapshot);this.events.next(qn)}))}),os(Xt=>{const In=qn=>{var Mr;const dr=[];null!==(Mr=qn.routeConfig)&&void 0!==Mr&&Mr.loadComponent&&!qn.routeConfig._loadedComponent&&dr.push(this.configLoader.loadComponent(qn.routeConfig).pipe((0,v.M)(Xr=>{qn.component=Xr}),(0,M.T)(()=>{})));for(const Xr of qn.children)dr.push(...In(Xr));return dr};return(0,C.z)(In(Xt.targetSnapshot.root)).pipe(g(null),(0,U.s)(1))}),os(()=>this.afterPreactivation()),(0,P.n)(()=>{var Xt;const{currentSnapshot:In,targetSnapshot:qn}=nt,Mr=null===(Xt=this.createViewTransition)||void 0===Xt?void 0:Xt.call(this,this.environmentInjector,In.root,qn.root);return Mr?(0,O.H)(Mr).pipe((0,M.T)(()=>nt)):(0,c.of)(nt)}),(0,M.T)(Xt=>{const In=function Kr(z,q,ue){const Z=wi(z,q._root,ue?ue._root:void 0);return new wr(Z,q)}(Z.routeReuseStrategy,Xt.targetSnapshot,Xt.currentRouterState);return this.currentTransition=nt={...Xt,targetRouterState:In},this.currentNavigation.targetRouterState=In,nt}),(0,v.M)(()=>{this.events.next(new Sn)}),((z,q,ue,Z)=>(0,M.T)(fe=>(new lr(q,fe.targetRouterState,fe.currentRouterState,ue,Z).activate(z),fe)))(this.rootContexts,Z.routeReuseStrategy,Xt=>this.events.next(Xt),this.inputBindingEnabled),(0,U.s)(1),(0,v.M)({next:Xt=>{var In;Ht=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new qe(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects))),null===(In=this.titleStrategy)||void 0===In||In.updateTitle(Xt.targetRouterState.snapshot),Xt.resolve(!0)},complete:()=>{Ht=!0}}),function De(z){return(0,W.N)((q,ue)=>{(0,oe.Tg)(z).subscribe((0,se._)(ue,()=>ue.complete(),ve.l)),!ue.closed&&q.subscribe(ue)})}(this.transitionAbortSubject.pipe((0,v.M)(Xt=>{throw Xt}))),(0,V.j)(()=>{var Xt;!Ht&&!hn&&this.cancelNavigationTransition(nt,"",Ct.SupersededByNewNavigation),(null===(Xt=this.currentTransition)||void 0===Xt?void 0:Xt.id)===nt.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,y.W)(Xt=>{if(hn=!0,Ni(Xt))this.events.next(new vn(nt.id,this.urlSerializer.serialize(nt.extractedUrl),Xt.message,Xt.cancellationCode)),function si(z){return Ni(z)&&An(z.url)}(Xt)?this.events.next(new Pn(Xt.url)):nt.resolve(!1);else{var In;this.events.next(new zt(nt.id,this.urlSerializer.serialize(nt.extractedUrl),Xt,null!==(In=nt.targetSnapshot)&&void 0!==In?In:void 0));try{nt.resolve(Z.errorHandler(Xt))}catch(qn){this.options.resolveNavigationPromiseOnError?nt.resolve(!1):nt.reject(qn)}}return A.w}))}))}cancelNavigationTransition(Z,fe,Ne){const nt=new vn(Z.id,this.urlSerializer.serialize(Z.extractedUrl),fe,Ne);this.events.next(nt),Z.resolve(!1)}isUpdatingInternalState(){var Z,fe;return(null===(Z=this.currentTransition)||void 0===Z?void 0:Z.extractedUrl.toString())!==(null===(fe=this.currentTransition)||void 0===fe?void 0:fe.currentUrlTree.toString())}isUpdatedBrowserUrl(){var Z,fe;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(Z=this.currentTransition)||void 0===Z?void 0:Z.extractedUrl.toString())&&!(null!==(fe=this.currentTransition)&&void 0!==fe&&fe.extras.skipLocationChange)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();function mn(z){return z!==fr}let Zn=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(cr),providedIn:"root"}),q})();class sr{shouldDetach(q){return!1}store(q,ue){}shouldAttach(q){return!1}retrieve(q){return null}shouldReuseRoute(q,ue){return q.routeConfig===ue.routeConfig}}let cr=(()=>{var z;class q extends sr{}return(z=q).\u0275fac=(()=>{let ue;return function(fe){return(ue||(ue=S.xGo(z)))(fe||z)}})(),z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),nr=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(gr),providedIn:"root"}),q})(),gr=(()=>{var z;class q extends nr{constructor(){super(...arguments),this.location=(0,S.WQX)(L.aZ),this.urlSerializer=(0,S.WQX)(Lt),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,S.WQX)(Y),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=qr(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var Z,fe;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(Z=null===(fe=this.restoredState())||void 0===fe?void 0:fe.\u0275routerPageId)&&void 0!==Z?Z:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(Z){return this.location.subscribe(fe=>{"popstate"===fe.type&&Z(fe.url,fe.state)})}handleRouterEvent(Z,fe){if(Z instanceof Fe)this.stateMemento=this.createStateMemento();else if(Z instanceof gt)this.rawUrlTree=fe.initialUrl;else if(Z instanceof ye){if("eager"===this.urlUpdateStrategy&&!fe.extras.skipLocationChange){const Ne=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl);this.setBrowserUrl(Ne,fe)}}else Z instanceof Sn?(this.currentUrlTree=fe.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl),this.routerState=fe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(fe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,fe))):Z instanceof vn&&(Z.code===Ct.GuardRejected||Z.code===Ct.NoDataFromResolver)?this.restoreHistory(fe):Z instanceof zt?this.restoreHistory(fe,!0):Z instanceof qe&&(this.lastSuccessfulId=Z.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Z,fe){const Ne=this.urlSerializer.serialize(Z);if(this.location.isCurrentPathEqualTo(Ne)||fe.extras.replaceUrl){const Ht={...fe.extras.state,...this.generateNgRouterState(fe.id,this.browserPageId)};this.location.replaceState(Ne,"",Ht)}else{const nt={...fe.extras.state,...this.generateNgRouterState(fe.id,this.browserPageId+1)};this.location.go(Ne,"",nt)}}restoreHistory(Z,fe=!1){if("computed"===this.canceledNavigationResolution){const nt=this.currentPageId-this.browserPageId;0!==nt?this.location.historyGo(nt):this.currentUrlTree===Z.finalUrl&&0===nt&&(this.resetState(Z),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(fe&&this.resetState(Z),this.resetUrlToCurrentUrlTree())}resetState(Z){var fe;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(fe=Z.finalUrl)&&void 0!==fe?fe:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Z,fe){return"computed"===this.canceledNavigationResolution?{navigationId:Z,\u0275routerPageId:fe}:{navigationId:Z}}}return(z=q).\u0275fac=(()=>{let ue;return function(fe){return(ue||(ue=S.xGo(z)))(fe||z)}})(),z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();var ar=function(z){return z[z.COMPLETE=0]="COMPLETE",z[z.FAILED=1]="FAILED",z[z.REDIRECTING=2]="REDIRECTING",z}(ar||{});function _r(z,q){z.events.pipe((0,me.p)(ue=>ue instanceof qe||ue instanceof vn||ue instanceof zt||ue instanceof gt),(0,M.T)(ue=>ue instanceof qe||ue instanceof gt?ar.COMPLETE:ue instanceof vn&&(ue.code===Ct.Redirect||ue.code===Ct.SupersededByNewNavigation)?ar.REDIRECTING:ar.FAILED),(0,me.p)(ue=>ue!==ar.REDIRECTING),(0,U.s)(1)).subscribe(()=>{q()})}function xr(z){throw z}const yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ir=(()=>{var z;class q{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var Z,fe;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,S.WQX)(S.H3F),this.stateManager=(0,S.WQX)(nr),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.pendingTasks=(0,S.WQX)(S.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,S.WQX)(Jt),this.urlSerializer=(0,S.WQX)(Lt),this.location=(0,S.WQX)(L.aZ),this.urlHandlingStrategy=(0,S.WQX)(Y),this._events=new R.B,this.errorHandler=this.options.errorHandler||xr,this.navigated=!1,this.routeReuseStrategy=(0,S.WQX)(Zn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(Z=null===(fe=(0,S.WQX)(Do,{optional:!0}))||void 0===fe?void 0:fe.flat())&&void 0!==Z?Z:[],this.componentInputBindingEnabled=!!(0,S.WQX)(Mi,{optional:!0}),this.eventsSubscription=new $.yU,this.isNgZoneEnabled=(0,S.WQX)(S.SKi)instanceof S.SKi&&S.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Ne=>{this.console.warn(Ne)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Z=this.navigationTransitions.events.subscribe(fe=>{try{const Ne=this.navigationTransitions.currentTransition,nt=this.navigationTransitions.currentNavigation;if(null!==Ne&&null!==nt)if(this.stateManager.handleRouterEvent(fe,nt),fe instanceof vn&&fe.code!==Ct.Redirect&&fe.code!==Ct.SupersededByNewNavigation)this.navigated=!0;else if(fe instanceof qe)this.navigated=!0;else if(fe instanceof Pn){const Ht=this.urlHandlingStrategy.merge(fe.url,Ne.currentRawUrl),hn={info:Ne.extras.info,skipLocationChange:Ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mn(Ne.source)};this.scheduleNavigation(Ht,fr,null,hn,{resolve:Ne.resolve,reject:Ne.reject,promise:Ne.promise})}(function Ar(z){return!(z instanceof Sn||z instanceof Pn)})(fe)&&this._events.next(fe)}catch(Ne){this.navigationTransitions.transitionAbortSubject.next(Ne)}});this.eventsSubscription.add(Z)}resetRootComponentType(Z){this.routerState.root.component=Z,this.navigationTransitions.rootComponentType=Z}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fr,this.stateManager.restoredState())}setUpLocationChangeListener(){var Z;null!==(Z=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==Z||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((fe,Ne)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(fe,"popstate",Ne)},0)}))}navigateToSyncWithBrowser(Z,fe,Ne){const nt={replaceUrl:!0},Ht=null!=Ne&&Ne.navigationId?Ne:null;if(Ne){const Xt={...Ne};delete Xt.navigationId,delete Xt.\u0275routerPageId,0!==Object.keys(Xt).length&&(nt.state=Xt)}const hn=this.parseUrl(Z);this.scheduleNavigation(hn,fe,Ht,nt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Z){this.config=Z.map(Vt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Z,fe={}){const{relativeTo:Ne,queryParams:nt,fragment:Ht,queryParamsHandling:hn,preserveFragment:Xt}=fe,In=Xt?this.currentUrlTree.fragment:Ht;let Mr,qn=null;switch(hn){case"merge":qn={...this.currentUrlTree.queryParams,...nt};break;case"preserve":qn=this.currentUrlTree.queryParams;break;default:qn=nt||null}null!==qn&&(qn=this.removeEmptyProps(qn));try{Mr=Mn(Ne?Ne.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Z[0]||!Z[0].startsWith("/"))&&(Z=[]),Mr=this.currentUrlTree.root}return Wn(Mr,Z,qn,null!=In?In:null)}navigateByUrl(Z,fe={skipLocationChange:!1}){const Ne=An(Z)?Z:this.parseUrl(Z),nt=this.urlHandlingStrategy.merge(Ne,this.rawUrlTree);return this.scheduleNavigation(nt,fr,null,fe)}navigate(Z,fe={skipLocationChange:!1}){return function Lr(z){for(let q=0;q(null!=nt&&(fe[Ne]=nt),fe),{})}scheduleNavigation(Z,fe,Ne,nt,Ht){if(this.disposed)return Promise.resolve(!1);let hn,Xt,In;Ht?(hn=Ht.resolve,Xt=Ht.reject,In=Ht.promise):In=new Promise((Mr,dr)=>{hn=Mr,Xt=dr});const qn=this.pendingTasks.add();return _r(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(qn))}),this.navigationTransitions.handleNavigationRequest({source:fe,restoredState:Ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Z,extras:nt,resolve:hn,reject:Xt,promise:In,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),In.catch(Mr=>Promise.reject(Mr))}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),Sr=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht,hn){var Xt;this.router=Z,this.route=fe,this.tabIndexAttribute=Ne,this.renderer=nt,this.el=Ht,this.locationStrategy=hn,this.href=null,this.commands=null,this.onChanges=new R.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const In=null===(Xt=Ht.nativeElement.tagName)||void 0===Xt?void 0:Xt.toLowerCase();this.isAnchorElement="a"===In||"area"===In,this.isAnchorElement?this.subscription=Z.events.subscribe(qn=>{qn instanceof qe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Z){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Z)}ngOnChanges(Z){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(Z){null!=Z?(this.commands=Array.isArray(Z)?Z:[Z],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(Z,fe,Ne,nt,Ht){const hn=this.urlTree;return!!(null===hn||this.isAnchorElement&&(0!==Z||fe||Ne||nt||Ht||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(hn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var Z;null===(Z=this.subscription)||void 0===Z||Z.unsubscribe()}updateHref(){var Z;const fe=this.urlTree;this.href=null!==fe&&this.locationStrategy?null===(Z=this.locationStrategy)||void 0===Z?void 0:Z.prepareExternalUrl(this.router.serializeUrl(fe)):null;const Ne=null===this.href?null:(0,S.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",Ne)}applyAttributeValue(Z,fe){const Ne=this.renderer,nt=this.el.nativeElement;null!==fe?Ne.setAttribute(nt,Z,fe):Ne.removeAttribute(nt,Z)}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(z=q).\u0275fac=function(Z){return new(Z||z)(S.rXU(ir),S.rXU(ei),S.kS0("tabindex"),S.rXU(S.sFG),S.rXU(S.aKT),S.rXU(L.hb))},z.\u0275dir=S.FsC({type:z,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Z,fe){1&Z&&S.bIt("click",function(nt){return fe.onClick(nt.button,nt.ctrlKey,nt.shiftKey,nt.altKey,nt.metaKey)}),2&Z&&S.BMQ("target",fe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[S.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",S.L39],skipLocationChange:[S.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",S.L39],replaceUrl:[S.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",S.L39],routerLink:"routerLink"},standalone:!0,features:[S.GFd,S.OA$]}),q})();class Rr{}let Si=(()=>{var z;class q{preload(Z,fe){return fe().pipe((0,y.W)(()=>(0,c.of)(null)))}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),ss=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht){this.router=Z,this.injector=Ne,this.preloadingStrategy=nt,this.loader=Ht}setUpPreloading(){this.subscription=this.router.events.pipe((0,me.p)(Z=>Z instanceof qe),(0,h.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Z,fe){const Ne=[];for(const Xt of fe){var nt,Ht;Xt.providers&&!Xt._injector&&(Xt._injector=(0,S.Ol2)(Xt.providers,Z,`Route: ${Xt.path}`));const In=null!==(nt=Xt._injector)&&void 0!==nt?nt:Z,qn=null!==(Ht=Xt._loadedInjector)&&void 0!==Ht?Ht:In;var hn;(Xt.loadChildren&&!Xt._loadedRoutes&&void 0===Xt.canLoad||Xt.loadComponent&&!Xt._loadedComponent)&&Ne.push(this.preloadConfig(In,Xt)),(Xt.children||Xt._loadedRoutes)&&Ne.push(this.processRoutes(qn,null!==(hn=Xt.children)&&void 0!==hn?hn:Xt._loadedRoutes))}return(0,O.H)(Ne).pipe((0,Q.U)())}preloadConfig(Z,fe){return this.preloadingStrategy.preload(fe,()=>{let Ne;Ne=fe.loadChildren&&void 0===fe.canLoad?this.loader.loadChildren(Z,fe):(0,c.of)(null);const nt=Ne.pipe((0,te.Z)(Ht=>{var hn;return null===Ht?(0,c.of)(void 0):(fe._loadedRoutes=Ht.routes,fe._loadedInjector=Ht.injector,this.processRoutes(null!==(hn=Ht.injector)&&void 0!==hn?hn:Z,Ht.routes))}));if(fe.loadComponent&&!fe._loadedComponent){const Ht=this.loader.loadComponent(fe);return(0,O.H)([nt,Ht]).pipe((0,Q.U)())}return nt})}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(ir),S.KVO(S.Ql9),S.KVO(S.uvJ),S.KVO(Rr),S.KVO(Lo))},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const Os=new S.nKC("");let Ao=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht={}){this.urlSerializer=Z,this.transitions=fe,this.viewportScroller=Ne,this.zone=nt,this.options=Ht,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,S.WQX)(S.uvJ),Ht.scrollPositionRestoration||(Ht.scrollPositionRestoration="disabled"),Ht.anchorScrolling||(Ht.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(Z=>{Z instanceof Fe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Z.navigationTrigger,this.restoredId=Z.restoredState?Z.restoredState.navigationId:0):Z instanceof qe?(this.lastId=Z.id,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.urlAfterRedirects).fragment)):Z instanceof gt&&Z.code===Gt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Z=>{Z instanceof _n&&(Z.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Z.position):Z.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Z.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Z,fe){var Ne=this;this.zone.runOutsideAngular((0,a.A)(function*(){yield new Promise(nt=>{setTimeout(()=>{nt()}),(0,S.mal)(()=>{nt()},{injector:Ne.environmentInjector})}),Ne.zone.run(()=>{Ne.transitions.events.next(new _n(Z,"popstate"===Ne.lastSource?Ne.store[Ne.restoredId]:null,fe))})}))}ngOnDestroy(){var Z,fe;null===(Z=this.routerEventsSubscription)||void 0===Z||Z.unsubscribe(),null===(fe=this.scrollEventsSubscription)||void 0===fe||fe.unsubscribe()}}return(z=q).\u0275fac=function(Z){S.QTQ()},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac}),q})();function ri(z,q){return{\u0275kind:z,\u0275providers:q}}function Vo(){const z=(0,S.WQX)(S.zZn);return q=>{var ue,Z;const fe=z.get(S.o8S);if(q!==fe.components[0])return;const Ne=z.get(ir),nt=z.get(io);1===z.get(Jn)&&Ne.initialNavigation(),null===(ue=z.get(ls,null,S.$GK.Optional))||void 0===ue||ue.setUpPreloading(),null===(Z=z.get(Os,null,S.$GK.Optional))||void 0===Z||Z.init(),Ne.resetRootComponentType(fe.componentTypes[0]),nt.closed||(nt.next(),nt.complete(),nt.unsubscribe())}}const io=new S.nKC("",{factory:()=>new R.B}),Jn=new S.nKC("",{providedIn:"root",factory:()=>1}),ls=new S.nKC("");function jo(z){return ri(0,[{provide:ls,useExisting:ss},{provide:Rr,useExisting:z}])}function La(z){return ri(9,[{provide:at,useValue:We},{provide:de,useValue:{skipNextTransition:!(null==z||!z.skipInitialTransition),...z}}])}const us=new S.nKC("ROUTER_FORROOT_GUARD"),Ii=[L.aZ,{provide:Lt,useClass:Wt},ir,Ue,{provide:ei,useFactory:function Uo(z){return z.routerState.root},deps:[ir]},Lo,[]];let $a=(()=>{var z;class q{constructor(Z){}static forRoot(Z,fe){return{ngModule:q,providers:[Ii,[],{provide:Do,multi:!0,useValue:Z},{provide:us,useFactory:tu,deps:[[ir,new S.Xx1,new S.kdw]]},{provide:bo,useValue:fe||{}},null!=fe&&fe.useHash?{provide:L.hb,useClass:L.fw}:{provide:L.hb,useClass:L.Sm},{provide:Os,useFactory:()=>{const z=(0,S.WQX)(L.Xr),q=(0,S.WQX)(S.SKi),ue=(0,S.WQX)(bo),Z=(0,S.WQX)(Jt),fe=(0,S.WQX)(Lt);return ue.scrollOffset&&z.setOffset(ue.scrollOffset),new Ao(fe,Z,z,q,ue)}},null!=fe&&fe.preloadingStrategy?jo(fe.preloadingStrategy).\u0275providers:[],null!=fe&&fe.initialNavigation?Ic(fe):[],null!=fe&&fe.bindToComponentInputs?ri(8,[Hi,{provide:Mi,useExisting:Hi}]).\u0275providers:[],null!=fe&&fe.enableViewTransitions?La().\u0275providers:[],[{provide:ks,useFactory:Vo},{provide:S.iLQ,multi:!0,useExisting:ks}]]}}static forChild(Z){return{ngModule:q,providers:[{provide:Do,multi:!0,useValue:Z}]}}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(us,8))},z.\u0275mod=S.$C({type:z}),z.\u0275inj=S.G2t({}),q})();function tu(z){return"guarded"}function Ic(z){return["disabled"===z.initialNavigation?ri(3,[{provide:S.hnV,multi:!0,useFactory:()=>{const q=(0,S.WQX)(ir);return()=>{q.setUpLocationChangeListener()}}},{provide:Jn,useValue:2}]).\u0275providers:[],"enabledBlocking"===z.initialNavigation?ri(2,[{provide:Jn,useValue:0},{provide:S.hnV,multi:!0,deps:[S.zZn],useFactory:q=>{const ue=q.get(L.hj,Promise.resolve());return()=>ue.then(()=>new Promise(Z=>{const fe=q.get(ir),Ne=q.get(io);_r(fe,()=>{Z(!0)}),q.get(Jt).afterPreactivation=()=>(Z(!0),Ne.closed?(0,c.of)(void 0):Ne),fe.initialNavigation()}))}}]).\u0275providers:[]]}const ks=new S.nKC("")},4517:(Ce,ee,E)=>{"use strict";E.d(ee,{Yq:()=>bt,TS:()=>Cn,sR:()=>St,el:()=>Gn,Sb:()=>Pe,QE:()=>Tt,CF:()=>Ze,Rg:()=>An,p4:()=>Mt,jM:()=>Kn,_t:()=>ge,q9:()=>ft,y8:()=>bn,Kb:()=>fr,OD:()=>rt,CE:()=>Xn,pF:()=>jn,fL:()=>Zt,YV:()=>Ln,er:()=>kt,z3:()=>qt});var a=E(467),S=E(4438),p=E(3021),O=E(177);class c{constructor(){this.m=new Map}reset(et){this.m=new Map(Object.entries(et))}get(et,Fe){const qe=this.m.get(et);return void 0!==qe?qe:Fe}getBoolean(et,Fe=!1){const qe=this.m.get(et);return void 0===qe?Fe:"string"==typeof qe?"true"===qe:!!qe}getNumber(et,Fe){const qe=parseFloat(this.m.get(et));return isNaN(qe)?void 0!==Fe?Fe:NaN:qe}set(et,Fe){this.m.set(et,Fe)}}const D=new c,A=Ge=>R(Ge),R=(Ge=window)=>{if(typeof Ge>"u")return[];Ge.Ionic=Ge.Ionic||{};let et=Ge.Ionic.platforms;return null==et&&(et=Ge.Ionic.platforms=$(Ge),et.forEach(Fe=>Ge.document.documentElement.classList.add(`plt-${Fe}`))),et},$=Ge=>{const et=D.get("platform");return Object.keys(y).filter(Fe=>{const qe=null==et?void 0:et[Fe];return"function"==typeof qe?qe(Ge):y[Fe](Ge)})},M=Ge=>!!(h(Ge,/iPad/i)||h(Ge,/Macintosh/i)&&te(Ge)),j=Ge=>h(Ge,/android|sink/i),te=Ge=>v(Ge,"(any-pointer:coarse)"),g=Ge=>n(Ge)||o(Ge),n=Ge=>!!(Ge.cordova||Ge.phonegap||Ge.PhoneGap),o=Ge=>{const et=Ge.Capacitor;return!(null==et||!et.isNative)},h=(Ge,et)=>et.test(Ge.navigator.userAgent),v=(Ge,et)=>{var Fe;return null===(Fe=Ge.matchMedia)||void 0===Fe?void 0:Fe.call(Ge,et).matches},y={ipad:M,iphone:Ge=>h(Ge,/iPhone/i),ios:Ge=>h(Ge,/iPhone|iPod/i)||M(Ge),android:j,phablet:Ge=>{const et=Ge.innerWidth,Fe=Ge.innerHeight,qe=Math.min(et,Fe),Ct=Math.max(et,Fe);return qe>390&&qe<520&&Ct>620&&Ct<800},tablet:Ge=>{const et=Ge.innerWidth,Fe=Ge.innerHeight,qe=Math.min(et,Fe),Ct=Math.max(et,Fe);return M(Ge)||(Ge=>j(Ge)&&!h(Ge,/mobile/i))(Ge)||qe>460&&qe<820&&Ct>780&&Ct<1400},cordova:n,capacitor:o,electron:Ge=>h(Ge,/electron/i),pwa:Ge=>{var et;return!!(null!==(et=Ge.matchMedia)&&void 0!==et&&et.call(Ge,"(display-mode: standalone)").matches||Ge.navigator.standalone)},mobile:te,mobileweb:Ge=>te(Ge)&&!g(Ge),desktop:Ge=>!te(Ge),hybrid:g};var k=E(6031),I=E(1656),V=E(1413),J=E(3726),oe=E(4412),ve=E(4572),De=E(7673),Q=E(1635),ae=E(5964),tt=E(5558),ke=E(3669),pe=E(9974),Ie=E(4360);function re(Ge,et){return Ge===et}var ne=E(9417);const G=["tabsInner"];class ge{constructor(et){this.menuController=et}open(et){return this.menuController.open(et)}close(et){return this.menuController.close(et)}toggle(et){return this.menuController.toggle(et)}enable(et,Fe){return this.menuController.enable(et,Fe)}swipeGesture(et,Fe){return this.menuController.swipeGesture(et,Fe)}isOpen(et){return this.menuController.isOpen(et)}isEnabled(et){return this.menuController.isEnabled(et)}get(et){return this.menuController.get(et)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(et,Fe){return this.menuController.registerAnimation(et,Fe)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(et,Fe){return this.menuController._createAnimation(et,Fe)}_register(et){return this.menuController._register(et)}_unregister(et){return this.menuController._unregister(et)}_setOpen(et,Fe,qe){return this.menuController._setOpen(et,Fe,qe)}}let rt=(()=>{class Ge{constructor(Fe,qe){this.doc=Fe,this.backButton=new V.B,this.keyboardDidShow=new V.B,this.keyboardDidHide=new V.B,this.pause=new V.B,this.resume=new V.B,this.resize=new V.B,qe.run(()=>{var Ct;let Gt;this.win=Fe.defaultView,this.backButton.subscribeWithPriority=function(vn,gt){return this.subscribe(zt=>zt.register(vn,ye=>qe.run(()=>gt(ye))))},mt(this.pause,Fe,"pause",qe),mt(this.resume,Fe,"resume",qe),mt(this.backButton,Fe,"ionBackButton",qe),mt(this.resize,this.win,"resize",qe),mt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",qe),mt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",qe),this._readyPromise=new Promise(vn=>{Gt=vn}),null!==(Ct=this.win)&&void 0!==Ct&&Ct.cordova?Fe.addEventListener("deviceready",()=>{Gt("cordova")},{once:!0}):Gt("dom")})}is(Fe){return((Ge,et)=>("string"==typeof Ge&&(et=Ge,Ge=void 0),A(Ge).includes(et)))(this.win,Fe)}platforms(){return A(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Fe){return rn(this.win.location.href,Fe)}isLandscape(){return!this.isPortrait()}isPortrait(){var Fe,qe;return null===(Fe=(qe=this.win).matchMedia)||void 0===Fe?void 0:Fe.call(qe,"(orientation: portrait)").matches}testUserAgent(Fe){const qe=this.win.navigator;return!!(null!=qe&&qe.userAgent&&qe.userAgent.indexOf(Fe)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.KVO(O.qQ),S.KVO(S.SKi))},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const rn=(Ge,et)=>{et=et.replace(/[[\]\\]/g,"\\$&");const qe=new RegExp("[\\?&]"+et+"=([^&#]*)").exec(Ge);return qe?decodeURIComponent(qe[1].replace(/\+/g," ")):null},mt=(Ge,et,Fe,qe)=>{et&&et.addEventListener(Fe,Ct=>{qe.run(()=>{Ge.next(null!=Ct?Ct.detail:void 0)})})};let ft=(()=>{class Ge{constructor(Fe,qe,Ct,Gt){this.location=qe,this.serializer=Ct,this.router=Gt,this.direction=At,this.animated=It,this.guessDirection="forward",this.lastNavId=-1,Gt&&Gt.events.subscribe(vn=>{if(vn instanceof p.Z){const gt=vn.restoredState?vn.restoredState.navigationId:vn.id;this.guessDirection=gt{this.pop(),vn()})}navigateForward(Fe,qe={}){return this.setDirection("forward",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}navigateBack(Fe,qe={}){return this.setDirection("back",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}navigateRoot(Fe,qe={}){return this.setDirection("root",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}back(Fe={animated:!0,animationDirection:"back"}){return this.setDirection("back",Fe.animated,Fe.animationDirection,Fe.animation),this.location.back()}pop(){var Fe=this;return(0,a.A)(function*(){let qe=Fe.topOutlet;for(;qe;){if(yield qe.pop())return!0;qe=qe.parentOutlet}return!1})()}setDirection(Fe,qe,Ct,Gt){this.direction=Fe,this.animated=un(Fe,qe,Ct),this.animationBuilder=Gt}setTopOutlet(Fe){this.topOutlet=Fe}consumeTransition(){let qe,Fe="root";const Ct=this.animationBuilder;return"auto"===this.direction?(Fe=this.guessDirection,qe=this.guessAnimation):(qe=this.animated,Fe=this.direction),this.direction=At,this.animated=It,this.animationBuilder=void 0,{direction:Fe,animation:qe,animationBuilder:Ct}}navigate(Fe,qe){if(Array.isArray(Fe))return this.router.navigate(Fe,qe);{const Ct=this.serializer.parse(Fe.toString());return void 0!==qe.queryParams&&(Ct.queryParams={...qe.queryParams}),void 0!==qe.fragment&&(Ct.fragment=qe.fragment),this.router.navigateByUrl(Ct,qe)}}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.KVO(rt),S.KVO(O.aZ),S.KVO(p.Sd),S.KVO(p.Ix,8))},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const un=(Ge,et,Fe)=>{if(!1!==et){if(void 0!==Fe)return Fe;if("forward"===Ge||"back"===Ge)return Ge;if("root"===Ge&&!0===et)return"forward"}},At="auto",It=void 0;let Cn=(()=>{class Ge{get(Fe,qe){const Ct=Ft();return Ct?Ct.get(Fe,qe):null}getBoolean(Fe,qe){const Ct=Ft();return!!Ct&&Ct.getBoolean(Fe,qe)}getNumber(Fe,qe){const Ct=Ft();return Ct?Ct.getNumber(Fe,qe):0}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const St=new S.nKC("USERCONFIG"),Ft=()=>{if(typeof window<"u"){const Ge=window.Ionic;if(null!=Ge&&Ge.config)return Ge.config}return null};class bn{constructor(et={}){this.data=et}get(et){return this.data[et]}}let bt=(()=>{class Ge{constructor(){this.zone=(0,S.WQX)(S.SKi),this.applicationRef=(0,S.WQX)(S.o8S)}create(Fe,qe,Ct){return new wt(Fe,qe,this.applicationRef,this.zone,Ct)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac}),Ge})();class wt{constructor(et,Fe,qe,Ct,Gt){this.environmentInjector=et,this.injector=Fe,this.applicationRef=qe,this.zone=Ct,this.elementReferenceKey=Gt,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(et,Fe,qe,Ct){return this.zone.run(()=>new Promise(Gt=>{const vn={...qe};void 0!==this.elementReferenceKey&&(vn[this.elementReferenceKey]=et),Gt(Dn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,et,Fe,vn,Ct,this.elementReferenceKey))}))}removeViewFromDom(et,Fe){return this.zone.run(()=>new Promise(qe=>{const Ct=this.elRefMap.get(Fe);if(Ct){Ct.destroy(),this.elRefMap.delete(Fe);const Gt=this.elEventsMap.get(Fe);Gt&&(Gt(),this.elEventsMap.delete(Fe))}qe()}))}}const Dn=(Ge,et,Fe,qe,Ct,Gt,vn,gt,zt,ye,Ke)=>{const dt=S.zZn.create({providers:Nt(zt),parent:Fe}),pt=(0,S.a0P)(gt,{environmentInjector:et,elementInjector:dt}),Yt=pt.instance,$t=pt.location.nativeElement;if(zt&&(Ke&&void 0!==Yt[Ke]&&console.error(`[Ionic Error]: ${Ke} is a reserved property when using ${vn.tagName.toLowerCase()}. Rename or remove the "${Ke}" property from ${gt.name}.`),Object.assign(Yt,zt)),ye)for(const ln of ye)$t.classList.add(ln);const an=Lt(Ge,Yt,$t);return vn.appendChild($t),qe.attachView(pt.hostView),Ct.set($t,pt),Gt.set($t,an),$t},Bt=[k.L,k.a,k.b,k.c,k.d],Lt=(Ge,et,Fe)=>Ge.run(()=>{const qe=Bt.filter(Ct=>"function"==typeof et[Ct]).map(Ct=>{const Gt=vn=>et[Ct](vn.detail);return Fe.addEventListener(Ct,Gt),()=>Fe.removeEventListener(Ct,Gt)});return()=>qe.forEach(Ct=>Ct())}),Wt=new S.nKC("NavParamsToken"),Nt=Ge=>[{provide:Wt,useValue:Ge},{provide:bn,useFactory:Ot,deps:[Wt]}],Ot=Ge=>new bn(Ge),zn=(Ge,et)=>{const Fe=Ge.prototype;et.forEach(qe=>{Object.defineProperty(Fe,qe,{get(){return this.el[qe]},set(Ct){this.z.runOutsideAngular(()=>this.el[qe]=Ct)}})})},Ut=(Ge,et)=>{const Fe=Ge.prototype;et.forEach(qe=>{Fe[qe]=function(){const Ct=arguments;return this.z.runOutsideAngular(()=>this.el[qe].apply(this.el,Ct))}})},He=(Ge,et,Fe)=>{Fe.forEach(qe=>Ge[qe]=(0,J.R)(et,qe))};function Be(Ge){return function(Fe){const{defineCustomElementFn:qe,inputs:Ct,methods:Gt}=Ge;return void 0!==qe&&qe(),Ct&&zn(Fe,Ct),Gt&&Ut(Fe,Gt),Fe}}const Ae=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Me=["present","dismiss","onDidDismiss","onWillDismiss"];let Ze=(()=>{let Ge=class{constructor(Fe,qe,Ct){this.z=Ct,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Fe.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Fe.detectChanges()}),He(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.SKi))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-popover"]],contentQueries:function(Fe,qe,Ct){if(1&Fe&&S.wni(Ct,S.C4Q,5),2&Fe){let Gt;S.mGM(Gt=S.lsd())&&(qe.template=Gt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}}),Ge=(0,Q.Cg)([Be({inputs:Ae,methods:Me})],Ge),Ge})();const je=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],it=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Pe=(()=>{let Ge=class{constructor(Fe,qe,Ct){this.z=Ct,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Fe.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Fe.detectChanges()}),He(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.SKi))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-modal"]],contentQueries:function(Fe,qe,Ct){if(1&Fe&&S.wni(Ct,S.C4Q,5),2&Fe){let Gt;S.mGM(Gt=S.lsd())&&(qe.template=Gt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}}),Ge=(0,Q.Cg)([Be({inputs:je,methods:it})],Ge),Ge})();const ze=(Ge,et)=>((Ge=Ge.filter(Fe=>Fe.stackId!==et.stackId)).push(et),Ge),st=(Ge,et)=>{const Fe=Ge.createUrlTree(["."],{relativeTo:et});return Ge.serializeUrl(Fe)},en=(Ge,et)=>!et||Ge.stackId!==et.stackId,yt=(Ge,et)=>{if(!Ge)return;const Fe=vt(et);for(let qe=0;qe=Ge.length)return Fe[qe];if(Fe[qe]!==Ge[qe])return}},vt=Ge=>Ge.split("/").map(et=>et.trim()).filter(et=>""!==et),Kt=Ge=>{Ge&&(Ge.ref.destroy(),Ge.unlistenEvents())};class Pt{constructor(et,Fe,qe,Ct,Gt,vn){this.containerEl=Fe,this.router=qe,this.navCtrl=Ct,this.zone=Gt,this.location=vn,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==et?vt(et):void 0}createView(et,Fe){var qe;const Ct=st(this.router,Fe),Gt=null==et||null===(qe=et.location)||void 0===qe?void 0:qe.nativeElement,vn=Lt(this.zone,et.instance,Gt);return{id:this.nextId++,stackId:yt(this.tabsPrefix,Ct),unlistenEvents:vn,element:Gt,ref:et,url:Ct}}getExistingView(et){const Fe=st(this.router,et),qe=this.views.find(Ct=>Ct.url===Fe);return qe&&qe.ref.changeDetectorRef.reattach(),qe}setActive(et){var Fe,qe;const Ct=this.navCtrl.consumeTransition();let{direction:Gt,animation:vn,animationBuilder:gt}=Ct;const zt=this.activeView,ye=en(et,zt);ye&&(Gt="back",vn=void 0);const Ke=this.views.slice();let dt;const pt=this.router;pt.getCurrentNavigation?dt=pt.getCurrentNavigation():null!==(Fe=pt.navigations)&&void 0!==Fe&&Fe.value&&(dt=pt.navigations.value),null!==(qe=dt)&&void 0!==qe&&null!==(qe=qe.extras)&&void 0!==qe&&qe.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Yt=this.views.includes(et),$t=this.insertView(et,Gt);Yt||et.ref.changeDetectorRef.detectChanges();const an=et.animationBuilder;return void 0===gt&&"back"===Gt&&!ye&&void 0!==an&&(gt=an),zt&&(zt.animationBuilder=gt),this.zone.runOutsideAngular(()=>this.wait(()=>(zt&&zt.ref.changeDetectorRef.detach(),et.ref.changeDetectorRef.reattach(),this.transition(et,zt,vn,this.canGoBack(1),!1,gt).then(()=>Rt(et,$t,Ke,this.location,this.zone)).then(()=>({enteringView:et,direction:Gt,animation:vn,tabSwitch:ye})))))}canGoBack(et,Fe=this.getActiveStackId()){return this.getStack(Fe).length>et}pop(et,Fe=this.getActiveStackId()){return this.zone.run(()=>{const qe=this.getStack(Fe);if(qe.length<=et)return Promise.resolve(!1);const Ct=qe[qe.length-et-1];let Gt=Ct.url;const vn=Ct.savedData;if(vn){var gt;const ye=vn.get("primary");null!=ye&&null!==(gt=ye.route)&&void 0!==gt&&null!==(gt=gt._routerState)&&void 0!==gt&>.snapshot.url&&(Gt=ye.route._routerState.snapshot.url)}const{animationBuilder:zt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Gt,{...Ct.savedExtras,animation:zt}).then(()=>!0)})}startBackTransition(){const et=this.activeView;if(et){const Fe=this.getStack(et.stackId),qe=Fe[Fe.length-2],Ct=qe.animationBuilder;return this.wait(()=>this.transition(qe,et,"back",this.canGoBack(2),!0,Ct))}return Promise.resolve()}endBackTransition(et){et?(this.skipTransition=!0,this.pop(1)):this.activeView&&On(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(et){const Fe=this.getStack(et);return Fe.length>0?Fe[Fe.length-1]:void 0}getRootUrl(et){const Fe=this.getStack(et);return Fe.length>0?Fe[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Kt),this.activeView=void 0,this.views=[]}getStack(et){return this.views.filter(Fe=>Fe.stackId===et)}insertView(et,Fe){return this.activeView=et,this.views=((Ge,et,Fe)=>"root"===Fe?ze(Ge,et):"forward"===Fe?((Ge,et)=>(Ge.indexOf(et)>=0?Ge=Ge.filter(qe=>qe.stackId!==et.stackId||qe.id<=et.id):Ge.push(et),Ge))(Ge,et):((Ge,et)=>Ge.indexOf(et)>=0?Ge.filter(qe=>qe.stackId!==et.stackId||qe.id<=et.id):ze(Ge,et))(Ge,et))(this.views,et,Fe),this.views.slice()}transition(et,Fe,qe,Ct,Gt,vn){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Fe===et)return Promise.resolve(!1);const gt=et?et.element:void 0,zt=Fe?Fe.element:void 0,ye=this.containerEl;return gt&>!==zt&&(gt.classList.add("ion-page"),gt.classList.add("ion-page-invisible"),gt.parentElement!==ye&&ye.appendChild(gt),ye.commit)?ye.commit(gt,zt,{duration:void 0===qe?0:void 0,direction:qe,showGoBack:Ct,progressAnimation:Gt,animationBuilder:vn}):Promise.resolve(!1)}wait(et){var Fe=this;return(0,a.A)(function*(){void 0!==Fe.runningTask&&(yield Fe.runningTask,Fe.runningTask=void 0);const qe=Fe.runningTask=et();return qe.finally(()=>Fe.runningTask=void 0),qe})()}}const Rt=(Ge,et,Fe,qe,Ct)=>"function"==typeof requestAnimationFrame?new Promise(Gt=>{requestAnimationFrame(()=>{On(Ge,et,Fe,qe,Ct),Gt()})}):Promise.resolve(),On=(Ge,et,Fe,qe,Ct)=>{Ct.run(()=>Fe.filter(Gt=>!et.includes(Gt)).forEach(Kt)),et.forEach(Gt=>{const gt=qe.path().split("?")[0].split("#")[0];if(Gt!==Ge&&Gt.url!==gt){const zt=Gt.element;zt.setAttribute("aria-hidden","true"),zt.classList.add("ion-page-hidden"),Gt.ref.changeDetectorRef.detach()}})};let An=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn,gt,zt,ye){this.parentOutlet=ye,this.activatedView=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new oe.t(null),this.activated=null,this._activatedRoute=null,this.name=p.Xk,this.stackWillChange=new S.bkB,this.stackDidChange=new S.bkB,this.activateEvents=new S.bkB,this.deactivateEvents=new S.bkB,this.parentContexts=(0,S.WQX)(p.Zp),this.location=(0,S.WQX)(S.c1b),this.environmentInjector=(0,S.WQX)(S.uvJ),this.inputBinder=(0,S.WQX)(Mn,{optional:!0}),this.supportsBindingToComponentInputs=!0,this.config=(0,S.WQX)(Cn),this.navCtrl=(0,S.WQX)(ft),this.nativeEl=Gt.nativeElement,this.name=Fe||p.Xk,this.tabsPrefix="true"===qe?st(vn,zt):void 0,this.stackCtrl=new Pt(this.tabsPrefix,this.nativeEl,vn,this.navCtrl,gt,Ct),this.parentContexts.onChildOutletCreated(this.name,this)}get activatedComponentRef(){return this.activated}set animation(Fe){this.nativeEl.animation=Fe}set animated(Fe){this.nativeEl.animated=Fe}set swipeGesture(Fe){this._swipeGesture=Fe,this.nativeEl.swipeHandler=Fe?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:qe=>this.stackCtrl.endBackTransition(qe)}:void 0}ngOnDestroy(){var Fe;this.stackCtrl.destroy(),null===(Fe=this.inputBinder)||void 0===Fe||Fe.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Fe=this.getContext();null!=Fe&&Fe.route&&this.activateWith(Fe.route,Fe.injector)}new Promise(Fe=>(0,I.c)(this.nativeEl,Fe)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(Fe,qe){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const qe=this.getContext();this.activatedView.savedData=new Map(qe.children.contexts);const Ct=this.activatedView.savedData.get("primary");if(Ct&&qe.route&&(Ct.route={...qe.route}),this.activatedView.savedExtras={},qe.route){const Gt=qe.route.snapshot;this.activatedView.savedExtras.queryParams=Gt.queryParams,this.activatedView.savedExtras.fragment=Gt.fragment}}const Fe=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Fe)}}activateWith(Fe,qe){var Ct;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Fe;let Gt,vn=this.stackCtrl.getExistingView(Fe);if(vn){Gt=this.activated=vn.ref;const ye=vn.savedData;ye&&(this.getContext().children.contexts=ye),this.updateActivatedRouteProxy(Gt.instance,Fe)}else{var gt;const ye=Fe._futureSnapshot,Ke=this.parentContexts.getOrCreateContext(this.name).children,dt=new oe.t(null),pt=this.createActivatedRouteProxy(dt,Fe),Yt=new Bn(pt,Ke,this.location.injector),$t=null!==(gt=ye.routeConfig.component)&&void 0!==gt?gt:ye.component;Gt=this.activated=this.location.createComponent($t,{index:this.location.length,injector:Yt,environmentInjector:null!=qe?qe:this.environmentInjector}),dt.next(Gt.instance),vn=this.stackCtrl.createView(this.activated,Fe),this.proxyMap.set(Gt.instance,pt),this.currentActivatedRoute$.next({component:Gt.instance,activatedRoute:Fe})}null===(Ct=this.inputBinder)||void 0===Ct||Ct.bindActivatedRouteToOutletComponent(this),this.activatedView=vn,this.navCtrl.setTopOutlet(this);const zt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:vn,tabSwitch:en(vn,zt)}),this.stackCtrl.setActive(vn).then(ye=>{this.activateEvents.emit(Gt.instance),this.stackDidChange.emit(ye)})}canGoBack(Fe=1,qe){return this.stackCtrl.canGoBack(Fe,qe)}pop(Fe=1,qe){return this.stackCtrl.pop(Fe,qe)}getLastUrl(Fe){const qe=this.stackCtrl.getLastUrl(Fe);return qe?qe.url:void 0}getLastRouteView(Fe){return this.stackCtrl.getLastUrl(Fe)}getRootView(Fe){return this.stackCtrl.getRootUrl(Fe)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Fe,qe){const Ct=new p.nX;return Ct._futureSnapshot=qe._futureSnapshot,Ct._routerState=qe._routerState,Ct.snapshot=qe.snapshot,Ct.outlet=qe.outlet,Ct.component=qe.component,Ct._paramMap=this.proxyObservable(Fe,"paramMap"),Ct._queryParamMap=this.proxyObservable(Fe,"queryParamMap"),Ct.url=this.proxyObservable(Fe,"url"),Ct.params=this.proxyObservable(Fe,"params"),Ct.queryParams=this.proxyObservable(Fe,"queryParams"),Ct.fragment=this.proxyObservable(Fe,"fragment"),Ct.data=this.proxyObservable(Fe,"data"),Ct}proxyObservable(Fe,qe){return Fe.pipe((0,ae.p)(Ct=>!!Ct),(0,tt.n)(Ct=>this.currentActivatedRoute$.pipe((0,ae.p)(Gt=>null!==Gt&&Gt.component===Ct),(0,tt.n)(Gt=>Gt&&Gt.activatedRoute[qe]),function _e(Ge,et=ke.D){return Ge=null!=Ge?Ge:re,(0,pe.N)((Fe,qe)=>{let Ct,Gt=!0;Fe.subscribe((0,Ie._)(qe,vn=>{const gt=et(vn);(Gt||!Ge(Ct,gt))&&(Gt=!1,Ct=gt,qe.next(vn))}))})}())))}updateActivatedRouteProxy(Fe,qe){const Ct=this.proxyMap.get(Fe);if(!Ct)throw new Error("Could not find activated route proxy for view");Ct._futureSnapshot=qe._futureSnapshot,Ct._routerState=qe._routerState,Ct.snapshot=qe.snapshot,Ct.outlet=qe.outlet,Ct.component=qe.component,this.currentActivatedRoute$.next({component:Fe,activatedRoute:qe})}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.kS0("name"),S.kS0("tabs"),S.rXU(O.aZ),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(S.SKi),S.rXU(p.nX),S.rXU(Ge,12))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Ge})();class Bn{constructor(et,Fe,qe){this.route=et,this.childContexts=Fe,this.parent=qe}get(et,Fe){return et===p.nX?this.route:et===p.Zp?this.childContexts:this.parent.get(et,Fe)}}const Mn=new S.nKC("");let Wn=(()=>{class Ge{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Fe){this.unsubscribeFromRouteData(Fe),this.subscribeToRouteData(Fe)}unsubscribeFromRouteData(Fe){var qe;null===(qe=this.outletDataSubscriptions.get(Fe))||void 0===qe||qe.unsubscribe(),this.outletDataSubscriptions.delete(Fe)}subscribeToRouteData(Fe){const{activatedRoute:qe}=Fe,Ct=(0,ve.z)([qe.queryParams,qe.params,qe.data]).pipe((0,tt.n)(([Gt,vn,gt],zt)=>(gt={...Gt,...vn,...gt},0===zt?(0,De.of)(gt):Promise.resolve(gt)))).subscribe(Gt=>{if(!Fe.isActivated||!Fe.activatedComponentRef||Fe.activatedRoute!==qe||null===qe.component)return void this.unsubscribeFromRouteData(Fe);const vn=(0,S.HJs)(qe.component);if(vn)for(const{templateName:gt}of vn.inputs)Fe.activatedComponentRef.setInput(gt,Gt[gt]);else this.unsubscribeFromRouteData(Fe)});this.outletDataSubscriptions.set(Fe,Ct)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac}),Ge})();const Ln=()=>({provide:Mn,useFactory:Fn,deps:[p.Ix]});function Fn(Ge){return null!=Ge&&Ge.componentInputBindingEnabled?new Wn:null}const kn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Gn=(()=>{let Ge=class{constructor(Fe,qe,Ct,Gt,vn,gt){this.routerOutlet=Fe,this.navCtrl=qe,this.config=Ct,this.r=Gt,this.z=vn,gt.detach(),this.el=this.r.nativeElement}onClick(Fe){var qe;const Ct=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(qe=this.routerOutlet)&&void 0!==qe&&qe.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Fe.preventDefault()):null!=Ct&&(this.navCtrl.navigateBack(Ct,{animation:this.routerAnimation}),Fe.preventDefault())}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(An,8),S.rXU(ft),S.rXU(Cn),S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(S.gRc))},Ge.\u0275dir=S.FsC({type:Ge,hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(Gt){return qe.onClick(Gt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}}),Ge=(0,Q.Cg)([Be({inputs:kn})],Ge),Ge})(),Xn=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn){this.locationStrategy=Fe,this.navCtrl=qe,this.elementRef=Ct,this.router=Gt,this.routerLink=vn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Fe;if(null!==(Fe=this.routerLink)&&void 0!==Fe&&Fe.urlTree){const qe=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=qe}}onClick(Fe){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Fe.preventDefault()}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(O.hb),S.rXU(ft),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(p.Wk,8))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(Gt){return qe.onClick(Gt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[S.OA$]}),Ge})(),jn=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn){this.locationStrategy=Fe,this.navCtrl=qe,this.elementRef=Ct,this.router=Gt,this.routerLink=vn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Fe;if(null!==(Fe=this.routerLink)&&void 0!==Fe&&Fe.urlTree){const qe=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=qe}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(O.hb),S.rXU(ft),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(p.Wk,8))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(){return qe.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[S.OA$]}),Ge})();const $e=["animated","animation","root","rootParams","swipeGesture"],lt=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Tt=(()=>{let Ge=class{constructor(Fe,qe,Ct,Gt,vn,gt){this.z=vn,gt.detach(),this.el=Fe.nativeElement,Fe.nativeElement.delegate=Gt.create(qe,Ct),He(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.aKT),S.rXU(S.uvJ),S.rXU(S.zZn),S.rXU(bt),S.rXU(S.SKi),S.rXU(S.gRc))},Ge.\u0275dir=S.FsC({type:Ge,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}}),Ge=(0,Q.Cg)([Be({inputs:$e,methods:lt})],Ge),Ge})(),Mt=(()=>{class Ge{constructor(Fe){this.navCtrl=Fe,this.ionTabsWillChange=new S.bkB,this.ionTabsDidChange=new S.bkB,this.tabBarSlot="bottom"}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Fe,tabSwitch:qe}){const Ct=Fe.stackId;qe&&void 0!==Ct&&this.ionTabsWillChange.emit({tab:Ct})}onStackDidChange({enteringView:Fe,tabSwitch:qe}){const Ct=Fe.stackId;qe&&void 0!==Ct&&(this.tabBar&&(this.tabBar.selectedTab=Ct),this.ionTabsDidChange.emit({tab:Ct}))}select(Fe){const qe="string"==typeof Fe,Ct=qe?Fe:Fe.detail.tab,Gt=this.outlet.getActiveStackId()===Ct,vn=`${this.outlet.tabsPrefix}/${Ct}`;if(qe||Fe.stopPropagation(),Gt){const gt=this.outlet.getActiveStackId(),zt=this.outlet.getLastRouteView(gt);if((null==zt?void 0:zt.url)===vn)return;const ye=this.outlet.getRootView(Ct);return this.navCtrl.navigateRoot(vn,{...ye&&vn===ye.url&&ye.savedExtras,animated:!0,animationDirection:"back"})}{const gt=this.outlet.getLastRouteView(Ct);return this.navCtrl.navigateRoot((null==gt?void 0:gt.url)||vn,{...null==gt?void 0:gt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Fe=>{const qe=Fe.el.getAttribute("slot");qe!==this.tabBarSlot&&(this.tabBarSlot=qe,this.relocateTabBar())})}relocateTabBar(){const Fe=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Fe):this.tabsInner.nativeElement.after(Fe)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(ft))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-tabs"]],viewQuery:function(Fe,qe){if(1&Fe&&S.GBs(G,7,S.aKT),2&Fe){let Ct;S.mGM(Ct=S.lsd())&&(qe.tabsInner=Ct.first)}},hostBindings:function(Fe,qe){1&Fe&&S.bIt("ionTabButtonClick",function(Gt){return qe.select(Gt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}}),Ge})();const kt=Ge=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ge):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ge):setTimeout(Ge);let Zt=(()=>{class Ge{constructor(Fe,qe){this.injector=Fe,this.elementRef=qe,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(Fe){this.elementRef.nativeElement.value=this.lastValue=Fe,qt(this.elementRef)}handleValueChange(Fe,qe){Fe===this.elementRef.nativeElement&&(qe!==this.lastValue&&(this.lastValue=qe,this.onChange(qe)),qt(this.elementRef))}_handleBlurEvent(Fe){Fe===this.elementRef.nativeElement&&(this.onTouched(),qt(this.elementRef))}registerOnChange(Fe){this.onChange=Fe}registerOnTouched(Fe){this.onTouched=Fe}setDisabledState(Fe){this.elementRef.nativeElement.disabled=Fe}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Fe;try{Fe=this.injector.get(ne.vO)}catch{}if(!Fe)return;Fe.statusChanges&&(this.statusChanges=Fe.statusChanges.subscribe(()=>qt(this.elementRef)));const qe=Fe.control;qe&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Gt=>{if(typeof qe[Gt]<"u"){const vn=qe[Gt].bind(qe);qe[Gt]=(...gt)=>{vn(...gt),qt(this.elementRef)}}})}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.zZn),S.rXU(S.aKT))},Ge.\u0275dir=S.FsC({type:Ge,hostBindings:function(Fe,qe){1&Fe&&S.bIt("ionBlur",function(Gt){return qe._handleBlurEvent(Gt.target)})}}),Ge})();const qt=Ge=>{kt(()=>{const et=Ge.nativeElement,Fe=null!=et.value&&et.value.toString().length>0,qe=Qt(et);Tn(et,qe);const Ct=et.closest("ion-item");Ct&&Tn(Ct,Fe?[...qe,"item-has-value"]:qe)})},Qt=Ge=>{const et=Ge.classList,Fe=[];for(let qe=0;qe{const Fe=Ge.classList;Fe.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Fe.add(...et)},wn=(Ge,et)=>Ge.substring(0,et.length)===et;class Kn{shouldDetach(et){return!1}shouldAttach(et){return!1}store(et,Fe){}retrieve(et){return null}shouldReuseRoute(et,Fe){if(et.routeConfig!==Fe.routeConfig)return!1;const qe=et.params,Ct=Fe.params,Gt=Object.keys(qe),vn=Object.keys(Ct);if(Gt.length!==vn.length)return!1;for(const gt of Gt)if(Ct[gt]!==qe[gt])return!1;return!0}}class fr{constructor(et){this.ctrl=et}create(et){return this.ctrl.create(et||{})}dismiss(et,Fe,qe){return this.ctrl.dismiss(et,Fe,qe)}getTop(){return this.ctrl.getTop()}}},8974:(Ce,ee,E)=>{"use strict";E.d(ee,{hG:()=>Ke,hB:()=>h,wH:()=>Yt,U1:()=>ae,Jm:()=>re,QW:()=>ne,b_:()=>G,I9:()=>ge,ME:()=>xt,tN:()=>rt,eY:()=>rn,ZB:()=>mt,hU:()=>ft,W9:()=>un,Q8:()=>Cn,YW:()=>St,M0:()=>bn,eU:()=>wt,iq:()=>Dn,Ax:()=>Lt,Hp:()=>Wt,$w:()=>Nt,uz:()=>Ot,he:()=>Me,nf:()=>Ze,oS:()=>Pe,Sb:()=>Ct,KO:()=>yt,f0:()=>vt,To:()=>Pt,Ki:()=>Rt,Rg:()=>Kn,ln:()=>Mn,w2:()=>jn,HP:()=>$e,Jq:()=>lt,qW:()=>Tt,p4:()=>fr,IO:()=>Mt,BC:()=>qt,ai:()=>wn,bv:()=>hr,Xi:()=>$t,_t:()=>an,W3:()=>ln,IE:()=>cn,uR:()=>y,Je:()=>d,Gw:()=>r,K_:()=>nn});var a=E(4438),S=E(9417),p=E(4517),O=E(1635),c=E(3726),D=E(177),C=E(3021),T=(E(3503),E(7555),E(4569),E(2942),E(405)),A=E(611),w=E(464),R=E(5384),$=E(5516),M=(E(8476),E(4363));E(8221),E(3113);var ie=E(467);const me=A.i,te=function(){var X=(0,ie.A)(function*(Ue,le){if(!(typeof window>"u"))return yield me(),(0,M.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"legacy":[4],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"],"counterFormatter":["counterFormatterChanged"]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[33,"ion-note",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"],"checked":["styleChanged"],"color":["styleChanged"],"disabled":["styleChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"disabled":[4],"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]},null,{"value":["valueChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"legacy":[4]},null,{"checked":["styleChanged"],"disabled":["styleChanged"]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]]]'),le)});return function(le,Ye){return X.apply(this,arguments)}}(),se=["*"],g=["outlet"],n=[[["","slot","top"]],"*"],o=["[slot=top]","*"];function l(X,Ue){if(1&X&&(a.j41(0,"div",1),a.eu8(1,2),a.k0s()),2&X){const le=a.XpG();a.R7$(),a.Y8G("ngTemplateOutlet",le.template)}}let h=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}writeValue(le){this.elementRef.nativeElement.checked=this.lastValue=le,(0,p.z3)(this.elementRef)}_handleIonChange(le){this.handleValueChange(le,le.checked)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionChange",function(Nn){return Ye._handleIonChange(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),y=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleIonSelect(le){this.handleValueChange(le,le.checked)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-radio"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionSelect",function(Nn){return Ye._handleIonSelect(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),d=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleChangeEvent(le){this.handleValueChange(le,le.value)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionChange",function(Nn){return Ye._handleChangeEvent(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),r=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleInputEvent(le){this.handleValueChange(le,le.value)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"],["ion-range"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionInput",function(Nn){return Ye._handleInputEvent(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})();const f=(X,Ue)=>{const le=X.prototype;Ue.forEach(Ye=>{Object.defineProperty(le,Ye,{get(){return this.el[Ye]},set(_t){this.z.runOutsideAngular(()=>this.el[Ye]=_t)},configurable:!0})})},k=(X,Ue)=>{const le=X.prototype;Ue.forEach(Ye=>{le[Ye]=function(){const _t=arguments;return this.z.runOutsideAngular(()=>this.el[Ye].apply(this.el,_t))}})},I=(X,Ue,le)=>{le.forEach(Ye=>X[Ye]=(0,c.R)(Ue,Ye))};function J(X){return function(le){const{defineCustomElementFn:Ye,inputs:_t,methods:Nn}=X;return void 0!==Ye&&Ye(),_t&&f(le,_t),Nn&&k(le,Nn),le}}let ae=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-app"]],ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({})],X),X})(),re=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],X),X})(),ne=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse"]})],X),X})(),G=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],X),X})(),ge=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["mode"]})],X),X})(),xt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","translucent"]})],X),X})(),rt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),rn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionChange","ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","legacy","mode","name","value"]})],X),X})(),mt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","disabled","mode","outline"]})],X),X})(),ft=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],X),X})(),un=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],X),X})(),Cn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],X),X})(),St=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],X),X})(),bn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse","mode","translucent"]})],X),X})(),wt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse","mode","translucent"]})],X),X})(),Dn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],X),X})(),Lt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionInfinite"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["disabled","position","threshold"],methods:["complete"]})],X),X})(),Wt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["loadingSpinner","loadingText"]})],X),X})(),Nt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],X),X})(),Ot=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],X),X})(),Me=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","position"]})],X),X})(),Ze=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],X),X})(),Pe=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],X),X})(),yt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-radio"]],inputs:{alignment:"alignment",color:"color",disabled:"disabled",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["alignment","color","disabled","justify","labelPlacement","legacy","mode","name","value"]})],X),X})(),vt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionChange"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",compareWith:"compareWith",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["allowEmptySelection","compareWith","name","value"]})],X),X})(),Pt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionRefresh","ionPull","ionStart"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],X),X})(),Rt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],X),X})(),Mn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-row"]],ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({})],X),X})(),jn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","duration","name","paused"]})],X),X})(),$e=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionSplitPaneVisible"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["contentId","disabled","when"]})],X),X})(),lt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","selectedTab","translucent"]})],X),X})(),Tt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],X),X})(),Mt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),qt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","size"]})],X),X})(),wn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),Kn=(()=>{class X extends p.Rg{constructor(le,Ye,_t,Nn,pr,wr,qr,Wr){super(le,Ye,_t,Nn,pr,wr,qr,Wr),this.parentOutlet=Wr}}return X.\u0275fac=function(le){return new(le||X)(a.kS0("name"),a.kS0("tabs"),a.rXU(D.aZ),a.rXU(a.aKT),a.rXU(C.Ix),a.rXU(a.SKi),a.rXU(C.nX),a.rXU(X,12))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-router-outlet"]],features:[a.Vt3]}),X})(),fr=(()=>{class X extends p.p4{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tabs"]],contentQueries:function(le,Ye,_t){if(1&le&&(a.wni(_t,lt,5),a.wni(_t,lt,4)),2&le){let Nn;a.mGM(Nn=a.lsd())&&(Ye.tabBar=Nn.first),a.mGM(Nn=a.lsd())&&(Ye.tabBars=Nn)}},viewQuery:function(le,Ye){if(1&le&&a.GBs(g,5,Kn),2&le){let _t;a.mGM(_t=a.lsd())&&(Ye.outlet=_t.first)}},features:[a.Vt3],ngContentSelectors:o,decls:6,vars:0,consts:[["tabsInner",""],["outlet",""],[1,"tabs-inner"],["tabs","true",3,"stackWillChange","stackDidChange"]],template:function(le,Ye){if(1&le){const _t=a.RV6();a.NAR(n),a.SdG(0),a.j41(1,"div",2,0)(3,"ion-router-outlet",3,1),a.bIt("stackWillChange",function(pr){return a.eBV(_t),a.Njj(Ye.onStackWillChange(pr))})("stackDidChange",function(pr){return a.eBV(_t),a.Njj(Ye.onStackDidChange(pr))}),a.k0s()(),a.SdG(5,1)}},dependencies:[Kn],styles:["[_nghost-%COMP%]{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner[_ngcontent-%COMP%]{position:relative;flex:1;contain:layout size style}"]}),X})(),Ct=(()=>{class X extends p.Sb{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275cmp=a.VBU({type:X,selectors:[["ion-modal"]],features:[a.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(le,Ye){1&le&&a.DNE(0,l,2,1,"div",0),2&le&&a.Y8G("ngIf",Ye.isCmpOpen||Ye.keepContentsMounted)},dependencies:[D.bT,D.T3],encapsulation:2,changeDetection:0}),X})();const vn={provide:S.cz,useExisting:(0,a.Rfq)(()=>gt),multi:!0};let gt=(()=>{class X extends S.zX{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275dir=a.FsC({type:X,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(le,Ye){2&le&&a.BMQ("max",Ye._enabled?Ye.max:null)},features:[a.Jv_([vn]),a.Vt3]}),X})();const zt={provide:S.cz,useExisting:(0,a.Rfq)(()=>ye),multi:!0};let ye=(()=>{class X extends S.VZ{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275dir=a.FsC({type:X,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(le,Ye){2&le&&a.BMQ("min",Ye._enabled?Ye.min:null)},features:[a.Jv_([zt]),a.Vt3]}),X})(),Ke=(()=>{class X extends p.Kb{constructor(){super($.a)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Yt=(()=>{class X{constructor(le){this.zone=le}create(le,Ye=!1){return Ye&&Object.getOwnPropertyNames(le).forEach(_t=>{if("function"==typeof le[_t]){const Nn=le[_t];le[_t]=(...pr)=>this.zone.run(()=>Nn(...pr))}}),(0,T.createGesture)(le)}}return X.\u0275fac=function(le){return new(le||X)(a.KVO(a.SKi))},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),$t=(()=>{class X extends p.Kb{constructor(){super($.l)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),an=(()=>{class X extends p._t{constructor(){super(R.m)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),ln=(()=>{class X extends p.Kb{constructor(){super($.m),this.angularDelegate=(0,a.WQX)(p.Yq),this.injector=(0,a.WQX)(a.zZn),this.environmentInjector=(0,a.WQX)(a.uvJ)}create(le){return super.create({...le,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac}),X})();class cn extends p.Kb{constructor(){super($.c),this.angularDelegate=(0,a.WQX)(p.Yq),this.injector=(0,a.WQX)(a.zZn),this.environmentInjector=(0,a.WQX)(a.uvJ)}create(Ue){return super.create({...Ue,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}let nn=(()=>{class X extends p.Kb{constructor(){super($.t)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const _n=(X,Ue,le)=>()=>{const Ye=Ue.defaultView;if(Ye&&typeof window<"u"){(0,w.s)({...X,_zoneGate:Nn=>le.run(Nn)});const _t="__zone_symbol__addEventListener"in Ue.body?"__zone_symbol__addEventListener":"addEventListener";return function W(){var X=[];if(typeof window<"u"){var Ue=window;(!Ue.customElements||Ue.Element&&(!Ue.Element.prototype.closest||!Ue.Element.prototype.matches||!Ue.Element.prototype.remove||!Ue.Element.prototype.getRootNode))&&X.push(E.e(7278).then(E.t.bind(E,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||Ue.NodeList&&!Ue.NodeList.prototype.forEach||!Ue.fetch||!function(){try{var Ye=new URL("b","http://a");return Ye.pathname="c%20d","http://a/c%20d"===Ye.href&&Ye.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&X.push(E.e(9329).then(E.t.bind(E,7783,23)))}return Promise.all(X)}().then(()=>te(Ye,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:p.er,jmp:Nn=>le.runOutsideAngular(Nn),ael(Nn,pr,wr,qr){Nn[_t](pr,wr,qr)},rel(Nn,pr,wr,qr){Nn.removeEventListener(pr,wr,qr)}}))}};let hr=(()=>{class X{static forRoot(le){return{ngModule:X,providers:[{provide:p.sR,useValue:le},{provide:a.hnV,useFactory:_n,multi:!0,deps:[p.sR,D.qQ,a.SKi]},(0,p.YV)()]}}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275mod=a.$C({type:X}),X.\u0275inj=a.G2t({providers:[p.Yq,ln,cn],imports:[D.MD]}),X})()},5402:(Ce,ee,E)=>{"use strict";E.d(ee,{Wr:()=>P,h:()=>I,D9:()=>k,c$:()=>r});var a=E(4438),S=E(7673),p=E(4402),O=E(7468),c=E(8793),D=E(9030),C=E(6697),_=E(2771),F=E(8750),B=E(1413),m=E(7707),T=E(9974);function w(V,J,...oe){if(!0===J)return void V();if(!1===J)return;const ve=new m.Ms({next:()=>{ve.unsubscribe(),V()}});return(0,F.Tg)(J(...oe)).subscribe(ve)}function R(V,J,oe){let ve,De=!1;return V&&"object"==typeof V?({bufferSize:ve=1/0,windowTime:J=1/0,refCount:De=!1,scheduler:oe}=V):ve=null!=V?V:1/0,function A(V={}){const{connector:J=(()=>new B.B),resetOnError:oe=!0,resetOnComplete:ve=!0,resetOnRefCountZero:De=!0}=V;return Q=>{let ae,tt,ke,pe=0,Ie=!1,_e=!1;const re=()=>{null==tt||tt.unsubscribe(),tt=void 0},ne=()=>{re(),ae=ke=void 0,Ie=_e=!1},G=()=>{const ge=ae;ne(),null==ge||ge.unsubscribe()};return(0,T.N)((ge,xt)=>{pe++,!_e&&!Ie&&re();const Qe=ke=null!=ke?ke:J();xt.add(()=>{pe--,0===pe&&!_e&&!Ie&&(tt=w(G,De))}),Qe.subscribe(xt),!ae&&pe>0&&(ae=new m.Ms({next:rt=>Qe.next(rt),error:rt=>{_e=!0,re(),tt=w(ne,oe,rt),Qe.error(rt)},complete:()=>{Ie=!0,re(),tt=w(ne,ve),Qe.complete()}}),(0,F.Tg)(ge).subscribe(ae))})(Q)}}({connector:()=>new _.m(ve,J,oe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:De})}var $=E(6354),L=E(274),M=E(5558);class P{}let U=(()=>{class V extends P{getTranslation(oe){return(0,S.of)({})}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class j{}let W=(()=>{class V{handle(oe){return oe.key}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();function ie(V,J){if(V===J)return!0;if(null===V||null===J)return!1;if(V!=V&&J!=J)return!0;let De,Q,ae,oe=typeof V;if(oe==typeof J&&"object"==oe){if(!Array.isArray(V)){if(Array.isArray(J))return!1;for(Q in ae=Object.create(null),V){if(!ie(V[Q],J[Q]))return!1;ae[Q]=!0}for(Q in J)if(!(Q in ae)&&typeof J[Q]<"u")return!1;return!0}if(!Array.isArray(J))return!1;if((De=V.length)==J.length){for(Q=0;Q{te(J[ve])?ve in V?oe[ve]=se(V[ve],J[ve]):Object.assign(oe,{[ve]:J[ve]}):Object.assign(oe,{[ve]:J[ve]})}),oe}class g{}let n=(()=>{class V extends g{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(oe,ve){let De;return De="string"==typeof oe?this.interpolateString(oe,ve):"function"==typeof oe?this.interpolateFunction(oe,ve):oe,De}getValue(oe,ve){let De="string"==typeof ve?ve.split("."):[ve];ve="";do{ve+=De.shift(),!me(oe)||!me(oe[ve])||"object"!=typeof oe[ve]&&De.length?De.length?ve+=".":oe=void 0:(oe=oe[ve],ve="")}while(De.length);return oe}interpolateFunction(oe,ve){return oe(ve)}interpolateString(oe,ve){return ve?oe.replace(this.templateMatcher,(De,Q)=>{let ae=this.getValue(ve,Q);return me(ae)?ae:De}):oe}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class o{}let l=(()=>{class V extends o{compile(oe,ve){return oe}compileTranslations(oe,ve){return oe}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class s{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new a.bkB,this.onLangChange=new a.bkB,this.onDefaultLangChange=new a.bkB}}const h=new a.nKC("USE_STORE"),v=new a.nKC("USE_DEFAULT_LANG"),y=new a.nKC("DEFAULT_LANGUAGE"),d=new a.nKC("USE_EXTEND");let r=(()=>{class V{constructor(oe,ve,De,Q,ae,tt=!0,ke=!1,pe=!1,Ie){this.store=oe,this.currentLoader=ve,this.compiler=De,this.parser=Q,this.missingTranslationHandler=ae,this.useDefaultLang=tt,this.isolate=ke,this.extend=pe,this.pending=!1,this._onTranslationChange=new a.bkB,this._onLangChange=new a.bkB,this._onDefaultLangChange=new a.bkB,this._langs=[],this._translations={},this._translationRequests={},Ie&&this.setDefaultLang(Ie)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(oe){this.isolate?this._defaultLang=oe:this.store.defaultLang=oe}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(oe){this.isolate?this._currentLang=oe:this.store.currentLang=oe}get langs(){return this.isolate?this._langs:this.store.langs}set langs(oe){this.isolate?this._langs=oe:this.store.langs=oe}get translations(){return this.isolate?this._translations:this.store.translations}set translations(oe){this.isolate?this._translations=oe:this.store.translations=oe}setDefaultLang(oe){if(oe===this.defaultLang)return;let ve=this.retrieveTranslations(oe);typeof ve<"u"?(null==this.defaultLang&&(this.defaultLang=oe),ve.pipe((0,C.s)(1)).subscribe(De=>{this.changeDefaultLang(oe)})):this.changeDefaultLang(oe)}getDefaultLang(){return this.defaultLang}use(oe){if(oe===this.currentLang)return(0,S.of)(this.translations[oe]);let ve=this.retrieveTranslations(oe);return typeof ve<"u"?(this.currentLang||(this.currentLang=oe),ve.pipe((0,C.s)(1)).subscribe(De=>{this.changeLang(oe)}),ve):(this.changeLang(oe),(0,S.of)(this.translations[oe]))}retrieveTranslations(oe){let ve;return(typeof this.translations[oe]>"u"||this.extend)&&(this._translationRequests[oe]=this._translationRequests[oe]||this.getTranslation(oe),ve=this._translationRequests[oe]),ve}getTranslation(oe){this.pending=!0;const ve=this.currentLoader.getTranslation(oe).pipe(R(1),(0,C.s)(1));return this.loadingTranslations=ve.pipe((0,$.T)(De=>this.compiler.compileTranslations(De,oe)),R(1),(0,C.s)(1)),this.loadingTranslations.subscribe({next:De=>{this.translations[oe]=this.extend&&this.translations[oe]?{...De,...this.translations[oe]}:De,this.updateLangs(),this.pending=!1},error:De=>{this.pending=!1}}),ve}setTranslation(oe,ve,De=!1){ve=this.compiler.compileTranslations(ve,oe),this.translations[oe]=(De||this.extend)&&this.translations[oe]?se(this.translations[oe],ve):ve,this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}getLangs(){return this.langs}addLangs(oe){oe.forEach(ve=>{-1===this.langs.indexOf(ve)&&this.langs.push(ve)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(oe,ve,De){let Q;if(ve instanceof Array){let ae={},tt=!1;for(let ke of ve)ae[ke]=this.getParsedResult(oe,ke,De),(0,p.A)(ae[ke])&&(tt=!0);if(tt){const ke=ve.map(pe=>(0,p.A)(ae[pe])?ae[pe]:(0,S.of)(ae[pe]));return(0,O.p)(ke).pipe((0,$.T)(pe=>{let Ie={};return pe.forEach((_e,re)=>{Ie[ve[re]]=_e}),Ie}))}return ae}if(oe&&(Q=this.parser.interpolate(this.parser.getValue(oe,ve),De)),typeof Q>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Q=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],ve),De)),typeof Q>"u"){let ae={key:ve,translateService:this};typeof De<"u"&&(ae.interpolateParams=De),Q=this.missingTranslationHandler.handle(ae)}return typeof Q<"u"?Q:ve}get(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,L.H)(De=>(De=this.getParsedResult(De,oe,ve),(0,p.A)(De)?De:(0,S.of)(De))));{let De=this.getParsedResult(this.translations[this.currentLang],oe,ve);return(0,p.A)(De)?De:(0,S.of)(De)}}getStreamOnTranslationChange(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');return(0,c.x)((0,D.v)(()=>this.get(oe,ve)),this.onTranslationChange.pipe((0,M.n)(De=>{const Q=this.getParsedResult(De.translations,oe,ve);return"function"==typeof Q.subscribe?Q:(0,S.of)(Q)})))}stream(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');return(0,c.x)((0,D.v)(()=>this.get(oe,ve)),this.onLangChange.pipe((0,M.n)(De=>{const Q=this.getParsedResult(De.translations,oe,ve);return(0,p.A)(Q)?Q:(0,S.of)(Q)})))}instant(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');let De=this.getParsedResult(this.translations[this.currentLang],oe,ve);if((0,p.A)(De)){if(oe instanceof Array){let Q={};return oe.forEach((ae,tt)=>{Q[oe[tt]]=oe[tt]}),Q}return oe}return De}set(oe,ve,De=this.currentLang){this.translations[De][oe]=this.compiler.compile(ve,De),this.updateLangs(),this.onTranslationChange.emit({lang:De,translations:this.translations[De]})}changeLang(oe){this.currentLang=oe,this.onLangChange.emit({lang:oe,translations:this.translations[oe]}),null==this.defaultLang&&this.changeDefaultLang(oe)}changeDefaultLang(oe){this.defaultLang=oe,this.onDefaultLangChange.emit({lang:oe,translations:this.translations[oe]})}reloadLang(oe){return this.resetLang(oe),this.getTranslation(oe)}resetLang(oe){this._translationRequests[oe]=void 0,this.translations[oe]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let oe=window.navigator.languages?window.navigator.languages[0]:null;return oe=oe||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof oe>"u"?void 0:(-1!==oe.indexOf("-")&&(oe=oe.split("-")[0]),-1!==oe.indexOf("_")&&(oe=oe.split("_")[0]),oe)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let oe=window.navigator.languages?window.navigator.languages[0]:null;return oe=oe||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,oe}}return V.\u0275fac=function(oe){return new(oe||V)(a.KVO(s),a.KVO(P),a.KVO(o),a.KVO(g),a.KVO(j),a.KVO(v),a.KVO(h),a.KVO(d),a.KVO(y))},V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})(),k=(()=>{class V{constructor(oe,ve){this.translate=oe,this._ref=ve,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(oe,ve,De){let Q=ae=>{this.value=void 0!==ae?ae:oe,this.lastKey=oe,this._ref.markForCheck()};if(De){let ae=this.translate.getParsedResult(De,oe,ve);(0,p.A)(ae.subscribe)?ae.subscribe(Q):Q(ae)}this.translate.get(oe,ve).subscribe(Q)}transform(oe,...ve){if(!oe||!oe.length)return oe;if(ie(oe,this.lastKey)&&ie(ve,this.lastParams))return this.value;let De;if(me(ve[0])&&ve.length)if("string"==typeof ve[0]&&ve[0].length){let Q=ve[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{De=JSON.parse(Q)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${ve[0]}`)}}else"object"==typeof ve[0]&&!Array.isArray(ve[0])&&(De=ve[0]);return this.lastKey=oe,this.lastParams=ve,this.updateValue(oe,De),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Q=>{this.lastKey&&Q.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(oe,De,Q.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Q=>{this.lastKey&&(this.lastKey=null,this.updateValue(oe,De,Q.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(oe,De))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return V.\u0275fac=function(oe){return new(oe||V)(a.rXU(r,16),a.rXU(a.gRc,16))},V.\u0275pipe=a.EJ8({name:"translate",type:V,pure:!1}),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})(),I=(()=>{class V{static forRoot(oe={}){return{ngModule:V,providers:[oe.loader||{provide:P,useClass:U},oe.compiler||{provide:o,useClass:l},oe.parser||{provide:g,useClass:n},oe.missingTranslationHandler||{provide:j,useClass:W},s,{provide:h,useValue:oe.isolate},{provide:v,useValue:oe.useDefaultLang},{provide:d,useValue:oe.extend},{provide:y,useValue:oe.defaultLanguage},r]}}static forChild(oe={}){return{ngModule:V,providers:[oe.loader||{provide:P,useClass:U},oe.compiler||{provide:o,useClass:l},oe.parser||{provide:g,useClass:n},oe.missingTranslationHandler||{provide:j,useClass:W},{provide:h,useValue:oe.isolate},{provide:v,useValue:oe.useDefaultLang},{provide:d,useValue:oe.extend},{provide:y,useValue:oe.defaultLanguage},r]}}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=a.$C({type:V}),V.\u0275inj=a.G2t({}),V})()},467:(Ce,ee,E)=>{"use strict";function a(p,O,c,D,C,_,F){try{var B=p[_](F),m=B.value}catch(T){return void c(T)}B.done?O(m):Promise.resolve(m).then(D,C)}function S(p){return function(){var O=this,c=arguments;return new Promise(function(D,C){var _=p.apply(O,c);function F(m){a(_,D,C,F,B,"next",m)}function B(m){a(_,D,C,F,B,"throw",m)}F(void 0)})}}E.d(ee,{A:()=>S})},1635:(Ce,ee,E)=>{"use strict";E.d(ee,{AQ:()=>W,C6:()=>S,Cg:()=>c,N3:()=>j,sH:()=>T,xN:()=>me});var a=function(r,f){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,I){k.__proto__=I}||function(k,I){for(var V in I)Object.prototype.hasOwnProperty.call(I,V)&&(k[V]=I[V])})(r,f)};function S(r,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function k(){this.constructor=r}a(r,f),r.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}function c(r,f,k,I){var oe,V=arguments.length,J=V<3?f:null===I?I=Object.getOwnPropertyDescriptor(f,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(r,f,k,I);else for(var ve=r.length-1;ve>=0;ve--)(oe=r[ve])&&(J=(V<3?oe(J):V>3?oe(f,k,J):oe(f,k))||J);return V>3&&J&&Object.defineProperty(f,k,J),J}function T(r,f,k,I){return new(k||(k=Promise))(function(J,oe){function ve(ae){try{Q(I.next(ae))}catch(tt){oe(tt)}}function De(ae){try{Q(I.throw(ae))}catch(tt){oe(tt)}}function Q(ae){ae.done?J(ae.value):function V(J){return J instanceof k?J:new k(function(oe){oe(J)})}(ae.value).then(ve,De)}Q((I=I.apply(r,f||[])).next())})}function j(r){return this instanceof j?(this.v=r,this):new j(r)}function W(r,f,k){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,I=k.apply(r,f||[]),J=[];return V={},ve("next"),ve("throw"),ve("return",function oe(pe){return function(Ie){return Promise.resolve(Ie).then(pe,tt)}}),V[Symbol.asyncIterator]=function(){return this},V;function ve(pe,Ie){I[pe]&&(V[pe]=function(_e){return new Promise(function(re,ne){J.push([pe,_e,re,ne])>1||De(pe,_e)})},Ie&&(V[pe]=Ie(V[pe])))}function De(pe,Ie){try{!function Q(pe){pe.value instanceof j?Promise.resolve(pe.value.v).then(ae,tt):ke(J[0][2],pe)}(I[pe](Ie))}catch(_e){ke(J[0][3],_e)}}function ae(pe){De("next",pe)}function tt(pe){De("throw",pe)}function ke(pe,Ie){pe(Ie),J.shift(),J.length&&De(J[0][0],J[0][1])}}function me(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k,f=r[Symbol.asyncIterator];return f?f.call(r):(r=function $(r){var f="function"==typeof Symbol&&Symbol.iterator,k=f&&r[f],I=0;if(k)return k.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&I>=r.length&&(r=void 0),{value:r&&r[I++],done:!r}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),k={},I("next"),I("throw"),I("return"),k[Symbol.asyncIterator]=function(){return this},k);function I(J){k[J]=r[J]&&function(oe){return new Promise(function(ve,De){!function V(J,oe,ve,De){Promise.resolve(De).then(function(Q){J({value:Q,done:ve})},oe)}(ve,De,(oe=r[J](oe)).done,oe.value)})}}}"function"==typeof SuppressedError&&SuppressedError},3219:Ce=>{"use strict";Ce.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2951:Ce=>{"use strict";Ce.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},4589:Ce=>{"use strict";Ce.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},3241:Ce=>{"use strict";Ce.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636:Ce=>{"use strict";Ce.exports={rE:"6.5.6"}},5579:Ce=>{"use strict";Ce.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},Ce=>{Ce(Ce.s=6313)}]); \ No newline at end of file diff --git a/www/main.9c6300c068f01818.js b/www/main.9c6300c068f01818.js deleted file mode 100644 index 79e69a4..0000000 --- a/www/main.9c6300c068f01818.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{8941:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>S});const S=(0,E(5083).F3)("App",{web:()=>E.e(9303).then(E.bind(E,9303)).then(p=>new p.AppWeb)})},5083:(Ce,ee,E)=>{"use strict";E.d(ee,{EA:()=>se,E_:()=>L,F3:()=>w,Ii:()=>A,pX:()=>n});var a=E(467);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var _=function(o){return o.Unimplemented="UNIMPLEMENTED",o.Unavailable="UNAVAILABLE",o}(_||{});class F extends Error{constructor(l,s,h){super(l),this.message=l,this.code=s,this.data=h}}const m=o=>{var l,s,h,v,y;const d=o.CapacitorCustomPlatform||null,r=o.Capacitor||{},f=r.Plugins=r.Plugins||{},k=o.CapacitorPlatforms,V=(null===(l=null==k?void 0:k.currentPlatform)||void 0===l?void 0:l.getPlatform)||(()=>null!==d?d.name:(o=>{var l,s;return null!=o&&o.androidBridge?"android":null!==(s=null===(l=null==o?void 0:o.webkit)||void 0===l?void 0:l.messageHandlers)&&void 0!==s&&s.bridge?"ios":"web"})(o)),oe=(null===(s=null==k?void 0:k.currentPlatform)||void 0===s?void 0:s.isNativePlatform)||(()=>"web"!==V()),De=(null===(h=null==k?void 0:k.currentPlatform)||void 0===h?void 0:h.isPluginAvailable)||(re=>{const ne=pe.get(re);return!!(null!=ne&&ne.platforms.has(V())||ae(re))}),ae=(null===(v=null==k?void 0:k.currentPlatform)||void 0===v?void 0:v.getPluginHeader)||(re=>{var ne;return null===(ne=r.PluginHeaders)||void 0===ne?void 0:ne.find(G=>G.name===re)}),pe=new Map,_e=(null===(y=null==k?void 0:k.currentPlatform)||void 0===y?void 0:y.registerPlugin)||((re,ne={})=>{const G=pe.get(re);if(G)return console.warn(`Capacitor plugin "${re}" already registered. Cannot register plugins twice.`),G.proxy;const ge=V(),xt=ae(re);let Qe;const rt=function(){var Cn=(0,a.A)(function*(){return!Qe&&ge in ne?Qe=Qe="function"==typeof ne[ge]?yield ne[ge]():ne[ge]:null!==d&&!Qe&&"web"in ne&&(Qe=Qe="function"==typeof ne.web?yield ne.web():ne.web),Qe});return function(){return Cn.apply(this,arguments)}}(),mt=Cn=>{let St;const Ft=(...bn)=>{const bt=rt().then(wt=>{const Dn=((Cn,St)=>{var Ft,bn;if(!xt){if(Cn)return null===(bn=Cn[St])||void 0===bn?void 0:bn.bind(Cn);throw new F(`"${re}" plugin is not implemented on ${ge}`,_.Unimplemented)}{const bt=null==xt?void 0:xt.methods.find(wt=>St===wt.name);if(bt)return"promise"===bt.rtype?wt=>r.nativePromise(re,St.toString(),wt):(wt,Dn)=>r.nativeCallback(re,St.toString(),wt,Dn);if(Cn)return null===(Ft=Cn[St])||void 0===Ft?void 0:Ft.bind(Cn)}})(wt,Cn);if(Dn){const Bt=Dn(...bn);return St=null==Bt?void 0:Bt.remove,Bt}throw new F(`"${re}.${Cn}()" is not implemented on ${ge}`,_.Unimplemented)});return"addListener"===Cn&&(bt.remove=(0,a.A)(function*(){return St()})),bt};return Ft.toString=()=>`${Cn.toString()}() { [capacitor code] }`,Object.defineProperty(Ft,"name",{value:Cn,writable:!1,configurable:!1}),Ft},ft=mt("addListener"),un=mt("removeListener"),At=(Cn,St)=>{const Ft=ft({eventName:Cn},St),bn=function(){var wt=(0,a.A)(function*(){const Dn=yield Ft;un({eventName:Cn,callbackId:Dn},St)});return function(){return wt.apply(this,arguments)}}(),bt=new Promise(wt=>Ft.then(()=>wt({remove:bn})));return bt.remove=(0,a.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield bn()}),bt},It=new Proxy({},{get(Cn,St){switch(St){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return xt?At:ft;case"removeListener":return un;default:return mt(St)}}});return f[re]=It,pe.set(re,{name:re,proxy:It,platforms:new Set([...Object.keys(ne),...xt?[ge]:[]])}),It});return r.convertFileSrc||(r.convertFileSrc=re=>re),r.getPlatform=V,r.handleError=re=>o.console.error(re),r.isNativePlatform=oe,r.isPluginAvailable=De,r.pluginMethodNoop=(re,ne,G)=>Promise.reject(`${G} does not have an implementation of "${ne}".`),r.registerPlugin=_e,r.Exception=F,r.DEBUG=!!r.DEBUG,r.isLoggingEnabled=!!r.isLoggingEnabled,r.platform=r.getPlatform(),r.isNative=r.isNativePlatform(),r},A=(o=>o.Capacitor=m(o))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),w=A.registerPlugin;class L{constructor(l){this.listeners={},this.windowListeners={},l&&(console.warn(`Capacitor WebPlugin "${l.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=l)}addListener(l,s){var h=this;this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push(s);const y=this.windowListeners[l];y&&!y.registered&&this.addWindowListener(y);const d=function(){var f=(0,a.A)(function*(){return h.removeListener(l,s)});return function(){return f.apply(this,arguments)}}(),r=Promise.resolve({remove:d});return Object.defineProperty(r,"remove",{value:(f=(0,a.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield d()}),function(){return f.apply(this,arguments)})}),r;var f}removeAllListeners(){var l=this;return(0,a.A)(function*(){l.listeners={};for(const s in l.windowListeners)l.removeWindowListener(l.windowListeners[s]);l.windowListeners={}})()}notifyListeners(l,s){const h=this.listeners[l];h&&h.forEach(v=>v(s))}hasListeners(l){return!!this.listeners[l].length}registerWindowListener(l,s){this.windowListeners[s]={registered:!1,windowEventName:l,pluginEventName:s,handler:h=>{this.notifyListeners(s,h)}}}unimplemented(l="not implemented"){return new A.Exception(l,_.Unimplemented)}unavailable(l="not available"){return new A.Exception(l,_.Unavailable)}removeListener(l,s){var h=this;return(0,a.A)(function*(){const v=h.listeners[l];if(!v)return;const y=v.indexOf(s);h.listeners[l].splice(y,1),h.listeners[l].length||h.removeWindowListener(h.windowListeners[l])})()}addWindowListener(l){window.addEventListener(l.windowEventName,l.handler),l.registered=!0}removeWindowListener(l){l&&(window.removeEventListener(l.windowEventName,l.handler),l.registered=!1)}}const R=o=>encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),U=o=>o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class j extends L{getCookies(){return(0,a.A)(function*(){const l=document.cookie,s={};return l.split(";").forEach(h=>{if(h.length<=0)return;let[v,y]=h.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");v=U(v).trim(),y=U(y).trim(),s[v]=y}),s})()}setCookie(l){return(0,a.A)(function*(){try{const s=R(l.key),h=R(l.value),v=`; expires=${(l.expires||"").replace("expires=","")}`,y=(l.path||"/").replace("path=",""),d=null!=l.url&&l.url.length>0?`domain=${l.url}`:"";document.cookie=`${s}=${h||""}${v}; path=${y}; ${d};`}catch(s){return Promise.reject(s)}})()}deleteCookie(l){return(0,a.A)(function*(){try{document.cookie=`${l.key}=; Max-Age=0`}catch(s){return Promise.reject(s)}})()}clearCookies(){return(0,a.A)(function*(){try{const l=document.cookie.split(";")||[];for(const s of l)document.cookie=s.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(l){return Promise.reject(l)}})()}clearAllCookies(){var l=this;return(0,a.A)(function*(){try{yield l.clearCookies()}catch(s){return Promise.reject(s)}})()}}w("CapacitorCookies",{web:()=>new j});const ie=function(){var o=(0,a.A)(function*(l){return new Promise((s,h)=>{const v=new FileReader;v.onload=()=>{const y=v.result;s(y.indexOf(",")>=0?y.split(",")[1]:y)},v.onerror=y=>h(y),v.readAsDataURL(l)})});return function(s){return o.apply(this,arguments)}}(),se=(o,l={})=>{const s=Object.assign({method:o.method||"GET",headers:o.headers},l),v=((o={})=>{const l=Object.keys(o);return Object.keys(o).map(v=>v.toLocaleLowerCase()).reduce((v,y,d)=>(v[y]=o[l[d]],v),{})})(o.headers)["content-type"]||"";if("string"==typeof o.data)s.body=o.data;else if(v.includes("application/x-www-form-urlencoded")){const y=new URLSearchParams;for(const[d,r]of Object.entries(o.data||{}))y.set(d,r);s.body=y.toString()}else if(v.includes("multipart/form-data")){const y=new FormData;if(o.data instanceof FormData)o.data.forEach((r,f)=>{y.append(f,r)});else for(const r of Object.keys(o.data))y.append(r,o.data[r]);s.body=y;const d=new Headers(s.headers);d.delete("content-type"),s.headers=d}else(v.includes("application/json")||"object"==typeof o.data)&&(s.body=JSON.stringify(o.data));return s};class g extends L{request(l){return(0,a.A)(function*(){const s=se(l,l.webFetchExtra),h=((o,l=!0)=>o?Object.entries(o).reduce((h,v)=>{const[y,d]=v;let r,f;return Array.isArray(d)?(f="",d.forEach(k=>{r=l?encodeURIComponent(k):k,f+=`${y}=${r}&`}),f.slice(0,-1)):(r=l?encodeURIComponent(d):d,f=`${y}=${r}`),`${h}&${f}`},"").substr(1):null)(l.params,l.shouldEncodeUrlParams),v=h?`${l.url}?${h}`:l.url,y=yield fetch(v,s),d=y.headers.get("content-type")||"";let f,k,{responseType:r="text"}=y.ok?l:{};switch(d.includes("application/json")&&(r="json"),r){case"arraybuffer":case"blob":k=yield y.blob(),f=yield ie(k);break;case"json":f=yield y.json();break;default:f=yield y.text()}const I={};return y.headers.forEach((V,J)=>{I[J]=V}),{data:f,headers:I,status:y.status,url:y.url}})()}get(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"GET"}))})()}post(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"POST"}))})()}put(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"PUT"}))})()}patch(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"PATCH"}))})()}delete(l){var s=this;return(0,a.A)(function*(){return s.request(Object.assign(Object.assign({},l),{method:"DELETE"}))})()}}const n=w("CapacitorHttp",{web:()=>new g})},9316:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>S});const S=(0,E(5083).F3)("Device",{web:()=>E.e(8622).then(E.bind(E,8622)).then(p=>new p.DeviceWeb)})},1889:(Ce,ee,E)=>{"use strict";E.d(ee,{Wi:()=>S,__:()=>a});var a=function(c){return c.Documents="DOCUMENTS",c.Data="DATA",c.Library="LIBRARY",c.Cache="CACHE",c.External="EXTERNAL",c.ExternalStorage="EXTERNAL_STORAGE",c}(a||{}),S=function(c){return c.UTF8="utf8",c.ASCII="ascii",c.UTF16="utf16",c}(S||{})},2739:(Ce,ee,E)=>{"use strict";E.d(ee,{YA:()=>p,__:()=>S.__});var a=E(5083),S=E(1889);const p=(0,a.F3)("Filesystem",{web:()=>E.e(2937).then(E.bind(E,2937)).then(O=>new O.FilesystemWeb)})},9182:(Ce,ee,E)=>{"use strict";E.d(ee,{_n:()=>S,kn:()=>a});var a=function(c){return c.Heavy="HEAVY",c.Medium="MEDIUM",c.Light="LIGHT",c}(a||{}),S=function(c){return c.Success="SUCCESS",c.Warning="WARNING",c.Error="ERROR",c}(S||{})},6598:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>S});const S=(0,E(5083).F3)("Network",{web:()=>E.e(3780).then(E.bind(E,3780)).then(p=>new p.NetworkWeb)})},1656:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>p,r:()=>m});const p=(te,se)=>{te.componentOnReady?te.componentOnReady().then(g=>se(g)):m(()=>se(te))},m=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te)},6031:(Ce,ee,E)=>{"use strict";E.d(ee,{L:()=>a,a:()=>S,b:()=>p,c:()=>O,d:()=>c,g:()=>te});const a="ionViewWillEnter",S="ionViewDidEnter",p="ionViewWillLeave",O="ionViewDidLeave",c="ionViewWillUnload",te=se=>se.classList.contains("ion-page")?se:se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||se},3503:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>$});var a=E(8476),S=E(5638);let p;const c=L=>L.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D=L=>(void 0===p&&(p=void 0===L.style.animationName&&void 0!==L.style.webkitAnimationName?"-webkit-":""),p),C=(L,M,R)=>{const U=M.startsWith("animation")?D(L):"";L.style.setProperty(U+M,R)},_=(L,M)=>{const R=M.startsWith("animation")?D(L):"";L.style.removeProperty(R+M)},m=[],P=(L=[],M)=>{if(void 0!==M){const R=Array.isArray(M)?M:[M];return[...L,...R]}return L},$=L=>{let M,R,U,j,W,ie,n,r,f,k,I,ve,De,me=[],te=[],se=[],g=!1,o={},l=[],s=[],h={},v=0,y=!1,d=!1,V=!0,J=!1,oe=!0,Q=!1;const ae=L,tt=[],ke=[],pe=[],Ie=[],_e=[],re=[],ne=[],G=[],ge=[],xt=[],Qe=[],rt="function"==typeof AnimationEffect||void 0!==a.w&&"function"==typeof a.w.AnimationEffect,rn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rt,ft=()=>Qe,St=(gt,zt)=>{const ye=zt.findIndex(Ke=>Ke.c===gt);ye>-1&&zt.splice(ye,1)},bn=(gt,zt)=>((null!=zt&&zt.oneTimeCallback?ke:tt).push({c:gt,o:zt}),De),wt=()=>{if(rn)Qe.forEach(gt=>{gt.cancel()}),Qe.length=0;else{const gt=Ie.slice();(0,S.r)(()=>{gt.forEach(zt=>{_(zt,"animation-name"),_(zt,"animation-duration"),_(zt,"animation-timing-function"),_(zt,"animation-iteration-count"),_(zt,"animation-delay"),_(zt,"animation-play-state"),_(zt,"animation-fill-mode"),_(zt,"animation-direction")})})}},Dn=()=>{re.forEach(gt=>{null!=gt&>.parentNode&>.parentNode.removeChild(gt)}),re.length=0},je=()=>void 0!==W?W:n?n.getFill():"both",it=()=>void 0!==f?f:void 0!==ie?ie:n?n.getDirection():"normal",Pe=()=>y?"linear":void 0!==U?U:n?n.getEasing():"linear",Se=()=>d?0:void 0!==k?k:void 0!==R?R:n?n.getDuration():0,ze=()=>void 0!==j?j:n?n.getIterations():1,Et=()=>void 0!==I?I:void 0!==M?M:n?n.getDelay():0,Fn=()=>{0!==v&&(v--,0===v&&((()=>{wn(),ge.forEach(dt=>dt()),xt.forEach(dt=>dt());const gt=V?1:0,zt=l,ye=s,Ke=h;Ie.forEach(dt=>{const pt=dt.classList;zt.forEach(Yt=>pt.add(Yt)),ye.forEach(Yt=>pt.remove(Yt));for(const Yt in Ke)Ke.hasOwnProperty(Yt)&&C(dt,Yt,Ke[Yt])}),k=void 0,f=void 0,I=void 0,tt.forEach(dt=>dt.c(gt,De)),ke.forEach(dt=>dt.c(gt,De)),ke.length=0,oe=!0,V&&(J=!0),V=!0})(),n&&n.animationFinish()))},kn=(gt=!0)=>{Dn();const zt=(L=>(L.forEach(M=>{for(const R in M)if(M.hasOwnProperty(R)){const U=M[R];if("easing"===R)M["animation-timing-function"]=U,delete M[R];else{const j=c(R);j!==R&&(M[j]=U,delete M[R])}}}),L))(me);Ie.forEach(ye=>{if(zt.length>0){const Ke=((L=[])=>L.map(M=>{const R=M.offset,U=[];for(const j in M)M.hasOwnProperty(j)&&"offset"!==j&&U.push(`${j}: ${M[j]};`);return`${100*R}% { ${U.join(" ")} }`}).join(" "))(zt);ve=void 0!==L?L:(L=>{let M=m.indexOf(L);return M<0&&(M=m.push(L)-1),`ion-animation-${M}`})(Ke);const dt=((L,M,R)=>{var U;const j=(L=>{const M=void 0!==L.getRootNode?L.getRootNode():L;return M.head||M})(R),W=D(R),ie=j.querySelector("#"+L);if(ie)return ie;const me=(null!==(U=R.ownerDocument)&&void 0!==U?U:document).createElement("style");return me.id=L,me.textContent=`@${W}keyframes ${L} { ${M} } @${W}keyframes ${L}-alt { ${M} }`,j.appendChild(me),me})(ve,Ke,ye);re.push(dt),C(ye,"animation-duration",`${Se()}ms`),C(ye,"animation-timing-function",Pe()),C(ye,"animation-delay",`${Et()}ms`),C(ye,"animation-fill-mode",je()),C(ye,"animation-direction",it());const pt=ze()===1/0?"infinite":ze().toString();C(ye,"animation-iteration-count",pt),C(ye,"animation-play-state","paused"),gt&&C(ye,"animation-name",`${dt.id}-alt`),(0,S.r)(()=>{C(ye,"animation-name",dt.id||null)})}})},Xn=(gt=!0)=>{(()=>{ne.forEach(Ke=>Ke()),G.forEach(Ke=>Ke());const gt=te,zt=se,ye=o;Ie.forEach(Ke=>{const dt=Ke.classList;gt.forEach(pt=>dt.add(pt)),zt.forEach(pt=>dt.remove(pt));for(const pt in ye)ye.hasOwnProperty(pt)&&C(Ke,pt,ye[pt])})})(),me.length>0&&(rn?(Ie.forEach(gt=>{const zt=gt.animate(me,{id:ae,delay:Et(),duration:Se(),easing:Pe(),iterations:ze(),fill:je(),direction:it()});zt.pause(),Qe.push(zt)}),Qe.length>0&&(Qe[0].onfinish=()=>{Fn()})):kn(gt)),g=!0},jn=gt=>{if(gt=Math.min(Math.max(gt,0),.9999),rn)Qe.forEach(zt=>{zt.currentTime=zt.effect.getComputedTiming().delay+Se()*gt,zt.pause()});else{const zt=`-${Se()*gt}ms`;Ie.forEach(ye=>{me.length>0&&(C(ye,"animation-delay",zt),C(ye,"animation-play-state","paused"))})}},$e=gt=>{Qe.forEach(zt=>{zt.effect.updateTiming({delay:Et(),duration:Se(),easing:Pe(),iterations:ze(),fill:je(),direction:it()})}),void 0!==gt&&jn(gt)},lt=(gt=!0,zt)=>{(0,S.r)(()=>{Ie.forEach(ye=>{C(ye,"animation-name",ve||null),C(ye,"animation-duration",`${Se()}ms`),C(ye,"animation-timing-function",Pe()),C(ye,"animation-delay",void 0!==zt?`-${zt*Se()}ms`:`${Et()}ms`),C(ye,"animation-fill-mode",je()||null),C(ye,"animation-direction",it()||null);const Ke=ze()===1/0?"infinite":ze().toString();C(ye,"animation-iteration-count",Ke),gt&&C(ye,"animation-name",`${ve}-alt`),(0,S.r)(()=>{C(ye,"animation-name",ve||null)})})})},Tt=(gt=!1,zt=!0,ye)=>(gt&&_e.forEach(Ke=>{Ke.update(gt,zt,ye)}),rn?$e(ye):lt(zt,ye),De),qt=()=>{g&&(rn?Qe.forEach(gt=>{gt.pause()}):Ie.forEach(gt=>{C(gt,"animation-play-state","paused")}),Q=!0)},Tn=()=>{r=void 0,Fn()},wn=()=>{r&&clearTimeout(r)},Fe=gt=>new Promise(zt=>{null!=gt&>.sync&&(d=!0,bn(()=>d=!1,{oneTimeCallback:!0})),g||Xn(),J&&(rn?(jn(0),$e()):lt(),J=!1),oe&&(v=_e.length+1,oe=!1);const ye=()=>{St(Ke,ke),zt()},Ke=()=>{St(ye,pe),zt()};bn(Ke,{oneTimeCallback:!0}),((gt,zt)=>{pe.push({c:gt,o:{oneTimeCallback:!0}})})(ye),_e.forEach(dt=>{dt.play()}),rn?(Qe.forEach(gt=>{gt.play()}),(0===me.length||0===Ie.length)&&Fn()):(()=>{if(wn(),(0,S.r)(()=>{Ie.forEach(gt=>{me.length>0&&C(gt,"animation-play-state","running")})}),0===me.length||0===Ie.length)Fn();else{const gt=Et()||0,zt=Se()||0,ye=ze()||1;isFinite(ye)&&(r=setTimeout(Tn,gt+zt*ye+100)),((L,M)=>{let R;const U={passive:!0},W=ie=>{L===ie.target&&(R&&R(),wn(),(0,S.r)(()=>{Ie.forEach(gt=>{_(gt,"animation-duration"),_(gt,"animation-delay"),_(gt,"animation-play-state")}),(0,S.r)(Fn)}))};L&&(L.addEventListener("webkitAnimationEnd",W,U),L.addEventListener("animationend",W,U),R=()=>{L.removeEventListener("webkitAnimationEnd",W,U),L.removeEventListener("animationend",W,U)})})(Ie[0])}})(),Q=!1}),Ct=(gt,zt)=>{const ye=me[0];return void 0===ye||void 0!==ye.offset&&0!==ye.offset?me=[{offset:0,[gt]:zt},...me]:ye[gt]=zt,De};return De={parentAnimation:n,elements:Ie,childAnimations:_e,id:ae,animationFinish:Fn,from:Ct,to:(gt,zt)=>{const ye=me[me.length-1];return void 0===ye||void 0!==ye.offset&&1!==ye.offset?me=[...me,{offset:1,[gt]:zt}]:ye[gt]=zt,De},fromTo:(gt,zt,ye)=>Ct(gt,zt).to(gt,ye),parent:gt=>(n=gt,De),play:Fe,pause:()=>(_e.forEach(gt=>{gt.pause()}),qt(),De),stop:()=>{_e.forEach(gt=>{gt.stop()}),g&&(wt(),g=!1),y=!1,d=!1,oe=!0,f=void 0,k=void 0,I=void 0,v=0,J=!1,V=!0,Q=!1,pe.forEach(gt=>gt.c(0,De)),pe.length=0},destroy:gt=>(_e.forEach(zt=>{zt.destroy(gt)}),(gt=>{wt(),gt&&Dn()})(gt),Ie.length=0,_e.length=0,me.length=0,tt.length=0,ke.length=0,g=!1,oe=!0,De),keyframes:gt=>{const zt=me!==gt;return me=gt,zt&&(gt=>{rn?ft().forEach(zt=>{const ye=zt.effect;if(ye.setKeyframes)ye.setKeyframes(gt);else{const Ke=new KeyframeEffect(ye.target,gt,ye.getTiming());zt.effect=Ke}}):kn()})(me),De},addAnimation:gt=>{if(null!=gt)if(Array.isArray(gt))for(const zt of gt)zt.parent(De),_e.push(zt);else gt.parent(De),_e.push(gt);return De},addElement:gt=>{if(null!=gt)if(1===gt.nodeType)Ie.push(gt);else if(gt.length>=0)for(let zt=0;zt(W=gt,Tt(!0),De),direction:gt=>(ie=gt,Tt(!0),De),iterations:gt=>(j=gt,Tt(!0),De),duration:gt=>(!rn&&0===gt&&(gt=1),R=gt,Tt(!0),De),easing:gt=>(U=gt,Tt(!0),De),delay:gt=>(M=gt,Tt(!0),De),getWebAnimations:ft,getKeyframes:()=>me,getFill:je,getDirection:it,getDelay:Et,getIterations:ze,getEasing:Pe,getDuration:Se,afterAddRead:gt=>(ge.push(gt),De),afterAddWrite:gt=>(xt.push(gt),De),afterClearStyles:(gt=[])=>{for(const zt of gt)h[zt]="";return De},afterStyles:(gt={})=>(h=gt,De),afterRemoveClass:gt=>(s=P(s,gt),De),afterAddClass:gt=>(l=P(l,gt),De),beforeAddRead:gt=>(ne.push(gt),De),beforeAddWrite:gt=>(G.push(gt),De),beforeClearStyles:(gt=[])=>{for(const zt of gt)o[zt]="";return De},beforeStyles:(gt={})=>(o=gt,De),beforeRemoveClass:gt=>(se=P(se,gt),De),beforeAddClass:gt=>(te=P(te,gt),De),onFinish:bn,isRunning:()=>0!==v&&!Q,progressStart:(gt=!1,zt)=>(_e.forEach(ye=>{ye.progressStart(gt,zt)}),qt(),y=gt,g||Xn(),Tt(!1,!0,zt),De),progressStep:gt=>(_e.forEach(zt=>{zt.progressStep(gt)}),jn(gt),De),progressEnd:(gt,zt,ye)=>(y=!1,_e.forEach(Ke=>{Ke.progressEnd(gt,zt,ye)}),void 0!==ye&&(k=ye),J=!1,V=!0,0===gt?(f="reverse"===it()?"normal":"reverse","reverse"===f&&(V=!1),rn?(Tt(),jn(1-zt)):(I=(1-zt)*Se()*-1,Tt(!1,!1))):1===gt&&(rn?(Tt(),jn(zt)):(I=zt*Se()*-1,Tt(!1,!1))),void 0!==gt&&!n&&Fe(),De)}}},464:(Ce,ee,E)=>{"use strict";E.d(ee,{E:()=>B,a:()=>a,s:()=>_});const a=m=>{try{if(m instanceof C)return m.value;if(!O()||"string"!=typeof m||""===m)return m;if(m.includes("onload="))return"";const T=document.createDocumentFragment(),A=document.createElement("div");T.appendChild(A),A.innerHTML=m,D.forEach(L=>{const M=T.querySelectorAll(L);for(let R=M.length-1;R>=0;R--){const U=M[R];U.parentNode?U.parentNode.removeChild(U):T.removeChild(U);const j=p(U);for(let W=0;W{if(m.nodeType&&1!==m.nodeType)return;if(typeof NamedNodeMap<"u"&&!(m.attributes instanceof NamedNodeMap))return void m.remove();for(let A=m.attributes.length-1;A>=0;A--){const w=m.attributes.item(A),P=w.name;if(!c.includes(P.toLowerCase())){m.removeAttribute(P);continue}const $=w.value,L=m[P];(null!=$&&$.toLowerCase().includes("javascript:")||null!=L&&L.toLowerCase().includes("javascript:"))&&m.removeAttribute(P)}const T=p(m);for(let A=0;Anull!=m.children?m.children:m.childNodes,O=()=>{var m;const T=window,A=null===(m=null==T?void 0:T.Ionic)||void 0===m?void 0:m.config;return!A||(A.get?A.get("sanitizerEnabled",!0):!0===A.sanitizerEnabled||void 0===A.sanitizerEnabled)},c=["class","id","href","src","name","slot"],D=["script","style","iframe","meta","link","object","embed"];class C{constructor(T){this.value=T}}const _=m=>{const T=window,A=T.Ionic;if(!A||!A.config||"Object"===A.config.constructor.name)return T.Ionic=T.Ionic||{},T.Ionic.config=Object.assign(Object.assign({},T.Ionic.config),m),T.Ionic.config},B=!1},5938:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>c,a:()=>p,d:()=>O});var a=E(467),S=E(5638);const p=function(){var D=(0,a.A)(function*(C,_,F,B,m,T){var A;if(C)return C.attachViewToDom(_,F,m,B);if(!(T||"string"==typeof F||F instanceof HTMLElement))throw new Error("framework delegate is missing");const w="string"==typeof F?null===(A=_.ownerDocument)||void 0===A?void 0:A.createElement(F):F;return B&&B.forEach(P=>w.classList.add(P)),m&&Object.assign(w,m),_.appendChild(w),yield new Promise(P=>(0,S.c)(w,P)),w});return function(_,F,B,m,T,A){return D.apply(this,arguments)}}(),O=(D,C)=>{if(C){if(D)return D.removeViewFromDom(C.parentElement,C);C.remove()}return Promise.resolve()},c=()=>{let D,C;return{attachViewToDom:function(){var B=(0,a.A)(function*(m,T,A={},w=[]){var P,$;let L;if(D=m,T){const R="string"==typeof T?null===(P=D.ownerDocument)||void 0===P?void 0:P.createElement(T):T;w.forEach(U=>R.classList.add(U)),Object.assign(R,A),D.appendChild(R),L=R,yield new Promise(U=>(0,S.c)(R,U))}else if(D.children.length>0&&("ION-MODAL"===D.tagName||"ION-POPOVER"===D.tagName)&&!(L=D.children[0]).classList.contains("ion-delegate-host")){const U=null===($=D.ownerDocument)||void 0===$?void 0:$.createElement("div");U.classList.add("ion-delegate-host"),w.forEach(j=>U.classList.add(j)),U.append(...D.children),D.appendChild(U),L=U}const M=document.querySelector("ion-app")||document.body;return C=document.createComment("ionic teleport"),D.parentNode.insertBefore(C,D),M.appendChild(D),null!=L?L:D});return function(T,A){return B.apply(this,arguments)}}(),removeViewFromDom:()=>(D&&C&&(C.parentNode.insertBefore(D,C),C.remove()),Promise.resolve())}}},8221:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>c});class S{constructor(C,_,F,B,m){this.id=_,this.name=F,this.disableScroll=m,this.priority=1e6*B+_,this.ctrl=C}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const C=this.ctrl.capture(this.name,this.id,this.priority);return C&&this.disableScroll&&this.ctrl.disableScroll(this.id),C}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class p{constructor(C,_,F,B){this.id=_,this.disable=F,this.disableScroll=B,this.ctrl=C}block(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.disableGesture(C,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.enableGesture(C,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const O="backdrop-no-scroll",c=new class a{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(C){var _;return new S(this,this.newID(),C.name,null!==(_=C.priority)&&void 0!==_?_:0,!!C.disableScroll)}createBlocker(C={}){return new p(this,this.newID(),C.disable,!!C.disableScroll)}start(C,_,F){return this.canStart(C)?(this.requestedStart.set(_,F),!0):(this.requestedStart.delete(_),!1)}capture(C,_,F){if(!this.start(C,_,F))return!1;const B=this.requestedStart;let m=-1e4;if(B.forEach(T=>{m=Math.max(m,T)}),m===F){this.capturedId=_,B.clear();const T=new CustomEvent("ionGestureCaptured",{detail:{gestureName:C}});return document.dispatchEvent(T),!0}return B.delete(_),!1}release(C){this.requestedStart.delete(C),this.capturedId===C&&(this.capturedId=void 0)}disableGesture(C,_){let F=this.disabledGestures.get(C);void 0===F&&(F=new Set,this.disabledGestures.set(C,F)),F.add(_)}enableGesture(C,_){const F=this.disabledGestures.get(C);void 0!==F&&F.delete(_)}disableScroll(C){this.disabledScroll.add(C),1===this.disabledScroll.size&&document.body.classList.add(O)}enableScroll(C){this.disabledScroll.delete(C),0===this.disabledScroll.size&&document.body.classList.remove(O)}canStart(C){return!(void 0!==this.capturedId||this.isDisabled(C))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(C){const _=this.disabledGestures.get(C);return!!(_&&_.size>0)}newID(){return this.gestureId++,this.gestureId}}},3113:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{MENU_BACK_BUTTON_PRIORITY:()=>F,OVERLAY_BACK_BUTTON_PRIORITY:()=>_,blockHardwareBackButton:()=>D,shouldUseCloseWatcher:()=>c,startHardwareBackButton:()=>C});var a=E(467),S=E(8476),p=E(611);E(4363);const c=()=>p.c.get("experimentalCloseWatcher",!1)&&void 0!==S.w&&"CloseWatcher"in S.w,D=()=>{document.addEventListener("backbutton",()=>{})},C=()=>{const B=document;let m=!1;const T=()=>{if(m)return;let A=0,w=[];const P=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(M,R){w.push({priority:M,handler:R,id:A++})}}});B.dispatchEvent(P);const $=function(){var M=(0,a.A)(function*(R){try{if(null!=R&&R.handler){const U=R.handler(L);null!=U&&(yield U)}}catch(U){console.error(U)}});return function(U){return M.apply(this,arguments)}}(),L=()=>{if(w.length>0){let M={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};w.forEach(R=>{R.priority>=M.priority&&(M=R)}),m=!0,w=w.filter(R=>R.id!==M.id),$(M).then(()=>m=!1)}};L()};if(c()){let A;const w=()=>{null==A||A.destroy(),A=new S.w.CloseWatcher,A.onclose=()=>{T(),w()}};w()}else B.addEventListener("backbutton",T)},_=100,F=99},5638:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>_,b:()=>F,c:()=>p,d:()=>$,e:()=>P,f:()=>w,g:()=>B,h:()=>A,i:()=>C,j:()=>W,k:()=>c,l:()=>L,m:()=>O,n:()=>T,o:()=>M,p:()=>j,q:()=>ie,r:()=>m,s:()=>me,t:()=>a,u:()=>R,v:()=>U});const a=(te,se=0)=>new Promise(g=>{S(te,se,g)}),S=(te,se=0,g)=>{let n,o;const l={passive:!0},h=()=>{n&&n()},v=y=>{(void 0===y||te===y.target)&&(h(),g(y))};return te&&(te.addEventListener("webkitTransitionEnd",v,l),te.addEventListener("transitionend",v,l),o=setTimeout(v,se+500),n=()=>{void 0!==o&&(clearTimeout(o),o=void 0),te.removeEventListener("webkitTransitionEnd",v,l),te.removeEventListener("transitionend",v,l)}),h},p=(te,se)=>{te.componentOnReady?te.componentOnReady().then(g=>se(g)):m(()=>se(te))},O=te=>void 0!==te.componentOnReady,c=(te,se=[])=>{const g={};return se.forEach(n=>{te.hasAttribute(n)&&(null!==te.getAttribute(n)&&(g[n]=te.getAttribute(n)),te.removeAttribute(n))}),g},D=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],C=(te,se)=>{let g=D;return se&&se.length>0&&(g=g.filter(n=>!se.includes(n))),c(te,g)},_=(te,se,g,n)=>{var o;if(typeof window<"u"){const l=window,s=null===(o=null==l?void 0:l.Ionic)||void 0===o?void 0:o.config;if(s){const h=s.get("_ael");if(h)return h(te,se,g,n);if(s._ael)return s._ael(te,se,g,n)}}return te.addEventListener(se,g,n)},F=(te,se,g,n)=>{var o;if(typeof window<"u"){const l=window,s=null===(o=null==l?void 0:l.Ionic)||void 0===o?void 0:o.config;if(s){const h=s.get("_rel");if(h)return h(te,se,g,n);if(s._rel)return s._rel(te,se,g,n)}}return te.removeEventListener(se,g,n)},B=(te,se=te)=>te.shadowRoot||se,m=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te),T=te=>!!te.shadowRoot&&!!te.attachShadow,A=te=>{const se=te.closest("ion-item");return se?se.querySelector("ion-label"):null},w=te=>{if(te.focus(),te.classList.contains("ion-focusable")){const se=te.closest("ion-app");se&&se.setFocus([te])}},P=(te,se)=>{let g;const n=te.getAttribute("aria-labelledby"),o=te.id;let l=null!==n&&""!==n.trim()?n:se+"-lbl",s=null!==n&&""!==n.trim()?document.getElementById(n):A(te);return s?(null===n&&(s.id=l),g=s.textContent,s.setAttribute("aria-hidden","true")):""!==o.trim()&&(s=document.querySelector(`label[for="${o}"]`),s&&(""!==s.id?l=s.id:s.id=l=`${o}-lbl`,g=s.textContent)),{label:s,labelId:l,labelText:g}},$=(te,se,g,n,o)=>{if(te||T(se)){let l=se.querySelector("input.aux-input");l||(l=se.ownerDocument.createElement("input"),l.type="hidden",l.classList.add("aux-input"),se.appendChild(l)),l.disabled=o,l.name=g,l.value=n||""}},L=(te,se,g)=>Math.max(te,Math.min(se,g)),M=(te,se)=>{if(!te){const g="ASSERT: "+se;throw console.error(g),new Error(g)}},R=te=>te.timeStamp||Date.now(),U=te=>{if(te){const se=te.changedTouches;if(se&&se.length>0){const g=se[0];return{x:g.clientX,y:g.clientY}}if(void 0!==te.pageX)return{x:te.pageX,y:te.pageY}}return{x:0,y:0}},j=te=>{const se="rtl"===document.dir;switch(te){case"start":return se;case"end":return!se;default:throw new Error(`"${te}" is not a valid value for [side]. Use "start" or "end" instead.`)}},W=(te,se)=>{const g=te._original||te;return{_original:te,emit:ie(g.emit.bind(g),se)}},ie=(te,se=0)=>{let g;return(...n)=>{clearTimeout(g),g=setTimeout(te,se,...n)}},me=(te,se)=>{if(null!=te||(te={}),null!=se||(se={}),te===se)return!0;const g=Object.keys(te);if(g.length!==Object.keys(se).length)return!1;for(const n of g)if(!(n in se)||te[n]!==se[n])return!1;return!0}},405:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{GESTURE_CONTROLLER:()=>a.G,createGesture:()=>F});var a=E(8221);const S=(A,w,P,$)=>{const L=p(A)?{capture:!!$.capture,passive:!!$.passive}:!!$.capture;let M,R;return A.__zone_symbol__addEventListener?(M="__zone_symbol__addEventListener",R="__zone_symbol__removeEventListener"):(M="addEventListener",R="removeEventListener"),A[M](w,P,L),()=>{A[R](w,P,L)}},p=A=>{if(void 0===O)try{const w=Object.defineProperty({},"passive",{get:()=>{O=!0}});A.addEventListener("optsTest",()=>{},w)}catch{O=!1}return!!O};let O;const C=A=>A instanceof Document?A:A.ownerDocument,F=A=>{let w=!1,P=!1,$=!0,L=!1;const M=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},A),R=M.canStart,U=M.onWillStart,j=M.onStart,W=M.onEnd,ie=M.notCaptured,me=M.onMove,te=M.threshold,se=M.passive,g=M.blurOnStart,n={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},o=((A,w,P)=>{const $=P*(Math.PI/180),L="x"===A,M=Math.cos($),R=w*w;let U=0,j=0,W=!1,ie=0;return{start(me,te){U=me,j=te,ie=0,W=!0},detect(me,te){if(!W)return!1;const se=me-U,g=te-j,n=se*se+g*g;if(nM?1:l<-M?-1:0,W=!1,!0},isGesture:()=>0!==ie,getDirection:()=>ie}})(M.direction,M.threshold,M.maxAngle),l=a.G.createGesture({name:A.gestureName,priority:A.gesturePriority,disableScroll:A.disableScroll}),v=()=>{w&&(L=!1,me&&me(n))},y=()=>!!l.capture()&&(w=!0,$=!1,n.startX=n.currentX,n.startY=n.currentY,n.startTime=n.currentTime,U?U(n).then(r):r(),!0),r=()=>{g&&(()=>{if(typeof document<"u"){const J=document.activeElement;null!=J&&J.blur&&J.blur()}})(),j&&j(n),$=!0},f=()=>{w=!1,P=!1,L=!1,$=!0,l.release()},k=J=>{const oe=w,ve=$;if(f(),ve){if(B(n,J),oe)return void(W&&W(n));ie&&ie(n)}},I=((A,w,P,$,L)=>{let M,R,U,j,W,ie,me,te=0;const se=d=>{te=Date.now()+2e3,w(d)&&(!R&&P&&(R=S(A,"touchmove",P,L)),U||(U=S(d.target,"touchend",n,L)),j||(j=S(d.target,"touchcancel",n,L)))},g=d=>{te>Date.now()||w(d)&&(!ie&&P&&(ie=S(C(A),"mousemove",P,L)),me||(me=S(C(A),"mouseup",o,L)))},n=d=>{l(),$&&$(d)},o=d=>{s(),$&&$(d)},l=()=>{R&&R(),U&&U(),j&&j(),R=U=j=void 0},s=()=>{ie&&ie(),me&&me(),ie=me=void 0},h=()=>{l(),s()},v=(d=!0)=>{d?(M||(M=S(A,"touchstart",se,L)),W||(W=S(A,"mousedown",g,L))):(M&&M(),W&&W(),M=W=void 0,h())};return{enable:v,stop:h,destroy:()=>{v(!1),$=P=w=void 0}}})(M.el,J=>{const oe=T(J);return!(P||!$||(m(J,n),n.startX=n.currentX,n.startY=n.currentY,n.startTime=n.currentTime=oe,n.velocityX=n.velocityY=n.deltaX=n.deltaY=0,n.event=J,R&&!1===R(n))||(l.release(),!l.start()))&&(P=!0,0===te?y():(o.start(n.startX,n.startY),!0))},J=>{w?!L&&$&&(L=!0,B(n,J),requestAnimationFrame(v)):(B(n,J),o.detect(n.currentX,n.currentY)&&(!o.isGesture()||!y())&&V())},k,{capture:!1,passive:se}),V=()=>{f(),I.stop(),ie&&ie(n)};return{enable(J=!0){J||(w&&k(void 0),f()),I.enable(J)},destroy(){l.destroy(),I.destroy()}}},B=(A,w)=>{if(!w)return;const P=A.currentX,$=A.currentY,L=A.currentTime;m(w,A);const M=A.currentX,R=A.currentY,j=(A.currentTime=T(w))-L;if(j>0&&j<100){const ie=(R-$)/j;A.velocityX=(M-P)/j*.7+.3*A.velocityX,A.velocityY=.7*ie+.3*A.velocityY}A.deltaX=M-A.startX,A.deltaY=R-A.startY,A.event=w},m=(A,w)=>{let P=0,$=0;if(A){const L=A.changedTouches;if(L&&L.length>0){const M=L[0];P=M.clientX,$=M.clientY}else void 0!==A.pageX&&(P=A.pageX,$=A.pageY)}w.currentX=P,w.currentY=$},T=A=>A.timeStamp||Date.now()},5384:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>A});var a=E(467),S=E(8476),p=E(3113),O=E(4929),c=E(5638),D=E(611),C=E(3503);const _=w=>(0,C.c)().duration(w?400:300),F=w=>{let P,$;const L=w.width+8,M=(0,C.c)(),R=(0,C.c)();w.isEndSide?(P=L+"px",$="0px"):(P=-L+"px",$="0px"),M.addElement(w.menuInnerEl).fromTo("transform",`translateX(${P})`,`translateX(${$})`);const j="ios"===(0,D.b)(w),W=j?.2:.25;return R.addElement(w.backdropEl).fromTo("opacity",.01,W),_(j).addAnimation([M,R])},B=w=>{let P,$;const L=(0,D.b)(w),M=w.width;w.isEndSide?(P=-M+"px",$=M+"px"):(P=M+"px",$=-M+"px");const R=(0,C.c)().addElement(w.menuInnerEl).fromTo("transform",`translateX(${$})`,"translateX(0px)"),U=(0,C.c)().addElement(w.contentEl).fromTo("transform","translateX(0px)",`translateX(${P})`),j=(0,C.c)().addElement(w.backdropEl).fromTo("opacity",.01,.32);return _("ios"===L).addAnimation([R,U,j])},m=w=>{const P=(0,D.b)(w),$=w.width*(w.isEndSide?-1:1)+"px",L=(0,C.c)().addElement(w.contentEl).fromTo("transform","translateX(0px)",`translateX(${$})`);return _("ios"===P).addAnimation(L)},A=(()=>{const w=new Map,P=[],$=function(){var f=(0,a.A)(function*(k){const I=yield ie(k,!0);return!!I&&I.open()});return function(I){return f.apply(this,arguments)}}(),L=function(){var f=(0,a.A)(function*(k){const I=yield void 0!==k?ie(k,!0):me();return void 0!==I&&I.close()});return function(I){return f.apply(this,arguments)}}(),M=function(){var f=(0,a.A)(function*(k){const I=yield ie(k,!0);return!!I&&I.toggle()});return function(I){return f.apply(this,arguments)}}(),R=function(){var f=(0,a.A)(function*(k,I){const V=yield ie(I);return V&&(V.disabled=!k),V});return function(I,V){return f.apply(this,arguments)}}(),U=function(){var f=(0,a.A)(function*(k,I){const V=yield ie(I);return V&&(V.swipeGesture=k),V});return function(I,V){return f.apply(this,arguments)}}(),j=function(){var f=(0,a.A)(function*(k){if(null!=k){const I=yield ie(k);return void 0!==I&&I.isOpen()}return void 0!==(yield me())});return function(I){return f.apply(this,arguments)}}(),W=function(){var f=(0,a.A)(function*(k){const I=yield ie(k);return!!I&&!I.disabled});return function(I){return f.apply(this,arguments)}}(),ie=function(){var f=(0,a.A)(function*(k,I=!1){if(yield r(),"start"===k||"end"===k){const J=P.filter(ve=>ve.side===k&&!ve.disabled);if(J.length>=1)return J.length>1&&I&&(0,O.p)(`menuController queried for a menu on the "${k}" side, but ${J.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,J.map(ve=>ve.el)),J[0].el;const oe=P.filter(ve=>ve.side===k);if(oe.length>=1)return oe.length>1&&I&&(0,O.p)(`menuController queried for a menu on the "${k}" side, but ${oe.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,oe.map(ve=>ve.el)),oe[0].el}else if(null!=k)return d(J=>J.menuId===k);return d(J=>!J.disabled)||(P.length>0?P[0].el:void 0)});return function(I){return f.apply(this,arguments)}}(),me=function(){var f=(0,a.A)(function*(){return yield r(),h()});return function(){return f.apply(this,arguments)}}(),te=function(){var f=(0,a.A)(function*(){return yield r(),v()});return function(){return f.apply(this,arguments)}}(),se=function(){var f=(0,a.A)(function*(){return yield r(),y()});return function(){return f.apply(this,arguments)}}(),g=(f,k)=>{w.set(f,k)},l=function(){var f=(0,a.A)(function*(k,I,V){if(y())return!1;if(I){const J=yield me();J&&k.el!==J&&(yield J.setOpen(!1,!1))}return k._setOpen(I,V)});return function(I,V,J){return f.apply(this,arguments)}}(),h=()=>d(f=>f._isOpen),v=()=>P.map(f=>f.el),y=()=>P.some(f=>f.isAnimating),d=f=>{const k=P.find(f);if(void 0!==k)return k.el},r=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(f=>new Promise(k=>(0,c.c)(f,k))));return g("reveal",m),g("push",B),g("overlay",F),null==S.d||S.d.addEventListener("ionBackButton",f=>{const k=h();k&&f.detail.register(p.MENU_BACK_BUTTON_PRIORITY,()=>k.close())}),{registerAnimation:g,get:ie,getMenus:te,getOpen:me,isEnabled:W,swipeGesture:U,isAnimating:se,isOpen:j,enable:R,toggle:M,close:L,open:$,_getOpenSync:h,_createAnimation:(f,k)=>{const I=w.get(f);if(!I)throw new Error("animation not registered");return I(k)},_register:f=>{P.indexOf(f)<0&&P.push(f)},_unregister:f=>{const k=P.indexOf(f);k>-1&&P.splice(k,1)},_setOpen:l}})()},4929:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S,b:()=>p,p:()=>a});const a=(O,...c)=>console.warn(`[Ionic Warning]: ${O}`,...c),S=(O,...c)=>console.error(`[Ionic Error]: ${O}`,...c),p=(O,...c)=>console.error(`<${O.tagName.toLowerCase()}> must be used inside ${c.join(" or ")}.`)},4363:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>T,H:()=>y,a:()=>Tn,b:()=>On,c:()=>ve,d:()=>tt,e:()=>gt,f:()=>ae,g:()=>De,h:()=>h,i:()=>it,j:()=>A,r:()=>Gn,w:()=>zt});var a=E(467);let O,c,D,C=!1,_=!1,F=!1,B=!1,m=!1;const T={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},A=ye=>{const Ke=new URL(ye,Qt.$resourcesUrl$);return Ke.origin!==Zt.location.origin?Ke.href:Ke.pathname},U="s-id",j="sty-id",W="c-id",me="slot-fb{display:contents}slot-fb[hidden]{display:none}",te="http://www.w3.org/1999/xlink",se={},l=ye=>"object"==(ye=typeof ye)||"function"===ye;function s(ye){var Ke,dt,pt;return null!==(pt=null===(dt=null===(Ke=ye.head)||void 0===Ke?void 0:Ke.querySelector('meta[name="csp-nonce"]'))||void 0===dt?void 0:dt.getAttribute("content"))&&void 0!==pt?pt:void 0}const h=(ye,Ke,...dt)=>{let pt=null,Yt=null,$t=null,an=!1,ln=!1;const xn=[],cn=_n=>{for(let Sn=0;Sn<_n.length;Sn++)pt=_n[Sn],Array.isArray(pt)?cn(pt):null!=pt&&"boolean"!=typeof pt&&((an="function"!=typeof ye&&!l(pt))&&(pt=String(pt)),an&&ln?xn[xn.length-1].$text$+=pt:xn.push(an?v(null,pt):pt),ln=an)};if(cn(dt),Ke){Ke.key&&(Yt=Ke.key),Ke.name&&($t=Ke.name);{const _n=Ke.className||Ke.class;_n&&(Ke.class="object"!=typeof _n?_n:Object.keys(_n).filter(Sn=>_n[Sn]).join(" "))}}if("function"==typeof ye)return ye(null===Ke?{}:Ke,xn,r);const nn=v(ye,null);return nn.$attrs$=Ke,xn.length>0&&(nn.$children$=xn),nn.$key$=Yt,nn.$name$=$t,nn},v=(ye,Ke)=>({$flags$:0,$tag$:ye,$text$:Ke,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),y={},r={forEach:(ye,Ke)=>ye.map(f).forEach(Ke),map:(ye,Ke)=>ye.map(f).map(Ke).map(k)},f=ye=>({vattrs:ye.$attrs$,vchildren:ye.$children$,vkey:ye.$key$,vname:ye.$name$,vtag:ye.$tag$,vtext:ye.$text$}),k=ye=>{if("function"==typeof ye.vtag){const dt=Object.assign({},ye.vattrs);return ye.vkey&&(dt.key=ye.vkey),ye.vname&&(dt.name=ye.vname),h(ye.vtag,dt,...ye.vchildren||[])}const Ke=v(ye.vtag,ye.vtext);return Ke.$attrs$=ye.vattrs,Ke.$children$=ye.vchildren,Ke.$key$=ye.vkey,Ke.$name$=ye.vname,Ke},V=(ye,Ke,dt,pt,Yt,$t,an)=>{let ln,xn,cn,nn;if(1===$t.nodeType){for(ln=$t.getAttribute(W),ln&&(xn=ln.split("."),(xn[0]===an||"0"===xn[0])&&(cn={$flags$:0,$hostId$:xn[0],$nodeId$:xn[1],$depth$:xn[2],$index$:xn[3],$tag$:$t.tagName.toLowerCase(),$elm$:$t,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},Ke.push(cn),$t.removeAttribute(W),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn,ye=cn,pt&&"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$))),nn=$t.childNodes.length-1;nn>=0;nn--)V(ye,Ke,dt,pt,Yt,$t.childNodes[nn],an);if($t.shadowRoot)for(nn=$t.shadowRoot.childNodes.length-1;nn>=0;nn--)V(ye,Ke,dt,pt,Yt,$t.shadowRoot.childNodes[nn],an)}else if(8===$t.nodeType)xn=$t.nodeValue.split("."),(xn[1]===an||"0"===xn[1])&&(ln=xn[0],cn={$flags$:0,$hostId$:xn[1],$nodeId$:xn[2],$depth$:xn[3],$index$:xn[4],$elm$:$t,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===ln?(cn.$elm$=$t.nextSibling,cn.$elm$&&3===cn.$elm$.nodeType&&(cn.$text$=cn.$elm$.textContent,Ke.push(cn),$t.remove(),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn,pt&&"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$))):cn.$hostId$===an&&("s"===ln?(cn.$tag$="slot",$t["s-sn"]=xn[5]?cn.$name$=xn[5]:"",$t["s-sr"]=!0,pt&&(cn.$elm$=qt.createElement(cn.$tag$),cn.$name$&&cn.$elm$.setAttribute("name",cn.$name$),$t.parentNode.insertBefore(cn.$elm$,$t),$t.remove(),"0"===cn.$depth$&&(pt[cn.$index$]=cn.$elm$)),dt.push(cn),ye.$children$||(ye.$children$=[]),ye.$children$[cn.$index$]=cn):"r"===ln&&(pt?$t.remove():(Yt["s-cr"]=$t,$t["s-cn"]=!0))));else if(ye&&"style"===ye.$tag$){const _n=v(null,$t.textContent);_n.$elm$=$t,_n.$index$="0",ye.$children$=[_n]}},J=(ye,Ke)=>{if(1===ye.nodeType){let dt=0;for(;dtkt.push(ye),De=ye=>kn(ye).$modeName$,ae=ye=>kn(ye).$hostElement$,tt=(ye,Ke,dt)=>{const pt=ae(ye);return{emit:Yt=>ke(pt,Ke,{bubbles:!!(4&dt),composed:!!(2&dt),cancelable:!!(1&dt),detail:Yt})}},ke=(ye,Ke,dt)=>{const pt=Qt.ce(Ke,dt);return ye.dispatchEvent(pt),pt},pe=new WeakMap,Ie=(ye,Ke,dt)=>{let pt=Mt.get(ye);Ge&&dt?(pt=pt||new CSSStyleSheet,"string"==typeof pt?pt=Ke:pt.replaceSync(Ke)):pt=Ke,Mt.set(ye,pt)},_e=(ye,Ke,dt)=>{var pt;const Yt=ne(Ke,dt),$t=Mt.get(Yt);if(ye=11===ye.nodeType?ye:qt,$t)if("string"==typeof $t){let ln,an=pe.get(ye=ye.head||ye);if(an||pe.set(ye,an=new Set),!an.has(Yt)){if(ye.host&&(ln=ye.querySelector(`[${j}="${Yt}"]`)))ln.innerHTML=$t;else{ln=qt.createElement("style"),ln.innerHTML=$t;const xn=null!==(pt=Qt.$nonce$)&&void 0!==pt?pt:s(qt);null!=xn&&ln.setAttribute("nonce",xn),ye.insertBefore(ln,ye.querySelector("link"))}4&Ke.$flags$&&(ln.innerHTML+=me),an&&an.add(Yt)}}else ye.adoptedStyleSheets.includes($t)||(ye.adoptedStyleSheets=[...ye.adoptedStyleSheets,$t]);return Yt},ne=(ye,Ke)=>"sc-"+(Ke&&32&ye.$flags$?ye.$tagName$+"-"+Ke:ye.$tagName$),G=ye=>ye.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),ge=(ye,Ke,dt,pt,Yt,$t)=>{if(dt!==pt){let an=jn(ye,Ke),ln=Ke.toLowerCase();if("class"===Ke){const xn=ye.classList,cn=Qe(dt),nn=Qe(pt);xn.remove(...cn.filter(_n=>_n&&!nn.includes(_n))),xn.add(...nn.filter(_n=>_n&&!cn.includes(_n)))}else if("style"===Ke){for(const xn in dt)(!pt||null==pt[xn])&&(xn.includes("-")?ye.style.removeProperty(xn):ye.style[xn]="");for(const xn in pt)(!dt||pt[xn]!==dt[xn])&&(xn.includes("-")?ye.style.setProperty(xn,pt[xn]):ye.style[xn]=pt[xn])}else if("key"!==Ke)if("ref"===Ke)pt&&pt(ye);else if(an||"o"!==Ke[0]||"n"!==Ke[1]){const xn=l(pt);if((an||xn&&null!==pt)&&!Yt)try{if(ye.tagName.includes("-"))ye[Ke]=pt;else{const nn=null==pt?"":pt;"list"===Ke?an=!1:(null==dt||ye[Ke]!=nn)&&(ye[Ke]=nn)}}catch{}let cn=!1;ln!==(ln=ln.replace(/^xlink\:?/,""))&&(Ke=ln,cn=!0),null==pt||!1===pt?(!1!==pt||""===ye.getAttribute(Ke))&&(cn?ye.removeAttributeNS(te,Ke):ye.removeAttribute(Ke)):(!an||4&$t||Yt)&&!xn&&(pt=!0===pt?"":pt,cn?ye.setAttributeNS(te,Ke,pt):ye.setAttribute(Ke,pt))}else if(Ke="-"===Ke[2]?Ke.slice(3):jn(Zt,ln)?ln.slice(2):ln[2]+Ke.slice(3),dt||pt){const xn=Ke.endsWith(rt);Ke=Ke.replace(rn,""),dt&&Qt.rel(ye,Ke,dt,xn),pt&&Qt.ael(ye,Ke,pt,xn)}}},xt=/\s/,Qe=ye=>ye?ye.split(xt):[],rt="Capture",rn=new RegExp(rt+"$"),mt=(ye,Ke,dt,pt)=>{const Yt=11===Ke.$elm$.nodeType&&Ke.$elm$.host?Ke.$elm$.host:Ke.$elm$,$t=ye&&ye.$attrs$||se,an=Ke.$attrs$||se;for(pt of ft(Object.keys($t)))pt in an||ge(Yt,pt,$t[pt],void 0,dt,Ke.$flags$);for(pt of ft(Object.keys(an)))ge(Yt,pt,$t[pt],an[pt],dt,Ke.$flags$)};function ft(ye){return ye.includes("ref")?[...ye.filter(Ke=>"ref"!==Ke),"ref"]:ye}const un=(ye,Ke,dt,pt)=>{var Yt;const $t=Ke.$children$[dt];let ln,xn,cn,an=0;if(C||(F=!0,"slot"===$t.$tag$&&(O&&pt.classList.add(O+"-s"),$t.$flags$|=$t.$children$?2:1)),null!==$t.$text$)ln=$t.$elm$=qt.createTextNode($t.$text$);else if(1&$t.$flags$)ln=$t.$elm$=qt.createTextNode("");else{if(B||(B="svg"===$t.$tag$),ln=$t.$elm$=qt.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&$t.$flags$?"slot-fb":$t.$tag$),B&&"foreignObject"===$t.$tag$&&(B=!1),mt(null,$t,B),(ye=>null!=ye)(O)&&ln["s-si"]!==O&&ln.classList.add(ln["s-si"]=O),$t.$children$)for(an=0;an<$t.$children$.length;++an)xn=un(ye,$t,an,ln),xn&&ln.appendChild(xn);"svg"===$t.$tag$?B=!1:"foreignObject"===ln.tagName&&(B=!0)}return ln["s-hn"]=D,3&$t.$flags$&&(ln["s-sr"]=!0,ln["s-cr"]=c,ln["s-sn"]=$t.$name$||"",ln["s-rf"]=null===(Yt=$t.$attrs$)||void 0===Yt?void 0:Yt.ref,cn=ye&&ye.$children$&&ye.$children$[dt],cn&&cn.$tag$===$t.$tag$&&ye.$elm$&&At(ye.$elm$,!1)),ln},At=(ye,Ke)=>{Qt.$flags$|=1;const dt=Array.from(ye.childNodes);for(let pt=dt.length-1;pt>=0;pt--){const Yt=dt[pt];Yt["s-hn"]!==D&&Yt["s-ol"]&&(bt(Yt).insertBefore(Yt,bn(Yt)),Yt["s-ol"].remove(),Yt["s-ol"]=void 0,Yt["s-sh"]=void 0,F=!0),Ke&&At(Yt,Ke)}Qt.$flags$&=-2},It=(ye,Ke,dt,pt,Yt,$t)=>{let ln,an=ye["s-cr"]&&ye["s-cr"].parentNode||ye;for(an.shadowRoot&&an.tagName===D&&(an=an.shadowRoot);Yt<=$t;++Yt)pt[Yt]&&(ln=un(null,dt,Yt,ye),ln&&(pt[Yt].$elm$=ln,an.insertBefore(ln,bn(Ke))))},Cn=(ye,Ke,dt)=>{for(let pt=Ke;pt<=dt;++pt){const Yt=ye[pt];if(Yt){const $t=Yt.$elm$;Nt(Yt),$t&&(_=!0,$t["s-ol"]?$t["s-ol"].remove():At($t,!0),$t.remove())}}},Ft=(ye,Ke,dt=!1)=>ye.$tag$===Ke.$tag$&&("slot"===ye.$tag$?ye.$name$===Ke.$name$:!!dt||ye.$key$===Ke.$key$),bn=ye=>ye&&ye["s-ol"]||ye,bt=ye=>(ye["s-ol"]?ye["s-ol"]:ye).parentNode,wt=(ye,Ke,dt=!1)=>{const pt=Ke.$elm$=ye.$elm$,Yt=ye.$children$,$t=Ke.$children$,an=Ke.$tag$,ln=Ke.$text$;let xn;null===ln?(B="svg"===an||"foreignObject"!==an&&B,"slot"===an&&!C||mt(ye,Ke,B),null!==Yt&&null!==$t?((ye,Ke,dt,pt,Yt=!1)=>{let X,Ue,$t=0,an=0,ln=0,xn=0,cn=Ke.length-1,nn=Ke[0],_n=Ke[cn],Sn=pt.length-1,Pn=pt[0],hr=pt[Sn];for(;$t<=cn&&an<=Sn;)if(null==nn)nn=Ke[++$t];else if(null==_n)_n=Ke[--cn];else if(null==Pn)Pn=pt[++an];else if(null==hr)hr=pt[--Sn];else if(Ft(nn,Pn,Yt))wt(nn,Pn,Yt),nn=Ke[++$t],Pn=pt[++an];else if(Ft(_n,hr,Yt))wt(_n,hr,Yt),_n=Ke[--cn],hr=pt[--Sn];else if(Ft(nn,hr,Yt))("slot"===nn.$tag$||"slot"===hr.$tag$)&&At(nn.$elm$.parentNode,!1),wt(nn,hr,Yt),ye.insertBefore(nn.$elm$,_n.$elm$.nextSibling),nn=Ke[++$t],hr=pt[--Sn];else if(Ft(_n,Pn,Yt))("slot"===nn.$tag$||"slot"===hr.$tag$)&&At(_n.$elm$.parentNode,!1),wt(_n,Pn,Yt),ye.insertBefore(_n.$elm$,nn.$elm$),_n=Ke[--cn],Pn=pt[++an];else{for(ln=-1,xn=$t;xn<=cn;++xn)if(Ke[xn]&&null!==Ke[xn].$key$&&Ke[xn].$key$===Pn.$key$){ln=xn;break}ln>=0?(Ue=Ke[ln],Ue.$tag$!==Pn.$tag$?X=un(Ke&&Ke[an],dt,ln,ye):(wt(Ue,Pn,Yt),Ke[ln]=void 0,X=Ue.$elm$),Pn=pt[++an]):(X=un(Ke&&Ke[an],dt,an,ye),Pn=pt[++an]),X&&bt(nn.$elm$).insertBefore(X,bn(nn.$elm$))}$t>cn?It(ye,null==pt[Sn+1]?null:pt[Sn+1].$elm$,dt,pt,an,Sn):an>Sn&&Cn(Ke,$t,cn)})(pt,Yt,Ke,$t,dt):null!==$t?(null!==ye.$text$&&(pt.textContent=""),It(pt,null,Ke,$t,0,$t.length-1)):null!==Yt&&Cn(Yt,0,Yt.length-1),B&&"svg"===an&&(B=!1)):(xn=pt["s-cr"])?xn.parentNode.textContent=ln:ye.$text$!==ln&&(pt.data=ln)},Dn=ye=>{const Ke=ye.childNodes;for(const dt of Ke)if(1===dt.nodeType){if(dt["s-sr"]){const pt=dt["s-sn"];dt.hidden=!1;for(const Yt of Ke)if(Yt!==dt)if(Yt["s-hn"]!==dt["s-hn"]||""!==pt){if(1===Yt.nodeType&&(pt===Yt.getAttribute("slot")||pt===Yt["s-sn"])){dt.hidden=!0;break}}else if(1===Yt.nodeType||3===Yt.nodeType&&""!==Yt.textContent.trim()){dt.hidden=!0;break}}Dn(dt)}},Bt=[],Lt=ye=>{let Ke,dt,pt;for(const Yt of ye.childNodes){if(Yt["s-sr"]&&(Ke=Yt["s-cr"])&&Ke.parentNode){dt=Ke.parentNode.childNodes;const $t=Yt["s-sn"];for(pt=dt.length-1;pt>=0;pt--)if(Ke=dt[pt],!Ke["s-cn"]&&!Ke["s-nr"]&&Ke["s-hn"]!==Yt["s-hn"])if(Wt(Ke,$t)){let an=Bt.find(ln=>ln.$nodeToRelocate$===Ke);_=!0,Ke["s-sn"]=Ke["s-sn"]||$t,an?(an.$nodeToRelocate$["s-sh"]=Yt["s-hn"],an.$slotRefNode$=Yt):(Ke["s-sh"]=Yt["s-hn"],Bt.push({$slotRefNode$:Yt,$nodeToRelocate$:Ke})),Ke["s-sr"]&&Bt.map(ln=>{Wt(ln.$nodeToRelocate$,Ke["s-sn"])&&(an=Bt.find(xn=>xn.$nodeToRelocate$===Ke),an&&!ln.$slotRefNode$&&(ln.$slotRefNode$=an.$slotRefNode$))})}else Bt.some(an=>an.$nodeToRelocate$===Ke)||Bt.push({$nodeToRelocate$:Ke})}1===Yt.nodeType&&Lt(Yt)}},Wt=(ye,Ke)=>1===ye.nodeType?null===ye.getAttribute("slot")&&""===Ke||ye.getAttribute("slot")===Ke:ye["s-sn"]===Ke||""===Ke,Nt=ye=>{ye.$attrs$&&ye.$attrs$.ref&&ye.$attrs$.ref(null),ye.$children$&&ye.$children$.map(Nt)},zn=(ye,Ke)=>{Ke&&!ye.$onRenderResolve$&&Ke["s-p"]&&Ke["s-p"].push(new Promise(dt=>ye.$onRenderResolve$=dt))},Ut=(ye,Ke)=>{if(ye.$flags$|=16,!(4&ye.$flags$))return zn(ye,ye.$ancestorComponent$),zt(()=>He(ye,Ke));ye.$flags$|=512},He=(ye,Ke)=>{const pt=ye.$lazyInstance$;let Yt;return Ke&&(ye.$flags$|=256,ye.$queuedListeners$&&(ye.$queuedListeners$.map(([$t,an])=>Se(pt,$t,an)),ye.$queuedListeners$=void 0),Yt=Se(pt,"componentWillLoad")),Yt=Be(Yt,()=>Se(pt,"componentWillRender")),Be(Yt,()=>Me(ye,pt,Ke))},Be=(ye,Ke)=>Ae(ye)?ye.then(Ke):Ke(),Ae=ye=>ye instanceof Promise||ye&&ye.then&&"function"==typeof ye.then,Me=function(){var ye=(0,a.A)(function*(Ke,dt,pt){var Yt;const $t=Ke.$hostElement$,ln=$t["s-rc"];pt&&(ye=>{const Ke=ye.$cmpMeta$,dt=ye.$hostElement$,pt=Ke.$flags$,$t=_e(dt.shadowRoot?dt.shadowRoot:dt.getRootNode(),Ke,ye.$modeName$);10&pt&&(dt["s-sc"]=$t,dt.classList.add($t+"-h"),2&pt&&dt.classList.add($t+"-s"))})(Ke);Ze(Ke,dt,$t,pt),ln&&(ln.map(cn=>cn()),$t["s-rc"]=void 0);{const cn=null!==(Yt=$t["s-p"])&&void 0!==Yt?Yt:[],nn=()=>je(Ke);0===cn.length?nn():(Promise.all(cn).then(nn),Ke.$flags$|=4,cn.length=0)}});return function(dt,pt,Yt){return ye.apply(this,arguments)}}(),Ze=(ye,Ke,dt,pt)=>{try{Ke=Ke.render&&Ke.render(),ye.$flags$&=-17,ye.$flags$|=2,((ye,Ke,dt=!1)=>{var pt,Yt,$t,an;const ln=ye.$hostElement$,xn=ye.$cmpMeta$,cn=ye.$vnode$||v(null,null),nn=(ye=>ye&&ye.$tag$===y)(Ke)?Ke:h(null,null,Ke);if(D=ln.tagName,xn.$attrsToReflect$&&(nn.$attrs$=nn.$attrs$||{},xn.$attrsToReflect$.map(([_n,Sn])=>nn.$attrs$[Sn]=ln[_n])),dt&&nn.$attrs$)for(const _n of Object.keys(nn.$attrs$))ln.hasAttribute(_n)&&!["key","ref","style","class"].includes(_n)&&(nn.$attrs$[_n]=ln[_n]);if(nn.$tag$=null,nn.$flags$|=4,ye.$vnode$=nn,nn.$elm$=cn.$elm$=ln.shadowRoot||ln,O=ln["s-sc"],C=!!(1&xn.$flags$),c=ln["s-cr"],_=!1,wt(cn,nn,dt),Qt.$flags$|=1,F){Lt(nn.$elm$);for(const _n of Bt){const Sn=_n.$nodeToRelocate$;if(!Sn["s-ol"]){const Pn=qt.createTextNode("");Pn["s-nr"]=Sn,Sn.parentNode.insertBefore(Sn["s-ol"]=Pn,Sn)}}for(const _n of Bt){const Sn=_n.$nodeToRelocate$,Pn=_n.$slotRefNode$;if(Pn){const hr=Pn.parentNode;let X=Pn.nextSibling;{let Ue=null===(pt=Sn["s-ol"])||void 0===pt?void 0:pt.previousSibling;for(;Ue;){let le=null!==(Yt=Ue["s-nr"])&&void 0!==Yt?Yt:null;if(le&&le["s-sn"]===Sn["s-sn"]&&hr===le.parentNode){for(le=le.nextSibling;le===Sn||null!=le&&le["s-sr"];)le=null==le?void 0:le.nextSibling;if(!le||!le["s-nr"]){X=le;break}}Ue=Ue.previousSibling}}(!X&&hr!==Sn.parentNode||Sn.nextSibling!==X)&&Sn!==X&&(!Sn["s-hn"]&&Sn["s-ol"]&&(Sn["s-hn"]=Sn["s-ol"].parentNode.nodeName),hr.insertBefore(Sn,X),1===Sn.nodeType&&(Sn.hidden=null!==($t=Sn["s-ih"])&&void 0!==$t&&$t)),Sn&&"function"==typeof Pn["s-rf"]&&Pn["s-rf"](Sn)}else 1===Sn.nodeType&&(dt&&(Sn["s-ih"]=null!==(an=Sn.hidden)&&void 0!==an&&an),Sn.hidden=!0)}}_&&Dn(nn.$elm$),Qt.$flags$&=-2,Bt.length=0,c=void 0})(ye,Ke,pt)}catch(Yt){$e(Yt,ye.$hostElement$)}return null},je=ye=>{const dt=ye.$hostElement$,Yt=ye.$lazyInstance$,$t=ye.$ancestorComponent$;Se(Yt,"componentDidRender"),64&ye.$flags$?Se(Yt,"componentDidUpdate"):(ye.$flags$|=64,ze(dt),Se(Yt,"componentDidLoad"),ye.$onReadyResolve$(dt),$t||Pe()),ye.$onInstanceResolve$(dt),ye.$onRenderResolve$&&(ye.$onRenderResolve$(),ye.$onRenderResolve$=void 0),512&ye.$flags$&&vn(()=>Ut(ye,!1)),ye.$flags$&=-517},it=ye=>{{const Ke=kn(ye),dt=Ke.$hostElement$.isConnected;return dt&&2==(18&Ke.$flags$)&&Ut(Ke,!1),dt}},Pe=ye=>{ze(qt.documentElement),vn(()=>ke(Zt,"appload",{detail:{namespace:"ionic"}}))},Se=(ye,Ke,dt)=>{if(ye&&ye[Ke])try{return ye[Ke](dt)}catch(pt){$e(pt)}},ze=ye=>ye.classList.add("hydrated"),st=(ye,Ke,dt)=>{var pt;const Yt=ye.prototype;if(Ke.$members$){ye.watchers&&(Ke.$watchers$=ye.watchers);const $t=Object.entries(Ke.$members$);if($t.map(([an,[ln]])=>{31&ln||2&dt&&32&ln?Object.defineProperty(Yt,an,{get(){return((ye,Ke)=>kn(this).$instanceValues$.get(Ke))(0,an)},set(xn){((ye,Ke,dt,pt)=>{const Yt=kn(ye),$t=Yt.$hostElement$,an=Yt.$instanceValues$.get(Ke),ln=Yt.$flags$,xn=Yt.$lazyInstance$;dt=((ye,Ke)=>null==ye||l(ye)?ye:4&Ke?"false"!==ye&&(""===ye||!!ye):2&Ke?parseFloat(ye):1&Ke?String(ye):ye)(dt,pt.$members$[Ke][0]);const cn=Number.isNaN(an)&&Number.isNaN(dt);if((!(8&ln)||void 0===an)&&dt!==an&&!cn&&(Yt.$instanceValues$.set(Ke,dt),xn)){if(pt.$watchers$&&128&ln){const _n=pt.$watchers$[Ke];_n&&_n.map(Sn=>{try{xn[Sn](dt,an,Ke)}catch(Pn){$e(Pn,$t)}})}2==(18&ln)&&Ut(Yt,!1)}})(this,an,xn,Ke)},configurable:!0,enumerable:!0}):1&dt&&64&ln&&Object.defineProperty(Yt,an,{value(...xn){var cn;const nn=kn(this);return null===(cn=null==nn?void 0:nn.$onInstancePromise$)||void 0===cn?void 0:cn.then(()=>{var _n;return null===(_n=nn.$lazyInstance$)||void 0===_n?void 0:_n[an](...xn)})}})}),1&dt){const an=new Map;Yt.attributeChangedCallback=function(ln,xn,cn){Qt.jmp(()=>{var nn;const _n=an.get(ln);if(this.hasOwnProperty(_n))cn=this[_n],delete this[_n];else{if(Yt.hasOwnProperty(_n)&&"number"==typeof this[_n]&&this[_n]==cn)return;if(null==_n){const Sn=kn(this),Pn=null==Sn?void 0:Sn.$flags$;if(Pn&&!(8&Pn)&&128&Pn&&cn!==xn){const hr=Sn.$lazyInstance$,X=null===(nn=Ke.$watchers$)||void 0===nn?void 0:nn[ln];null==X||X.forEach(Ue=>{null!=hr[Ue]&&hr[Ue].call(hr,cn,xn,ln)})}return}}this[_n]=(null!==cn||"boolean"!=typeof this[_n])&&cn})},ye.observedAttributes=Array.from(new Set([...Object.keys(null!==(pt=Ke.$watchers$)&&void 0!==pt?pt:{}),...$t.filter(([ln,xn])=>15&xn[0]).map(([ln,xn])=>{var cn;const nn=xn[1]||ln;return an.set(nn,ln),512&xn[0]&&(null===(cn=Ke.$attrsToReflect$)||void 0===cn||cn.push([ln,nn])),nn})]))}}return ye},en=function(){var ye=(0,a.A)(function*(Ke,dt,pt,Yt){let $t;if(!(32&dt.$flags$)){if(dt.$flags$|=32,pt.$lazyBundleId$){if($t=Tt(pt),$t.then){const nn=()=>{};$t=yield $t,nn()}$t.isProxied||(pt.$watchers$=$t.watchers,st($t,pt,2),$t.isProxied=!0);const cn=()=>{};dt.$flags$|=8;try{new $t(dt)}catch(nn){$e(nn)}dt.$flags$&=-9,dt.$flags$|=128,cn(),yt(dt.$lazyInstance$)}else $t=Ke.constructor,customElements.whenDefined(pt.$tagName$).then(()=>dt.$flags$|=128);if($t.style){let cn=$t.style;"string"!=typeof cn&&(cn=cn[dt.$modeName$=(ye=>kt.map(Ke=>Ke(ye)).find(Ke=>!!Ke))(Ke)]);const nn=ne(pt,dt.$modeName$);if(!Mt.has(nn)){const _n=()=>{};Ie(nn,cn,!!(1&pt.$flags$)),_n()}}}const an=dt.$ancestorComponent$,ln=()=>Ut(dt,!0);an&&an["s-rc"]?an["s-rc"].push(ln):ln()});return function(dt,pt,Yt,$t){return ye.apply(this,arguments)}}(),yt=ye=>{Se(ye,"connectedCallback")},Kt=ye=>{const Ke=ye["s-cr"]=qt.createComment("");Ke["s-cn"]=!0,ye.insertBefore(Ke,ye.firstChild)},Pt=ye=>{Se(ye,"disconnectedCallback")},Rt=function(){var ye=(0,a.A)(function*(Ke){if(!(1&Qt.$flags$)){const dt=kn(Ke);dt.$rmListeners$&&(dt.$rmListeners$.map(pt=>pt()),dt.$rmListeners$=void 0),null!=dt&&dt.$lazyInstance$?Pt(dt.$lazyInstance$):null!=dt&&dt.$onReadyPromise$&&dt.$onReadyPromise$.then(()=>Pt(dt.$lazyInstance$))}});return function(dt){return ye.apply(this,arguments)}}(),On=(ye,Ke={})=>{var dt;const Yt=[],$t=Ke.exclude||[],an=Zt.customElements,ln=qt.head,xn=ln.querySelector("meta[charset]"),cn=qt.createElement("style"),nn=[],_n=qt.querySelectorAll(`[${j}]`);let Sn,Pn=!0,hr=0;for(Object.assign(Qt,Ke),Qt.$resourcesUrl$=new URL(Ke.resourcesUrl||"./",qt.baseURI).href,Qt.$flags$|=2;hr<_n.length;hr++)Ie(_n[hr].getAttribute(j),G(_n[hr].innerHTML),!0);let X=!1;if(ye.map(Ue=>{Ue[1].map(le=>{var Ye;const _t={$flags$:le[0],$tagName$:le[1],$members$:le[2],$listeners$:le[3]};4&_t.$flags$&&(X=!0),_t.$members$=le[2],_t.$listeners$=le[3],_t.$attrsToReflect$=[],_t.$watchers$=null!==(Ye=le[4])&&void 0!==Ye?Ye:{};const Nn=_t.$tagName$,pr=class extends HTMLElement{constructor(wr){super(wr),Xn(wr=this,_t),1&_t.$flags$&&wr.attachShadow({mode:"open",delegatesFocus:!!(16&_t.$flags$)})}connectedCallback(){Sn&&(clearTimeout(Sn),Sn=null),Pn?nn.push(this):Qt.jmp(()=>(ye=>{if(!(1&Qt.$flags$)){const Ke=kn(ye),dt=Ke.$cmpMeta$,pt=()=>{};if(1&Ke.$flags$)An(ye,Ke,dt.$listeners$),null!=Ke&&Ke.$lazyInstance$?yt(Ke.$lazyInstance$):null!=Ke&&Ke.$onReadyPromise$&&Ke.$onReadyPromise$.then(()=>yt(Ke.$lazyInstance$));else{let Yt;if(Ke.$flags$|=1,Yt=ye.getAttribute(U),Yt){if(1&dt.$flags$){const $t=_e(ye.shadowRoot,dt,ye.getAttribute("s-mode"));ye.classList.remove($t+"-h",$t+"-s")}((ye,Ke,dt,pt)=>{const $t=ye.shadowRoot,an=[],xn=$t?[]:null,cn=pt.$vnode$=v(Ke,null);Qt.$orgLocNodes$||J(qt.body,Qt.$orgLocNodes$=new Map),ye[U]=dt,ye.removeAttribute(U),V(cn,an,[],xn,ye,ye,dt),an.map(nn=>{const _n=nn.$hostId$+"."+nn.$nodeId$,Sn=Qt.$orgLocNodes$.get(_n),Pn=nn.$elm$;Sn&&wn&&""===Sn["s-en"]&&Sn.parentNode.insertBefore(Pn,Sn.nextSibling),$t||(Pn["s-hn"]=Ke,Sn&&(Pn["s-ol"]=Sn,Pn["s-ol"]["s-nr"]=Pn)),Qt.$orgLocNodes$.delete(_n)}),$t&&xn.map(nn=>{nn&&$t.appendChild(nn)})})(ye,dt.$tagName$,Yt,Ke)}Yt||12&dt.$flags$&&Kt(ye);{let $t=ye;for(;$t=$t.parentNode||$t.host;)if(1===$t.nodeType&&$t.hasAttribute("s-id")&&$t["s-p"]||$t["s-p"]){zn(Ke,Ke.$ancestorComponent$=$t);break}}dt.$members$&&Object.entries(dt.$members$).map(([$t,[an]])=>{if(31&an&&ye.hasOwnProperty($t)){const ln=ye[$t];delete ye[$t],ye[$t]=ln}}),en(ye,Ke,dt)}pt()}})(this))}disconnectedCallback(){Qt.jmp(()=>Rt(this))}componentOnReady(){return kn(this).$onReadyPromise$}};_t.$lazyBundleId$=Ue[0],!$t.includes(Nn)&&!an.get(Nn)&&(Yt.push(Nn),an.define(Nn,st(pr,_t,1)))})}),Yt.length>0&&(X&&(cn.textContent+=me),cn.textContent+=Yt+"{visibility:hidden}.hydrated{visibility:inherit}",cn.innerHTML.length)){cn.setAttribute("data-styles","");const Ue=null!==(dt=Qt.$nonce$)&&void 0!==dt?dt:s(qt);null!=Ue&&cn.setAttribute("nonce",Ue),ln.insertBefore(cn,xn?xn.nextSibling:ln.firstChild)}Pn=!1,nn.length?nn.map(Ue=>Ue.connectedCallback()):Qt.jmp(()=>Sn=setTimeout(Pe,30))},An=(ye,Ke,dt,pt)=>{dt&&dt.map(([Yt,$t,an])=>{const ln=Mn(ye,Yt),xn=Bn(Ke,an),cn=Wn(Yt);Qt.ael(ln,$t,xn,cn),(Ke.$rmListeners$=Ke.$rmListeners$||[]).push(()=>Qt.rel(ln,$t,xn,cn))})},Bn=(ye,Ke)=>dt=>{try{256&ye.$flags$?ye.$lazyInstance$[Ke](dt):(ye.$queuedListeners$=ye.$queuedListeners$||[]).push([Ke,dt])}catch(pt){$e(pt)}},Mn=(ye,Ke)=>4&Ke?qt:8&Ke?Zt:16&Ke?qt.body:ye,Wn=ye=>Kn?{passive:!!(1&ye),capture:!!(2&ye)}:!!(2&ye),Fn=new WeakMap,kn=ye=>Fn.get(ye),Gn=(ye,Ke)=>Fn.set(Ke.$lazyInstance$=ye,Ke),Xn=(ye,Ke)=>{const dt={$flags$:0,$hostElement$:ye,$cmpMeta$:Ke,$instanceValues$:new Map};return dt.$onInstancePromise$=new Promise(pt=>dt.$onInstanceResolve$=pt),dt.$onReadyPromise$=new Promise(pt=>dt.$onReadyResolve$=pt),ye["s-p"]=[],ye["s-rc"]=[],An(ye,dt,Ke.$listeners$),Fn.set(ye,dt)},jn=(ye,Ke)=>Ke in ye,$e=(ye,Ke)=>(0,console.error)(ye,Ke),lt=new Map,Tt=(ye,Ke,dt)=>{const pt=ye.$tagName$.replace(/-/g,"_"),Yt=ye.$lazyBundleId$,$t=lt.get(Yt);return $t?$t[pt]:E(8996)(`./${Yt}.entry.js`).then(an=>(lt.set(Yt,an),an[pt]),$e)},Mt=new Map,kt=[],Zt=typeof window<"u"?window:{},qt=Zt.document||{head:{}},Qt={$flags$:0,$resourcesUrl$:"",jmp:ye=>ye(),raf:ye=>requestAnimationFrame(ye),ael:(ye,Ke,dt,pt)=>ye.addEventListener(Ke,dt,pt),rel:(ye,Ke,dt,pt)=>ye.removeEventListener(Ke,dt,pt),ce:(ye,Ke)=>new CustomEvent(ye,Ke)},Tn=ye=>{Object.assign(Qt,ye)},wn=!0,Kn=(()=>{let ye=!1;try{qt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){ye=!0}}))}catch{}return ye})(),Ge=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),et=[],Fe=[],qe=(ye,Ke)=>dt=>{ye.push(dt),m||(m=!0,Ke&&4&Qt.$flags$?vn(Gt):Qt.raf(Gt))},Ct=ye=>{for(let Ke=0;Ke{Ct(et),Ct(Fe),(m=et.length>0)&&Qt.raf(Gt)},vn=ye=>Promise.resolve(void 0).then(ye),gt=qe(et,!1),zt=qe(Fe,!0)},8476:(Ce,ee,E)=>{"use strict";E.d(ee,{d:()=>S,w:()=>a});const a=typeof window<"u"?window:void 0,S=typeof document<"u"?document:void 0},7555:(Ce,ee,E)=>{"use strict";E.d(ee,{b:()=>D,c:()=>C,d:()=>_,e:()=>te,g:()=>n,l:()=>ie,s:()=>se,t:()=>m,w:()=>me});var a=E(467),S=E(4363),p=E(5638);const D="ionViewWillLeave",C="ionViewDidLeave",_="ionViewWillUnload",m=o=>new Promise((l,s)=>{(0,S.w)(()=>{T(o),A(o).then(h=>{h.animation&&h.animation.destroy(),w(o),l(h)},h=>{w(o),s(h)})})}),T=o=>{const l=o.enteringEl,s=o.leavingEl;g(l,s,o.direction),o.showGoBack?l.classList.add("can-go-back"):l.classList.remove("can-go-back"),se(l,!1),l.style.setProperty("pointer-events","none"),s&&(se(s,!1),s.style.setProperty("pointer-events","none"))},A=function(){var o=(0,a.A)(function*(l){const s=yield P(l);return s&&S.B.isBrowser?$(s,l):L(l)});return function(s){return o.apply(this,arguments)}}(),w=o=>{const l=o.enteringEl,s=o.leavingEl;l.classList.remove("ion-page-invisible"),l.style.removeProperty("pointer-events"),void 0!==s&&(s.classList.remove("ion-page-invisible"),s.style.removeProperty("pointer-events"))},P=function(){var o=(0,a.A)(function*(l){return l.leavingEl&&l.animated&&0!==l.duration?l.animationBuilder?l.animationBuilder:"ios"===l.mode?(yield Promise.resolve().then(E.bind(E,4569))).iosTransitionAnimation:(yield Promise.resolve().then(E.bind(E,2942))).mdTransitionAnimation:void 0});return function(s){return o.apply(this,arguments)}}(),$=function(){var o=(0,a.A)(function*(l,s){yield M(s,!0);const h=l(s.baseEl,s);j(s.enteringEl,s.leavingEl);const v=yield U(h,s);return s.progressCallback&&s.progressCallback(void 0),v&&W(s.enteringEl,s.leavingEl),{hasCompleted:v,animation:h}});return function(s,h){return o.apply(this,arguments)}}(),L=function(){var o=(0,a.A)(function*(l){const s=l.enteringEl,h=l.leavingEl;return yield M(l,!1),j(s,h),W(s,h),{hasCompleted:!0}});return function(s){return o.apply(this,arguments)}}(),M=function(){var o=(0,a.A)(function*(l,s){(void 0!==l.deepWait?l.deepWait:s)&&(yield Promise.all([te(l.enteringEl),te(l.leavingEl)])),yield R(l.viewIsReady,l.enteringEl)});return function(s,h){return o.apply(this,arguments)}}(),R=function(){var o=(0,a.A)(function*(l,s){l&&(yield l(s))});return function(s,h){return o.apply(this,arguments)}}(),U=(o,l)=>{const s=l.progressCallback,h=new Promise(v=>{o.onFinish(y=>v(1===y))});return s?(o.progressStart(!0),s(o)):o.play(),h},j=(o,l)=>{ie(l,D),ie(o,"ionViewWillEnter")},W=(o,l)=>{ie(o,"ionViewDidEnter"),ie(l,C)},ie=(o,l)=>{if(o){const s=new CustomEvent(l,{bubbles:!1,cancelable:!1});o.dispatchEvent(s)}},me=()=>new Promise(o=>(0,p.r)(()=>(0,p.r)(()=>o()))),te=function(){var o=(0,a.A)(function*(l){const s=l;if(s){if(null!=s.componentOnReady){if(null!=(yield s.componentOnReady()))return}else if(null!=s.__registerHost)return void(yield new Promise(v=>(0,p.r)(v)));yield Promise.all(Array.from(s.children).map(te))}});return function(s){return o.apply(this,arguments)}}(),se=(o,l)=>{l?(o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden")):(o.hidden=!1,o.removeAttribute("aria-hidden"),o.classList.remove("ion-page-hidden"))},g=(o,l,s)=>{void 0!==o&&(o.style.zIndex="back"===s?"99":"101"),void 0!==l&&(l.style.zIndex="100")},n=o=>o.classList.contains("ion-page")?o:o.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||o},611:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>m,b:()=>v,c:()=>p,i:()=>y});var a=E(4363);class S{constructor(){this.m=new Map}reset(r){this.m=new Map(Object.entries(r))}get(r,f){const k=this.m.get(r);return void 0!==k?k:f}getBoolean(r,f=!1){const k=this.m.get(r);return void 0===k?f:"string"==typeof k?"true"===k:!!k}getNumber(r,f){const k=parseFloat(this.m.get(r));return isNaN(k)?void 0!==f?f:NaN:k}set(r,f){this.m.set(r,f)}}const p=new S,_="ionic:",F="ionic-persist-config",m=(d,r)=>("string"==typeof d&&(r=d,d=void 0),(d=>T(d))(d).includes(r)),T=(d=window)=>{if(typeof d>"u")return[];d.Ionic=d.Ionic||{};let r=d.Ionic.platforms;return null==r&&(r=d.Ionic.platforms=A(d),r.forEach(f=>d.document.documentElement.classList.add(`plt-${f}`))),r},A=d=>{const r=p.get("platform");return Object.keys(s).filter(f=>{const k=null==r?void 0:r[f];return"function"==typeof k?k(d):s[f](d)})},P=d=>!!(o(d,/iPad/i)||o(d,/Macintosh/i)&&W(d)),M=d=>o(d,/android|sink/i),W=d=>l(d,"(any-pointer:coarse)"),me=d=>te(d)||se(d),te=d=>!!(d.cordova||d.phonegap||d.PhoneGap),se=d=>{const r=d.Capacitor;return!(null==r||!r.isNative)},o=(d,r)=>r.test(d.navigator.userAgent),l=(d,r)=>{var f;return null===(f=d.matchMedia)||void 0===f?void 0:f.call(d,r).matches},s={ipad:P,iphone:d=>o(d,/iPhone/i),ios:d=>o(d,/iPhone|iPod/i)||P(d),android:M,phablet:d=>{const r=d.innerWidth,f=d.innerHeight,k=Math.min(r,f),I=Math.max(r,f);return k>390&&k<520&&I>620&&I<800},tablet:d=>{const r=d.innerWidth,f=d.innerHeight,k=Math.min(r,f),I=Math.max(r,f);return P(d)||(d=>M(d)&&!o(d,/mobile/i))(d)||k>460&&k<820&&I>780&&I<1400},cordova:te,capacitor:se,electron:d=>o(d,/electron/i),pwa:d=>{var r;return!!(null!==(r=d.matchMedia)&&void 0!==r&&r.call(d,"(display-mode: standalone)").matches||d.navigator.standalone)},mobile:W,mobileweb:d=>W(d)&&!me(d),desktop:d=>!W(d),hybrid:me};let h;const v=d=>d&&(0,a.g)(d)||h,y=(d={})=>{if(typeof window>"u")return;const r=window.document,f=window,k=f.Ionic=f.Ionic||{},I={};d._ael&&(I.ael=d._ael),d._rel&&(I.rel=d._rel),d._ce&&(I.ce=d._ce),(0,a.a)(I);const V=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(d=>{try{const r=d.sessionStorage.getItem(F);return null!==r?JSON.parse(r):{}}catch{return{}}})(f)),{persistConfig:!1}),k.config),(d=>{const r={};return d.location.search.slice(1).split("&").map(f=>f.split("=")).map(([f,k])=>[decodeURIComponent(f),decodeURIComponent(k)]).filter(([f])=>((d,r)=>d.substr(0,r.length)===r)(f,_)).map(([f,k])=>[f.slice(6),k]).forEach(([f,k])=>{r[f]=k}),r})(f)),d);p.reset(V),p.getBoolean("persistConfig")&&((d,r)=>{try{d.sessionStorage.setItem(F,JSON.stringify(r))}catch{return}})(f,V),T(f),k.config=p,k.mode=h=p.get("mode",r.documentElement.getAttribute("mode")||(m(f,"ios")?"ios":"md")),p.set("mode",h),r.documentElement.setAttribute("mode",h),r.documentElement.classList.add(h),p.getBoolean("_testing")&&p.set("animated",!1);const J=ve=>{var De;return null===(De=ve.tagName)||void 0===De?void 0:De.startsWith("ION-")},oe=ve=>["ios","md"].includes(ve);(0,a.c)(ve=>{for(;ve;){const De=ve.mode||ve.getAttribute("mode");if(De){if(oe(De))return De;J(ve)&&console.warn('Invalid ionic mode: "'+De+'", expected: "ios" or "md"')}ve=ve.parentElement}return h})}},4569:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{iosTransitionAnimation:()=>A,shadow:()=>C});var a=E(3503),S=E(7555);E(8476),E(4363);const D=P=>document.querySelector(`${P}.ion-cloned-element`),C=P=>P.shadowRoot||P,_=P=>{const $="ION-TABS"===P.tagName?P:P.querySelector("ion-tabs"),L="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=$){const M=$.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=M?M.querySelector(L):null}return P.querySelector(L)},F=(P,$)=>{const L="ION-TABS"===P.tagName?P:P.querySelector("ion-tabs");let M=[];if(null!=L){const R=L.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=R&&(M=R.querySelectorAll("ion-buttons"))}else M=P.querySelectorAll("ion-buttons");for(const R of M){const U=R.closest("ion-header"),j=U&&!U.classList.contains("header-collapse-condense-inactive"),W=R.querySelector("ion-back-button"),ie=R.classList.contains("buttons-collapse");if(null!==W&&("start"===R.slot||""===R.slot)&&(ie&&j&&$||!ie))return W}return null},m=(P,$,L,M,R,U,j,W,ie)=>{var me,te;const se=$?`calc(100% - ${R.right+4}px)`:R.left-4+"px",g=$?"right":"left",n=$?"left":"right",o=$?"right":"left",l=(null===(me=U.textContent)||void 0===me?void 0:me.trim())===(null===(te=W.textContent)||void 0===te?void 0:te.trim()),h=(ie.height-w)/j.height,v=l?`scale(${ie.width/j.width}, ${h})`:`scale(${h})`,y="scale(1)",r=C(M).querySelector("ion-icon").getBoundingClientRect(),f=$?r.width/2-(r.right-R.right)+"px":R.left-r.width/2+"px",k=$?`-${window.innerWidth-R.right}px`:`${R.left}px`,I=`${ie.top}px`,V=`${R.top}px`,ve=L?[{offset:0,transform:`translate3d(${k}, ${V}, 0)`},{offset:1,transform:`translate3d(${f}, ${I}, 0)`}]:[{offset:0,transform:`translate3d(${f}, ${I}, 0)`},{offset:1,transform:`translate3d(${k}, ${V}, 0)`}],ae=L?[{offset:0,opacity:1,transform:y},{offset:1,opacity:0,transform:v}]:[{offset:0,opacity:0,transform:v},{offset:1,opacity:1,transform:y}],pe=L?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],Ie=(0,a.c)(),_e=(0,a.c)(),re=(0,a.c)(),ne=D("ion-back-button"),G=C(ne).querySelector(".button-text"),ge=C(ne).querySelector("ion-icon");ne.text=M.text,ne.mode=M.mode,ne.icon=M.icon,ne.color=M.color,ne.disabled=M.disabled,ne.style.setProperty("display","block"),ne.style.setProperty("position","fixed"),_e.addElement(ge),Ie.addElement(G),re.addElement(ne),re.beforeStyles({position:"absolute",top:"0px",[o]:"0px"}).keyframes(ve),Ie.beforeStyles({"transform-origin":`${g} top`}).beforeAddWrite(()=>{M.style.setProperty("display","none"),ne.style.setProperty(g,se)}).afterAddWrite(()=>{M.style.setProperty("display",""),ne.style.setProperty("display","none"),ne.style.removeProperty(g)}).keyframes(ae),_e.beforeStyles({"transform-origin":`${n} center`}).keyframes(pe),P.addAnimation([Ie,_e,re])},T=(P,$,L,M,R,U,j,W)=>{var ie,me;const te=$?"right":"left",se=$?`calc(100% - ${R.right}px)`:`${R.left}px`,n=`${R.top}px`,l=$?`-${window.innerWidth-W.right-8}px`:W.x-8+"px",h=W.y-2+"px",v=(null===(ie=j.textContent)||void 0===ie?void 0:ie.trim())===(null===(me=M.textContent)||void 0===me?void 0:me.trim()),d=W.height/(U.height-w),r="scale(1)",f=v?`scale(${W.width/U.width}, ${d})`:`scale(${d})`,V=L?[{offset:0,opacity:0,transform:`translate3d(${l}, ${h}, 0) ${f}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${n}, 0) ${r}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${n}, 0) ${r}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${l}, ${h}, 0) ${f}`}],J=D("ion-title"),oe=(0,a.c)();J.innerText=M.innerText,J.size=M.size,J.color=M.color,oe.addElement(J),oe.beforeStyles({"transform-origin":`${te} top`,height:`${R.height}px`,display:"",position:"relative",[te]:se}).beforeAddWrite(()=>{M.style.setProperty("opacity","0")}).afterAddWrite(()=>{M.style.setProperty("opacity",""),J.style.setProperty("display","none")}).keyframes(V),P.addAnimation(oe)},A=(P,$)=>{var L;try{const M="cubic-bezier(0.32,0.72,0,1)",R="opacity",U="transform",j="0%",ie="rtl"===P.ownerDocument.dir,me=ie?"-99.5%":"99.5%",te=ie?"33%":"-33%",se=$.enteringEl,g=$.leavingEl,n="back"===$.direction,o=se.querySelector(":scope > ion-content"),l=se.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),s=se.querySelectorAll(":scope > ion-header > ion-toolbar"),h=(0,a.c)(),v=(0,a.c)();if(h.addElement(se).duration((null!==(L=$.duration)&&void 0!==L?L:0)||540).easing($.easing||M).fill("both").beforeRemoveClass("ion-page-invisible"),g&&null!=P){const f=(0,a.c)();f.addElement(P),h.addAnimation(f)}if(o||0!==s.length||0!==l.length?(v.addElement(o),v.addElement(l)):v.addElement(se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),h.addAnimation(v),n?v.beforeClearStyles([R]).fromTo("transform",`translateX(${te})`,`translateX(${j})`).fromTo(R,.8,1):v.beforeClearStyles([R]).fromTo("transform",`translateX(${me})`,`translateX(${j})`),o){const f=C(o).querySelector(".transition-effect");if(f){const k=f.querySelector(".transition-cover"),I=f.querySelector(".transition-shadow"),V=(0,a.c)(),J=(0,a.c)(),oe=(0,a.c)();V.addElement(f).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),J.addElement(k).beforeClearStyles([R]).fromTo(R,0,.1),oe.addElement(I).beforeClearStyles([R]).fromTo(R,.03,.7),V.addAnimation([J,oe]),v.addAnimation([V])}}const y=se.querySelector("ion-header.header-collapse-condense"),{forward:d,backward:r}=((P,$,L,M,R)=>{const U=F(M,L),j=_(R),W=_(M),ie=F(R,L),me=null!==U&&null!==j&&!L,te=null!==W&&null!==ie&&L;if(me){const se=j.getBoundingClientRect(),g=U.getBoundingClientRect(),n=C(U).querySelector(".button-text"),o=n.getBoundingClientRect(),s=C(j).querySelector(".toolbar-title").getBoundingClientRect();T(P,$,L,j,se,s,n,o),m(P,$,L,U,g,n,o,j,s)}else if(te){const se=W.getBoundingClientRect(),g=ie.getBoundingClientRect(),n=C(ie).querySelector(".button-text"),o=n.getBoundingClientRect(),s=C(W).querySelector(".toolbar-title").getBoundingClientRect();T(P,$,L,W,se,s,n,o),m(P,$,L,ie,g,n,o,W,s)}return{forward:me,backward:te}})(h,ie,n,se,g);if(s.forEach(f=>{const k=(0,a.c)();k.addElement(f),h.addAnimation(k);const I=(0,a.c)();I.addElement(f.querySelector("ion-title"));const V=(0,a.c)(),J=Array.from(f.querySelectorAll("ion-buttons,[menuToggle]")),oe=f.closest("ion-header"),ve=null==oe?void 0:oe.classList.contains("header-collapse-condense-inactive");let De;De=J.filter(n?pe=>{const Ie=pe.classList.contains("buttons-collapse");return Ie&&!ve||!Ie}:pe=>!pe.classList.contains("buttons-collapse")),V.addElement(De);const Q=(0,a.c)();Q.addElement(f.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const ae=(0,a.c)();ae.addElement(C(f).querySelector(".toolbar-background"));const tt=(0,a.c)(),ke=f.querySelector("ion-back-button");if(ke&&tt.addElement(ke),k.addAnimation([I,V,Q,ae,tt]),V.fromTo(R,.01,1),Q.fromTo(R,.01,1),n)ve||I.fromTo("transform",`translateX(${te})`,`translateX(${j})`).fromTo(R,.01,1),Q.fromTo("transform",`translateX(${te})`,`translateX(${j})`),tt.fromTo(R,.01,1);else if(y||I.fromTo("transform",`translateX(${me})`,`translateX(${j})`).fromTo(R,.01,1),Q.fromTo("transform",`translateX(${me})`,`translateX(${j})`),ae.beforeClearStyles([R,"transform"]),(null==oe?void 0:oe.translucent)?ae.fromTo("transform",ie?"translateX(-100%)":"translateX(100%)","translateX(0px)"):ae.fromTo(R,.01,"var(--opacity)"),d||tt.fromTo(R,.01,1),ke&&!d){const Ie=(0,a.c)();Ie.addElement(C(ke).querySelector(".button-text")).fromTo("transform",ie?"translateX(-100px)":"translateX(100px)","translateX(0px)"),k.addAnimation(Ie)}}),g){const f=(0,a.c)(),k=g.querySelector(":scope > ion-content"),I=g.querySelectorAll(":scope > ion-header > ion-toolbar"),V=g.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(k||0!==I.length||0!==V.length?(f.addElement(k),f.addElement(V)):f.addElement(g.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),h.addAnimation(f),n){f.beforeClearStyles([R]).fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)");const J=(0,S.g)(g);h.afterAddWrite(()=>{"normal"===h.getDirection()&&J.style.setProperty("display","none")})}else f.fromTo("transform",`translateX(${j})`,`translateX(${te})`).fromTo(R,1,.8);if(k){const J=C(k).querySelector(".transition-effect");if(J){const oe=J.querySelector(".transition-cover"),ve=J.querySelector(".transition-shadow"),De=(0,a.c)(),Q=(0,a.c)(),ae=(0,a.c)();De.addElement(J).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Q.addElement(oe).beforeClearStyles([R]).fromTo(R,.1,0),ae.addElement(ve).beforeClearStyles([R]).fromTo(R,.7,.03),De.addAnimation([Q,ae]),f.addAnimation([De])}}I.forEach(J=>{const oe=(0,a.c)();oe.addElement(J);const ve=(0,a.c)();ve.addElement(J.querySelector("ion-title"));const De=(0,a.c)(),Q=J.querySelectorAll("ion-buttons,[menuToggle]"),ae=J.closest("ion-header"),tt=null==ae?void 0:ae.classList.contains("header-collapse-condense-inactive"),ke=Array.from(Q).filter(G=>{const ge=G.classList.contains("buttons-collapse");return ge&&!tt||!ge});De.addElement(ke);const pe=(0,a.c)(),Ie=J.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Ie.length>0&&pe.addElement(Ie);const _e=(0,a.c)();_e.addElement(C(J).querySelector(".toolbar-background"));const re=(0,a.c)(),ne=J.querySelector("ion-back-button");if(ne&&re.addElement(ne),oe.addAnimation([ve,De,pe,re,_e]),h.addAnimation(oe),re.fromTo(R,.99,0),De.fromTo(R,.99,0),pe.fromTo(R,.99,0),n){if(tt||ve.fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)").fromTo(R,.99,0),pe.fromTo("transform",`translateX(${j})`,ie?"translateX(-100%)":"translateX(100%)"),_e.beforeClearStyles([R,"transform"]),(null==ae?void 0:ae.translucent)?_e.fromTo("transform","translateX(0px)",ie?"translateX(-100%)":"translateX(100%)"):_e.fromTo(R,"var(--opacity)",0),ne&&!r){const ge=(0,a.c)();ge.addElement(C(ne).querySelector(".button-text")).fromTo("transform",`translateX(${j})`,`translateX(${(ie?-124:124)+"px"})`),oe.addAnimation(ge)}}else tt||ve.fromTo("transform",`translateX(${j})`,`translateX(${te})`).fromTo(R,.99,0).afterClearStyles([U,R]),pe.fromTo("transform",`translateX(${j})`,`translateX(${te})`).afterClearStyles([U,R]),re.afterClearStyles([R]),ve.afterClearStyles([R]),De.afterClearStyles([R])})}return h}catch(M){throw M}},w=10},2942:(Ce,ee,E)=>{"use strict";E.r(ee),E.d(ee,{mdTransitionAnimation:()=>c});var a=E(3503),S=E(7555);E(8476),E(4363);const c=(D,C)=>{var _,F,B;const m="40px",A="back"===C.direction,P=C.leavingEl,$=(0,S.g)(C.enteringEl),L=$.querySelector("ion-toolbar"),M=(0,a.c)();if(M.addElement($).fill("both").beforeRemoveClass("ion-page-invisible"),A?M.duration((null!==(_=C.duration)&&void 0!==_?_:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):M.duration((null!==(F=C.duration)&&void 0!==F?F:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${m})`,"translateY(0px)").fromTo("opacity",.01,1),L){const R=(0,a.c)();R.addElement(L),M.addAnimation(R)}if(P&&A){M.duration((null!==(B=C.duration)&&void 0!==B?B:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const R=(0,a.c)();R.addElement((0,S.g)(P)).onFinish(U=>{1===U&&R.elements.length>0&&R.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)",`translateY(${m})`).fromTo("opacity",1,0),M.addAnimation(R)}return M}},5516:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>De,G:()=>Q,O:()=>ae,a:()=>T,b:()=>A,c:()=>L,d:()=>tt,e:()=>ke,f:()=>y,g:()=>r,h:()=>I,i:()=>J,j:()=>R,k:()=>U,l:()=>w,m:()=>P,n:()=>me,o:()=>h,s:()=>ve,t:()=>M});var a=E(467),S=E(8476),p=E(3113),O=E(611),c=E(5938),D=E(5638),C=E(4929);let _=0,F=0;const B=new WeakMap,m=_e=>({create:re=>j(_e,re),dismiss:(re,ne,G)=>o(document,re,ne,_e,G),getTop:()=>(0,a.A)(function*(){return h(document,_e)})()}),T=m("ion-alert"),A=m("ion-action-sheet"),w=m("ion-loading"),P=m("ion-modal"),L=m("ion-popover"),M=m("ion-toast"),R=_e=>{typeof document<"u"&&n(document);const re=_++;_e.overlayIndex=re},U=_e=>(_e.hasAttribute("id")||(_e.id="ion-overlay-"+ ++F),_e.id),j=(_e,re)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(_e).then(()=>{const ne=document.createElement(_e);return ne.classList.add("overlay-hidden"),Object.assign(ne,Object.assign(Object.assign({},re),{hasController:!0})),f(document).appendChild(ne),new Promise(G=>(0,D.c)(ne,G))}):Promise.resolve(),W='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',me=(_e,re)=>{const ne=_e.querySelector(W);se(ne,re)},te=(_e,re)=>{const ne=Array.from(_e.querySelectorAll(W));se(ne.length>0?ne[ne.length-1]:null,re)},se=(_e,re)=>{let ne=_e;const G=null==_e?void 0:_e.shadowRoot;G&&(ne=G.querySelector(W)||_e),ne?(0,D.f)(ne):re.focus()},n=_e=>{0===_&&(_=1,_e.addEventListener("focus",re=>{((_e,re)=>{const ne=h(re,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),G=_e.target;ne&&G&&!ne.classList.contains("ion-disable-focus-trap")&&(ne.shadowRoot?(()=>{if(ne.contains(G))ne.lastFocus=G;else if("ION-TOAST"===G.tagName)se(ne.lastFocus,ne);else{const Qe=ne.lastFocus;me(ne,ne),Qe===re.activeElement&&te(ne,ne),ne.lastFocus=re.activeElement}})():(()=>{if(ne===G)ne.lastFocus=void 0;else if("ION-TOAST"===G.tagName)se(ne.lastFocus,ne);else{const Qe=(0,D.g)(ne);if(!Qe.contains(G))return;const rt=Qe.querySelector(".ion-overlay-wrapper");if(!rt)return;if(rt.contains(G)||G===Qe.querySelector("ion-backdrop"))ne.lastFocus=G;else{const rn=ne.lastFocus;me(rt,ne),rn===re.activeElement&&te(rt,ne),ne.lastFocus=re.activeElement}}})())})(re,_e)},!0),_e.addEventListener("ionBackButton",re=>{const ne=h(_e);null!=ne&&ne.backdropDismiss&&re.detail.register(p.OVERLAY_BACK_BUTTON_PRIORITY,()=>{ne.dismiss(void 0,De)})}),(0,p.shouldUseCloseWatcher)()||_e.addEventListener("keydown",re=>{if("Escape"===re.key){const ne=h(_e);null!=ne&&ne.backdropDismiss&&ne.dismiss(void 0,De)}}))},o=(_e,re,ne,G,ge)=>{const xt=h(_e,G,ge);return xt?xt.dismiss(re,ne):Promise.reject("overlay does not exist")},s=(_e,re)=>((_e,re)=>(void 0===re&&(re="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(_e.querySelectorAll(re)).filter(ne=>ne.overlayIndex>0)))(_e,re).filter(ne=>!(_e=>_e.classList.contains("overlay-hidden"))(ne)),h=(_e,re,ne)=>{const G=s(_e,re);return void 0===ne?G[G.length-1]:G.find(ge=>ge.id===ne)},v=(_e=!1)=>{const ne=f(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");ne&&(_e?ne.setAttribute("aria-hidden","true"):ne.removeAttribute("aria-hidden"))},y=function(){var _e=(0,a.A)(function*(re,ne,G,ge,xt){var Qe,rt;if(re.presented)return;v(!0),pe(re.el),re.presented=!0,re.willPresent.emit(),null===(Qe=re.willPresentShorthand)||void 0===Qe||Qe.emit();const rn=(0,O.b)(re),mt=re.enterAnimation?re.enterAnimation:O.c.get(ne,"ios"===rn?G:ge);(yield k(re,mt,re.el,xt))&&(re.didPresent.emit(),null===(rt=re.didPresentShorthand)||void 0===rt||rt.emit()),"ION-TOAST"!==re.el.tagName&&d(re.el),re.keyboardClose&&(null===document.activeElement||!re.el.contains(document.activeElement))&&re.el.focus(),re.el.removeAttribute("aria-hidden")});return function(ne,G,ge,xt,Qe){return _e.apply(this,arguments)}}(),d=function(){var _e=(0,a.A)(function*(re){let ne=document.activeElement;if(!ne)return;const G=null==ne?void 0:ne.shadowRoot;G&&(ne=G.querySelector(W)||ne),yield re.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&ne.focus()});return function(ne){return _e.apply(this,arguments)}}(),r=function(){var _e=(0,a.A)(function*(re,ne,G,ge,xt,Qe,rt){var rn,mt;if(!re.presented)return!1;void 0!==S.d&&1===s(S.d).length&&v(!1),re.presented=!1;try{re.el.style.setProperty("pointer-events","none"),re.willDismiss.emit({data:ne,role:G}),null===(rn=re.willDismissShorthand)||void 0===rn||rn.emit({data:ne,role:G});const ft=(0,O.b)(re),un=re.leaveAnimation?re.leaveAnimation:O.c.get(ge,"ios"===ft?xt:Qe);G!==Q&&(yield k(re,un,re.el,rt)),re.didDismiss.emit({data:ne,role:G}),null===(mt=re.didDismissShorthand)||void 0===mt||mt.emit({data:ne,role:G}),(B.get(re)||[]).forEach(It=>It.destroy()),B.delete(re),re.el.classList.add("overlay-hidden"),re.el.style.removeProperty("pointer-events"),void 0!==re.el.lastFocus&&(re.el.lastFocus=void 0)}catch(ft){console.error(ft)}return re.el.remove(),Ie(),!0});return function(ne,G,ge,xt,Qe,rt,rn){return _e.apply(this,arguments)}}(),f=_e=>_e.querySelector("ion-app")||_e.body,k=function(){var _e=(0,a.A)(function*(re,ne,G,ge){G.classList.remove("overlay-hidden");const Qe=ne(re.el,ge);(!re.animated||!O.c.getBoolean("animated",!0))&&Qe.duration(0),re.keyboardClose&&Qe.beforeAddWrite(()=>{const rn=G.ownerDocument.activeElement;null!=rn&&rn.matches("input,ion-input, ion-textarea")&&rn.blur()});const rt=B.get(re)||[];return B.set(re,[...rt,Qe]),yield Qe.play(),!0});return function(ne,G,ge,xt){return _e.apply(this,arguments)}}(),I=(_e,re)=>{let ne;const G=new Promise(ge=>ne=ge);return V(_e,re,ge=>{ne(ge.detail)}),G},V=(_e,re,ne)=>{const G=ge=>{(0,D.b)(_e,re,G),ne(ge)};(0,D.a)(_e,re,G)},J=_e=>"cancel"===_e||_e===De,oe=_e=>_e(),ve=(_e,re)=>{if("function"==typeof _e)return O.c.get("_zoneGate",oe)(()=>{try{return _e(re)}catch(G){throw G}})},De="backdrop",Q="gesture",ae=39,tt=_e=>{let ne,re=!1;const G=(0,c.C)(),ge=(rt=!1)=>{if(ne&&!rt)return{delegate:ne,inline:re};const{el:rn,hasController:mt,delegate:ft}=_e;return re=null!==rn.parentNode&&!mt,ne=re?ft||G:ft,{inline:re,delegate:ne}};return{attachViewToDom:function(){var rt=(0,a.A)(function*(rn){const{delegate:mt}=ge(!0);if(mt)return yield mt.attachViewToDom(_e.el,rn);const{hasController:ft}=_e;if(ft&&void 0!==rn)throw new Error("framework delegate is missing");return null});return function(mt){return rt.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:rt}=ge();rt&&void 0!==_e.el&&rt.removeViewFromDom(_e.el.parentElement,_e.el)}}},ke=()=>{let _e;const re=()=>{_e&&(_e(),_e=void 0)};return{addClickListener:(G,ge)=>{re();const xt=void 0!==ge?document.getElementById(ge):null;xt?_e=((rt,rn)=>{const mt=()=>{rn.present()};return rt.addEventListener("click",mt),()=>{rt.removeEventListener("click",mt)}})(xt,G):(0,C.p)(`A trigger element with the ID "${ge}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,G)},removeClickListener:re}},pe=_e=>{var re;if(void 0===S.d)return;const ne=s(S.d);for(let G=ne.length-1;G>=0;G--){const ge=ne[G],xt=null!==(re=ne[G+1])&&void 0!==re?re:_e;(xt.hasAttribute("aria-hidden")||"ION-TOAST"!==xt.tagName)&&ge.setAttribute("aria-hidden","true")}},Ie=()=>{if(void 0===S.d)return;const _e=s(S.d);for(let re=_e.length-1;re>=0;re--){const ne=_e[re];if(ne.removeAttribute("aria-hidden"),"ION-TOAST"!==ne.tagName)break}}},1288:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>M,b:()=>rn,c:()=>W,f:()=>pe,g:()=>j,h:()=>$,p:()=>zn,r:()=>Ft});var a=E(467);let p,O,c=!1,D=!1;const B={},w=Pe=>"object"==(Pe=typeof Pe)||"function"===Pe;function P(Pe){var Se,ze,Et;return null!==(Et=null===(ze=null===(Se=Pe.head)||void 0===Se?void 0:Se.querySelector('meta[name="csp-nonce"]'))||void 0===ze?void 0:ze.getAttribute("content"))&&void 0!==Et?Et:void 0}const $=(Pe,Se,...ze)=>{let Et=null,Je=!1,st=!1;const en=[],yt=Kt=>{for(let Pt=0;PtKt[Pt]).join(" "))}const vt=L(Pe,null);return vt.$attrs$=Se,en.length>0&&(vt.$children$=en),vt},L=(Pe,Se)=>({$flags$:0,$tag$:Pe,$text$:Se,$elm$:null,$children$:null,$attrs$:null}),M={},j=Pe=>St(Pe).$hostElement$,W=(Pe,Se,ze)=>{const Et=j(Pe);return{emit:Je=>ie(Et,Se,{bubbles:!!(4&ze),composed:!!(2&ze),cancelable:!!(1&ze),detail:Je})}},ie=(Pe,Se,ze)=>{const Et=Ot.ce(Se,ze);return Pe.dispatchEvent(Et),Et},me=new WeakMap,n=(Pe,Se)=>"sc-"+Pe.$tagName$,o=(Pe,Se,ze,Et,Je,st)=>{if(ze!==Et){let en=bt(Pe,Se),yt=Se.toLowerCase();if("class"===Se){const vt=Pe.classList,Kt=s(ze),Pt=s(Et);vt.remove(...Kt.filter(Rt=>Rt&&!Pt.includes(Rt))),vt.add(...Pt.filter(Rt=>Rt&&!Kt.includes(Rt)))}else if("style"===Se){for(const vt in ze)(!Et||null==Et[vt])&&(vt.includes("-")?Pe.style.removeProperty(vt):Pe.style[vt]="");for(const vt in Et)(!ze||Et[vt]!==ze[vt])&&(vt.includes("-")?Pe.style.setProperty(vt,Et[vt]):Pe.style[vt]=Et[vt])}else if("ref"===Se)Et&&Et(Pe);else if(en||"o"!==Se[0]||"n"!==Se[1]){const vt=w(Et);if((en||vt&&null!==Et)&&!Je)try{if(Pe.tagName.includes("-"))Pe[Se]=Et;else{const Kt=null==Et?"":Et;"list"===Se?en=!1:(null==ze||Pe[Se]!=Kt)&&(Pe[Se]=Kt)}}catch{}null==Et||!1===Et?(!1!==Et||""===Pe.getAttribute(Se))&&Pe.removeAttribute(Se):(!en||4&st||Je)&&!vt&&Pe.setAttribute(Se,Et=!0===Et?"":Et)}else Se="-"===Se[2]?Se.slice(3):bt(Wt,yt)?yt.slice(2):yt[2]+Se.slice(3),ze&&Ot.rel(Pe,Se,ze,!1),Et&&Ot.ael(Pe,Se,Et,!1)}},l=/\s/,s=Pe=>Pe?Pe.split(l):[],h=(Pe,Se,ze,Et)=>{const Je=11===Se.$elm$.nodeType&&Se.$elm$.host?Se.$elm$.host:Se.$elm$,st=Pe&&Pe.$attrs$||B,en=Se.$attrs$||B;for(Et in st)Et in en||o(Je,Et,st[Et],void 0,ze,Se.$flags$);for(Et in en)o(Je,Et,st[Et],en[Et],ze,Se.$flags$)},v=(Pe,Se,ze,Et)=>{const Je=Se.$children$[ze];let en,yt,st=0;if(null!==Je.$text$)en=Je.$elm$=Nt.createTextNode(Je.$text$);else{if(c||(c="svg"===Je.$tag$),en=Je.$elm$=Nt.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",Je.$tag$),c&&"foreignObject"===Je.$tag$&&(c=!1),h(null,Je,c),(Pe=>null!=Pe)(p)&&en["s-si"]!==p&&en.classList.add(en["s-si"]=p),Je.$children$)for(st=0;st{let yt,en=Pe;for(en.shadowRoot&&en.tagName===O&&(en=en.shadowRoot);Je<=st;++Je)Et[Je]&&(yt=v(null,ze,Je),yt&&(Et[Je].$elm$=yt,en.insertBefore(yt,Se)))},d=(Pe,Se,ze)=>{for(let Et=Se;Et<=ze;++Et){const Je=Pe[Et];if(Je){const st=Je.$elm$;I(Je),st&&st.remove()}}},f=(Pe,Se)=>Pe.$tag$===Se.$tag$,k=(Pe,Se)=>{const ze=Se.$elm$=Pe.$elm$,Et=Pe.$children$,Je=Se.$children$,st=Se.$tag$,en=Se.$text$;null===en?(c="svg"===st||"foreignObject"!==st&&c,h(Pe,Se,c),null!==Et&&null!==Je?((Pe,Se,ze,Et)=>{let On,Je=0,st=0,en=Se.length-1,yt=Se[0],vt=Se[en],Kt=Et.length-1,Pt=Et[0],Rt=Et[Kt];for(;Je<=en&&st<=Kt;)null==yt?yt=Se[++Je]:null==vt?vt=Se[--en]:null==Pt?Pt=Et[++st]:null==Rt?Rt=Et[--Kt]:f(yt,Pt)?(k(yt,Pt),yt=Se[++Je],Pt=Et[++st]):f(vt,Rt)?(k(vt,Rt),vt=Se[--en],Rt=Et[--Kt]):f(yt,Rt)?(k(yt,Rt),Pe.insertBefore(yt.$elm$,vt.$elm$.nextSibling),yt=Se[++Je],Rt=Et[--Kt]):f(vt,Pt)?(k(vt,Pt),Pe.insertBefore(vt.$elm$,yt.$elm$),vt=Se[--en],Pt=Et[++st]):(On=v(Se&&Se[st],ze,st),Pt=Et[++st],On&&yt.$elm$.parentNode.insertBefore(On,yt.$elm$));Je>en?y(Pe,null==Et[Kt+1]?null:Et[Kt+1].$elm$,ze,Et,st,Kt):st>Kt&&d(Se,Je,en)})(ze,Et,Se,Je):null!==Je?(null!==Pe.$text$&&(ze.textContent=""),y(ze,null,Se,Je,0,Je.length-1)):null!==Et&&d(Et,0,Et.length-1),c&&"svg"===st&&(c=!1)):Pe.$text$!==en&&(ze.data=en)},I=Pe=>{Pe.$attrs$&&Pe.$attrs$.ref&&Pe.$attrs$.ref(null),Pe.$children$&&Pe.$children$.map(I)},J=(Pe,Se)=>{Se&&!Pe.$onRenderResolve$&&Se["s-p"]&&Se["s-p"].push(new Promise(ze=>Pe.$onRenderResolve$=ze))},oe=(Pe,Se)=>{if(Pe.$flags$|=16,!(4&Pe.$flags$))return J(Pe,Pe.$ancestorComponent$),it(()=>ve(Pe,Se));Pe.$flags$|=512},ve=(Pe,Se)=>{const Et=Pe.$lazyInstance$;return Se&&(Pe.$flags$|=256,Pe.$queuedListeners$&&(Pe.$queuedListeners$.map(([st,en])=>_e(Et,st,en)),Pe.$queuedListeners$=void 0)),De(void 0,()=>ae(Pe,Et,Se))},De=(Pe,Se)=>Q(Pe)?Pe.then(Se):Se(),Q=Pe=>Pe instanceof Promise||Pe&&Pe.then&&"function"==typeof Pe.then,ae=function(){var Pe=(0,a.A)(function*(Se,ze,Et){var Je;const st=Se.$hostElement$,yt=st["s-rc"];Et&&(Pe=>{const Se=Pe.$cmpMeta$,ze=Pe.$hostElement$,Et=Se.$flags$,st=((Pe,Se,ze,Et)=>{var Je;let st=n(Se);const en=Lt.get(st);if(Pe=11===Pe.nodeType?Pe:Nt,en)if("string"==typeof en){let vt,yt=me.get(Pe=Pe.head||Pe);if(yt||me.set(Pe,yt=new Set),!yt.has(st)){{vt=Nt.createElement("style"),vt.innerHTML=en;const Kt=null!==(Je=Ot.$nonce$)&&void 0!==Je?Je:P(Nt);null!=Kt&&vt.setAttribute("nonce",Kt),Pe.insertBefore(vt,Pe.querySelector("link"))}yt&&yt.add(st)}}else Pe.adoptedStyleSheets.includes(en)||(Pe.adoptedStyleSheets=[...Pe.adoptedStyleSheets,en]);return st})(ze.shadowRoot?ze.shadowRoot:ze.getRootNode(),Se);10&Et&&(ze["s-sc"]=st,ze.classList.add(st+"-h"))})(Se);tt(Se,ze),yt&&(yt.map(Kt=>Kt()),st["s-rc"]=void 0);{const Kt=null!==(Je=st["s-p"])&&void 0!==Je?Je:[],Pt=()=>ke(Se);0===Kt.length?Pt():(Promise.all(Kt).then(Pt),Se.$flags$|=4,Kt.length=0)}});return function(ze,Et,Je){return Pe.apply(this,arguments)}}(),tt=(Pe,Se,ze)=>{try{Se=Se.render(),Pe.$flags$&=-17,Pe.$flags$|=2,((Pe,Se)=>{const ze=Pe.$hostElement$,Et=Pe.$vnode$||L(null,null),Je=(Pe=>Pe&&Pe.$tag$===M)(Se)?Se:$(null,null,Se);O=ze.tagName,Je.$tag$=null,Je.$flags$|=4,Pe.$vnode$=Je,Je.$elm$=Et.$elm$=ze.shadowRoot||ze,p=ze["s-sc"],k(Et,Je)})(Pe,Se)}catch(Et){wt(Et,Pe.$hostElement$)}return null},ke=Pe=>{const ze=Pe.$hostElement$,Je=Pe.$lazyInstance$,st=Pe.$ancestorComponent$;64&Pe.$flags$||(Pe.$flags$|=64,re(ze),_e(Je,"componentDidLoad"),Pe.$onReadyResolve$(ze),st||Ie()),Pe.$onInstanceResolve$(ze),Pe.$onRenderResolve$&&(Pe.$onRenderResolve$(),Pe.$onRenderResolve$=void 0),512&Pe.$flags$&&je(()=>oe(Pe,!1)),Pe.$flags$&=-517},pe=Pe=>{{const Se=St(Pe),ze=Se.$hostElement$.isConnected;return ze&&2==(18&Se.$flags$)&&oe(Se,!1),ze}},Ie=Pe=>{re(Nt.documentElement),je(()=>ie(Wt,"appload",{detail:{namespace:"ionicpwaelements"}}))},_e=(Pe,Se,ze)=>{if(Pe&&Pe[Se])try{return Pe[Se](ze)}catch(Et){wt(Et)}},re=Pe=>Pe.classList.add("hydrated"),ge=(Pe,Se,ze)=>{if(Se.$members$){const Et=Object.entries(Se.$members$),Je=Pe.prototype;if(Et.map(([st,[en]])=>{31&en||2&ze&&32&en?Object.defineProperty(Je,st,{get(){return((Pe,Se)=>St(this).$instanceValues$.get(Se))(0,st)},set(yt){((Pe,Se,ze,Et)=>{const Je=St(Pe),st=Je.$instanceValues$.get(Se),en=Je.$flags$,yt=Je.$lazyInstance$;ze=((Pe,Se)=>null==Pe||w(Pe)?Pe:4&Se?"false"!==Pe&&(""===Pe||!!Pe):2&Se?parseFloat(Pe):1&Se?String(Pe):Pe)(ze,Et.$members$[Se][0]);const vt=Number.isNaN(st)&&Number.isNaN(ze);(!(8&en)||void 0===st)&&ze!==st&&!vt&&(Je.$instanceValues$.set(Se,ze),yt&&2==(18&en)&&oe(Je,!1))})(this,st,yt,Se)},configurable:!0,enumerable:!0}):1&ze&&64&en&&Object.defineProperty(Je,st,{value(...yt){const vt=St(this);return vt.$onInstancePromise$.then(()=>vt.$lazyInstance$[st](...yt))}})}),1&ze){const st=new Map;Je.attributeChangedCallback=function(en,yt,vt){Ot.jmp(()=>{const Kt=st.get(en);if(this.hasOwnProperty(Kt))vt=this[Kt],delete this[Kt];else if(Je.hasOwnProperty(Kt)&&"number"==typeof this[Kt]&&this[Kt]==vt)return;this[Kt]=(null!==vt||"boolean"!=typeof this[Kt])&&vt})},Pe.observedAttributes=Et.filter(([en,yt])=>15&yt[0]).map(([en,yt])=>{const vt=yt[1]||en;return st.set(vt,en),vt})}}return Pe},xt=function(){var Pe=(0,a.A)(function*(Se,ze,Et,Je,st){if(!(32&ze.$flags$)){ze.$flags$|=32;{if((st=Bt(Et)).then){const Kt=()=>{};st=yield st,Kt()}st.isProxied||(ge(st,Et,2),st.isProxied=!0);const vt=()=>{};ze.$flags$|=8;try{new st(ze)}catch(Kt){wt(Kt)}ze.$flags$&=-9,vt()}if(st.style){let vt=st.style;const Kt=n(Et);if(!Lt.has(Kt)){const Pt=()=>{};((Pe,Se,ze)=>{let Et=Lt.get(Pe);Ut&&ze?(Et=Et||new CSSStyleSheet,"string"==typeof Et?Et=Se:Et.replaceSync(Se)):Et=Se,Lt.set(Pe,Et)})(Kt,vt,!!(1&Et.$flags$)),Pt()}}}const en=ze.$ancestorComponent$,yt=()=>oe(ze,!0);en&&en["s-rc"]?en["s-rc"].push(yt):yt()});return function(ze,Et,Je,st,en){return Pe.apply(this,arguments)}}(),rn=(Pe,Se={})=>{var ze;const Je=[],st=Se.exclude||[],en=Wt.customElements,yt=Nt.head,vt=yt.querySelector("meta[charset]"),Kt=Nt.createElement("style"),Pt=[];let Rt,On=!0;Object.assign(Ot,Se),Ot.$resourcesUrl$=new URL(Se.resourcesUrl||"./",Nt.baseURI).href,Pe.map(An=>{An[1].map(Bn=>{const Mn={$flags$:Bn[0],$tagName$:Bn[1],$members$:Bn[2],$listeners$:Bn[3]};Mn.$members$=Bn[2],Mn.$listeners$=Bn[3];const Wn=Mn.$tagName$,Ln=class extends HTMLElement{constructor(Fn){super(Fn),bn(Fn=this,Mn),1&Mn.$flags$&&Fn.attachShadow({mode:"open"})}connectedCallback(){Rt&&(clearTimeout(Rt),Rt=null),On?Pt.push(this):Ot.jmp(()=>(Pe=>{if(!(1&Ot.$flags$)){const Se=St(Pe),ze=Se.$cmpMeta$,Et=()=>{};if(1&Se.$flags$)mt(Pe,Se,ze.$listeners$);else{Se.$flags$|=1;{let Je=Pe;for(;Je=Je.parentNode||Je.host;)if(Je["s-p"]){J(Se,Se.$ancestorComponent$=Je);break}}ze.$members$&&Object.entries(ze.$members$).map(([Je,[st]])=>{if(31&st&&Pe.hasOwnProperty(Je)){const en=Pe[Je];delete Pe[Je],Pe[Je]=en}}),xt(Pe,Se,ze)}Et()}})(this))}disconnectedCallback(){Ot.jmp(()=>(Pe=>{if(!(1&Ot.$flags$)){const Se=St(this),ze=Se.$lazyInstance$;Se.$rmListeners$&&(Se.$rmListeners$.map(Et=>Et()),Se.$rmListeners$=void 0),_e(ze,"disconnectedCallback")}})())}componentOnReady(){return St(this).$onReadyPromise$}};Mn.$lazyBundleId$=An[0],!st.includes(Wn)&&!en.get(Wn)&&(Je.push(Wn),en.define(Wn,ge(Ln,Mn,1)))})});{Kt.innerHTML=Je+"{visibility:hidden}.hydrated{visibility:inherit}",Kt.setAttribute("data-styles","");const An=null!==(ze=Ot.$nonce$)&&void 0!==ze?ze:P(Nt);null!=An&&Kt.setAttribute("nonce",An),yt.insertBefore(Kt,vt?vt.nextSibling:yt.firstChild)}On=!1,Pt.length?Pt.map(An=>An.connectedCallback()):Ot.jmp(()=>Rt=setTimeout(Ie,30))},mt=(Pe,Se,ze,Et)=>{ze&&ze.map(([Je,st,en])=>{const yt=un(Pe,Je),vt=ft(Se,en),Kt=At(Je);Ot.ael(yt,st,vt,Kt),(Se.$rmListeners$=Se.$rmListeners$||[]).push(()=>Ot.rel(yt,st,vt,Kt))})},ft=(Pe,Se)=>ze=>{try{256&Pe.$flags$?Pe.$lazyInstance$[Se](ze):(Pe.$queuedListeners$=Pe.$queuedListeners$||[]).push([Se,ze])}catch(Et){wt(Et)}},un=(Pe,Se)=>16&Se?Nt.body:Pe,At=Pe=>!!(2&Pe),Cn=new WeakMap,St=Pe=>Cn.get(Pe),Ft=(Pe,Se)=>Cn.set(Se.$lazyInstance$=Pe,Se),bn=(Pe,Se)=>{const ze={$flags$:0,$hostElement$:Pe,$cmpMeta$:Se,$instanceValues$:new Map};return ze.$onInstancePromise$=new Promise(Et=>ze.$onInstanceResolve$=Et),ze.$onReadyPromise$=new Promise(Et=>ze.$onReadyResolve$=Et),Pe["s-p"]=[],Pe["s-rc"]=[],mt(Pe,ze,Se.$listeners$),Cn.set(Pe,ze)},bt=(Pe,Se)=>Se in Pe,wt=(Pe,Se)=>(0,console.error)(Pe,Se),Dn=new Map,Bt=(Pe,Se,ze)=>{const Et=Pe.$tagName$.replace(/-/g,"_"),Je=Pe.$lazyBundleId$,st=Dn.get(Je);if(st)return st[Et];if(!ze||!BUILD.hotModuleReplacement){const en=yt=>(Dn.set(Je,yt),yt[Et]);switch(Je){case"pwa-action-sheet":return E.e(6301).then(E.bind(E,6301)).then(en,wt);case"pwa-camera-modal":return E.e(2982).then(E.bind(E,2982)).then(en,wt);case"pwa-toast":return E.e(3574).then(E.bind(E,3574)).then(en,wt);case"pwa-camera-modal-instance":return E.e(5640).then(E.bind(E,5640)).then(en,wt);case"pwa-camera":return E.e(6086).then(E.bind(E,6086)).then(en,wt)}}return E(5235)(`./${Je}.entry.js`).then(en=>(Dn.set(Je,en),en[Et]),wt)},Lt=new Map,Wt=typeof window<"u"?window:{},Nt=Wt.document||{head:{}},Ot={$flags$:0,$resourcesUrl$:"",jmp:Pe=>Pe(),raf:Pe=>requestAnimationFrame(Pe),ael:(Pe,Se,ze,Et)=>Pe.addEventListener(Se,ze,Et),rel:(Pe,Se,ze,Et)=>Pe.removeEventListener(Se,ze,Et),ce:(Pe,Se)=>new CustomEvent(Pe,Se)},zn=Pe=>Promise.resolve(Pe),Ut=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),He=[],Be=[],Ae=(Pe,Se)=>ze=>{Pe.push(ze),D||(D=!0,Se&&4&Ot.$flags$?je(Ze):Ot.raf(Ze))},Me=Pe=>{for(let Se=0;Se{Me(He),Me(Be),(D=He.length>0)&&Ot.raf(Ze)},je=Pe=>zn().then(Pe),it=Ae(Be,!0)},3172:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>S,c:()=>a});const a={production:!0},S={api:{BASE_URL:"https://school-api-prod.tekdinext.com/",BASE_URL_BOT:"https://aibot-prod.tekdinext.com/",TELEMETRY_BASE_URL:"https://school-api-prod.tekdinext.com/",CONFIG:"seeker/configuration",PAGE_SEARCH_API:"content/search",CONTEXT_SEARCH:"api/aiutility/v1/context",CONTENT_SEARCH_API:"content/search",TELEMETRY_SYNC:"telemetry/v1/telemetry",BOT_QUERY_API:"v1/query",SEARCH_API:"content/search",CONFIRM_API:"confirm",BOT_SAKHI_API_PATH:"v1/query",BOT_ACTIVITY_API_PATH:"api/activitybot/v1/query",REGISTER_DEVICE_API_PATH:"api/registerMobileDevice",KEY:"myjp-0.1",SECRET:"7tVOEu0xj0zYQiYtCYbauEkNC3NBXCpM"},telmetry:{PRODUCER_ID:"dev.ejp.mobileapp",PRODUCER_PID:"mobileapp"}}},56:(Ce,ee,E)=>{"use strict";E.d(ee,{B$:()=>S,Cc:()=>a,Hs:()=>D,K:()=>O,Th:()=>C,Zm:()=>B,cM:()=>_,z5:()=>c});let a=(()=>{var m;class T{}return(m=T).PDF="application/pdf",m.MP4="video/mp4",m.YOUTUBE="video/x-youtube",m.AUDIO="audio/mp3",m.WEBM="video/webm",m.LINK="text/html",T})();const S={dbName:"digital_jaddu_pitara.db",version:3};let O=(()=>{var m;class T{}return(m=T).DATE_TYPE="DATE",m.TEXT_TYPE="TEXT",m.INT_TYPE="INTEGER",m.REAL_TYPE="REAL",m.COMMA_SEP=",",m.SPACE=" ",m.MAX_NUM_OF_EVENTS=1e3,m.MAX_NUM_OF_PROCESSED_EVENTS=1,m.ERROR="DB_ERROR",m.BLOB_TYPE="BLOB",m.NOT_NULL="NOT NULL",m.NULL="NULL",T})(),c=(()=>{var m;class T{}return(m=T).COLLECTION="application/vnd.ekstep.content-collection",m.VIDEO="video/mp4",m.VIDEOS=["video/mp4","video/webm","video/x-m4v","video/quicktime"],m.PDF="application/pdf",m.AUDIOS="audio/mp3",m.RECOEDED_AUDIO="audio/wav",m.AUDIO=["audio/mp3","audio/mp4","audio/mpeg","audio/ogg","audio/webm","audio/x-wav","audio/wav"],m.INTERACTION=["application/vnd.ekstep.ecml-archive","application/vnd.ekstep.html-archive","application/vnd.android.package-archive","application/vnd.ekstep.content-archive","application/vnd.ekstep.plugin-archive","application/vnd.ekstep.h5p-archive"],m.DOCS=["application/pdf","application/epub","application/msword"],m.ALL=["video/mp4","video/x-youtube","video/webm","application/pdf","application/epub","application/pdf","application/epub","application/vnd.ekstep.ecml-archive","application/vnd.ekstep.h5p-archive","application/vnd.ekstep.html-archive"],m.YOUTUBE="video/x-youtube",T})();const D=[{name:"content deatil",code:"contentDetail",pattern:"(?:/(?:resources/play/content|play/content|play/quiz)/(?\\w+))",route:"content-details"},{name:"Textbook content detail",code:"textbookContentDetail",pattern:"(?:/play/(?:collection)/(?\\w+)\\?(?=.*\\bcontentId\\b=(?([^&]*)).*))",route:"collection-detail-etb",priority:1},{name:"Course Detail",code:"courseDetail",pattern:"(?:/(?:explore-course|learn)/course/(?\\w+))",route:"enrolled-course-details",priority:3}];var C=function(m){return m.YES="Yes",m.NO="No",m}(C||{}),_=function(m){return m.COURSE="Course",m.COURSE_UNIT="CourseUnit",m.E_TEXTBOOK="eTextBook",m.EXPLANATION_RESOURCE="ExplanationResource",m.EXPLANATION_VIDEO="Explanation Video",m.TEXTBOOK="TextBook",m.TEXTBOOK_UNIT="TextBookUnit",m.COLLECTION="Collection",m.TV_LESSION="TVLesson",m.RESOURCE="Resource",m}(_||{});let B=(()=>{var m;class T{}return(m=T).TEACHER="teacher",m.STORY="story",m.PARENT="parent",T})()},319:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>O});var a=E(4438),S=E(8974),p=E(5402);let O=(()=>{var c;class D{constructor(_){this.modalCtrl=_}ngOnInit(){}confirm(_){switch(_){case"exit":this.modalCtrl.dismiss(!0);break;case"cancel":this.modalCtrl.dismiss(!1)}}}return(c=D).\u0275fac=function(_){return new(_||c)(a.rXU(S.W3))},c.\u0275cmp=a.VBU({type:c,selectors:[["app-app-exit"]],decls:13,vars:9,consts:[[1,"inner-content"],["slot","start"],[1,"buttons"],["slot","end","shape","round","fill","outline",1,"btn-info","exit",3,"click"],["slot","end","shape","round",1,"btn-info",3,"click"]],template:function(_,F){1&_&&(a.j41(0,"div",0)(1,"ion-toolbar")(2,"ion-buttons",1)(3,"ion-button"),a.EFF(4),a.nI1(5,"translate"),a.k0s()()(),a.j41(6,"ion-toolbar",2)(7,"ion-button",3),a.bIt("click",function(){return F.confirm("exit")}),a.EFF(8),a.nI1(9,"translate"),a.k0s(),a.j41(10,"ion-button",4),a.bIt("click",function(){return F.confirm("cancel")}),a.EFF(11),a.nI1(12,"translate"),a.k0s()()()),2&_&&(a.R7$(4),a.JRh(a.bMT(5,3,"Exit the app?")),a.R7$(4),a.JRh(a.bMT(9,5,"Exit")),a.R7$(3),a.JRh(a.bMT(12,7,"Cancel")))},dependencies:[S.Jm,S.QW,S.ai,p.D9],styles:[".buttons[_ngcontent-%COMP%]{padding:0 1rem}ion-button[_ngcontent-%COMP%]{text-wrap:wrap}.btn-info[_ngcontent-%COMP%]{width:40%;color:var(--ion-color-primary-contrast);--background: var(--ion-color-tertiary);font-size:.75rem;font-family:Noto Sans;font-weight:700;text-transform:uppercase;line-height:19.6px;word-wrap:break-word;padding:5px;text-wrap:wrap;text-align:center}.exit[_ngcontent-%COMP%]{--color: var(--ion-color-tertiary);--background: white}ion-modal[_ngcontent-%COMP%]{--height: 50%;--border-radius: 1rem;--box-shadow: 0 .625rem .938rem -.188rem rgb(0 0 0 / .1), 0 .25rem .375rem -.25rem rgb(0 0 0 / .1)}ion-modal[_ngcontent-%COMP%]::part(backdrop){background:#d1d5db;opacity:1}"]}),D})()},5553:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>C});var a=E(177),S=E(9417),p=E(8974),O=E(5402),c=E(2904),D=E(4438);let C=(()=>{var _;class F{}return(_=F).\u0275fac=function(m){return new(m||_)},_.\u0275mod=D.$C({type:_}),_.\u0275inj=D.G2t({providers:[c.a0,c.H0,c.n$],imports:[a.MD,S.YN,S.X1,p.bv,S.X1,O.h.forChild()]}),F})()},6198:(Ce,ee,E)=>{"use strict";E.d(ee,{g:()=>p});var a=E(4412),S=E(4438);let p=(()=>{var O;class c{constructor(){this.languageSubject=new a.t(localStorage.getItem("DJPData.lang")||"en"),this.currentLanguage$=this.languageSubject.asObservable()}setLanguage(C){localStorage.setItem("DJPData.lang",C),this.languageSubject.next(C)}}return(O=c).\u0275fac=function(C){return new(C||O)},O.\u0275prov=S.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),c})()},446:(Ce,ee,E)=>{"use strict";E.d(ee,{g:()=>D});const p=new URL(document.baseURI).hostname.split(".");console.log(p);const D=fetch("../assets/appConfig/"+p[0]+".json").then(C=>{if(!C.ok)throw new Error("Network response was not ok");return C.json()}).then(C=>C).catch(C=>{console.error("There was a problem with the fetch operation:",C)})},3721:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>S});var a=E(4438);let S=(()=>{var p;class O{}return(p=O).\u0275fac=function(D){return new(D||p)},p.\u0275mod=a.$C({type:p}),p.\u0275inj=a.G2t({}),O})()},1984:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>S});var a=E(467);class S{constructor(){this._isInitialised=!1,this.config={},this.botMsg={}}static getInstance(){return S._instance||(S._instance=new S),S._instance}isInitialised(){return this._isInitialised}getConfig(){return this.config}init(O){var c=this;return(0,a.A)(function*(){c._isInitialised=!0,c.config={authentication:{bearerToken:""},deviceInfo:{did:O}}})()}getSakhiResponse(){return this.botMsg}setSakhiResponse(O){var c=this;return(0,a.A)(function*(){c.botMsg={storySakhi:O.story,teacherSakhi:O.teacher,paretSakhi:O.parent}})()}}},2700:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>o});var a=E(467),S=E(6648),p=E(3028),O=E(9437),c=E(7673),D=E(8810),C=E(1984),_=E(8141),F=E(985),B=E(7374),m=E(3172);let T=(()=>{var l;class s{constructor(v,y){this.apiService=v,this.utilService=y,this.getJWTToken=(d,r)=>new Promise((f,k)=>{window.FilePath.getJWTToken(d,r,f,I=>{console.error(`${d} could not be resolved by the plugin: ${I.message}`),k(I)})})}refreshAuthToken(){return(0,S.H)(this.getBearerTokenFromKong())}getMobileDeviceConsumerKey(){var v=this;return(0,a.A)(function*(){return yield v.utilService.getDeviceId()})()}buildGetMobileDeviceConsumerSecretAPIRequest(v){var y=this;return(0,a.A)(function*(){return Promise.resolve((new F._g.Builder).withHost(m.$.api.BASE_URL).withPath(v).withType(F.kr.POST).withHeaders({"Content-Encoding":"gzip",Authorization:`Bearer ${yield y.generateMobileAppConsumerBearerToken()}`}).withBody({id:s.ID,ver:s.VERSION,ts:B().format(),request:{key:`${m.$.telmetry.PRODUCER_ID}-${yield y.getMobileDeviceConsumerKey()}`}}).build())})()}getBearerTokenFromKong(){var v=this;return(0,a.A)(function*(){return v.apiService.fetch(yield v.buildGetMobileDeviceConsumerSecretAPIRequest(m.$.api.REGISTER_DEVICE_API_PATH)).toPromise().then(y=>y.body.result.token).catch(y=>{throw y})})()}generateMobileAppConsumerBearerToken(){var v=this;return(0,a.A)(function*(){return yield v.getJWTToken(m.$.api.KEY,m.$.api.SECRET)})()}}return(l=s).VERSION="1.0",l.ID="org.myjp.device.register",s})();class A{constructor(s,h,v){this.storageService=s,this.apiService=h,this.utilService=v,this.apiTokenHandler=new T(this.apiService,this.utilService)}interceptResponse(s,h){var v=this;return h.responseCode===F.xl.HTTP_UNAUTHORISED&&"Unauthorized"===h.body.message||h.responseCode===F.xl.HTTP_FORBIDDEN?this.apiTokenHandler.refreshAuthToken().pipe((0,_.M)(function(){var y=(0,a.A)(function*(d){yield v.storageService.setData("api_token",d)});return function(d){return y.apply(this,arguments)}}()),(0,p.Z)(()=>this.apiService.fetch(s))):(0,c.of)(h)}}var w=E(6598),P=E(4438),$=E(3207);class L{constructor(){}interceptRequest(s){var h;const v=null===(h=C.f.getInstance().getConfig().authentication)||void 0===h?void 0:h.bearerToken;return v&&(s.headers.Authorization=`Bearer ${v}`),(0,c.of)(s)}}class M{constructor(s,h){this._code=h}getCode(){return this._code}}let R=(()=>{class s extends M{constructor(v,y){super(v,s.code),this.response=y,Object.setPrototypeOf(this,s.prototype)}static isInstance(v){return v.code&&v.code===s.code}}return s.code="HTTP_CLIENT_ERROR",s})(),U=(()=>{class s extends M{constructor(v,y){super(v,s.code),this.response=y,Object.setPrototypeOf(this,s.prototype)}static isInstance(v){return v.code&&v.code===s.code}}return s.code="HTTP_SERVER_ERROR",s})();var j=E(6421),W=E(5083),ie=E(1413);let me=(()=>{var l;class s{constructor(){this.http=W.pX}get(v,y,d,r){return this.invokeRequest(F.kr.GET,v+y,r,d)}patch(v,y,d,r){return this.invokeRequest(F.kr.PATCH,v+y,r,d)}post(v,y,d,r){return this.invokeRequest(F.kr.POST,v+y,r,d)}checkMimieType(v){const y=v;return y.endsWith(".mp3")?"audio/mp3":y.endsWith(".pdf")?"application/pdf":y.includes("youtube.com")||y.includes("youtu.be")?"video/x-youtube":y.endsWith(".mp4")?"video/mp4":"text/html"}invokeRequest(v,y,d,r){const f=new ie.B,k={url:y,method:v.toLowerCase(),headers:r};return v===F.kr.POST||v===F.kr.PATCH?k.data=d:(v===F.kr.GET||v===F.kr.DELETE)&&(k.params=d),this.http.request(k).then(I=>{I.data=I.data;let V=I.data;const J=[];if(V.data&&null!=V.data.djp_contents&&V.data.djp_contents.forEach(ve=>{let De=this.checkMimieType(null==ve?void 0:ve.url);J.push({agegroup:ve.agegroup,audience:ve.audience,bpp_id:ve.bpp_id,bpp_uri:ve.bpp_uri,competency:ve.competencies,category:ve.category,createdon:ve.createdon,curriculargoal:ve.curriculargoal,id:ve.item_id,identifier:ve.identifier,provider_id:ve.provider_id,provider_name:ve.provider_name,name:ve.name,description:ve.description,thumbnail:ve.thumbnail,domain:ve.domain,unique_id:ve.unique_id,language:ve.language,url:ve.url,sourceOrganisation:ve.sourceorg,midea:ve.midea,keywords:ve.keywords,lastupdatedon:ve.lastupdatedon,learningOutcomes:ve.learningOutcomes,status:ve.status,content_type:ve.content_type,mimetype:De})}),J){let ve;var oe;ve=V.data&&null!=V.data.djp_contents?{body:{result:J,audioText:null==I||null===(oe=I.data)||void 0===oe?void 0:oe.audioText},responseCode:200,errorMesg:"",headers:I.headers,requestHeaders:k.headers}:{body:{result:I.data},responseCode:200,errorMesg:"",headers:I.headers,requestHeaders:k.headers},f.next(ve),f.complete()}}).catch(I=>{console.error("error",I);const V={body:{},responseCode:I.status,errorMesg:"SERVER_ERROR",headers:I.headers,requestHeaders:k.headers};try{try{I.body=JSON.parse(I.error)}catch(J){if(V.body=I.error,I.status<=0)throw J}f.error(new Error)}catch{f.error(new Error),f.complete()}}),f}}return(l=s).\u0275fac=function(v){return new(v||l)},l.\u0275prov=P.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})();var te=E(5402);let se=(()=>{var l;class s{constructor(v,y){this.http=v,this.translate=y,this.requestInterceptors=[],this.responseInterceptors=[]}getBearerTokenInjectRequestInterceptor(){return this.bearerTokenInjectRequestInterceptor||(this.bearerTokenInjectRequestInterceptor=new L),this.bearerTokenInjectRequestInterceptor}fetch(v){var y=this;v.headers={...v.getHeaders(),...this.addGlobalHeader(v.language)},this.buildInterceptorsFromRequest(v);const d=(0,a.A)(function*(){let r;v=yield y.interceptRequest(v);try{switch(v.getType()){case F.kr.GET:r=yield(0,$.s)(y.http.get(v.getHost()||"this.host",v.getPath(),v.headers,v.getParameters()));break;case F.kr.PATCH:r=yield(0,$.s)(y.http.patch(v.getHost()||"this.host",v.getPath(),v.headers,v.body));break;case F.kr.POST:r=yield(0,$.s)(y.http.post(v.getHost()||"this.host",v.getPath(),v.headers,v.getBody()));break;default:throw new Error("Unsupported type")}return yield y.interceptResponse(v,r)}catch(f){const k=I=>{if(I.responseCode>=400&&I.responseCode<=499)throw new R(`\n ${v.host+v.path} -\n ${I.errorMesg||""}\n `,I);if(I.responseCode>=500&&I.responseCode<=599)throw new U(`\n ${v.host+v.path} -\n ${I.errorMesg||""}\n `,I);return I};if(!R.isInstance(f)&&!U.isInstance(f))throw f;try{return r=yield y.interceptResponse(v,f.response),k(r)}catch(I){if(I.responseCode)return k(I);throw I}}})();return(0,S.H)(d)}addGlobalHeader(v){var y,d;let r=v||this.translate.currentLang;return{Accept:"application/json","Content-Type":"application/json","Access-Control-Allow-Origin":"*","X-device-id":null===(y=C.f.getInstance().getConfig().deviceInfo)||void 0===y?void 0:y.did,"X-Source":"mobileapp","X-Request-ID":(0,j.A)(),"X-CONSUMER-ID":null===(d=C.f.getInstance().getConfig().deviceInfo)||void 0===d?void 0:d.did,...r?{"x-preferred-language":r}:{}}}interceptRequest(v){var y=this;return(0,a.A)(function*(){const d=[];for(const r of y.requestInterceptors)d.push(r);for(const r of v.requestInterceptors)d.push(r);for(const r of d)v=yield(0,$.s)(r.interceptRequest(v));return v})()}interceptResponse(v,y){var d=this;return(0,a.A)(function*(){const r=[];for(const f of d.responseInterceptors)r.push(f);for(const f of v.getResponseInterceptors())r.push(f);for(const f of r)y=yield(0,$.s)(f.interceptResponse(v,y));if(y.responseCode!==F.xl.HTTP_SUCCESS)throw y;return y})()}buildInterceptorsFromRequest(v){v.withBearerToken&&-1===v.requestInterceptors.indexOf(this.bearerTokenInjectRequestInterceptor)&&v.requestInterceptors.push(this.getBearerTokenInjectRequestInterceptor())}}return(l=s).\u0275fac=function(v){return new(v||l)(P.KVO(me),P.KVO(te.c$))},l.\u0275prov=P.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})();var g=E(2904),n=E(8974);let o=(()=>{var l;class s{constructor(v,y,d,r){var f=this;this.httpService=v,this.storageService=y,this.utilService=d,this.toastController=r,this.connected=!0,this.language="",this.defaultRequestInterceptors=[],this.defaultResponseInterceptors=[],w.l.addListener("networkStatusChange",function(){var k=(0,a.A)(function*(I){f.connected=I.connected});return function(I){return k.apply(this,arguments)}}()),this.toastController.create({animated:!1}).then(k=>{k.present(),k.dismiss()}),this.storageService.getData("lang").then(k=>{this.language=k})}getBearerTokenRefreshInterceptor(){return this.bearerTokenRefreshInterceptor||(this.bearerTokenRefreshInterceptor=new A(this.storageService,this,this.utilService)),this.bearerTokenRefreshInterceptor}onInit(){return(0,S.H)(this.storageService.getData("api_token")).pipe((0,p.Z)(v=>v?(C.f.getInstance().getConfig().authentication.bearerToken=v,(0,c.of)(void 0)):new T(this,this.utilService).refreshAuthToken().pipe((0,p.Z)(y=>(C.f.getInstance().getConfig().authentication.bearerToken=y,(0,S.H)(this.storageService.setData("api_token",y)))),(0,O.W)(()=>(0,c.of)(void 0)))))}fetch(v){if(this.defaultRequestInterceptors.forEach(y=>{-1===v.getRequestInterceptors().indexOf(y)&&v.getRequestInterceptors().push(y)}),this.defaultResponseInterceptors.forEach(y=>{-1===v.getResponseInterceptors().indexOf(y)&&v.getResponseInterceptors().push(y)}),v.withBearerToken){const y=v.getResponseInterceptors().indexOf(this.getBearerTokenRefreshInterceptor());-1===y?v.getResponseInterceptors().push(this.bearerTokenRefreshInterceptor):v.getResponseInterceptors().splice(y,1)}return this.httpService.fetch(v).pipe((0,O.W)(y=>(0,D.$)(()=>y)))}setDefaultRequestInterceptors(v){this.defaultRequestInterceptors=v}setDefaultResponseInterceptors(v){this.defaultResponseInterceptors=v}}return(l=s).\u0275fac=function(v){return new(v||l)(P.KVO(se),P.KVO(g.n$),P.KVO(g.a0),P.KVO(n.K_))},l.\u0275prov=P.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),s})()},985:(Ce,ee,E)=>{"use strict";E.d(ee,{_g:()=>p,kr:()=>a,xl:()=>S});var a=function(O){return O.GET="GET",O.POST="POST",O.PATCH="PATCH",O.DELETE="DELETE",O.PUT="PUT",O}(a||{}),S=function(O){return O[O.HTTP_UNAUTHORISED=401]="HTTP_UNAUTHORISED",O[O.HTTP_FORBIDDEN=403]="HTTP_FORBIDDEN",O[O.HTTP_SUCCESS=200]="HTTP_SUCCESS",O[O.HTTP_BAD_REQUEST=400]="HTTP_BAD_REQUEST",O[O.HTTP_KONG_FAILURE=447]="HTTP_KONG_FAILURE",O[O.HTTP_INTERNAL_SERVER_ERROR=500]="HTTP_INTERNAL_SERVER_ERROR",O}(S||{});let p=(()=>{var O;class c{getWithBearerToken(){return this._withBearerToken}setWithBearerToken(C){this._withBearerToken=C}getBody(){return this._body}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.withBearerToken=!1,this.withUserToken=!1,this.headers={},this.body={},this.parameters={},this._responseInterceptors=[],this._withBearerToken=!1,this._headers={},this._body={},this._parameters={},this._withUserToken=!1,this._requestInterceptors=[]}setPath(C){this._path=C}getType(){return this._type}setResponseInterceptors(C){this._responseInterceptors=C}setHeaders(C){this._headers=C}setBody(C){this._body=C}getPath(){return this._path}setType(C){this._type=C}getResponseInterceptors(){return this._responseInterceptors}getHeaders(){return this._headers}getParameters(){return this._parameters}setParameters(C){this._parameters=C}getWithUserToken(){return this._withUserToken}setWithUserToken(C){this._withUserToken=C}getRequestInterceptors(){return this._requestInterceptors}getHost(){return this._host}}return(O=c).Builder=class{constructor(){this.request=new O}withHost(C){return this.request._host=C,this}withLanguge(C){return this.request.language=C,this}withPath(C){return this.request._path=C,this}withType(C){return this.request._type=C,this}withResponseInterceptor(C){return this.request._responseInterceptors.push(C),this}withRequestInterceptor(C){return this.request._requestInterceptors.push(C),this}withHeaders(C){return this.request._headers=C,this}withBody(C){return this.request._body=C,this}withParameters(C){return this.request._parameters=C,this}withBearerToken(C){return this.request.withBearerToken=C,this}withUserToken(C){return this.request.withUserToken=C,this}build(){if(!this.request._path)throw new Error("withPath() is required");if(!this.request._type)throw new Error("withType() is required");return this.request}},c})()},3568:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>m});var a=E(467),S=E(5083),p=function(T){return T.Dark="DARK",T.Light="LIGHT",T.Default="DEFAULT",T}(p||{}),O=function(T){return T.None="NONE",T.Slide="SLIDE",T.Fade="FADE",T}(O||{});const C=(0,S.F3)("StatusBar");var _=E(1413),F=E(8941),B=E(4438);let m=(()=>{var T;class A{constructor(){this.appName="",this.headerEvent=new _.B,this.headerEventEmitted$=this.headerEvent.asObservable(),this.headerConfig=new _.B,this.headerConfigEmitted$=this.headerConfig.asObservable(),this.deviceBackbtnConfig=new _.B,this.deviceBackbtnEmitted$=this.deviceBackbtnConfig.asObservable(),this.filterConfig=new _.B,this.filterConfigEmitted$=this.filterConfig.asObservable(),this.sideMenuItemEvent=new _.B,this.sideMenuItemEventEmitted$=this.sideMenuItemEvent.asObservable(),F.q.getInfo().then(P=>{this.appName=P.name})}filterEvent(P){this.filterConfig.next(P)}sidebarEvent(P){this.headerEvent.next(P.name)}sideMenuItemEvents(P){this.sideMenuItemEvent.next(null==P?void 0:P.filter)}updatePageConfig(P){this.headerConfig.next(P)}deviceBackBtnEvent(P){this.deviceBackbtnConfig.next(P)}hideHeader(){var P=this;return(0,a.A)(function*(){const $=P.getDefaultPageConfig();$.showHeader=!1,P.updatePageConfig($)})()}getDefaultPageConfig(){return{showHeader:!0,pageTitle:this.appName,showbackButton:!1,actionButtons:[""]}}showHeader(P,$,L){var M=this;return(0,a.A)(function*(){const R=M.getDefaultPageConfig();R.pageTitle=null!=P?P:M.appName,R.showbackButton=null!=$&&$,R.actionButtons=null!=L?L:[""],M.updatePageConfig(R)})()}hideStatusBar(){C.hide()}showStatusBar(P,$){C.show({animation:O.None}),C.setStyle({style:$?p.Dark:p.Light}),C.setBackgroundColor({color:null!=$?$:"#FFFAEE"}),C.setOverlaysWebView({overlay:P})}}return(T=A).\u0275fac=function(P){return new(P||T)},T.\u0275prov=B.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),A})()},4447:(Ce,ee,E)=>{"use strict";E.d(ee,{i:()=>A});var a=E(467),S=E(5083),p=function(w){return w[w.UNKNOWN=0]="UNKNOWN",w[w.UPDATE_NOT_AVAILABLE=1]="UPDATE_NOT_AVAILABLE",w[w.UPDATE_AVAILABLE=2]="UPDATE_AVAILABLE",w[w.UPDATE_IN_PROGRESS=3]="UPDATE_IN_PROGRESS",w}(p||{});const D=(0,S.F3)("AppUpdate",{web:()=>E.e(5959).then(E.bind(E,5959)).then(w=>new w.AppUpdateWeb)});var C=E(4438),_=E(8974),F=E(5402);let B=(()=>{var w;class P{constructor(L){this.popoverCtrl=L}ngOnInit(){}handleButtonAction(L){this.popoverCtrl.dismiss(L)}}return(w=P).\u0275fac=function(L){return new(L||w)(C.rXU(_.IE))},w.\u0275cmp=C.VBU({type:w,selectors:[["app-app-update"]],decls:18,vars:12,consts:[["lines","none"],["slot","end"],[3,"click"]],template:function(L,M){1&L&&(C.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C.EFF(3),C.nI1(4,"translate"),C.k0s()(),C.j41(5,"ion-content")(6,"ion-item",0)(7,"ion-label"),C.EFF(8),C.nI1(9,"translate"),C.k0s()()(),C.j41(10,"ion-toolbar")(11,"ion-buttons",1)(12,"ion-button",2),C.bIt("click",function(){return M.handleButtonAction("cancel")}),C.EFF(13),C.nI1(14,"translate"),C.k0s(),C.j41(15,"ion-button",2),C.bIt("click",function(){return M.handleButtonAction("restart")}),C.EFF(16),C.nI1(17,"translate"),C.k0s()()()()),2&L&&(C.R7$(3),C.JRh(C.bMT(4,4,"Update Downloaded")),C.R7$(5),C.SpI(" ",C.bMT(9,6,"The update has been downloaded. Would you like to restart the app to complete the update now?")," "),C.R7$(5),C.JRh(C.bMT(14,8,"Later")),C.R7$(3),C.JRh(C.bMT(17,10,"Restart Now")))},dependencies:[_.Jm,_.QW,_.W9,_.eU,_.uz,_.he,_.BC,_.ai,F.D9],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: 0px !important}ion-button[_ngcontent-%COMP%]{color:var(--ion-color-primary)}"]}),P})();var m=E(3021),T=E(4517);let A=(()=>{var w;class P{constructor(L,M,R){this.router=L,this.platform=M,this.popoverController=R,this.forDeepLink=!1,this.showListPage=!1}checkForUpdate(){var L=this;return(0,a.A)(function*(){const M=yield D.getAppUpdateInfo();console.log("Update available:",M.updateAvailability===p.UPDATE_AVAILABLE),M.updateAvailability===p.UPDATE_AVAILABLE&&L.platform.is("android")&&(M.immediateUpdateAllowed?yield D.performImmediateUpdate():M.flexibleUpdateAllowed&&(yield D.startFlexibleUpdate(),D.addListener("onFlexibleUpdateStateChange",(0,a.A)(function*(){let R=yield L.popoverController.create({component:B,cssClass:"update-modal",translucent:!0,dismissOnSelect:!0});yield R.present(),R.onDidDismiss().then(U=>{"restart"==U.data&&D.completeFlexibleUpdate()})}))))})()}}return(w=P).\u0275fac=function(L){return new(L||w)(C.KVO(m.Ix),C.KVO(T.OD),C.KVO(_.IE))},w.\u0275prov=C.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}),P})()},6011:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>c});var a=E(467),S=E(4438),p=E(4591),O=E(1765);let c=(()=>{var D;class C{constructor(F,B){this.dbService=F,this.telemetryService=B}initialize(){var F=this;return(0,a.A)(function*(){yield F.dbService.initializePlugin()})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.a),S.KVO(O.H))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},4999:(Ce,ee,E)=>{"use strict";E.d(ee,{O:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="chat",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_MESSAGE="message",p.COLUMN_NAME_BOT_TYPE="bot_type",p.COLUMN_NAME_FROM_ME="from_me",p.COLUMN_NAME_REACTIONS="reactions",p.COLUMN_NAME_REQUEST_ID="request_id",p.COLUMN_NAME_MEDIA_TYPE="media_type",p.COLUMN_NAME_MEDIA_DATA="media_data",p.COLUMN_NAME_MEDIA_PATH="media_path",p.COLUMN_NAME_DURATION="duration",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT"+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MESSAGE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_BOT_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_FROM_ME+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_REACTIONS+a.K.SPACE+a.K.INT_TYPE+" DEFAULT -1"+a.K.COMMA_SEP+p.COLUMN_NAME_REQUEST_ID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_DATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MEDIA_PATH+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_DURATION+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_MESSAGE},\n ${p.COLUMN_NAME_BOT_TYPE},\n ${p.COLUMN_NAME_FROM_ME},\n ${p.COLUMN_NAME_MEDIA_TYPE},\n ${p.COLUMN_NAME_MEDIA_DATA},\n ${p.COLUMN_NAME_MEDIA_PATH},\n ${p.COLUMN_NAME_DURATION},\n ${p.COLUMN_NAME_TIME_STAMP},\n ${p.COLUMN_NAME_REACTIONS}) \n VALUES (?,?,?,?,?,?,?,?,?,?)`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p}(S||{})},3871:(Ce,ee,E)=>{"use strict";E.d(ee,{d:()=>c});var a=E(467),S=E(4438),p=E(3486);let c=(()=>{var D;class C{constructor(F){this.storageService=F}initStorage(){var F=this;return(0,a.A)(function*(){const B=(new Date).getTime()+36e5;(yield F.storageService.getData("firstTimeLoad"))||(yield F.storageService.setData("firstTimeLoad","true")),(yield F.storageService.getData("validTimeStamp"))||F.storageService.setData("validTimeStamp",JSON.stringify(B))})()}getCacheTimeout(){var F=this;return(0,a.A)(function*(){let B=yield F.storageService.getData("firstTimeLoad"),m=(new Date).getTime(),T=yield F.storageService.getData("validTimeStamp");return m>JSON.parse(T)?(F.storageService.removeData("validTimeStamp"),F.initStorage(),!0):"true"===B&&(yield F.storageService.setData("firstTimeLoad","false"),!0)})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.n))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},3696:(Ce,ee,E)=>{"use strict";E.d(ee,{w:()=>B});var a=E(467),S=E(3172),p=E(985),O=E(3207),c=E(6354),D=E(9437),C=E(446),_=E(4438),F=E(2700);let B=(()=>{var m;class T{constructor(w){this.apiService=w,C.g.then(P=>{this.configVariables=P}).catch(P=>{console.error("Failed to load configuration:",P)})}getConfigMeta(){var w=this;return(0,a.A)(function*(){const P=(new p._g.Builder).withHost(S.$.api.BASE_URL).withPath(S.$.api.CONFIG).withType(p.kr.GET).withBearerToken(!0).build();return(0,O.s)(w.apiService.fetch(P)).then($=>{if(null!=$&&$.body.result)return null==$?void 0:$.body.result}).catch($=>{console.log("err ",$)})})()}getAllContent(w,P){var $=this;return(0,a.A)(function*(){let L={language:P,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}};const M=(new p._g.Builder).withHost(S.$.api.BASE_URL).withPath(S.$.api.PAGE_SEARCH_API).withType(p.kr.POST).withBearerToken(!0).withBody(L).withLanguge(P).build();return(0,O.s)($.apiService.fetch(M).pipe((0,c.T)(R=>R.body.result),(0,D.W)(R=>{throw R})))})()}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.G))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},444:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>P});var a=E(467),S=E(532),p=E(5396),O=E(4870);class c{static mapContentToRecentlyViewedContentEntry(L,M,R){return{[p.a.COLUMN_NAME_IDENTIFIER]:R,[p.a.COLUMN_NAME_CONTENT_IDENTIFIER]:L.metaData.identifier,[p.a.COLUMN_NAME_UID]:M,[p.a.COLUMN_NAME_CONTENT_METADATA]:JSON.stringify(L.metaData),[p.a.COLUMN_NAME_MIME_TYPE]:L.metaData.mimetype,[p.a.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(L,M){return[L.metaData.identifier,M,L.metaData.mimetype,Date.now()]}}class D{static mapContentRVCtoRecentlyViedContent(L,M){const R=JSON.parse(L.content_metadata);return R.isLiked=!!L.reaction_identifier,L.content_metadata=JSON.stringify(R),L.metadata=L.content_metadata,{uid:L.uid,rvIdentifier:M,contentIdentifier:L.identifier,source:L.source,sourceType:L.source_type,metaData:JSON.parse(L.content_metadata)}}}var C=E(6421),_=E(56),F=E(985),B=E(3207),m=E(742),T=E(4438),A=E(2904),w=E(2700);let P=(()=>{var $;class L{constructor(R,U){this.dbService=R,this.apiService=U,this.results=[]}deleteAllContents(){return this.dbService.remove(S.a.deleteQuery(),{source:"djp"})}saveContents(R){const U=[];return R.map(j=>{U.push({statement:S.a.insertQuery(),values:O.Z.mapContentToValues(j)})}),this.dbService.executeSet(U)}getRecentlyViewedContent(R){var U=this;return(0,a.A)(function*(){const j=`SELECT rvc.* ,c.*, cr.content_identifier as reaction_identifier\n FROM ${p.a.TABLE_NAME} rvc\n LEFT JOIN ${S.a.TABLE_NAME} c ON rvc.content_identifier=c.identifier \n LEFT JOIN ${m.S.TABLE_NAME} cr ON rvc.content_identifier = reaction_identifier \n where rvc.uid='${R}' ORDER BY rvc.ts DESC`,W=yield U.dbService.executeQuery(j),ie=[];return null==W||W.map(me=>{ie.push(D.mapContentRVCtoRecentlyViedContent(me,(0,C.A)()))}),Promise.resolve(ie)})()}getAllContent(){var R=this;return(0,a.A)(function*(){const j=[];return R.dbService.readDbData(`SELECT c.*, cr.content_identifier from ${S.a.TABLE_NAME} c LEFT JOIN ${m.S.TABLE_NAME} cr ON c.identifier = cr.content_identifier WHERE ${S.a.COLUMN_NAME_SOURCE} NOT IN ('local', 'dialcode') ORDER BY ${S.a.COLUMN_NAME_TIME_STAMP}`).then(W=>(W.map(ie=>{const me=JSON.parse(ie.metadata);ie.metaData=me,j.push(ie)}),Promise.resolve(j)))})()}likeContent(R,U,j){var W=this;return(0,a.A)(function*(){return j?W.dbService.readDbData(m.S.readQuery(),{content_identifier:R.metaData.identifier}).then(ie=>{const me=ie?m.S.updateQuery():m.S.insertQuery(),te=ie?{content_identifier:R.metaData.identifier,uid:U}:void 0;return W.dbService.save(me,O.Z.mapContentReactionEntry(R.metaData.identifier,"guest"),te)}):W.dbService.remove(m.S.deleteQuery(),{content_identifier:R.metaData.identifier,uid:U})})()}markContentAsViewed(R){var U=this;return(0,a.A)(function*(){return(yield U.dbService.readDbData(S.a.readQuery(),{identifier:R.metaData.identifier}))||(yield U.dbService.executeSet([{statement:S.a.insertQuery(),values:O.Z.mapContentToValues(R)}])),U.dbService.readDbData(p.a.readQuery(),{content_identifier:R.metaData.identifier}).then(W=>{const ie=W?p.a.updateQuery():p.a.insertQuery(),me=W?{identifier:R.metaData.identifier}:void 0;return U.dbService.save(ie,c.mapContentToRecentlyViewedContentEntry(R,"guest",(0,C.A)()),me)})})()}searchContentInDiksha(R){let U={request:{filters:{channel:"",primaryCategory:["Collection","Resource","Content Playlist","Course","Course Assessment","Digital Textbook","eTextbook","Explanation Content","Learning Resource","Practice Question Set","Teacher Resource","Textbook Unit","LessonPlan","FocusSpot","Learning Outcome Definition","Curiosity Questions","MarkingSchemeRubric","ExplanationResource","ExperientialResource","Practice Resource","TVLesson","Question paper"],visibility:["Default","Parent"]},limit:100,query:R,sort_by:{lastPublishedOn:"desc"},fields:["name","appIcon","mimeType","gradeLevel","identifier","medium","pkgVersion","board","subject","resourceType","primaryCategory","contentType","channel","organisation","trackable"],softConstraints:{badgeAssertions:98,channel:100},mode:"soft",facets:["se_boards","se_gradeLevels","se_subjects","se_mediums","primaryCategory"],offset:0}};const j=(new F._g.Builder).withHost("https://diksha.gov.in/").withPath("api/content/v1/search").withType(F.kr.POST).withBody(U).build();return(0,B.s)(this.apiService.fetch(j))}getCollectionHierarchy(R){const U=(new F._g.Builder).withHost("https://diksha.gov.in/action/content/v3/hierarchy/").withPath(`${R}`).withType(F.kr.GET).build();return(0,B.s)(this.apiService.fetch(U))}getContents(R){return this.searchContentInDiksha(R).then(U=>{var j;return null!==(j=U.body.result)&&void 0!==j&&null!==(j=j.content)&&void 0!==j&&j.length?this.getCollectionHierarchy(U.body.result.content[0].identifier):""}).then(U=>{this.results=[];const j=[];return U&&(this.showAllChild(U.body.result.content),this.results.map(W=>{j.push({source:"dialcode",sourceType:"Diksha",metaData:{identifier:null==W?void 0:W.identifier,name:null==W?void 0:W.name,thumbnail:null==W?void 0:W.posterImage,description:null==W?void 0:W.name,mimetype:(null==W?void 0:W.mimetype)||(null==W?void 0:W.mimeType),url:null==W?void 0:W.streamingUrl,focus:null==W?void 0:W.focus,keyword:null==W?void 0:W.keyword,domain:null==W?void 0:W.domain,curriculargoal:null==W?void 0:W.curriculargoal,competencies:null==W?void 0:W.competencies,language:null==W?void 0:W.language,category:null==W?void 0:W.category,audience:null==W?void 0:W.audience,status:null==W?void 0:W.status,createdon:null==W?void 0:W.createdOn,lastupdatedon:(null==W?void 0:W.lastupdatedon)||(null==W?void 0:W.lastUpdatedOn),artifactUrl:null==W?void 0:W.artifactUrl}})})),j}).catch(U=>{throw console.error(U),U})}showAllChild(R){let U=_.z5.VIDEOS;U.indexOf(_.z5.PDF)>-1||U.push(_.z5.PDF),void 0!==R.children&&R.children.length?R.children.forEach(j=>{this.showAllChild(j)}):U.indexOf(R.mimeType)>-1&&this.results.push(R)}readDikshaContents(R){const U=(new F._g.Builder).withHost("https://diksha.gov.in/api/content/v1/read/").withPath(`${R}`).withType(F.kr.GET).build();return(0,B.s)(this.apiService.fetch(U))}}return($=L).\u0275fac=function(R){return new(R||$)(T.KVO(A.at),T.KVO(w.G))},$.\u0275prov=T.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),L})()},742:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="content_reactions",p._ID="_id",p.COLUMN_NAME_CONTENT_IDENTIFIER="content_identifier",p.COLUMN_NAME_REACTION_IDENTIFIER="reaction_identifier",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL"+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.insertQueryWithColoumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_CONTENT_IDENTIFIER},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?)`,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p}(S||{})},532:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_SOURCE="source",p.COLUMN_NAME_SOURCE_TYPE="source_type",p.COLUMN_NAME_METADATA="metadata",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+NaN+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_METADATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_SOURCE},\n ${p.COLUMN_NAME_SOURCE_TYPE},\n ${p.COLUMN_NAME_METADATA},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?,?,?)`,p}(S||{})},5396:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="recently_viewed_content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_CONTENT_IDENTIFIER="content_identifier",p.COLUMN_NAME_CONTENT_METADATA="content_metadata",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_MIME_TYPE="mime_type",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY"+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_METADATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_MIME_TYPE+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.deleteTable=()=>"DROP TABLE IF EXISTS"+p.TABLE_NAME,p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_CONTENT_IDENTIFIER},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_CONTENT_METADATA},\n ${p.COLUMN_NAME_MIME_TYPE},\n ${p.COLUMN_NAME_TIME_STAMP}) VALUES (?,?,?,?,?,?)`,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p}(S||{})},4870:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>p});var a=E(742),S=E(532);class p{static mapContentToContentEntry(c){return{[S.a.COLUMN_NAME_IDENTIFIER]:c.metaData.identifier,[S.a.COLUMN_NAME_SOURCE]:c.source,[S.a.COLUMN_NAME_SOURCE_TYPE]:c.sourceType,[S.a.COLUMN_NAME_METADATA]:JSON.stringify(c.metaData),[S.a.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(c){return[c.metaData.identifier,c.source,c.sourceType,JSON.stringify(c.metaData),Date.now()]}static mapContentReactionEntry(c,D){return{[a.S.COLUMN_NAME_CONTENT_IDENTIFIER]:c,[a.S.COLUMN_NAME_UID]:D,[a.S.COLUMN_NAME_TIME_STAMP]:Date.now()}}}},4591:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>$});var a=E(467),S=E(5083);class p{constructor(M){this.sqlite=M,this._connectionDict=new Map}initWebStore(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.initWebStore(),Promise.resolve()}catch(R){return Promise.reject(R)}})()}saveToStore(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.saveToStore({database:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}saveToLocalDisk(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.saveToLocalDisk({database:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}getFromLocalDiskToStore(M){var R=this;return(0,a.A)(function*(){const U=null==M||M;try{return yield R.sqlite.getFromLocalDiskToStore({overwrite:U}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}echo(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.echo({value:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isSecretStored(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isSecretStored();return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}setEncryptionSecret(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.setEncryptionSecret({passphrase:M}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}changeEncryptionSecret(M,R){var U=this;return(0,a.A)(function*(){try{return yield U.sqlite.changeEncryptionSecret({passphrase:M,oldpassphrase:R}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}clearEncryptionSecret(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.clearEncryptionSecret(),Promise.resolve()}catch(R){return Promise.reject(R)}})()}checkEncryptionSecret(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.checkEncryptionSecret({passphrase:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}addUpgradeStatement(M,R){var U=this;return(0,a.A)(function*(){try{return M.endsWith(".db")&&(M=M.slice(0,-3)),yield U.sqlite.addUpgradeStatement({database:M,upgrade:R}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}createConnection(M,R,U,j,W){var ie=this;return(0,a.A)(function*(){try{M.endsWith(".db")&&(M=M.slice(0,-3)),yield ie.sqlite.createConnection({database:M,encrypted:R,mode:U,version:j,readonly:W});const me=new O(M,W,ie.sqlite);return ie._connectionDict.set(W?`RO_${M}`:`RW_${M}`,me),Promise.resolve(me)}catch(me){return Promise.reject(me)}})()}closeConnection(M,R){var U=this;return(0,a.A)(function*(){try{return M.endsWith(".db")&&(M=M.slice(0,-3)),yield U.sqlite.closeConnection({database:M,readonly:R}),U._connectionDict.delete(R?`RO_${M}`:`RW_${M}`),Promise.resolve()}catch(j){return Promise.reject(j)}})()}isConnection(M,R){var U=this;return(0,a.A)(function*(){const j={};return M.endsWith(".db")&&(M=M.slice(0,-3)),j.result=U._connectionDict.has(R?`RO_${M}`:`RW_${M}`),Promise.resolve(j)})()}retrieveConnection(M,R){var U=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));const j=R?`RO_${M}`:`RW_${M}`;if(U._connectionDict.has(j)){const W=U._connectionDict.get(j);return typeof W<"u"?Promise.resolve(W):Promise.reject(`Connection ${M} is undefined`)}return Promise.reject(`Connection ${M} does not exist`)})()}getNCDatabasePath(M,R){var U=this;return(0,a.A)(function*(){try{const j=yield U.sqlite.getNCDatabasePath({path:M,database:R});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}createNCConnection(M,R){var U=this;return(0,a.A)(function*(){try{yield U.sqlite.createNCConnection({databasePath:M,version:R});const j=new O(M,!0,U.sqlite);return U._connectionDict.set(`RO_${M})`,j),Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}closeNCConnection(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.closeNCConnection({databasePath:M}),R._connectionDict.delete(`RO_${M})`),Promise.resolve()}catch(U){return Promise.reject(U)}})()}isNCConnection(M){var R=this;return(0,a.A)(function*(){const U={};return U.result=R._connectionDict.has(`RO_${M})`),Promise.resolve(U)})()}retrieveNCConnection(M){var R=this;return(0,a.A)(function*(){if(R._connectionDict.has(M)){const j=R._connectionDict.get(`RO_${M})`);return typeof j<"u"?Promise.resolve(j):Promise.reject(`Connection ${M} is undefined`)}return Promise.reject(`Connection ${M} does not exist`)})()}isNCDatabase(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.isNCDatabase({databasePath:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}retrieveAllConnections(){var M=this;return(0,a.A)(function*(){return M._connectionDict})()}closeAllConnections(){var M=this;return(0,a.A)(function*(){const R=new Map;try{for(const U of M._connectionDict.keys()){const j=U.substring(3),W="RO_"===U.substring(0,3);yield M.sqlite.closeConnection({database:j,readonly:W}),R.set(U,null)}for(const U of R.keys())M._connectionDict.delete(U);return Promise.resolve()}catch(U){return Promise.reject(U)}})()}checkConnectionsConsistency(){var M=this;return(0,a.A)(function*(){try{const R=[...M._connectionDict.keys()],U=[],j=[];for(const ie of R)U.push(ie.substring(0,2)),j.push(ie.substring(3));const W=yield M.sqlite.checkConnectionsConsistency({dbNames:j,openModes:U});return W.result||(M._connectionDict=new Map),Promise.resolve(W)}catch(R){return M._connectionDict=new Map,Promise.reject(R)}})()}importFromJson(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.importFromJson({jsonstring:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isJsonValid(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.isJsonValid({jsonstring:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}copyFromAssets(M){var R=this;return(0,a.A)(function*(){const U=null==M||M;try{return yield R.sqlite.copyFromAssets({overwrite:U}),Promise.resolve()}catch(j){return Promise.reject(j)}})()}getFromHTTPRequest(M,R){var U=this;return(0,a.A)(function*(){const j=null==R||R;try{return yield U.sqlite.getFromHTTPRequest({url:M,overwrite:j}),Promise.resolve()}catch(W){return Promise.reject(W)}})()}isDatabaseEncrypted(M){var R=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));try{const U=yield R.sqlite.isDatabaseEncrypted({database:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isInConfigEncryption(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isInConfigEncryption();return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}isInConfigBiometricAuth(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isInConfigBiometricAuth();return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}isDatabase(M){var R=this;return(0,a.A)(function*(){M.endsWith(".db")&&(M=M.slice(0,-3));try{const U=yield R.sqlite.isDatabase({database:M});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}getDatabaseList(){var M=this;return(0,a.A)(function*(){try{const U=(yield M.sqlite.getDatabaseList()).values;return U.sort(),Promise.resolve({values:U})}catch(R){return Promise.reject(R)}})()}getMigratableDbList(M){var R=this;return(0,a.A)(function*(){const U=M||"default";try{const j=yield R.sqlite.getMigratableDbList({folderPath:U});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}addSQLiteSuffix(M,R){var U=this;return(0,a.A)(function*(){const j=M||"default",W=R||[];try{const ie=yield U.sqlite.addSQLiteSuffix({folderPath:j,dbNameList:W});return Promise.resolve(ie)}catch(ie){return Promise.reject(ie)}})()}deleteOldDatabases(M,R){var U=this;return(0,a.A)(function*(){const j=M||"default",W=R||[];try{const ie=yield U.sqlite.deleteOldDatabases({folderPath:j,dbNameList:W});return Promise.resolve(ie)}catch(ie){return Promise.reject(ie)}})()}moveDatabasesAndAddSuffix(M,R){var U=this;return(0,a.A)(function*(){return U.sqlite.moveDatabasesAndAddSuffix({folderPath:M||"default",dbNameList:R||[]})})()}}class O{constructor(M,R,U){this.dbName=M,this.readonly=R,this.sqlite=U}getConnectionDBName(){return this.dbName}getConnectionReadOnly(){return this.readonly}open(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.open({database:M.dbName,readonly:M.readonly}),Promise.resolve()}catch(R){return Promise.reject(R)}})()}close(){var M=this;return(0,a.A)(function*(){try{return yield M.sqlite.close({database:M.dbName,readonly:M.readonly}),Promise.resolve()}catch(R){return Promise.reject(R)}})()}beginTransaction(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.beginTransaction({database:M.dbName});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}commitTransaction(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.commitTransaction({database:M.dbName});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}rollbackTransaction(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.rollbackTransaction({database:M.dbName});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}isTransactionActive(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isTransactionActive({database:M.dbName});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}loadExtension(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.loadExtension({database:R.dbName,path:M,readonly:R.readonly}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}enableLoadExtension(M){var R=this;return(0,a.A)(function*(){try{return yield R.sqlite.enableLoadExtension({database:R.dbName,toggle:M,readonly:R.readonly}),Promise.resolve()}catch(U){return Promise.reject(U)}})()}getUrl(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.getUrl({database:M.dbName,readonly:M.readonly});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}getVersion(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.getVersion({database:M.dbName,readonly:M.readonly});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}getTableList(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.getTableList({database:M.dbName,readonly:M.readonly});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}execute(M,R=!0,U=!0){var j=this;return(0,a.A)(function*(){try{if(j.readonly)return Promise.reject("not allowed in read-only mode");{const W=yield j.sqlite.execute({database:j.dbName,statements:M,transaction:R,readonly:!1,isSQL92:U});return Promise.resolve(W)}}catch(W){return Promise.reject(W)}})()}query(M,R,U=!0){var j=this;return(0,a.A)(function*(){let W;try{return W=R&&R.length>0?yield j.sqlite.query({database:j.dbName,statement:M,values:R,readonly:j.readonly,isSQL92:!0}):yield j.sqlite.query({database:j.dbName,statement:M,values:[],readonly:j.readonly,isSQL92:U}),W=yield j.reorderRows(W),Promise.resolve(W)}catch(ie){return Promise.reject(ie)}})()}run(M,R,U=!0,j="no",W=!0){var ie=this;return(0,a.A)(function*(){let me;try{return ie.readonly?Promise.reject("not allowed in read-only mode"):(me=R&&R.length>0?yield ie.sqlite.run({database:ie.dbName,statement:M,values:R,transaction:U,readonly:!1,returnMode:j,isSQL92:!0}):yield ie.sqlite.run({database:ie.dbName,statement:M,values:[],transaction:U,readonly:!1,returnMode:j,isSQL92:W}),me.changes=yield ie.reorderRows(me.changes),Promise.resolve(me))}catch(te){return Promise.reject(te)}})()}executeSet(M,R=!0,U="no",j=!0){var W=this;return(0,a.A)(function*(){let ie;try{return W.readonly?Promise.reject("not allowed in read-only mode"):(ie=yield W.sqlite.executeSet({database:W.dbName,set:M,transaction:R,readonly:!1,returnMode:U,isSQL92:j}),ie.changes=yield W.reorderRows(ie.changes),Promise.resolve(ie))}catch(me){return Promise.reject(me)}})()}isExists(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isDBExists({database:M.dbName,readonly:M.readonly});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}isTable(M){var R=this;return(0,a.A)(function*(){try{const U=yield R.sqlite.isTableExists({database:R.dbName,table:M,readonly:R.readonly});return Promise.resolve(U)}catch(U){return Promise.reject(U)}})()}isDBOpen(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.isDBOpen({database:M.dbName,readonly:M.readonly});return Promise.resolve(R)}catch(R){return Promise.reject(R)}})()}delete(){var M=this;return(0,a.A)(function*(){try{return M.readonly?Promise.reject("not allowed in read-only mode"):(yield M.sqlite.deleteDatabase({database:M.dbName,readonly:!1}),Promise.resolve())}catch(R){return Promise.reject(R)}})()}createSyncTable(){var M=this;return(0,a.A)(function*(){try{if(M.readonly)return Promise.reject("not allowed in read-only mode");{const R=yield M.sqlite.createSyncTable({database:M.dbName,readonly:!1});return Promise.resolve(R)}}catch(R){return Promise.reject(R)}})()}setSyncDate(M){var R=this;return(0,a.A)(function*(){try{return R.readonly?Promise.reject("not allowed in read-only mode"):(yield R.sqlite.setSyncDate({database:R.dbName,syncdate:M,readonly:!1}),Promise.resolve())}catch(U){return Promise.reject(U)}})()}getSyncDate(){var M=this;return(0,a.A)(function*(){try{const R=yield M.sqlite.getSyncDate({database:M.dbName,readonly:M.readonly});let U="";return R.syncDate>0&&(U=new Date(1e3*R.syncDate).toISOString()),Promise.resolve(U)}catch(R){return Promise.reject(R)}})()}exportToJson(M,R=!1){var U=this;return(0,a.A)(function*(){try{const j=yield U.sqlite.exportToJson({database:U.dbName,jsonexportmode:M,readonly:U.readonly,encrypted:R});return Promise.resolve(j)}catch(j){return Promise.reject(j)}})()}deleteExportedRows(){var M=this;return(0,a.A)(function*(){try{return M.readonly?Promise.reject("not allowed in read-only mode"):(yield M.sqlite.deleteExportedRows({database:M.dbName,readonly:!1}),Promise.resolve())}catch(R){return Promise.reject(R)}})()}executeTransaction(M,R=!0){var U=this;return(0,a.A)(function*(){let j=0,W=!1;if(U.readonly)return Promise.reject("not allowed in read-only mode");if(yield U.sqlite.beginTransaction({database:U.dbName}),W=yield U.sqlite.isTransactionActive({database:U.dbName}),!W)return Promise.reject("After Begin Transaction, no transaction active");try{for(const te of M){if("object"!=typeof te||!("statement"in te))throw new Error("Error a task.statement must be provided");if("values"in te&&te.values&&te.values.length>0){const se=te.statement.toUpperCase().includes("RETURNING")?"all":"no",g=yield U.sqlite.run({database:U.dbName,statement:te.statement,values:te.values,transaction:!1,readonly:!1,returnMode:se,isSQL92:R});if(g.changes.changes<0)throw new Error("Error in transaction method run ");j+=g.changes.changes}else{const se=yield U.sqlite.execute({database:U.dbName,statements:te.statement,transaction:!1,readonly:!1});if(se.changes.changes<0)throw new Error("Error in transaction method execute ");j+=se.changes.changes}}return j+=(yield U.sqlite.commitTransaction({database:U.dbName})).changes.changes,Promise.resolve({changes:{changes:j}})}catch(ie){const me=ie.message?ie.message:ie;return yield U.sqlite.rollbackTransaction({database:U.dbName}),Promise.reject(me)}})()}reorderRows(M){return(0,a.A)(function*(){const R=M;if(null!=M&&M.values&&"object"==typeof M.values[0]&&Object.keys(M.values[0]).includes("ios_columns")){const U=M.values[0].ios_columns,j=[];for(let W=1;WE.e(4612).then(E.bind(E,4612)).then(L=>new L.CapacitorSQLiteWeb),electron:()=>window.CapacitorCustomPlatform.plugins.CapacitorSQLite});var D=E(56),C=E(1503),_=E(2798),F=E(5396),B=E(2814),m=E(532),T=E(5870),A=E(742),w=E(4999),P=E(4438);let $=(()=>{var L;class M{constructor(){}initializePlugin(){var U=this;return(0,a.A)(function*(){return U.platform=S.Ii.getPlatform(),U.sqlitePlugin=c,U.sqliteConnection=new p(U.sqlitePlugin),"web"===U.platform&&(yield U.initWebStore()),yield U.openDatabase(D.B$.dbName,!1,"no-encryption",D.B$.version,!1),yield U.createTable(B.C.getCreateEntry()),yield U.createTable(T.K.getCreateEntry()),yield U.createTable(m.a.getCreateEntry()),yield U.createTable(F.a.getCreateEntry()),yield U.createTable(_.J.getCreateEntry()),yield U.createTable(C.y.getCreateEntry()),yield U.createTable(A.S.getCreateEntry()),yield U.createTable(w.O.getCreateEntry()),!0})()}initWebStore(){var U=this;return(0,a.A)(function*(){try{yield U.sqliteConnection.initWebStore()}catch(j){return Promise.reject(`initWebStore: ${j}`)}})()}openDatabase(U,j,W,ie,me){var te=this;return(0,a.A)(function*(){let se;const g=(yield te.sqliteConnection.checkConnectionsConsistency()).result;let n=(yield te.sqliteConnection.isConnection(U,me)).result;return se=g&&n?yield te.sqliteConnection.retrieveConnection(U,me):yield te.sqliteConnection.createConnection(U,j,W,ie,me),yield se.open(),te.sqliteDBConnection=se,!0})()}closeConnection(U,j){var W=this;return(0,a.A)(function*(){const ie=j||!1;return yield W.sqliteConnection.closeConnection(U,ie)})()}createTable(U){var j=this;return(0,a.A)(function*(){try{const W=(yield j.sqliteDBConnection.query(U)).values;return W.length>0?W:null}catch(W){return Promise.reject(`create table err: ${W.message?W.message:W}`)}})()}executeQuery(U){var j=this;return(0,a.A)(function*(){try{const W=(yield j.sqliteDBConnection.query(U)).values;return W.length>0?W:null}catch(W){return Promise.reject(`select table err: ${W.message?W.message:W}`)}})()}executeSet(U){var j=this;return(0,a.A)(function*(){try{return yield j.sqliteDBConnection.executeSet(U)}catch(W){return Promise.reject(`create table err: ${W.message?W.message:W}`)}})()}readDbData(U,j,W){var ie=this;return(0,a.A)(function*(){try{if(j){const me=Object.keys(j)[0],te=`${U} WHERE ${me}='${j[me]}' ${W||""}`,se=(yield ie.sqliteDBConnection.query(te)).values;return se.length>0?se:null}{const me=(yield ie.sqliteDBConnection.query(U)).values;return me.length>0?me:null}}catch(me){return Promise.reject(`readDbData err: ${me.message?me.message:me}`)}})()}save(U,j,W){var ie=this;return(0,a.A)(function*(){const me=!!W,te=Object.keys(j);let n,se="",g=[];for(const o of te)g.push(j[o]);if(me){Object.keys(W);const l=yield ie.setNameForUpdate(te,g);if(0===l.length)return Promise.reject("save: update no SET");se=`${U} ${l} WHERE ${ie.getWhereStatement(W)}`,yield ie.sqliteDBConnection.query(se)}else{const o=[];for(const l of te)o.push("?");if(se=`${U} (${te.toString()}) VALUES (${o.toString()});`,n=yield ie.sqliteDBConnection.run(se,g),1!=n.changes.changes)return Promise.reject("save: insert changes != 1")}})()}remove(U,j){var W=this;return(0,a.A)(function*(){Object.keys(j);const me=`${U} WHERE ${W.getWhereStatement(j)};`;return(yield W.sqliteDBConnection.run(me)).changes})()}getWhereStatement(U){let j="";const W=Object.keys(U);for(let ie=0;ie1?(W=W.slice(0,-1),W):Promise.reject("SetNameForUpdate: length = 0")})()}}return(L=M).\u0275fac=function(U){return new(U||L)},L.\u0275prov=P.jDH({token:L,factory:L.\u0275fac,providedIn:"root"}),M})()},2814:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="telemtry",p._ID="_id",p.COLUMN_EVENT_TYPE="event_type",p.COLUMN_EVENT="event",p.COLUMN_TIMESTAMP="timestamp",p.COLUMN_PRIORITY="priority",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL"+a.K.COMMA_SEP+p.COLUMN_EVENT_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_EVENT+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_TIMESTAMP+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_PRIORITY+a.K.SPACE+a.K.INT_TYPE+")",p.readDataEntries=()=>"SELECT * FROM "+p.TABLE_NAME,p.delteFromTable=()=>"DELETE FROM "+p.TABLE_NAME+" WHERE ",p.insertData=()=>"INSERT INTO "+p.TABLE_NAME,p.update=()=>"UPDATE "+p.TABLE_NAME+" SET ",p.deleteTable=()=>"DROP TABLE IF EXISTS "+p.TABLE_NAME,p}(S||{})},8402:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>D});var a=E(467),S=E(2739),p=E(4438),O=E(8974),c=E(5402);let D=(()=>{var C;class _{constructor(B,m){this.toastController=B,this.translate=m}downlaodContent(B){var m=this;return(0,a.A)(function*(){var T;m.presentToast("Downloading ....");let A=B.metaData.artifactUrl?B.metaData.artifactUrl.split("/"):B.metaData.url.split("/"),w=null!==(T=B.metaData.artifactUrl)&&void 0!==T?T:B.metaData.url;const $=yield(yield fetch(w)).blob(),L=yield m.convertBlobToBase64($);try{return yield S.YA.mkdir({path:"downloadedContents",directory:S.__.Data}),yield m.writeFileStorage(A,L)}catch{return yield m.writeFileStorage(A,L)}})()}writeFileStorage(B,m){var T=this;return(0,a.A)(function*(){try{let A=yield S.YA.writeFile({path:`downloadedContents/${B[B.length-1]}`,data:m,directory:S.__.Data});return yield T.toast.dismiss(),A.uri?yield T.presentToast("Downloaded successfully"):yield T.presentToast("Failed to download"),setTimeout((0,a.A)(function*(){yield T.toast.dismiss()}),100),A}catch(A){console.log("e ",A)}})()}presentToast(B){var m=this;return(0,a.A)(function*(){m.toast=yield m.toastController.create({message:m.translate.instant(B),position:"bottom",color:"dark"}),yield m.toast.present()})()}convertBlobToBase64(B){return new Promise((m,T)=>{const A=new FileReader;A.onerror=T,A.onload=()=>{m(A.result)},A.readAsDataURL(B)})}}return(C=_).\u0275fac=function(B){return new(B||C)(p.KVO(O.K_),p.KVO(c.c$))},C.\u0275prov=p.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),_})()},2904:(Ce,ee,E)=>{"use strict";E.d(ee,{Gf:()=>C.G,Ux:()=>c.U,F_:()=>o,dk:()=>w.d,we:()=>_.w,at:()=>S.a,XU:()=>A,Ze:()=>l.Z,MK:()=>f,hs:()=>F.h,XI:()=>P.X,Sc:()=>$.S,n$:()=>a.n,q4:()=>B.q,H0:()=>O.H,a0:()=>D.a});var a=E(3486),S=E(4591),O=(E(6011),E(1765)),c=E(3568),D=E(2342),C=E(2700),_=E(3696),F=E(8014),B=E(7594),m=E(467),T=E(4438);let A=(()=>{var k;class I{constructor(J,oe){this.apiService=J,this.preprocessService=oe}process(J){return(0,m.A)(function*(){})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(C.G),T.KVO(F.h))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})();var w=E(3871),P=E(9836),$=E(2186),L=E(3172),M=E(985),R=E(3207),U=E(6354),j=E(9437),W=E(56),ie=E(4999);class me{static mapChatToChatValues(I){return[I.identifier,I.message,I.botType,I.fromMe,I.mediaMimeType,I.mediaData,I.mediaUrl,I.duration,I.ts,I.reaction]}static mapChatToChatEntryToModel(I){return{identifier:I[ie.O.COLUMN_NAME_IDENTIFIER],message:I[ie.O.COLUMN_NAME_MESSAGE],messageType:I[ie.O.COLUMN_NAME_MEDIA_TYPE],botType:I[ie.O.COLUMN_NAME_BOT_TYPE],fromMe:I[ie.O.COLUMN_NAME_FROM_ME],mediaMimeType:I[ie.O.COLUMN_NAME_MEDIA_TYPE],mediaData:I[ie.O.COLUMN_NAME_MEDIA_DATA],mediaUrl:I[ie.O.COLUMN_NAME_MEDIA_PATH],duration:I[ie.O.COLUMN_NAME_DURATION],ts:I[ie.O.COLUMN_NAME_TIME_STAMP],reaction:I[ie.O.COLUMN_NAME_REACTIONS]}}}var te=E(2739),se=E(1626),g=E(446),n=E(5402);let o=(()=>{var k;class I{constructor(J,oe,ve){this.apiService=J,this.translate=oe,this.dbService=ve,g.g.then(De=>{this.domainConfig=De}).catch(De=>{console.error("Failed to load configuration:",De)})}getBotMessage(J,oe,ve,De){var Q=this;return(0,m.A)(function*(){let ae=Q.getBotApiPath(ve),tt={input:{},output:{format:J?"text":"audio"}};""!==J?tt.input={language:De,text:J,audio:"",context:localStorage.getItem("subDomain")+"_"+ve}:""!==oe&&(tt.input={language:De,audio:oe,text:"",context:localStorage.getItem("subDomain")+"_"+ve});let ke=(new se.Lr).set("Authorization","Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtb2JpbGVfZGV2aWNlIn0.W9cvngZh0_Y6hcGCBqS8MZOejkUxU9ptnJFji6VBHtA").set("Content-Type","application/json");const pe=ke.keys().reduce((_e,re)=>(_e[re]=ke.getAll(re),_e),{}),Ie=(new M._g.Builder).withHost(L.$.api.BASE_URL_BOT).withPath(ae).withType(M.kr.POST).withHeaders(pe).withBody(tt).withLanguge(De).build();return(0,R.s)(Q.apiService.fetch(Ie).pipe((0,U.T)(_e=>_e),(0,j.W)(_e=>{throw _e})))})()}getBotApiPath(J){switch(J){case W.Zm.STORY:case W.Zm.PARENT:case W.Zm.TEACHER:return L.$.api.BOT_ACTIVITY_API_PATH;default:return""}}saveChatMessage(J){const oe=[];return oe.push({statement:ie.O.insertQueryWithColumns(),values:me.mapChatToChatValues(J)}),this.dbService.executeSet(oe)}getAllChatMessages(J){return this.dbService.readDbData(ie.O.readQuery(),{bot_type:J}).then(oe=>{const ve=[];return oe&&oe.length>0&&oe.map(De=>{ve.push(me.mapChatToChatEntryToModel(De))}),ve})}updateMessageReactions(J,oe){return this.dbService.executeQuery(`UPDATE ${ie.O.TABLE_NAME}\n SET ${ie.O.COLUMN_NAME_REACTIONS} = ${oe}\n WHERE ${ie.O.COLUMN_NAME_IDENTIFIER} = '${J}';`)}deleteExpiredChatMessages(){var J=this;return(0,m.A)(function*(){const oe=yield te.YA.readdir({path:"",directory:te.__.Data});for(let ve=0;ve864e5&&(yield te.YA.deleteFile({path:De.uri,directory:te.__.Data})),J.dbService.executeQuery(`DELETE FROM ${ie.O.TABLE_NAME} WHERE ${ie.O.COLUMN_NAME_TIME_STAMP} <= strftime('%s', datetime('now', '-1 day'));`)}})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(C.G),T.KVO(n.c$),T.KVO(S.a))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})();var l=E(8402);const v=(0,E(5083).F3)("LocalNotifications",{web:()=>E.e(4224).then(E.bind(E,4224)).then(k=>new k.LocalNotificationsWeb)});var y=E(1413),d=E(3021),r=E(1113);let f=(()=>{var k;class I{constructor(J,oe){this.router=J,this.tabService=oe,this.notifEvent=new y.B,this.notificationEventEmitted$=this.notifEvent.asObservable()}initializeLocalNotif(J){var oe=this;return(0,m.A)(function*(){let ve=oe;try{var De,Q,ae,tt;"granted"!==(yield v.checkPermissions()).display&&(yield v.requestPermissions());let Ie={notifications:[{id:J.id,title:J.title,body:J.body,extra:J.extra,largeIcon:"res://drawable/ic_launcher",smallIcon:"res://drawable/ic_notification",schedule:{on:null===(De=J.schedule)||void 0===De?void 0:De.on,repeats:null===(Q=J.schedule)||void 0===Q?void 0:Q.repeats,every:null===(ae=J.schedule)||void 0===ae?void 0:ae.every,allowWhileIdle:null===(tt=J.schedule)||void 0===tt?void 0:tt.allowWhileIdle}}]};yield v.schedule(Ie)}catch(ke){console.log("Error on local notification ",ke)}yield v.addListener("localNotificationActionPerformed",function(){var ke=(0,m.A)(function*(pe){let Ie=ve.router.location._locationStrategy._platformLocation._location;"/parent-sakhi"!==Ie.pathname?(ve.tabService.hide(),"/"===Ie.pathname?setTimeout((0,m.A)(function*(){yield ve.router.navigate(["/parent-sakhi"],{state:{notif:pe.notification}})}),3e3):yield ve.router.navigate(["/parent-sakhi"],{state:{notif:pe.notification}})):oe.notifEvent.next(pe.notification)});return function(pe){return ke.apply(this,arguments)}}())})()}cancelNotification(J){return(0,m.A)(function*(){try{yield v.cancel({notifications:[{id:J}]})}catch(oe){console.log("Error on cancel local notification ",oe)}})()}}return(k=I).\u0275fac=function(J){return new(J||k)(T.KVO(d.Ix),T.KVO(r.q))},k.\u0275prov=T.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})()},1503:(Ce,ee,E)=>{"use strict";E.d(ee,{y:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="playlist_content",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_PLAYLIST_IDENTIFIER="playlist_identifier",p.COLUMN_NAME_CONTENT_ID="content_id",p.COLUMN_NAME_CONTENT_METADATA="content_metadata",p.COLUMN_NAME_SOURCE_TYPE="type",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_PLAYLIST_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_ID+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_METADATA+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_SOURCE_TYPE+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_PLAYLIST_IDENTIFIER},\n ${p.COLUMN_NAME_CONTENT_ID},\n ${p.COLUMN_NAME_CONTENT_METADATA},\n ${p.COLUMN_NAME_SOURCE_TYPE},\n ${p.COLUMN_NAME_TIME_STAMP}) \n VALUES (?,?,?,?,?,?)`,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.deleteQuery=()=>`DELETE FROM ${p.TABLE_NAME} WHERE \n ${p.COLUMN_NAME_IDENTIFIER} = ? AND \n ${p.COLUMN_NAME_PLAYLIST_IDENTIFIER} = ?`,p.deleteQueryOne=()=>`DELETE FROM ${p.TABLE_NAME}`,p.deleteTable=()=>"DROP TABLE IF EXISTS"+p.TABLE_NAME,p}(S||{})},2798:(Ce,ee,E)=>{"use strict";E.d(ee,{J:()=>S});var a=E(56),S=function(p){return p.TABLE_NAME="playlist",p._ID="_id",p.COLUMN_NAME_IDENTIFIER="identifier",p.COLUMN_NAME_NAME="name",p.COLUMN_NAME_UID="uid",p.COLUMN_NAME_CONTENT_COUNT="content_count",p.COLUMN_NAME_TIME_STAMP="ts",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY "+a.K.COMMA_SEP+p.COLUMN_NAME_IDENTIFIER+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_UID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_NAME+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_CONTENT_COUNT+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_TIME_STAMP+a.K.SPACE+a.K.TEXT_TYPE+" )",p.insertQueryWithColumns=()=>`INSERT INTO ${p.TABLE_NAME}(\n ${p.COLUMN_NAME_IDENTIFIER},\n ${p.COLUMN_NAME_NAME},\n ${p.COLUMN_NAME_UID},\n ${p.COLUMN_NAME_CONTENT_COUNT},\n ${p.COLUMN_NAME_TIME_STAMP}) \n VALUES (?,?,?,?,?)`,p.readQuery=()=>"SELECT * FROM "+p.TABLE_NAME,p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.updateQuery=()=>`UPDATE ${p.TABLE_NAME} SET`,p.deleteQuery=()=>"DELETE FROM "+p.TABLE_NAME,p}(S||{})},7803:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>B});var a=E(467),S=E(2798);class p{static mapContentToPlayListEntry(T,A,w,P){return{[S.J.COLUMN_NAME_IDENTIFIER]:w,[S.J.COLUMN_NAME_NAME]:T,[S.J.COLUMN_NAME_UID]:A,[S.J.COLUMN_NAME_CONTENT_COUNT]:P,[S.J.COLUMN_NAME_TIME_STAMP]:Date.now()}}static mapContentToValues(T,A,w,P,$){return[T,A,w,$,P,Date.now()]}}var O=E(6421),c=E(1503),D=E(532),C=E(4870),_=E(4438),F=E(2904);let B=(()=>{var m;class T{constructor(w){this.dbService=w}createPlayList(w,P,$,L){const M=L?S.J.updateQuery():S.J.insertQuery(),R=L?{identifier:L}:void 0,U=!!L;return L||(L=(0,O.A)()),this.dbService.save(M,p.mapContentToPlayListEntry(w,P,L,$.length),R).then(()=>this.addContentToPlayList(L,$,U))}addContentToPlayList(w,P,$){var L=this;return(0,a.A)(function*(){const M=[];for(let j=0;jthis.getPlayListContents(w).then($=>Promise.resolve({identifier:P[0].identifier,name:P[0].name,uid:P[0].uid,playListcontentList:$})))}getPlayListContents(w){return this.dbService.executeQuery(`SELECT *\n FROM ${c.y.TABLE_NAME}\n WHERE ${c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER} = '${w}'\n ORDER BY ts DESC`).then($=>{const L=[];return $&&$.length&&$.map(M=>{L.push({[c.y._ID]:M[c.y._ID],[c.y.COLUMN_NAME_IDENTIFIER]:M[c.y.COLUMN_NAME_IDENTIFIER],[c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER]:M[c.y.COLUMN_NAME_PLAYLIST_IDENTIFIER],[c.y.COLUMN_NAME_CONTENT_ID]:M[c.y.COLUMN_NAME_CONTENT_ID],[c.y.COLUMN_NAME_CONTENT_METADATA]:M[c.y.COLUMN_NAME_CONTENT_METADATA],[c.y.COLUMN_NAME_SOURCE_TYPE]:M[c.y.COLUMN_NAME_SOURCE_TYPE],[c.y.COLUMN_NAME_TIME_STAMP]:M[c.y.COLUMN_NAME_TIME_STAMP]})}),L})}deletePlayList(w){return this.dbService.remove(S.J.deleteQuery(),{identifier:w}).then(()=>this.dbService.remove(c.y.deleteQueryOne(),{playlist_identifier:w}))}deleteContentFromPlayList(w,P){const $=[];return P.map(L=>{$.push({statement:c.y.deleteQuery(),values:[L,w]})}),this.dbService.executeSet($)}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.at))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},9836:(Ce,ee,E)=>{"use strict";E.d(ee,{X:()=>F});var a=E(467),S=E(5293),p=E(5083),O=E(9182);const c=(0,p.F3)("Haptics",{web:()=>E.e(3558).then(E.bind(E,3558)).then(B=>new B.HapticsWeb)});var D=E(1413),C=E(4438),_=E(8974);let F=(()=>{var B;class m{constructor(A){this.gestureCtrl=A,this.searchEvent=new D.B,this.searchEventRecorded$=this.searchEvent.asObservable(),this.botEvent=new D.B,this.botEventRecorded$=this.botEvent.asObservable(),this.recordEvent=new D.B,this.startEndEvent$=this.recordEvent.asObservable(),this.recording=!1,this.cancelRecording=!1,this.duration=0,this.durationDisplay=""}ngOnInit(){}gestureControl(A){this.gestureCtrl.create({el:A.nativeElement,threshold:250,gestureName:"swipe",direction:"x",onStart:P=>{console.log("swipe left start ",P),c.impact({style:O.kn.Light})},onMove:P=>{c.impact({style:O.kn.Light}),this.recordEvent.next(!1),this.cancelRecording=!0},onEnd:P=>{console.log("swipe left end ",P),c.impact({style:O.kn.Light}),this.recording=!1,this.recordEvent.next(!1)}},!0).enable()}startRecognition(A){var w=this;return(0,a.A)(function*(){w.cancelRecording=!1,S.R.startRecording(),c.impact({style:O.kn.Light}),!w.recording&&(w.recording=!0,w.calculation(A),w.recordEvent.next(!0))})()}calculation(A){if(!this.recording)return this.duration=0,void(this.durationDisplay="");this.duration+=1;const w=Math.floor(this.duration/60),P=(this.duration%60).toString().padStart(2,"0");this.durationDisplay=`${w}:${P}`,setTimeout(()=>{this.calculation(A)},1e3)}stopRecognition(A){var w=this;return(0,a.A)(function*(){if(c.impact({style:O.kn.Light}),w.recordEvent.next(!1),w.recording)return yield S.R.stopRecording().then(function(){var P=(0,a.A)(function*($){if(w.recording=!1,!w.cancelRecording)return"search"==A?$.value.recordDataBase64:$});return function($){return P.apply(this,arguments)}}())})()}}return(B=m).\u0275fac=function(A){return new(A||B)(C.KVO(_.wH))},B.\u0275prov=C.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}),m})()},2186:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>B});var a=E(467),S=E(3207),p=E(6354),O=E(9437),c=E(3172),D=E(985),C=E(446),_=E(4438),F=E(2700);let B=(()=>{var m;class T{constructor(w){this.apiService=w,C.g.then(P=>{this.configVariables=P}).catch(P=>{console.error("Failed to load configuration:",P)})}postSearchContext(w,P){var $=this;return(0,a.A)(function*(){let L={};L=P?{audio:w.text,language:w.currentLang,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}}:{name:w.text,language:w.currentLang,request:{orderBy:{mimetype:"video/x-youtube"},filters:$.configVariables.defaultContentFilter[0]}};let M=JSON.stringify(L);console.log("body ",M);const R=(new D._g.Builder).withHost(c.$.api.BASE_URL).withPath(c.$.api.CONTENT_SEARCH_API).withType(D.kr.POST).withBody(M).withBearerToken(!0).withLanguge(w.currentLang).build();return(0,S.s)($.apiService.fetch(R).pipe((0,p.T)(U=>U.body),(0,O.W)(U=>{throw U})))})()}postContentSearch(w,P){let $={name:null==w?void 0:w.name,category:null==w?void 0:w.category,language:P,request:{orderBy:{mimetype:"video/x-youtube"},filters:this.configVariables.defaultContentFilter[0]}};const L=(new D._g.Builder).withHost(c.$.api.BASE_URL).withPath(c.$.api.CONTENT_SEARCH_API).withType(D.kr.POST).withBody($).withBearerToken(!0).withLanguge(P).build();return(0,S.s)(this.apiService.fetch(L).pipe((0,p.T)(M=>M.body.result),(0,O.W)(M=>{throw M})))}}return(m=T).\u0275fac=function(w){return new(w||m)(_.KVO(F.G))},m.\u0275prov=_.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},8014:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>p});var a=E(1413),S=E(4438);let p=(()=>{var O;class c{constructor(){this.sourceEvent=new a.B,this.sourceProcessEmitted$=this.sourceEvent.asObservable()}sunbirdSrcProcess(C){this.contentConfig=[],C.forEach(_=>{this.contentConfig.push(_)}),console.log("contentconfig ",this.contentConfig),this.sourceEvent.next(this.contentConfig)}}return(O=c).\u0275fac=function(C){return new(C||O)},O.\u0275prov=S.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),c})()},7594:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>c});var a=E(467),S=E(4438),p=E(2700),O=E(8014);let c=(()=>{var D;class C{constructor(F,B){this.apiService=F,this.preprocessService=B}process(F,B){return(0,a.A)(function*(){})()}}return(D=C).\u0275fac=function(F){return new(F||D)(S.KVO(p.G),S.KVO(O.h))},D.\u0275prov=S.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},3486:(Ce,ee,E)=>{"use strict";E.d(ee,{n:()=>c});var a=E(467);const p=(0,E(5083).F3)("Preferences",{web:()=>E.e(2924).then(E.bind(E,2924)).then(D=>new D.PreferencesWeb)});var O=E(4438);let c=(()=>{var D;class C{constructor(){}setData(F,B){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.set({key:F,value:B}).then(m=>!0).catch(m=>m)})()}getData(F){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.get({key:F}).then(B=>B.value).catch(B=>B)})()}removeData(F){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.remove({key:F}).then(B=>!0).catch(B=>B)})()}getStorageKeys(){return(0,a.A)(function*(){return yield p.configure({group:C.groupPreferenceName}),yield p.keys().then(F=>F).catch(F=>F)})()}clearStorage(){return(0,a.A)(function*(){yield p.configure({group:C.groupPreferenceName}),yield p.clear().then(F=>!0).catch(F=>F)})()}}return(D=C).groupPreferenceName="DJPData",D.\u0275fac=function(F){return new(F||D)},D.\u0275prov=O.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),C})()},1113:(Ce,ee,E)=>{"use strict";E.d(ee,{q:()=>S});var a=E(4438);let S=(()=>{var p;class O{constructor(){}hide(){let D=document.querySelectorAll(".tabbar"),C=document.querySelectorAll(".home-screen"),_=document.querySelectorAll(".scroll-content");null!==D&&null!==C&&(Object.keys(D).map(F=>{"translateY(5rem)"!==D[F].style.transform&&(D[F].style.transform="translateY(5rem)")}),Object.keys(C).map(F=>{"translateY(5.2rem)"!==C[F].style.transform&&(C[F].style.transform="translateY(5.2rem)")}),setTimeout(()=>{Object.keys(_).map(F=>{_[F].style.marginBottom="0"})}))}show(){let D=document.querySelectorAll(".tabbar"),C=document.querySelectorAll(".home-screen");null!==D&&null!==C&&(Object.keys(C).map(_=>{"rotate(-45deg)"!==C[_].style.transform&&(C[_].style.transform="rotate(-45deg)")}),Object.keys(D).map(_=>{"translateY(0px)"!==D[_].style.transform&&(D[_].style.transform="translateY(0px)")}))}}return(p=O).\u0275fac=function(D){return new(D||p)},p.\u0275prov=a.jDH({token:p,factory:p.\u0275fac}),O})()},5870:(Ce,ee,E)=>{"use strict";E.d(ee,{K:()=>S});var a=E(56),S=function(p){return p._ID="_id",p.TABLE_NAME="processed_telemetry",p.COLUMN_NAME_MSG_ID="msg_id",p.COLUMN_NAME_DATA="data",p.COLUMN_NAME_NUMBER_OF_EVENTS="event_count",p.COLUMN_NAME_PRIORITY="priority",p.getCreateEntry=()=>"CREATE TABLE IF NOT EXISTS "+p.TABLE_NAME+" ("+p._ID+" INTEGER PRIMARY KEY,"+p.COLUMN_NAME_MSG_ID+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_DATA+a.K.SPACE+a.K.TEXT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_NUMBER_OF_EVENTS+a.K.SPACE+a.K.INT_TYPE+a.K.COMMA_SEP+p.COLUMN_NAME_PRIORITY+a.K.SPACE+a.K.INT_TYPE+" )",p.insertQuery=()=>`INSERT INTO ${p.TABLE_NAME}`,p.getDeleteEntry=()=>"DROP TABLE IF EXISTS "+p.TABLE_NAME,p}(S||{})},2918:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>C});var a=E(8855),p=E(3172),O=E(3649),c=E(4438),D=E(2904);let C=(()=>{var _;class F{constructor(m){this.utilService=m}decorate(m,T,A,w,P,$,L){return m.mid||(m.mid=`${m.eid}:${a(JSON.stringify(m)).toString()}`),this.patchActor(m,A),this.patchContext(m,T,A,P,$,L),m.context.cdata&&(m.context.cdata=[...m.context.cdata,{id:T,type:"UserSession"}]),m}patchActor(m,T){m.actor||(m.actor=new O.Ag);const A=m.actor;A.id||(A.id=T),A.type||(A.type=O.Ag.TYPE_USER)}patchContext(m,T,A,w,P,$){m.context||(m.context=new O.ob),m.context=this.buildContext(T,A,P,m.context,w,$)}patchPData(m,T){m.pdata||(m.pdata=new O.zE);const A=m.pdata;A.id||(A.id=p.$.telmetry.PRODUCER_ID),A.pid=p.$.telmetry.PRODUCER_PID,A.ver||(A.ver=T)}prepare(m,T){return{event:JSON.stringify(m),event_type:m.eid,timestamp:Date.now(),priority:1}}buildContext(m,T,A,w,P,$){return w.channel=A,this.patchPData(w,P),w.env||(w.env="app"),w.sid=m,w.did=T,w.cdata=w.cdata?w.cdata.concat($||[]):$||[],w}}return(_=F).\u0275fac=function(m){return new(m||_)(c.KVO(D.a0))},_.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),F})()},3649:(Ce,ee,E)=>{"use strict";E.d(ee,{$i:()=>C,Ag:()=>a,Q$:()=>_,ob:()=>S,zE:()=>c});let a=(()=>{var F;class B{constructor(){this.id="",this.type=B.TYPE_USER}}return(F=B).TYPE_SYSTEM="System",F.TYPE_USER="User",B})();class S{}class c{ProducerData(){this.id="",this.pid="",this.ver=""}}class C{constructor(B,m,T){this.id=B,this.type=m,this.version=T}setRollup(B){this.rollup=B}}var _;!function(F){let B=(()=>{class L{constructor(R){this.ver=L.TELEMETRY_VERSION,this.eid=R,this.ets=Date.now(),this.actor=new a,this.context=new S,this.edata={}}}return L.TELEMETRY_VERSION="3.0",L})();F.Telemetry=B,F.Interact=(()=>{class L extends B{constructor(R,U,j,W,ie,me,te,se="",g="",n="",o={},l=[]){super(L.EID),this.edata={type:R,subtype:U,...j?{id:j}:{},...W?{pageid:W}:{},extra:{...ie?{pos:ie}:{},...me?{values:[me]}:{}}},this.context.cdata=l,this.context.env=te,se&&g&&(this.object=new C(se,g,n),o&&(this.object.rollup=o||{}))}}return L.EID="INTERACT",L})(),F.End=(()=>{class L extends B{constructor(R,U,j,W,ie,me,te="",se="",g="",n={},o=[]){super(L.EID),this.edata={...R?{type:R}:{},...j?{duration:j}:{},...W?{pageid:W}:{},...U?{mode:U}:{},...ie?{summaryList:ie}:{}},this.context.cdata=o,this.context.env=me,this.object=new C(te,se,g),this.object.rollup=n}}return L.EID="END",L})(),F.Start=(()=>{class L extends B{constructor(R="",U,j,W,ie,me,te,se="",g="",n="",o={},l=[]){super(L.EID),this.edata={...R?{type:R}:{type:""},...U?{dspec:U}:{},...j?{loc:j}:{},...W?{mode:W}:{},...ie?{mode:W}:{},...me?{pageid:me}:{}},this.context.cdata=l,this.context.env=te,se&&g&&(this.object=new C(se,g,n),o&&(this.object.rollup=o||{}))}}return L.EID="START",L})(),F.Impression=(()=>{class L extends B{constructor(R,U,j,W,ie,me="",te="",se="",g={},n=[]){super(L.EID),this.edata={...R?{type:R}:{type:""},...U?{subtype:U}:{},...j?{pageid:j}:{},...j?{uri:j}:{},...W?{visits:W}:{}},this.context.cdata=n,this.context.env=ie,me&&te&&(this.object=new C(me,te,se),g&&(this.object.rollup=g||{}))}}return L.EID="IMPRESSION",L})(),F.Search=(()=>{class L extends B{constructor(R,U,j,W,ie,me,te=0,se=[]){super(L.EID),this.edata={...R?{type:R}:{type:""},...U?{query:U}:{},...j?{filters:j}:{},...W?{sort:W}:{},...me?{correlationid:me}:{},...te?{size:te}:{}},this.context.cdata=se,this.context.env=ie}}return L.EID="SEARCH",L})()}(_||(_={}))},5173:(Ce,ee,E)=>{"use strict";E.d(ee,{O:()=>_});class a{constructor(){this.pos=[]}}class S{constructor(){this.env=""}}class p{constructor(){this.env=""}}class O{constructor(){this.env=""}}class c{}var D=E(4438),C=E(2904);let _=(()=>{var F;class B{constructor(T){this.telemetryService=T}generateInteractTelemetry(T,A,w,P,$,L,M,R,U){const j=new a;j.type=T,j.subType=A,j.pageId=P,j.id=U||P,j.env=w,null!==L&&(j.valueMap=L),void 0!==M&&(j.rollup=M),void 0!==R&&(j.correlationData=R),$&&$.id&&(j.objId=$.id),$&&$.type&&(j.objType=$.type),$&&$.version&&(j.objVer=$.version+""),this.telemetryService.interact(j).subscribe()}generateImpressionTelemetry(T,A,w,P,$,L,M,R,U){const j=new S;j.type=T,j.subType=A,j.pageId=w,j.env=P,j.objId=$||"",j.objType=L||"",j.objVer=M?M+"":"",void 0!==R&&(j.rollup=R),void 0!==U&&(j.correlationData=U),this.telemetryService.impression(j).subscribe()}generateEndTelemetry(T,A,w,P,$,L,M,R,U){const j=new O;j.type=T,j.pageId=w,j.env=P,j.mode=A,R&&(j.duration=R),$&&$.id&&(j.objId=$.id),$&&$.type&&(j.objType=$.type),$&&$.version&&(j.objVer=$.version+""),L&&(j.rollup=L),M&&(j.correlationData=M),U&&(j.summaryList=U),this.telemetryService.end(j).subscribe()}generateStartTelemetry(T,A,w,P,$){const L=new p;L.type=T,L.pageId=A,L.mode="play",w&&w.id&&(L.objId=w.id),w&&w.type&&(L.objType=w.type),w&&w.version&&(L.objVer=w.version+""),void 0!==P&&(L.rollup=P),void 0!==$&&(L.correlationData=$),this.telemetryService.start(L).subscribe()}generateSearchTelemetry(T,A,w,P,$,L,M,R){const U=new c;U.type=T,U.query=A,U.env=P,U.size=w,$&&(U.filters=$),L&&(U.sort=L),void 0!==R&&(U.correlationData=R),M&&(U.correlationid=M),this.telemetryService.search(U).subscribe()}genererateAppStartTelemetry(T){const A=new p;A.type="app",A.env="home",A.deviceSpecification=T,this.telemetryService.start(A).subscribe()}}return(F=B).\u0275fac=function(T){return new(T||F)(D.KVO(C.H0))},F.\u0275prov=D.jDH({token:F,factory:F.\u0275fac,providedIn:"root"}),B})()},1765:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>f});var a=E(2814),S=E(1985),p=E(8750);const{isArray:O}=Array;var D=E(983),C=E(4360),_=E(9326);var B=E(6648),m=E(3028),T=E(9030),A=E(7673),w=E(9316),P=E(9974),$=E(5412);function L(k,I=1/0,V){return I=(I||0)<1?1/0:I,(0,P.N)((J,oe)=>(0,$.h)(J,oe,k,I,void 0,!0,V))}var M=E(6649);function R(k,I){return(0,P.N)((0,M.S)(k,I,arguments.length>=2,!1,!0))}var U=E(3703),j=E(6354),W=E(9437),ie=E(7374),me=E(5870),te=E(6421);class se{process(I){if("object"!=typeof I)throw new Error('TelemetryEntriesToStringPreprocessor expects input of type "object"');return JSON.stringify(I)}}var g=E(3172),n=E(985);class o{constructor(I,V){this.dbService=I,this.apiService=V,this.preprocessors=[],this.preprocessors=[new se]}handle(I){return this.hasTelemetryThresholdCrossed().pipe((0,m.Z)(V=>V?this.processEventsBatch(I).pipe(L(J=>J?this.processEventsBatch(I):D.w),R(()=>{},void 0),(0,m.Z)(()=>this.handleProcessedEventsBatch()),L(J=>J.syncedEventCount?this.handleProcessedEventsBatch():D.w),R((J,oe)=>({syncedEventCount:J.syncedEventCount+oe.syncedEventCount,syncTime:Date.now(),syncedFileSize:J.syncedFileSize+oe.syncedFileSize,error:oe.error?oe.error:J.error}),{syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})):(0,A.of)({syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})))}processEventsBatch(I){return this.fetchEvents().pipe((0,m.Z)(V=>V?this.processEvents(V,I).pipe((0,m.Z)(J=>this.persistProcessedEvents(J,J.processedEventsSize).pipe((0,m.Z)(()=>this.deleteEvents(V)),(0,U.u)(V.length)))):(0,A.of)(0)))}hasTelemetryThresholdCrossed(){return(0,B.H)(this.dbService.executeQuery(`\n SELECT count(*) as COUNT FROM ${a.C.TABLE_NAME}`)).pipe((0,j.T)(I=>!0))}fetchEvents(){return(0,B.H)(this.dbService.executeQuery(`\n SELECT * FROM ${a.C.TABLE_NAME}\n WHERE ${a.C.COLUMN_PRIORITY} = (SELECT MIN (${a.C.COLUMN_PRIORITY})\n FROM ${a.C.TABLE_NAME})\n ORDER BY ${a.C.COLUMN_TIMESTAMP}\n LIMIT 200`))}processEvents(I,V){if(!I)return(0,A.of)({processedEventsSize:0});const J=(0,te.A)();return(0,A.of)({processedEvents:this.preprocessors.reduce((oe,ve)=>ve.process(oe),{id:"ekstep.telemetry",ver:"1.0",ts:ie().format("YYYY-MM-DDTHH:mm:ss[Z]"),events:I.map(oe=>JSON.parse(oe[a.C.COLUMN_EVENT])),params:{did:V,msgid:J,key:"",requesterId:""}}),processedEventsSize:I.length,messageId:J})}persistProcessedEvents({processedEvents:I,messageId:V},J){return I?(0,B.H)(this.dbService.save(me.K.insertQuery(),{[me.K.COLUMN_NAME_MSG_ID]:V,[me.K.COLUMN_NAME_NUMBER_OF_EVENTS]:J,[me.K.COLUMN_NAME_PRIORITY]:1,[me.K.COLUMN_NAME_DATA]:I})).pipe((0,U.u)(void 0)):(0,A.of)(void 0)}deleteEvents(I){return I.length?(0,B.H)(this.dbService.executeQuery(`\n DELETE FROM ${a.C.TABLE_NAME}\n WHERE ${a.C._ID} IN (${I.map(V=>V[a.C._ID]).join(",")})\n `)):(0,A.of)(void 0)}handleProcessedEventsBatch(I){return this.fetchProcessedEventsBatch().pipe((0,m.Z)(V=>this.syncProcessedEvent(V).pipe((0,m.Z)(J=>this.deleteProcessedEvent(V).pipe((0,U.u)(J||{syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0})))))).pipe()}fetchProcessedEventsBatch(){return(0,B.H)(this.dbService.executeQuery(`SELECT * FROM ${me.K.TABLE_NAME} LIMIT 1`)).pipe((0,j.T)(I=>I&&I[0]))}syncProcessedEvent(I){if(!I)return(0,A.of)(void 0);const V=(new n._g.Builder).withHost(g.$.api.TELEMETRY_BASE_URL).withPath(g.$.api.TELEMETRY_SYNC).withType(n.kr.POST).withBearerToken(!0).withBody(JSON.parse(I[me.K.COLUMN_NAME_DATA])).build();return this.apiService.fetch(V).pipe((0,j.T)(()=>({syncedEventCount:I[me.K.COLUMN_NAME_NUMBER_OF_EVENTS],syncTime:Date.now(),syncedFileSize:0})),(0,W.W)(J=>(0,A.of)({syncedEventCount:0,syncTime:Date.now(),syncedFileSize:0,error:J})))}deleteProcessedEvent(I){return I?(0,B.H)(this.dbService.executeQuery(`DELETE FROM ${me.K.TABLE_NAME} WHERE ${me.K._ID}='${I[me.K._ID]}'`)):(0,A.of)(void 0)}}var l=E(3649),s=E(4438),h=E(4591),v=E(3486),y=E(2342),d=E(2700),r=E(2918);let f=(()=>{var k;class I{constructor(J,oe,ve,De,Q){this.dbService=J,this.storageService=oe,this.utilService=ve,this.apiService=De,this.decorator=Q,this.deviceId="",w.p.getId().then(ae=>(this.deviceId=ae.identifier,this.deviceId))}start({type:J,deviceSpecification:oe,loc:ve,mode:De,duration:Q,pageId:ae,env:tt,objId:ke,objType:pe,objVer:Ie,rollup:_e,correlationData:re}){const ne=new l.Q$.Start(J,oe,ve,De,Q,ae,tt,ke,pe,Ie,_e,re);return this.decorateAndPersist(ne)}end({type:J,mode:oe,duration:ve,pageId:De,summaryList:Q,env:ae,objId:tt,objType:ke,objVer:pe,rollup:Ie,correlationData:_e}){const re=new l.Q$.End(J,oe,ve,De,Q,ae,tt,ke,pe,Ie,_e);return this.decorateAndPersist(re)}interact({type:J,subType:oe,id:ve,pageId:De,pos:Q,env:ae,rollup:tt,valueMap:ke,correlationData:pe,objId:Ie,objType:_e,objVer:re}){const ne=new l.Q$.Interact(J,oe,ve,De,Q,ke,ae,Ie,_e,re,tt,pe);return this.decorateAndPersist(ne)}impression({type:J,subType:oe,pageId:ve,env:De,objId:Q,objType:ae,objVer:tt,rollup:ke,correlationData:pe}){const Ie=new l.Q$.Impression(J,oe,ve,[],De,Q,ae,tt,ke,pe);return this.decorateAndPersist(Ie)}search({type:J,query:oe,filters:ve,sort:De,correlationid:Q,size:ae,env:tt,correlationData:ke}){const pe=new l.Q$.Search(J,oe,ve,De,tt,Q,ae,ke);return this.decorateAndPersist(pe)}decorateAndPersist(J){let oe="";const ve=localStorage.getItem("subDomain");return oe=null!=ve?ve:new URL(document.baseURI).hostname,function F(...k){const I=(0,_.ms)(k),V=function c(k){return 1===k.length&&O(k[0])?k[0]:k}(k);return V.length?new S.c(J=>{let oe=V.map(()=>[]),ve=V.map(()=>!1);J.add(()=>{oe=ve=null});for(let De=0;!J.closed&&De{if(oe[De].push(Q),oe.every(ae=>ae.length)){const ae=oe.map(tt=>tt.shift());J.next(I?I(...ae):ae),oe.some((tt,ke)=>!tt.length&&ve[ke])&&J.complete()}},()=>{ve[De]=!0,!oe[De].length&&J.complete()}));return()=>{oe=ve=null}}):D.w}((0,B.H)(this.utilService.getAppInfo()),(0,B.H)(this.utilService.getDeviceId())).pipe((0,m.Z)(De=>{const Q=De[0].version,ae=De[1];return(0,B.H)(this.storageService.getData("sid")).pipe((0,m.Z)(tt=>{const ke=this.decorator.prepare(this.decorator.decorate(J,null!=tt?tt:"",ae,(0,te.A)(),Q,oe,[]),1);return this.dbService.save(a.C.insertData(),ke)}))}))}saveTelemetry(J){return(0,T.v)(()=>{try{const oe=JSON.parse(J);return this.decorateAndPersist(oe)}catch(oe){return console.error(oe),(0,A.of)(!1)}})}sync(){return new o(this.dbService,this.apiService).handle(this.deviceId)}}return(k=I).\u0275fac=function(J){return new(J||k)(s.KVO(h.a),s.KVO(v.n),s.KVO(y.a),s.KVO(d.G),s.KVO(r.B))},k.\u0275prov=s.jDH({token:k,factory:k.\u0275fac,providedIn:"root"}),I})()},2342:(Ce,ee,E)=>{"use strict";E.d(ee,{a:()=>B});var a=E(467),S=E(8941),p=E(9316),O=E(9986),D=E(5083),C=E(4438),_=E(5402),F=E(8974);let B=(()=>{var m;class T{constructor(w,P){this.translate=w,this.loadingCtrl=P}getDeviceSpec(){var w=this;return(0,a.A)(function*(){const P=yield p.p.getInfo(),$=yield w.getDeviceId();return{os:`${P.operatingSystem} ${P.osVersion}`,make:P.manufacturer,id:$}})()}getDeviceId(){return(0,a.A)(function*(){const w=yield p.p.getId();return O(w.identifier).toString()})()}getAppInfo(){return(0,a.A)(function*(){return"web"===D.Ii.getPlatform()?{name:"Web App",build:"1.0.0"}:yield S.q.getInfo()})()}translateMessage(w,P){let $="",L="";return L="object"==typeof P?P:{"%s":P},this.translate.get(w,L).subscribe(M=>{$=M}),$}getLoader(w,P){return this.loadingCtrl.create({message:P,duration:w||3e4,cssClass:P?"custom-loader-message-class":"custom-loader-class"})}}return(m=T).\u0275fac=function(w){return new(w||m)(C.KVO(_.c$),C.KVO(F.Xi))},m.\u0275prov=C.jDH({token:m,factory:m.\u0275fac,providedIn:"root"}),T})()},6313:(Ce,ee,E)=>{"use strict";var a=E(467),S=E(345),p=E(4438),O=E(3021),c=E(4517),D=E(8974),C=E(8941),_=E(5402),F=E(6198),B=E(2904),m=E(177),T=E(9417);function A(Ve,Re){if(1&Ve&&(p.j41(0,"ion-item")(1,"ion-label"),p.EFF(2),p.k0s(),p.nrm(3,"ion-radio",3),p.k0s()),2&Ve){const Le=Re.$implicit;p.R7$(2),p.JRh(Le.label),p.R7$(),p.FS9("value",Le.id)}}let w=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn){this.translateService=Te,this.navParams=ut,this.modalCtrl=Vt,this.languageService=dn,this.storage=fn,this.selectedLanguage=""}ngOnInit(){var Te=this;return(0,a.A)(function*(){Te.languages=[],Te.languages=Te.navParams.get("languages");let ut=yield Te.storage.getData("lang");console.log("current lang ",ut),Te.selectedLanguage=ut})()}languageSelected(Te){let ut=Te.detail.value;this.storage.setData("lang",ut),this.translateService.use(ut),this.selectedLanguage=ut,this.languageService.setLanguage(ut),this.dismissModal()}dismissModal(){this.modalCtrl.dismiss()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(_.c$),p.rXU(c.y8),p.rXU(D.W3),p.rXU(F.g),p.rXU(B.n$))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-langauge-select"]],decls:9,vars:5,consts:[[1,"lang-content"],[3,"ngModelChange","ionChange","ngModel"],[4,"ngFor","ngForOf"],["slot","start",3,"value"]],template:function(Te,ut){1&Te&&(p.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p.EFF(3),p.nI1(4,"translate"),p.k0s()()(),p.j41(5,"ion-content",0)(6,"ion-radio-group",1),p.mxI("ngModelChange",function(dn){return p.DH7(ut.selectedLanguage,dn)||(ut.selectedLanguage=dn),dn}),p.bIt("ionChange",function(dn){return ut.languageSelected(dn)}),p.j41(7,"ion-list"),p.DNE(8,A,4,2,"ion-item",2),p.k0s()()()),2&Te&&(p.R7$(3),p.JRh(p.bMT(4,3,"Select Language")),p.R7$(3),p.R50("ngModel",ut.selectedLanguage),p.R7$(2),p.Y8G("ngForOf",ut.languages))},dependencies:[m.Sq,T.BC,T.vS,D.W9,D.eU,D.uz,D.he,D.nf,D.KO,D.f0,D.BC,D.ai,D.uR,D.Je,_.D9],styles:[".lang-content[_ngcontent-%COMP%]{--background: var(--ion-color-primary-contrast);--padding-top: 0}ion-list[_ngcontent-%COMP%]{overflow-y:auto}ion-title[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:1rem}"]}),Re})();var P=E(4801),$=E.n(P);const L=["video"],M=["canvas"],R=["fileinput"];function U(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",13),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.reset())}),p.nrm(1,"ion-icon",14),p.EFF(2," Reset "),p.k0s()}}function j(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",15),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.stopScan())}),p.nrm(1,"ion-icon",16),p.EFF(2," Stop scan "),p.k0s()}}function W(Ve,Re){if(1&Ve&&(p.j41(0,"ion-card")(1,"ion-card-header")(2,"ion-card-title"),p.EFF(3,"QR Code"),p.k0s()(),p.j41(4,"ion-card-content"),p.EFF(5),p.k0s()()),2&Ve){const Le=p.XpG();p.R7$(5),p.SpI(" ",Le.scanResult," ")}}function ie(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div")(1,"ion-button",17),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.openLink())}),p.EFF(2),p.nI1(3,"translate"),p.k0s(),p.j41(4,"ion-button",18),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.close())}),p.EFF(5,"Close"),p.k0s()()}2&Ve&&(p.R7$(2),p.JRh(p.bMT(3,1,"OPEN_IN_BROWSER")))}function me(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div")(1,"ion-button",17),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.close())}),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}2&Ve&&(p.R7$(2),p.JRh(p.bMT(3,1,"CLOSE")))}let te=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn){this.navParams=Te,this.modalCtrl=ut,this.toastCtrl=Vt,this.loadingCtrl=dn,this.plt=fn,this.scanText="",this.isValidURL=!1,this.scanActive=!1,this.scanResult=null,this.loading=null,this.plt.is("ios")&&"standalone"in window.navigator&&window.navigator.standalone&&console.log("I am a an iOS PWA!")}ngOnInit(){this.scanText=this.navParams.get("scannedData"),this.isValidURL=this.isValidUrl()}openLink(){this.close(),window.open(this.scanText)}close(){this.modalCtrl.dismiss()}isValidUrl(){try{const Te=new URL(this.scanText);return"http:"===Te.protocol||"https:"===Te.protocol}catch{return!1}}ngAfterViewInit(){this.canvasElement=this.canvas.nativeElement,this.canvasContext=this.canvasElement.getContext("2d"),this.videoElement=this.video.nativeElement}showQrToast(){var Te=this;return(0,a.A)(function*(){(yield Te.toastCtrl.create({message:`Open ${Te.scanResult}?`,position:"top",buttons:[{text:"Open",handler:()=>{Te.scanResult&&window.open(Te.scanResult,"_system","location=yes")}}]})).present()})()}reset(){this.scanResult=null}startScan(){var Te=this;return(0,a.A)(function*(){const ut=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});Te.videoElement.srcObject=ut,Te.videoElement.setAttribute("playsinline",!0),Te.loading=yield Te.loadingCtrl.create({}),yield Te.loading.present(),Te.videoElement.play(),requestAnimationFrame(Te.scan.bind(Te))})()}stopScan(){this.scanActive=!1;const Te=this.videoElement.srcObject;Te&&(Te.getTracks().forEach(function(Vt){Vt.stop(),console.log("Track stopped:",Vt.readyState)}),this.videoElement.srcObject=null)}scan(){var Te=this;return(0,a.A)(function*(){try{if(yield navigator.mediaDevices.getUserMedia({video:!0}),Te.videoElement.readyState===Te.videoElement.HAVE_ENOUGH_DATA){Te.loading&&(yield Te.loading.dismiss(),Te.loading=null,Te.scanActive=!0),Te.canvasElement.height=Te.videoElement.videoHeight,Te.canvasElement.width=Te.videoElement.videoWidth,Te.canvasContext.drawImage(Te.videoElement,0,0,Te.canvasElement.width,Te.canvasElement.height);const Vt=Te.canvasContext.getImageData(0,0,Te.canvasElement.width,Te.canvasElement.height),dn=$()(Vt.data,Vt.width,Vt.height,{inversionAttempts:"dontInvert"});null!=dn&&dn.data?(Te.scanActive=!1,Te.scanResult=dn.data,Te.stopScan(),Te.showQrToast()):Te.scanActive&&requestAnimationFrame(Te.scan.bind(Te))}else requestAnimationFrame(Te.scan.bind(Te))}catch(ut){console.error("Error accessing camera:",ut)}})()}captureImage(){this.fileinput.nativeElement.click()}handleFile(Te){const ut=Te.target;if(ut instanceof HTMLInputElement&&ut.files&&ut.files.length>0){const dn=ut.files[0];var Vt=new Image;Vt.onload=()=>{this.canvasContext.drawImage(Vt,0,0,this.canvasElement.width,this.canvasElement.height);const fn=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Un=$()(fn.data,fn.width,fn.height,{inversionAttempts:"dontInvert"});Un&&(this.scanResult=Un.data,this.showQrToast())},Vt.src=URL.createObjectURL(dn)}}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(c.y8),p.rXU(D.W3),p.rXU(D.K_),p.rXU(D.Xi),p.rXU(c.OD))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-qrcode-popup"]],viewQuery:function(Te,ut){if(1&Te&&(p.GBs(L,5),p.GBs(M,5),p.GBs(R,5)),2&Te){let Vt;p.mGM(Vt=p.lsd())&&(ut.video=Vt.first),p.mGM(Vt=p.lsd())&&(ut.canvas=Vt.first),p.mGM(Vt=p.lsd())&&(ut.fileinput=Vt.first)}},decls:20,vars:7,consts:[["fileinput",""],["video",""],["canvas",""],[1,"inner-content"],["type","file","accept","image/*;capture=camera","hidden",""],["expand","full",3,"click"],["slot","start","name","camera"],["slot","start","name","qr-scanner"],["expand","full","color","warning",3,"click",4,"ngIf"],["width","100%",3,"hidden"],["hidden",""],["expand","full","color","danger",3,"click",4,"ngIf"],[4,"ngIf"],["expand","full","color","warning",3,"click"],["slot","start","name","refresh"],["expand","full","color","danger",3,"click"],["slot","start","name","close"],["expand","block",3,"click"],["fill","clear","expand","full",3,"click"]],template:function(Te,ut){if(1&Te){const Vt=p.RV6();p.j41(0,"div",3)(1,"h4"),p.EFF(2),p.k0s(),p.nrm(3,"input",4,0),p.j41(5,"ion-button",5),p.bIt("click",function(){return p.eBV(Vt),p.Njj(ut.captureImage())}),p.nrm(6,"ion-icon",6),p.EFF(7," Capture Image "),p.k0s(),p.j41(8,"ion-button",5),p.bIt("click",function(){return p.eBV(Vt),p.Njj(ut.startScan())}),p.nrm(9,"ion-icon",7),p.EFF(10," Start scan "),p.k0s(),p.DNE(11,U,3,0,"ion-button",8),p.nrm(12,"video",9,1)(14,"canvas",10,2),p.DNE(16,j,3,0,"ion-button",11)(17,W,6,1,"ion-card",12)(18,ie,6,3,"div",12)(19,me,4,3,"div",12),p.k0s()}2&Te&&(p.R7$(2),p.JRh(ut.scanText),p.R7$(9),p.Y8G("ngIf",ut.scanResult),p.R7$(),p.Y8G("hidden",!ut.scanActive),p.R7$(4),p.Y8G("ngIf",ut.scanActive),p.R7$(),p.Y8G("ngIf",ut.scanResult),p.R7$(),p.Y8G("ngIf",ut.isValidURL),p.R7$(),p.Y8G("ngIf",!ut.isValidURL))},dependencies:[m.bT,D.Jm,D.b_,D.I9,D.ME,D.tN,D.iq,_.D9],styles:["h4[_ngcontent-%COMP%]{text-align:center;color:var(--ion-color-medium);padding:.75rem 0;-webkit-user-select:auto;user-select:auto}ion-button[_ngcontent-%COMP%]{padding:0 .75rem .75rem;--border-radius: 2rem}"]}),Re})();var se=E(319),g=E(3568),n=E(8359);class o extends n.yU{constructor(Re,Le){super()}schedule(Re,Le=0){return this}}const l={setInterval(Ve,Re,...Le){const{delegate:Te}=l;return null!=Te&&Te.setInterval?Te.setInterval(Ve,Re,...Le):setInterval(Ve,Re,...Le)},clearInterval(Ve){const{delegate:Re}=l;return((null==Re?void 0:Re.clearInterval)||clearInterval)(Ve)},delegate:void 0};var s=E(7908),v=E(6129);class y{constructor(Re,Le=y.now){this.schedulerActionCtor=Re,this.now=Le}schedule(Re,Le=0,Te){return new this.schedulerActionCtor(this,Re).schedule(Te,Le)}}y.now=v.U.now;const r=new class d extends y{constructor(Re,Le=y.now){super(Re,Le),this.actions=[],this._active=!1}flush(Re){const{actions:Le}=this;if(this._active)return void Le.push(Re);let Te;this._active=!0;do{if(Te=Re.execute(Re.state,Re.delay))break}while(Re=Le.shift());if(this._active=!1,Te){for(;Re=Le.shift();)Re.unsubscribe();throw Te}}}(class h extends o{constructor(Re,Le){super(Re,Le),this.scheduler=Re,this.work=Le,this.pending=!1}schedule(Re,Le=0){var Te;if(this.closed)return this;this.state=Re;const ut=this.id,Vt=this.scheduler;return null!=ut&&(this.id=this.recycleAsyncId(Vt,ut,Le)),this.pending=!0,this.delay=Le,this.id=null!==(Te=this.id)&&void 0!==Te?Te:this.requestAsyncId(Vt,this.id,Le),this}requestAsyncId(Re,Le,Te=0){return l.setInterval(Re.flush.bind(Re,this),Te)}recycleAsyncId(Re,Le,Te=0){if(null!=Te&&this.delay===Te&&!1===this.pending)return Le;null!=Le&&l.clearInterval(Le)}execute(Re,Le){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Te=this._execute(Re,Le);if(Te)return Te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Re,Le){let ut,Te=!1;try{this.work(Re)}catch(Vt){Te=!0,ut=Vt||new Error("Scheduled action threw falsy error")}if(Te)return this.unsubscribe(),ut}unsubscribe(){if(!this.closed){const{id:Re,scheduler:Le}=this,{actions:Te}=Le;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(Te,this),null!=Re&&(this.id=this.recycleAsyncId(Le,Re,null)),this.delay=null,super.unsubscribe()}}}),f=r;var k=E(1985),I=E(9470);function J(Ve=0,Re,Le=f){let Te=-1;return null!=Re&&((0,I.m)(Re)?Le=Re:Te=Re),new k.c(ut=>{let Vt=function V(Ve){return Ve instanceof Date&&!isNaN(Ve)}(Ve)?+Ve-Le.now():Ve;Vt<0&&(Vt=0);let dn=0;return Le.schedule(function(){ut.closed||(ut.next(dn++),0<=Te?this.schedule(void 0,Te):ut.complete())},Vt)})}var ve=E(7673),De=E(8141),Q=E(5964),ae=E(9437),tt=E(3703);let ke=(()=>{var Ve;class Re{constructor(Te){this.telemetryService=Te,this.shouldSync=!1}start(Te){return this.shouldSync=!0,function oe(Ve=0,Re=r){return Ve<0&&(Ve=0),J(Ve,Ve,Re)}(Te).pipe((0,De.M)(ut=>{}),(0,Q.p)(()=>this.shouldSync),(0,De.M)(()=>this.telemetryService.sync().pipe((0,De.M)(ut=>{}),(0,ae.W)(ut=>(console.error(ut),(0,ve.of)(void 0)))).toPromise()),(0,tt.u)(void 0))}pause(){this.shouldSync=!1}continue(){this.shouldSync=!0}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(B.H0))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var pe=E(2771),Ie=E(1635),re=E(3726),ne={error:"cordova_not_available"},G={error:"plugin_not_installed"};function ge(Ve){if(typeof window<"u"&&window.angular){var Le=window.document,Te=window.angular.element(Le.querySelector("[ng-app]")||Le.body).injector();if(Te)return Te.get("$q")(function(Vt,dn){Ve(Vt,dn)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(Vt,dn){Ve(Vt,dn)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function mt(Ve,Re,Le){var Te,ut;"string"==typeof Ve?Te=Ve:(Te=Ve.constructor.getPluginRef(),Le=Ve.constructor.getPluginName(),ut=Ve.constructor.getPluginInstallName());var Vt=Cn(Te);return!(!Vt||Re&&typeof Vt[Re]>"u")||(typeof window>"u"||!window.cordova?(function bn(Ve,Re){typeof process>"u"&&console.warn(Re?"Native: tried calling "+Ve+"."+Re+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+Ve+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(Le,Re),ne):(function Ft(Ve,Re,Le){console.warn(Le?"Native: tried calling "+Ve+"."+Le+", but the "+Ve+" plugin is not installed.":"Native: tried accessing the "+Ve+" plugin but it's not installed."),Re&&console.warn("Install the "+Ve+" plugin: 'ionic cordova plugin add "+Re+"'")}(Le,ut,Re),G))}function At(Ve,Re,Le,Te,ut,Vt){void 0===Te&&(Te={}),Le=function un(Ve,Re,Le,Te){if(void 0===Re&&(Re={}),Re.sync)return Ve;if("reverse"===Re.callbackOrder)Ve.unshift(Te),Ve.unshift(Le);else if("node"===Re.callbackStyle)Ve.push(function(fn,Un){fn?Te(fn):Le(Un)});else if("object"===Re.callbackStyle&&Re.successName&&Re.errorName){var ut={};ut[Re.successName]=Le,ut[Re.errorName]=Te,Ve.push(ut)}else if(typeof Re.successIndex<"u"||typeof Re.errorIndex<"u"){var Vt=function(){Re.successIndex>Ve.length?Ve[Re.successIndex]=Le:Ve.splice(Re.successIndex,0,Le)},dn=function(){Re.errorIndex>Ve.length?Ve[Re.errorIndex]=Te:Ve.splice(Re.errorIndex,0,Te)};Re.successIndex>Re.errorIndex?(dn(),Vt()):(Vt(),dn())}else Ve.push(Le),Ve.push(Te);return Ve}(Le,Te,ut,Vt);var dn=mt(Ve,Re);if(!0===dn){var fn=Cn(Ve.constructor.getPluginRef());return fn[Re].apply(fn,Le)}return dn}function Cn(Ve){return typeof window<"u"?St(window,Ve):null}function St(Ve,Re){for(var Le=Re.split("."),Te=Ve,ut=0;ut"u"){var Ve=typeof window<"u"?window:{},Le=Date.now(),Te=!1;Ve.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-Le)+" ms"),Te=!0}),setTimeout(function(){!Te&&Ve.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}();var Be=function(Ve){function Re(){var Le=null!==Ve&&Ve.apply(this,arguments)||this;return Le.permission={ACCEPT_HANDOVER:"ACCEPT_HANDOVER",ACCESS_BACKGROUND_LOCATION:"ACCESS_BACKGROUND_LOCATION",ACCESS_COARSE_LOCATION:"ACCESS_COARSE_LOCATION",ACCESS_FINE_LOCATION:"ACCESS_FINE_LOCATION",ACCESS_MEDIA_LOCATION:"ACCESS_MEDIA_LOCATION",ACTIVITY_RECOGNITION:"ACTIVITY_RECOGNITION",ADD_VOICEMAIL:"ADD_VOICEMAIL",ANSWER_PHONE_CALLS:"ANSWER_PHONE_CALLS",BLUETOOTH_ADVERTISE:"BLUETOOTH_ADVERTISE",BLUETOOTH_CONNECT:"BLUETOOTH_CONNECT",BLUETOOTH_SCAN:"BLUETOOTH_SCAN",BODY_SENSORS:"BODY_SENSORS",BODY_SENSORS_BACKGROUND:"BODY_SENSORS_BACKGROUND",CALL_PHONE:"CALL_PHONE",CAMERA:"CAMERA",GET_ACCOUNTS:"GET_ACCOUNTS",NEARBY_WIFI_DEVICES:"NEARBY_WIFI_DEVICES",POST_NOTIFICATIONS:"POST_NOTIFICATIONS",PROCESS_OUTGOING_CALLS:"PROCESS_OUTGOING_CALLS",READ_CALENDAR:"READ_CALENDAR",READ_CALL_LOG:"READ_CALL_LOG",READ_CONTACTS:"READ_CONTACTS",READ_EXTERNAL_STORAGE:"READ_EXTERNAL_STORAGE",READ_MEDIA_AUDIO:"READ_MEDIA_AUDIO",READ_MEDIA_IMAGES:"READ_MEDIA_IMAGES",READ_MEDIA_VIDEO:"READ_MEDIA_VIDEO",READ_PHONE_NUMBERS:"READ_PHONE_NUMBERS",READ_PHONE_STATE:"READ_PHONE_STATE",READ_SMS:"READ_SMS",RECEIVE_MMS:"RECEIVE_MMS",RECEIVE_SMS:"RECEIVE_SMS",RECEIVE_WAP_PUSH:"RECEIVE_WAP_PUSH",RECORD_AUDIO:"RECORD_AUDIO",SEND_SMS:"SEND_SMS",USE_SIP:"USE_SIP",UWB_RANGING:"UWB_RANGING",WRITE_CALENDAR:"WRITE_CALENDAR",WRITE_CALL_LOG:"WRITE_CALL_LOG",WRITE_CONTACTS:"WRITE_CONTACTS",WRITE_EXTERNAL_STORAGE:"WRITE_EXTERNAL_STORAGE"},Le.locationAuthorizationMode={ALWAYS:"always",WHEN_IN_USE:"when_in_use"},Le.locationAccuracyAuthorization={FULL:"full",REDUCED:"reduced"},Le.permissionGroups={CALENDAR:["READ_CALENDAR","WRITE_CALENDAR"],CAMERA:["CAMERA"],CONTACTS:["READ_CONTACTS","WRITE_CONTACTS","GET_ACCOUNTS"],LOCATION:["ACCESS_FINE_LOCATION","ACCESS_COARSE_LOCATION"],MICROPHONE:["RECORD_AUDIO"],PHONE:["READ_PHONE_STATE","CALL_PHONE","ADD_VOICEMAIL","USE_SIP","PROCESS_OUTGOING_CALLS","READ_CALL_LOG","WRITE_CALL_LOG"],SENSORS:["BODY_SENSORS"],SMS:["SEND_SMS","RECEIVE_SMS","READ_SMS","RECEIVE_WAP_PUSH","RECEIVE_MMS"],STORAGE:["READ_EXTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE"],NEARBY_DEVICES:["BLUETOOTH_ADVERTISE","BLUETOOTH_SCAN","BLUETOOTH_CONNECT"]},Le.locationMode={HIGH_ACCURACY:"high_accuracy",DEVICE_ONLY:"device_only",BATTERY_SAVING:"battery_saving",LOCATION_OFF:"location_off"},Le.bluetoothState={UNKNOWN:"unknown",RESETTING:"resetting",UNSUPPORTED:"unsupported",UNAUTHORIZED:"unauthorized",POWERED_OFF:"powered_off",POWERED_ON:"powered_on",POWERING_OFF:"powering_off",POWERING_ON:"powering_on"},Le.photoLibraryAccessLevel={ADD_ONLY:"add_only",READ_WRITE:"read_write"},Le}return(0,Ie.C6)(Re,Ve),Re.prototype.isLocationAvailable=function(){return Wt(this,"isLocationAvailable",{},arguments)},Re.prototype.isWifiAvailable=function(){return Wt(this,"isWifiAvailable",{},arguments)},Re.prototype.isCameraAvailable=function(Le){return Wt(this,"isCameraAvailable",{callbackOrder:"reverse"},arguments)},Re.prototype.isBluetoothAvailable=function(){return Wt(this,"isBluetoothAvailable",{},arguments)},Re.prototype.switchToLocationSettings=function(){return Wt(this,"switchToLocationSettings",{sync:!0,platforms:["Android","Windows 10","iOS"]},arguments)},Re.prototype.switchToMobileDataSettings=function(){return Wt(this,"switchToMobileDataSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.switchToBluetoothSettings=function(){return Wt(this,"switchToBluetoothSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.switchToWifiSettings=function(){return Wt(this,"switchToWifiSettings",{sync:!0,platforms:["Android","Windows 10"]},arguments)},Re.prototype.isWifiEnabled=function(){return Wt(this,"isWifiEnabled",{platforms:["Android","Windows 10"]},arguments)},Re.prototype.setWifiState=function(Le){return Wt(this,"setWifiState",{callbackOrder:"reverse",platforms:["Android","Windows 10"]},arguments)},Re.prototype.setBluetoothState=function(Le){return Wt(this,"setBluetoothState",{callbackOrder:"reverse",platforms:["Android","Windows 10"]},arguments)},Re.prototype.enableDebug=function(){return Wt(this,"enableDebug",{platforms:["Android","iOS"]},arguments)},Re.prototype.isLocationEnabled=function(){return Wt(this,"isLocationEnabled",{platforms:["Android","iOS"]},arguments)},Re.prototype.isLocationAuthorized=function(){return Wt(this,"isLocationAuthorized",{},arguments)},Re.prototype.getLocationAuthorizationStatus=function(){return Wt(this,"getLocationAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.getLocationAuthorizationStatuses=function(){return Wt(this,"getLocationAuthorizationStatuses",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestLocationAuthorization=function(Le,Te){return Wt(this,"requestLocationAuthorization",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.isCameraPresent=function(){return Wt(this,"isCameraPresent",{platforms:["Android","iOS"]},arguments)},Re.prototype.isCameraAuthorized=function(Le){return Wt(this,"isCameraAuthorized",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.getCameraAuthorizationStatus=function(Le){return Wt(this,"getCameraAuthorizationStatus",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.requestCameraAuthorization=function(Le){return Wt(this,"requestCameraAuthorization",{platforms:["Android","iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.isMicrophoneAuthorized=function(){return Wt(this,"isMicrophoneAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getMicrophoneAuthorizationStatus=function(){return Wt(this,"getMicrophoneAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestMicrophoneAuthorization=function(){return Wt(this,"requestMicrophoneAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.isContactsAuthorized=function(){return Wt(this,"isContactsAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getContactsAuthorizationStatus=function(){return Wt(this,"getContactsAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestContactsAuthorization=function(){return Wt(this,"requestContactsAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.isCalendarAuthorized=function(){return Wt(this,"isCalendarAuthorized",{platforms:["Android","iOS"]},arguments)},Re.prototype.getCalendarAuthorizationStatus=function(){return Wt(this,"getCalendarAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.requestCalendarAuthorization=function(){return Wt(this,"requestCalendarAuthorization",{platforms:["Android","iOS"]},arguments)},Re.prototype.switchToSettings=function(){return Wt(this,"switchToSettings",{platforms:["Android","iOS"]},arguments)},Re.prototype.getBluetoothState=function(){return Wt(this,"getBluetoothState",{platforms:["Android","iOS"]},arguments)},Re.prototype.registerBluetoothStateChangeHandler=function(Le){return Wt(this,"registerBluetoothStateChangeHandler",{platforms:["Android","iOS"],sync:!0},arguments)},Re.prototype.registerLocationStateChangeHandler=function(Le){return Wt(this,"registerLocationStateChangeHandler",{platforms:["Android","iOS"],sync:!0},arguments)},Re.prototype.getArchitecture=function(){return Wt(this,"getArchitecture",{platforms:["Android","iOS"]},arguments)},Re.prototype.getCurrentBatteryLevel=function(){return Wt(this,"getCurrentBatteryLevel",{platforms:["Android","iOS"]},arguments)},Re.prototype.restart=function(Le){return Wt(this,"restart",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.isGpsLocationAvailable=function(){return Wt(this,"isGpsLocationAvailable",{platforms:["Android"]},arguments)},Re.prototype.isGpsLocationEnabled=function(){return Wt(this,"isGpsLocationEnabled",{platforms:["Android"]},arguments)},Re.prototype.isNetworkLocationAvailable=function(){return Wt(this,"isNetworkLocationAvailable",{platforms:["Android"]},arguments)},Re.prototype.isNetworkLocationEnabled=function(){return Wt(this,"isNetworkLocationEnabled",{platforms:["Android"]},arguments)},Re.prototype.isAirplaneModeEnabled=function(){return Wt(this,"isAirplaneModeEnabled",{platforms:["Android"]},arguments)},Re.prototype.isMobileDataEnabled=function(){return Wt(this,"isMobileDataEnabled",{platforms:["Android"]},arguments)},Re.prototype.getLocationMode=function(){return Wt(this,"getLocationMode",{platforms:["Android"]},arguments)},Re.prototype.getDeviceOSVersion=function(){return Wt(this,"getDeviceOSVersion",{platforms:["Android"]},arguments)},Re.prototype.getBuildOSVersion=function(){return Wt(this,"getBuildOSVersion",{platforms:["Android"]},arguments)},Re.prototype.getPermissionAuthorizationStatus=function(Le){return Wt(this,"getPermissionAuthorizationStatus",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.getPermissionsAuthorizationStatus=function(Le){return Wt(this,"getPermissionsAuthorizationStatus",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.requestRuntimePermission=function(Le){return Wt(this,"requestRuntimePermission",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.requestRuntimePermissions=function(Le){return Wt(this,"requestRuntimePermissions",{platforms:["Android"],callbackOrder:"reverse"},arguments)},Re.prototype.isRequestingPermission=function(){return Wt(this,"isRequestingPermission",{sync:!0},arguments)},Re.prototype.registerPermissionRequestCompleteHandler=function(Le){return Wt(this,"registerPermissionRequestCompleteHandler",{sync:!0},arguments)},Re.prototype.isBluetoothEnabled=function(){return Wt(this,"isBluetoothEnabled",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothSupport=function(){return Wt(this,"hasBluetoothSupport",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothLESupport=function(){return Wt(this,"hasBluetoothLESupport",{platforms:["Android"]},arguments)},Re.prototype.hasBluetoothLEPeripheralSupport=function(){return Wt(this,"hasBluetoothLEPeripheralSupport",{platforms:["Android"]},arguments)},Re.prototype.getBluetoothAuthorizationStatus=function(){return Wt(this,"getBluetoothAuthorizationStatus",{platforms:["Android","iOS"]},arguments)},Re.prototype.getBluetoothAuthorizationStatuses=function(){return Wt(this,"getBluetoothAuthorizationStatuses",{platforms:["Android"]},arguments)},Re.prototype.isExternalStorageAuthorized=function(){return Wt(this,"isExternalStorageAuthorized",{platforms:["Android"]},arguments)},Re.prototype.getExternalStorageAuthorizationStatus=function(){return Wt(this,"getExternalStorageAuthorizationStatus",{platforms:["Android"]},arguments)},Re.prototype.requestExternalStorageAuthorization=function(){return Wt(this,"requestExternalStorageAuthorization",{platforms:["Android"]},arguments)},Re.prototype.getExternalSdCardDetails=function(){return Wt(this,"getExternalSdCardDetails",{platforms:["Android"]},arguments)},Re.prototype.switchToWirelessSettings=function(){return Wt(this,"switchToWirelessSettings",{platforms:["Android"],sync:!0},arguments)},Re.prototype.switchToNFCSettings=function(){return Wt(this,"switchToNFCSettings",{platforms:["Android"],sync:!0},arguments)},Re.prototype.isNFCPresent=function(){return Wt(this,"isNFCPresent",{platforms:["Android"]},arguments)},Re.prototype.isNFCEnabled=function(){return Wt(this,"isNFCEnabled",{platforms:["Android"]},arguments)},Re.prototype.isNFCAvailable=function(){return Wt(this,"isNFCAvailable",{platforms:["Android"]},arguments)},Re.prototype.registerNFCStateChangeHandler=function(Le){return Wt(this,"registerNFCStateChangeHandler",{platforms:["Android"],sync:!0},arguments)},Re.prototype.isDataRoamingEnabled=function(){return Wt(this,"isDataRoamingEnabled",{platforms:["Android"]},arguments)},Re.prototype.isADBModeEnabled=function(){return Wt(this,"isADBModeEnabled",{platforms:["Android"]},arguments)},Re.prototype.isDeviceRooted=function(){return Wt(this,"isDeviceRooted",{platforms:["Android"]},arguments)},Re.prototype.isCameraRollAuthorized=function(Le){return Wt(this,"isCameraRollAuthorized",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.getCameraRollAuthorizationStatus=function(Le){return Wt(this,"getCameraRollAuthorizationStatus",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.requestCameraRollAuthorization=function(Le){return Wt(this,"requestCameraRollAuthorization",{platforms:["iOS"],callbackOrder:"reverse"},arguments)},Re.prototype.presentLimitedLibraryPicker=function(){return Wt(this,"presentLimitedLibraryPicker",{platforms:["iOS"]},arguments)},Re.prototype.isRemoteNotificationsEnabled=function(){return Wt(this,"isRemoteNotificationsEnabled",{platforms:["iOS","Android"]},arguments)},Re.prototype.isRegisteredForRemoteNotifications=function(){return Wt(this,"isRegisteredForRemoteNotifications",{platforms:["iOS"]},arguments)},Re.prototype.getRemoteNotificationsAuthorizationStatus=function(){return Wt(this,"getRemoteNotificationsAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestRemoteNotificationsAuthorization=function(Le,Te){return Wt(this,"requestRemoteNotificationsAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.getRemoteNotificationTypes=function(){return Wt(this,"getRemoteNotificationTypes",{platforms:["iOS"]},arguments)},Re.prototype.isRemindersAuthorized=function(){return Wt(this,"isRemindersAuthorized",{platforms:["iOS"]},arguments)},Re.prototype.getRemindersAuthorizationStatus=function(){return Wt(this,"getRemindersAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestRemindersAuthorization=function(){return Wt(this,"requestRemindersAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.isBackgroundRefreshAuthorized=function(){return Wt(this,"isBackgroundRefreshAuthorized",{platforms:["iOS"]},arguments)},Re.prototype.getBackgroundRefreshStatus=function(){return Wt(this,"getBackgroundRefreshStatus",{platforms:["iOS"]},arguments)},Re.prototype.requestBluetoothAuthorization=function(){return Wt(this,"requestBluetoothAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.isMotionAvailable=function(){return Wt(this,"isMotionAvailable",{platforms:["iOS"]},arguments)},Re.prototype.isMotionRequestOutcomeAvailable=function(){return Wt(this,"isMotionRequestOutcomeAvailable",{platforms:["iOS"]},arguments)},Re.prototype.requestMotionAuthorization=function(){return Wt(this,"requestMotionAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.getMotionAuthorizationStatus=function(){return Wt(this,"getMotionAuthorizationStatus",{platforms:["iOS"]},arguments)},Re.prototype.getLocationAccuracyAuthorization=function(){return Wt(this,"getLocationAccuracyAuthorization",{platforms:["iOS","Android"]},arguments)},Re.prototype.requestTemporaryFullAccuracyAuthorization=function(Le){return Wt(this,"requestTemporaryFullAccuracyAuthorization",{platforms:["iOS"]},arguments)},Re.prototype.registerLocationAccuracyAuthorizationChangeHandler=function(Le){return Wt(this,"registerLocationAccuracyAuthorizationChangeHandler",{platforms:["iOS"],sync:!0},arguments)},Object.defineProperty(Re.prototype,"permissionStatus",{get:function(){return Ut(this,"permissionStatus")},set:function(Le){He(this,"permissionStatus",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"NFCState",{get:function(){return Ut(this,"NFCState")},set:function(Le){He(this,"NFCState",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"cpuArchitecture",{get:function(){return Ut(this,"cpuArchitecture")},set:function(Le){He(this,"cpuArchitecture",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"remoteNotificationType",{get:function(){return Ut(this,"remoteNotificationType")},set:function(Le){He(this,"remoteNotificationType",Le)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"motionStatus",{get:function(){return Ut(this,"motionStatus")},set:function(Le){He(this,"motionStatus",Le)},enumerable:!1,configurable:!0}),Re.\u0275fac=(()=>{let Le;return function(ut){return(Le||(Le=p.xGo(Re)))(ut||Re)}})(),Re.\u0275prov=p.jDH({token:Re,factory:Re.\u0275fac}),Re.pluginName="Diagnostic",Re.plugin="cordova.plugins.diagnostic",Re.pluginRef="cordova.plugins.diagnostic",Re.repo="https://github.com/dpa99c/cordova-diagnostic-plugin",Re.platforms=["Android","iOS","Windows"],Re=(0,Ie.Cg)([],Re)}(Lt),Ae=function(Ve){return Ve.GRANTED="GRANTED",Ve.NOT_REQUESTED="NOT_REQUESTED",Ve.DENIED_ALWAYS="DENIED_ALWAYS",Ve.DENIED="DENIED",Ve.UNKNOWN="UNKNOWN",Ve}(Ae||{}),Me=function(Ve){return Ve.CAMERA="CAMERA",Ve.MICROPHONE="MICROPHONE",Ve}(Me||{});let Ze=(()=>{var Ve;class Re{constructor(Te,ut){this.platform=Te,this.diagnostic=ut}hasCameraPermission(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.diagnostic.getCameraAuthorizationStatus(!1);return Te.getPermissionStatus(ut)})()}hasMicrophonePermission(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.diagnostic.getMicrophoneAuthorizationStatus();return Te.getPermissionStatus(ut)})()}requestPermissions(Te){var ut=this;return(0,a.A)(function*(){if(ut.platform.is("android")){const Vt=[];Te.indexOf(Me.CAMERA)>=0&&Vt.push(ut.diagnostic.permission.CAMERA),Te.indexOf(Me.MICROPHONE)>=0&&Vt.push(ut.diagnostic.permission.RECORD_AUDIO),yield ut.diagnostic.requestRuntimePermissions(Vt)}else ut.platform.is("ios")?(Te.indexOf(Me.CAMERA)>=0&&(yield ut.diagnostic.requestCameraAuthorization(!1)),Te.indexOf(Me.MICROPHONE)>=0&&(yield ut.diagnostic.requestMicrophoneAuthorization())):console.warn("requesting permission in browser")})()}userRequestsPermissions(Te){var ut=this;return(0,a.A)(function*(){let Vt=!1;for(const dn of Te)Vt=(yield ut.canAskForPermission(dn))||Vt;Vt&&(yield ut.requestPermissions(Te))})()}canAskForPermission(Te){var ut=this;return(0,a.A)(function*(){let Vt=!0;return ut.platform.is("android")?Te===Me.CAMERA?Vt=(yield ut.hasCameraPermission())!==Ae.DENIED_ALWAYS:Te===Me.MICROPHONE&&(Vt=(yield ut.hasMicrophonePermission())!==Ae.DENIED_ALWAYS):ut.platform.is("ios")&&(Te===Me.CAMERA?Vt=(yield ut.hasCameraPermission())!==Ae.DENIED:Te===Me.MICROPHONE&&(Vt=(yield ut.hasMicrophonePermission())!==Ae.DENIED)),Vt})()}getPermissionStatus(Te){var ut=this;return(0,a.A)(function*(){return ut.isGranted(Te)?Ae.GRANTED:ut.isNotRequested(Te)?Ae.NOT_REQUESTED:ut.isDeniedAlways(Te)?Ae.DENIED_ALWAYS:ut.isDenied(Te)?Ae.DENIED:Ae.UNKNOWN})()}isGranted(Te){return Te===this.diagnostic.permissionStatus.GRANTED||Te===this.diagnostic.permissionStatus.GRANTED_WHEN_IN_USE}isNotRequested(Te){return Te===this.diagnostic.permissionStatus.NOT_REQUESTED}isDeniedAlways(Te){return Te===this.diagnostic.permissionStatus.DENIED_ALWAYS||Te===this.diagnostic.permissionStatus.RESTRICTED}isDenied(Te){return!(this.isGranted(Te)||this.isNotRequested(Te))}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(c.OD),p.KVO(Be))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var je=E(2342);let it=(()=>{var Ve;class Re{constructor(Te,ut,Vt){this.platform=Te,this.utilService=ut,this.permissionsService=Vt,this.hasCameras=!1,this.isActive=!1,this._hasCameraPermission=new pe.m,this.hasCameraPermission=this._hasCameraPermission.asObservable()}requestPermission(Te,ut){var Vt=this;return(0,a.A)(function*(){yield Vt.permissionsService.userRequestsPermissions([Me.CAMERA]),yield Vt.checkCameraPermissionsAndActivate(Te,ut)})()}checkCameraPermissionsAndActivate(Te,ut){var Vt=this;return(0,a.A)(function*(){(yield Vt.permissionsService.hasCameraPermission())===Ae.GRANTED?(document.body.style.backgroundColor="transparent",Vt._hasCameraPermission.next(!0),Vt.startScan(Te,ut)):Vt._hasCameraPermission.next(!1)})()}startScan(Te,ut=null){this.scan(Te,ut)}checkScan(Te){console.error(`The checkScan method needs to be overwritten. Ignoring text ${Te}`)}scan(Te,ut=null){var Vt=this;this.isActive=!0;let dn=this.utilService.translateMessage("SCAN_QR_INSTRUCTION");window.qrScanner.startScanner("Scan",dn,"#0b0b0b",dn,!1,this.platform.isRTL,function(){var fn=(0,a.A)(function*(Un){Te(Un),Vt.stopScanner()});return function(Un){return fn.apply(this,arguments)}}(),fn=>{this.stopScanner()})}stopScanner(){this.isActive&&setTimeout(()=>{window.qrScanner.stopScanner(),this.isActive=!1},100)}destroy(){window.qrScanner.stopScanner()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(c.OD),p.KVO(je.a),p.KVO(Ze))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Re})();var Pe=E(9030),Se=E(8810),ze=E(8793),Et=E(1413),Je=E(5343);const st=new k.c(Je.l);var yt=E(6365),vt=E(8750),Kt=E(983),Pt=E(9326),Rt=E(6648);function On(...Ve){const Re=(0,Pt.lI)(Ve),Le=(0,Pt.R0)(Ve,1/0),Te=Ve;return Te.length?1===Te.length?(0,vt.Tg)(Te[0]):(0,yt.U)(Le)((0,Rt.H)(Te,Re)):Kt.w}var An=E(6354),Bn=E(5558),Mn=E(17),Wn=E(8071),Ln=E(9974);const kn={connector:()=>new Et.B};function Gn(Ve,Re=kn){const{connector:Le}=Re;return(0,Ln.N)((Te,ut)=>{const Vt=Le();(0,vt.Tg)(Ve(function Fn(Ve){return new k.c(Re=>Ve.subscribe(Re))}(Vt))).subscribe(ut),ut.add(Te.subscribe(Vt))})}var $e=E(6697),lt=E(4360),Mt=E(3028);function kt(Ve,Re){return Re?Le=>(0,ze.x)(Re.pipe((0,$e.s)(1),function Tt(){return(0,Ln.N)((Ve,Re)=>{Ve.subscribe((0,lt._)(Re,Je.l))})}()),Le.pipe(kt(Ve))):(0,Mt.Z)((Le,Te)=>(0,vt.Tg)(Ve(Le,Te)).pipe((0,$e.s)(1),(0,tt.u)(Le)))}const qt="Service workers are disabled or not supported by this browser";class Tn{constructor(Re){if(this.serviceWorker=Re,Re){const Te=(0,re.R)(Re,"controllerchange").pipe((0,An.T)(()=>Re.controller)),ut=(0,Pe.v)(()=>(0,ve.of)(Re.controller)),Vt=(0,ze.x)(ut,Te);this.worker=Vt.pipe((0,Q.p)(Vn=>!!Vn)),this.registration=this.worker.pipe((0,Bn.n)(()=>Re.getRegistration()));const mr=(0,re.R)(Re,"message").pipe((0,An.T)(Vn=>Vn.data)).pipe((0,Q.p)(Vn=>Vn&&Vn.type)).pipe(function jn(Ve){return Ve?Re=>Gn(Ve)(Re):Re=>function Xn(Ve,Re){const Le=(0,Wn.T)(Ve)?Ve:()=>Ve;return(0,Wn.T)(Re)?Gn(Re,{connector:Le}):Te=>new Mn.G(Te,Le)}(new Et.B)(Re)}());mr.connect(),this.events=mr}else this.worker=this.events=this.registration=function Qt(Ve){return(0,Pe.v)(()=>(0,Se.$)(new Error(Ve)))}(qt)}postMessage(Re,Le){return this.worker.pipe((0,$e.s)(1),(0,De.M)(Te=>{Te.postMessage({action:Re,...Le})})).toPromise().then(()=>{})}postMessageWithOperation(Re,Le,Te){const ut=this.waitForOperationCompleted(Te),Vt=this.postMessage(Re,Le);return Promise.all([Vt,ut]).then(([,dn])=>dn)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Re){let Le;return Le="string"==typeof Re?Te=>Te.type===Re:Te=>Re.includes(Te.type),this.events.pipe((0,Q.p)(Le))}nextEventOfType(Re){return this.eventsOfType(Re).pipe((0,$e.s)(1))}waitForOperationCompleted(Re){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Q.p)(Le=>Le.nonce===Re),(0,$e.s)(1),(0,An.T)(Le=>{if(void 0!==Le.result)return Le.result;throw new Error(Le.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let wn=(()=>{var Ve;class Re{get isEnabled(){return this.sw.isEnabled}constructor(Te){if(this.sw=Te,this.pushManager=null,this.subscriptionChanges=new Et.B,!Te.isEnabled)return this.messages=st,this.notificationClicks=st,void(this.subscription=st);this.messages=this.sw.eventsOfType("PUSH").pipe((0,An.T)(Vt=>Vt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,An.T)(Vt=>Vt.data)),this.pushManager=this.sw.registration.pipe((0,An.T)(Vt=>Vt.pushManager));const ut=this.pushManager.pipe((0,Bn.n)(Vt=>Vt.getSubscription()));this.subscription=On(ut,this.subscriptionChanges)}requestSubscription(Te){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(qt));const ut={userVisibleOnly:!0};let Vt=this.decodeBase64(Te.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),dn=new Uint8Array(new ArrayBuffer(Vt.length));for(let fn=0;fnfn.subscribe(ut)),(0,$e.s)(1)).toPromise().then(fn=>(this.subscriptionChanges.next(fn),fn))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,$e.s)(1),(0,Bn.n)(ut=>{if(null===ut)throw new Error("Not subscribed to push notifications.");return ut.unsubscribe().then(Vt=>{if(!Vt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(qt))}decodeBase64(Te){return atob(Te)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(Tn))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac}),Re})(),Kn=(()=>{var Ve;class Re{get isEnabled(){return this.sw.isEnabled}constructor(Te){if(this.sw=Te,!Te.isEnabled)return this.versionUpdates=st,void(this.unrecoverable=st);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qt));const Te=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:Te},Te)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(qt));const Te=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:Te},Te)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(Tn))},Ve.\u0275prov=p.jDH({token:Ve,factory:Ve.\u0275fac}),Re})();const fr=new p.nKC("");function Ge(Ve,Re,Le,Te){return()=>{if(!(0,m.UE)(Te)||!("serviceWorker"in navigator)||!1===Le.enabled)return;let ut;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof Le.registrationStrategy)ut=Le.registrationStrategy();else{const[dn,...fn]=(Le.registrationStrategy||"registerWhenStable:30000").split(":");switch(dn){case"registerImmediately":ut=(0,ve.of)(null);break;case"registerWithDelay":ut=et(+fn[0]||0);break;case"registerWhenStable":ut=fn[0]?On(Fe(Ve),et(+fn[0])):Fe(Ve);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${Le.registrationStrategy}`)}}Ve.get(p.SKi).runOutsideAngular(()=>ut.pipe((0,$e.s)(1)).subscribe(()=>navigator.serviceWorker.register(Re,{scope:Le.scope}).catch(dn=>console.error("Service worker registration failed with:",dn))))}}function et(Ve){return(0,ve.of)(null).pipe(function Zt(Ve,Re=r){const Le=J(Ve,Re);return kt(()=>Le)}(Ve))}function Fe(Ve){return Ve.get(p.o8S).isStable.pipe((0,Q.p)(Le=>Le))}function qe(Ve,Re){return new Tn((0,m.UE)(Re)&&!1!==Ve.enabled?navigator.serviceWorker:void 0)}class Ct{}function Gt(Ve,Re={}){return(0,p.EmA)([wn,Kn,{provide:fr,useValue:Ve},{provide:Ct,useValue:Re},{provide:Tn,useFactory:qe,deps:[Ct,p.Agw]},{provide:p.hnV,useFactory:Ge,deps:[p.zZn,fr,Ct,p.Agw],multi:!0}])}let vn=(()=>{var Ve;class Re{static register(Te,ut={}){return{ngModule:Re,providers:[Gt(Te,ut)]}}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)},Ve.\u0275mod=p.$C({type:Ve}),Ve.\u0275inj=p.G2t({providers:[wn,Kn]}),Re})();var gt=E(446),zt=E(5173);const ye=(Ve,Re)=>({title_bb:Ve,animate_title:Re});function Ke(Ve,Re){if(1&Ve&&(p.j41(0,"ion-title",27),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.Y8G("ngClass",p.l_i(2,ye,null==Le.headerConfig?null:Le.headerConfig.showbackButton,(null==Le.headerConfig?null:Le.headerConfig.pageTitle)==Le.appName)),p.R7$(),p.JRh(null==Le.configVariables?null:Le.configVariables.siteName)}}function dt(Ve,Re){if(1&Ve&&(p.j41(0,"ion-title",28),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.headerConfig?null:Le.headerConfig.pageTitle)}}function pt(Ve,Re){1&Ve&&(p.nrm(0,"ion-input",29,0),p.nI1(2,"translate")),2&Ve&&p.Y8G("placeholder",p.bMT(2,1,"SEARCH_HINT"))}function Yt(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG(2);return p.Njj(Vt.emitEvent(ut,"edit"))}),p.nrm(1,"ion-icon",30),p.k0s()}}function $t(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",14)(1,"ion-buttons",15)(2,"ion-button",1),p.nrm(3,"ion-icon",16),p.k0s(),p.j41(4,"ion-button",17),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"back"))}),p.nrm(5,"ion-icon",18),p.k0s()(),p.DNE(6,Ke,2,5,"ion-title",19)(7,dt,2,1,"ion-title",20)(8,pt,3,3,"ion-input",21),p.j41(9,"ion-buttons",22)(10,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"search"))}),p.nrm(11,"ion-icon",24),p.k0s(),p.j41(12,"ion-button",23),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"profile"))}),p.nrm(13,"ion-icon",25),p.k0s()(),p.j41(14,"ion-buttons",22),p.DNE(15,Yt,2,0,"ion-button",26),p.k0s()()}if(2&Ve){const Le=p.XpG();p.R7$(2),p.Y8G("hidden",null==Le.headerConfig?null:Le.headerConfig.showbackButton),p.R7$(),p.FS9("src",null==Le.configVariables?null:Le.configVariables.tenantLogo),p.R7$(),p.Y8G("hidden",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton)),p.R7$(2),p.Y8G("ngIf",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton&&((null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("search"))>=0||(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0))),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig?null:Le.headerConfig.showbackButton)&&(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("search"))>=0),p.R7$(),p.Y8G("hidden",null==Le.headerConfig?null:Le.headerConfig.showbackButton),p.R7$(5),p.Y8G("hidden",!(null!=Le.headerConfig&&Le.headerConfig.showbackButton)),p.R7$(),p.Y8G("ngIf",(null==Le.headerConfig||null==Le.headerConfig.actionButtons?null:Le.headerConfig.actionButtons.indexOf("edit"))>=0)}}function an(Ve,Re){if(1&Ve&&(p.j41(0,"div",40),p.EFF(1),p.nI1(2,"translate"),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(p.bMT(2,1,null==Le.headerConfig?null:Le.headerConfig.pageTitle))}}function ln(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.SpI(" ",null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].kathaSakhiBotName," ")}}function xn(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].parentTaraBotName)}}function cn(Ve,Re){if(1&Ve&&(p.j41(0,"ion-label"),p.EFF(1),p.k0s()),2&Ve){const Le=p.XpG(2);p.R7$(),p.JRh(null==Le.configVariables||null==Le.configVariables[Le.language]?null:Le.configVariables[Le.language].teacherTaraBotName)}}function nn(Ve,Re){1&Ve&&p.nrm(0,"img",41)}function _n(Ve,Re){1&Ve&&p.nrm(0,"img",42)}function Sn(Ve,Re){1&Ve&&p.nrm(0,"img",43)}function Pn(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",31)(1,"div",32),p.bIt("click",function(ut){p.eBV(Le);const Vt=p.XpG();return p.Njj(Vt.emitEvent(ut,"back"))}),p.nrm(2,"ion-icon",33),p.DNE(3,an,3,3,"div",34)(4,ln,2,1,"ion-label",35)(5,xn,2,1,"ion-label",35)(6,cn,2,1,"ion-label",35),p.j41(7,"div",36),p.DNE(8,nn,1,0,"img",37)(9,_n,1,0,"img",38)(10,Sn,1,0,"img",39),p.k0s()()()}if(2&Ve){const Le=p.XpG();p.R7$(),p.Y8G("ngClass","Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)||"Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)?"question-bot":""),p.R7$(2),p.Y8G("ngIf",!Le.isTitleChanged),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Katha Sakhi"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf",Le.isTitleChanged&&"Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(2),p.Y8G("ngIf","Katha Sakhi"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf","Parent Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle)),p.R7$(),p.Y8G("ngIf","Teacher Tara"===(null==Le.headerConfig?null:Le.headerConfig.pageTitle))}}function hr(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",23),p.bIt("click",function(){const ut=p.eBV(Le).$implicit,Vt=p.XpG(2);return p.Njj(Vt.handleFilter(ut))}),p.j41(1,"ion-chip",48),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}if(2&Ve){const Le=Re.$implicit,Te=p.XpG(2);p.R7$(),p.Y8G("ngClass",(null==Le?null:Le.label)==(null==Te.defaultFilter?null:Te.defaultFilter.label)?"active":""),p.R7$(),p.JRh(p.bMT(3,2,Le.label))}}function X(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"div",44)(1,"ion-chip",45),p.bIt("click",function(){p.eBV(Le);const ut=p.XpG();return p.Njj(ut.toggleMenu())}),p.nrm(2,"ion-icon",46),p.k0s(),p.DNE(3,hr,4,4,"div",47),p.k0s()}if(2&Ve){const Le=p.XpG();p.R7$(3),p.Y8G("ngForOf",Le.filters)}}function Ue(Ve,Re){if(1&Ve){const Le=p.RV6();p.j41(0,"ion-item",49),p.bIt("click",function(ut){const Vt=p.eBV(Le).$implicit,dn=p.XpG();return p.Njj(dn.emitSideMenuItemEvent(ut,Vt))}),p.j41(1,"ion-label",50),p.EFF(2),p.nI1(3,"translate"),p.k0s()()}if(2&Ve){const Le=Re.$implicit,Te=p.XpG();p.R7$(),p.Y8G("ngClass",(null==Le?null:Le.label)==(null==Te.defaultFilter?null:Te.defaultFilter.label)?"active-label":""),p.R7$(),p.JRh(p.bMT(3,2,Le.label))}}let le=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn,Un,mr){this.utilService=Te,this.telemetryGeneratorService=ut,this.menuCtrl=Vt,this.headerService=dn,this.storage=fn,this.languageService=Un,this.modalCtrl=mr,this.headerConfig=!1,this.headerEvents=new p.bkB,this.sideMenuItemEvent=new p.bkB,this.isMenuOpen=!1,this.filters=[],this.appVersion="",this.appName="",this.isTitleChanged=!1,this.language="",C.q.getInfo().then(Vn=>{this.appVersion=`v${Vn.version}.${Vn.build}`,this.appName=Vn.name}),gt.g.then(Vn=>{this.configVariables=Vn}).catch(Vn=>{console.error("Failed to load configuration:",Vn)})}loadTabData(Te){this.language=Te,this.isTitleChanged=this.configVariables.titleCode.includes(Te)}ngOnInit(){var Te=this;return(0,a.A)(function*(){Te.defaultFilter={},Te.language=(yield Te.storage.getData("lang"))||"en",Te.isTitleChanged=Te.configVariables.titleCode.includes(Te.language),Te.languageSubscription=Te.languageService.currentLanguage$.subscribe(ut=>{Te.loadTabData(ut)}),Te.headerService.filterConfigEmitted$.subscribe(ut=>{Te.filters=[],Te.defaultFilter=ut.defaultFilter,Te.filters.push(ut.defaultFilter),ut.filter.forEach(Vt=>{Te.filters.push(Vt)})}),Te.appInfo=yield Te.utilService.getAppInfo()})()}scan(){var Te=this;return(0,a.A)(function*(){Te.telemetryGeneratorService.generateInteractTelemetry("TOUCH","qrscanner-clicked","home","home")})()}handleSearch(Te){var ut=this;return(0,a.A)(function*(){ut.emitEvent(Te,"search")})()}emitEvent(Te,ut){"scan"==ut&&this.scan(),this.headerEvents.emit({event:Te,name:ut})}toggleMenu(){var Te=this;return(0,a.A)(function*(){yield Te.menuCtrl.toggle(),Te.isMenuOpen=yield Te.menuCtrl.isEnabled()})()}emitSideMenuItemEvent(Te,ut){this.menuCtrl.close().then(()=>{this.handleFilter(ut)}).catch(Vt=>{this.handleFilter(ut)})}handleFilter(Te){this.defaultFilter=Te,this.sideMenuItemEvent.emit({filter:Te})}navigateToQRScreen(){var Te=this;return(0,a.A)(function*(){const ut=yield Te.modalCtrl.create({component:te,cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield ut.present(),ut.onDidDismiss()})()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(B.a0),p.rXU(zt.O),p.rXU(D._t),p.rXU(B.Ux),p.rXU(B.n$),p.rXU(F.g),p.rXU(D.W3))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-application-header"]],inputs:{headerConfig:"headerConfig"},outputs:{headerEvents:"headerEvents",sideMenuItemEvent:"sideMenuItemEvent"},decls:22,vars:14,consts:[["searchInput",""],[3,"hidden"],[1,"custom-header"],["class","header-content",4,"ngIf"],["class","bot-back-panel",4,"ngIf"],["class","pills-container",4,"ngIf"],["contentId","mainContent","side","start","persistent","true",1,"sb-side-menu",3,"swipeGesture"],[1,"filter_title"],[1,"ion-padding"],[1,"sb-menu-list"],["lines","none",3,"click",4,"ngFor","ngForOf"],[1,"footer_menu"],["role","button","menuClose","",1,"sb-menu-item"],["role","button","menuClose",""],[1,"header-content"],["slot","start",1,"start-icon"],["aria-hidden","true",1,"pitara-icon",3,"src"],[3,"click","hidden"],["aria-hidden","true","src","assets/icon/back.svg",1,"back-btn"],["role","heading","aria-level","1",3,"ngClass",4,"ngIf"],["role","heading","aria-level","1",4,"ngIf"],["type","search",3,"placeholder",4,"ngIf"],["slot","end",3,"hidden"],[3,"click"],["aria-hidden","true","src","assets/icon/search.svg"],["aria-hidden","true","src","assets/icon/language-icon.svg"],[3,"click",4,"ngIf"],["role","heading","aria-level","1",3,"ngClass"],["role","heading","aria-level","1"],["type","search",3,"placeholder"],["aria-hidden","true","src","assets/icon/edit.svg",1,"edit-icon"],[1,"bot-back-panel"],[1,"bot-back-panel-container",3,"click","ngClass"],["aria-hidden","true","src","assets/icon/bot-back-icon.svg"],["class","bot-back-panel__title",4,"ngIf"],[4,"ngIf"],[1,"logo"],["src","../../../assets/images/story_sakhi.png","alt","",4,"ngIf"],["src","../../../assets/images/parent_sakhi.png","alt","",4,"ngIf"],["src","../../../assets/images/teacher_sakhi.png","alt","",4,"ngIf"],[1,"bot-back-panel__title"],["src","../../../assets/images/story_sakhi.png","alt",""],["src","../../../assets/images/parent_sakhi.png","alt",""],["src","../../../assets/images/teacher_sakhi.png","alt",""],[1,"pills-container"],[1,"pills",3,"click"],["aria-hidden","true","src","assets/icon/list.svg"],[3,"click",4,"ngFor","ngForOf"],[1,"pills",3,"ngClass"],["lines","none",3,"click"],["role","button","menuClose","",1,"sb-menu-item",3,"ngClass"]],template:function(Te,ut){1&Te&&(p.j41(0,"ion-header",1)(1,"ion-toolbar",2),p.DNE(2,$t,16,9,"div",3)(3,Pn,11,8,"div",4)(4,X,4,1,"div",5),p.k0s()(),p.j41(5,"ion-menu",6)(6,"ion-header")(7,"ion-toolbar")(8,"ion-title",7),p.EFF(9),p.nI1(10,"translate"),p.k0s()()(),p.j41(11,"ion-content",8)(12,"ion-list",9),p.DNE(13,Ue,4,4,"ion-item",10),p.k0s()(),p.j41(14,"ion-footer")(15,"div",11)(16,"ion-label",12),p.EFF(17),p.nI1(18,"translate"),p.k0s(),p.j41(19,"ion-label",13)(20,"span"),p.EFF(21),p.k0s()()()()()),2&Te&&(p.Y8G("hidden",!(null!=ut.headerConfig&&ut.headerConfig.showHeader)),p.R7$(2),p.Y8G("ngIf","bot"!==(null==ut.headerConfig?null:ut.headerConfig.actionButtons[0])),p.R7$(),p.Y8G("ngIf","bot"===(null==ut.headerConfig?null:ut.headerConfig.actionButtons[0])),p.R7$(),p.Y8G("ngIf",!(null!=ut.headerConfig&&ut.headerConfig.showbackButton)&&"My Jaadui Pitara"!==(null==ut.headerConfig?null:ut.headerConfig.pageTitle)),p.R7$(),p.Y8G("swipeGesture",!1),p.R7$(4),p.JRh(p.bMT(10,10,"All Categories")),p.R7$(4),p.Y8G("ngForOf",ut.filters),p.R7$(4),p.Lme("",p.bMT(18,12,"Version: ")," ",ut.appVersion,""),p.R7$(4),p.JRh(null==ut.configVariables?null:ut.configVariables.siteName))},dependencies:[m.YU,m.Sq,m.bT,D.Jm,D.QW,D.ZB,D.W9,D.M0,D.eU,D.iq,D.$w,D.uz,D.he,D.nf,D.oS,D.BC,D.ai,D.Gw,_.D9],styles:["ion-header[_ngcontent-%COMP%]{box-shadow:none} .toolbar-container{padding:0!important;min-height:auto}.active-label[_ngcontent-%COMP%]{color:var(--ion-color-primary)}ion-icon[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;margin-left:0}.start-icon[_ngcontent-%COMP%] ion-icon.pitara-icon[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem}.header-content[_ngcontent-%COMP%]{display:flex}.pills-container[_ngcontent-%COMP%]{display:grid;gap:.25rem;overflow-y:auto;overflow-x:auto;grid-auto-flow:column;padding:1rem .5rem;grid-auto-columns:max-content}.pills-container[_ngcontent-%COMP%] .pills[_ngcontent-%COMP%]{padding:.375rem .75rem;text-transform:capitalize;border-radius:.625rem;font-size:.75rem;width:max-content}.pills-container[_ngcontent-%COMP%] .pills.active[_ngcontent-%COMP%]{background-color:var(--ion-color-secondary-contrast);color:var(--ion-color-primary-contrast)}.pills-container[_ngcontent-%COMP%] .pills[_ngcontent-%COMP%] icon-icon[_ngcontent-%COMP%]{margin-left:0}.sb-side-menu[_ngcontent-%COMP%]{--max-width: 68%}.sb-side-menu[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--background: var(--ion-color-primary-contrast);--color: var(--ion-color-secondary-contrast);margin:0 0 0 1.5rem}.sb-side-menu[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%] .filter_title[_ngcontent-%COMP%]{width:100%!important}.sb-side-menu[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{display:flex;align-items:center}.sb-side-menu[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block}.sb-side-menu[_ngcontent-%COMP%] .sb-menu-list[_ngcontent-%COMP%]{padding:0!important}span[_ngcontent-%COMP%]{font-size:12px}.custom-header[_ngcontent-%COMP%] ion-title[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.custom-header[_ngcontent-%COMP%] .title_bb[_ngcontent-%COMP%]{color:#000}.bot-back-panel[_ngcontent-%COMP%]{padding-bottom:2rem;background:url(Doodles.5521a3972f72a279.svg) center center/cover no-repeat;background-color:#fffaee}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container[_ngcontent-%COMP%]{background:var(--ion-color-primary);height:4rem;padding:1rem;display:flex;align-items:center}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container.question-bot[_ngcontent-%COMP%]{background:var(--ion-color-tertiary)}.bot-back-panel[_ngcontent-%COMP%] .bot-back-panel-container[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:var(--ion-color-primary-contrast)}.bot-back-panel__title[_ngcontent-%COMP%]{font-size:1rem;font-style:normal;font-weight:700;color:var(--ion-color-primary-contrast);padding:0 .5rem}.edit-icon[_ngcontent-%COMP%]{width:1.2rem;height:1.2rem}.back-btn[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.logo[_ngcontent-%COMP%]{position:absolute;right:0;top:-.5rem;width:7rem}ion-title[_ngcontent-%COMP%]{font-weight:700;padding:0 .5rem 0 0;font-size:.8rem;width:48%}.animate_title[_ngcontent-%COMP%]{background-image:linear-gradient(-225deg,#FCB915 5%,var(--ion-color-primary) 29%,var(--ion-color-primary-shade) 67%,#EC5050 100%);background-size:auto auto;background-clip:border-box;background-size:200% auto;background-clip:text;text-fill-color:transparent;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:_ngcontent-%COMP%_textclip 2s linear infinite;font-weight:700;padding:0 .5rem 0 0;font-size:.8rem}@keyframes _ngcontent-%COMP%_textclip{to{background-position:200% center}}.footer_menu[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;margin:.5rem 1.5rem}"]}),Re})();const Ye=["mainContent"];let _t=(()=>{var Ve;class Re{constructor(Te,ut,Vt,dn,fn,Un,mr,Vn,lr,Or,ni,gi){this.headerService=Te,this.telemetryAutoSyncService=ut,this.scannerService=Vt,this.popoverCtrl=dn,this.modalCtrl=fn,this.router=Un,this.alertController=mr,this.location=Vn,this.route=lr,this.platform=Or,this.translate=ni,this.swUpdate=gi,this.langModalOpen=!1,this.count=0,this.optModalOpen=!1,this.languages=[],this.exitModalPresented=!1,this.environmentInjector=(0,p.WQX)(p.uvJ),this.initializeApp(),this.initialize()}initializeApp(){history.pushState(null,"",location.href),this.swUpdate.versionUpdates.subscribe(Te=>{switch(Te.type){case"VERSION_DETECTED":this.presentUpdateAlert();break;case"VERSION_READY":console.log(`Current app version: ${Te.currentVersion.hash}`);break;case"VERSION_INSTALLATION_FAILED":console.log(`Failed to install app version '${Te.version.hash}': ${Te.error}`)}})}initialize(){var Te=this;return(0,a.A)(function*(){window.onpopstate=(0,a.A)(function*(){history.pushState(null,"",location.href);const ut=yield Te.modalCtrl.getTop();ut&&ut.dismiss()})})()}presentExitConfirmationModal(){var Te=this;return(0,a.A)(function*(){let ut;Te.exitModalPresented=!0,setTimeout(()=>{Te.exitModalPresented=!1},4e3),Te.optModalOpen=!0,ut=yield Te.modalCtrl.create({component:se.Z,cssClass:"sheet-modal",breakpoints:[.2],showBackdrop:!1,backdropDismiss:!1,initialBreakpoint:.2,handle:!1,handleBehavior:"none"}),yield ut.present(),ut.onDidDismiss().then(Vt=>{Te.optModalOpen=!1,Vt.data&&Vt.data&&(window.close(),C.q.exitApp())})})()}presentUpdateAlert(){var Te=this;return(0,a.A)(function*(){yield(yield Te.alertController.create({header:Te.translate.instant("Update Available"),message:Te.translate.instant("A new version of the application is available. Load it?"),buttons:[{text:Te.translate.instant("Yes"),handler:()=>{window.location.reload()}}]})).present()})()}ngOnInit(){var Te=this;return(0,a.A)(function*(){history.pushState(null,document.title,window.location.href),Te.headerService.headerConfigEmitted$.subscribe(ut=>{Te.headerConfig=ut}),Te.headerService.filterConfigEmitted$.subscribe(ut=>{Te.languages=ut.languages}),Te.autoSyncTelemetry(),C.q.addListener("pause",()=>Te.telemetryAutoSyncService.pause()),C.q.addListener("resume",()=>Te.telemetryAutoSyncService.continue())})()}handleHeaderEvents(Te){var ut=this;return(0,a.A)(function*(){"scan"==Te.name?ut.scannerService.requestPermission(Vt=>{if("cancel"===Vt||"cancel_hw_back"===Vt||"cancel_nav_back"===Vt)return;let dn="";const fn=new RegExp("(/dial/(?[a-zA-Z0-9]+)|(/QR/\\?id=(?[a-zA-Z0-9]+)))").exec(Vt);fn&&fn.length>1&&(dn=null==fn?void 0:fn.groups[Object.keys(null==fn?void 0:fn.groups).find(Un=>!(null==fn||!fn.groups[Un]))]),dn?ut.router.navigate(["/qr-scan-result"],{state:{scannedData:dn}}):ut.handleInvalidQRcode(Vt)},Vt=>{console.warn(Vt)}):"profile"==Te.name?ut.langModalOpen||(ut.presentModal(Te),ut.langModalOpen=!0):"search"==Te.name&&ut.router.navigate(["/search"]),ut.headerService.sidebarEvent(Te)})()}presentModal(Te){var ut=this;return(0,a.A)(function*(){const Vt=yield ut.popoverCtrl.create({component:w,componentProps:{languages:ut.languages},cssClass:"lang-modal",event:Te,translucent:!0,dismissOnSelect:!0});yield Vt.present(),Vt.onDidDismiss().then(dn=>{ut.langModalOpen=!1,ut.headerService.sidebarEvent({name:"language"})})})()}menuItemAction(Te){var ut=this;return(0,a.A)(function*(){ut.headerService.sideMenuItemEvents(Te)})()}autoSyncTelemetry(){this.telemetryAutoSyncService.start(3e4).subscribe()}handleInvalidQRcode(Te){var ut=this;return(0,a.A)(function*(){const Vt=yield ut.modalCtrl.create({component:te,componentProps:{scannedData:Te},cssClass:"add-to-pitara",breakpoints:[0,1],showBackdrop:!1,initialBreakpoint:1,handle:!1,handleBehavior:"none"});yield Vt.present(),Vt.onDidDismiss()})()}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.rXU(g.U),p.rXU(ke),p.rXU(it),p.rXU(D.IE),p.rXU(D.W3),p.rXU(O.Ix),p.rXU(D.hG),p.rXU(m.aZ),p.rXU(O.nX),p.rXU(c.OD),p.rXU(_.c$),p.rXU(Kn))},Ve.\u0275cmp=p.VBU({type:Ve,selectors:[["app-root"]],viewQuery:function(Te,ut){if(1&Te&&p.GBs(Ye,5,D.Rg),2&Te){let Vt;p.mGM(Vt=p.lsd())&&(ut.routerOutlet=Vt.first)}},decls:8,vars:2,consts:[["ionRouterOutlet",""],[2,"z-index","1"],[3,"headerEvents","sideMenuItemEvent","headerConfig"],["contentId","mainContent"],["id","mainContent","main","",3,"swipeGesture"]],template:function(Te,ut){if(1&Te){const Vt=p.RV6();p.j41(0,"ion-app")(1,"div",1)(2,"app-application-header",2),p.bIt("headerEvents",function(fn){return p.eBV(Vt),p.Njj(ut.handleHeaderEvents(fn))})("sideMenuItemEvent",function(fn){return p.eBV(Vt),p.Njj(ut.menuItemAction(fn))}),p.k0s()(),p.j41(3,"ion-split-pane",3),p.nrm(4,"ion-router-outlet",4,0),p.k0s(),p.nrm(6,"ion-router-outlet")(7,"app-tabs"),p.k0s()}2&Te&&(p.R7$(2),p.Y8G("headerConfig",ut.headerConfig),p.R7$(2),p.Y8G("swipeGesture",!1))},dependencies:[D.U1,D.HP,D.Rg,le]}),Re})();const Nn=[{path:"",loadChildren:()=>E.e(786).then(E.bind(E,786)).then(Ve=>Ve.SplashPageModule),pathMatch:"full"},{path:"tabs",loadChildren:()=>E.e(5695).then(E.bind(E,5695)).then(Ve=>Ve.TabsPageModule)},{path:"home",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(4392)]).then(E.bind(E,4392)).then(Ve=>Ve.HomePageModule)},{path:"my-pitara",loadChildren:()=>Promise.all([E.e(2076),E.e(4567)]).then(E.bind(E,4567)).then(Ve=>Ve.MyPitaraPageModule)},{path:"story",loadChildren:()=>Promise.all([E.e(4503),E.e(2648)]).then(E.bind(E,2648)).then(Ve=>Ve.StoryPageModule)},{path:"player",loadChildren:()=>E.e(7916).then(E.bind(E,7916)).then(Ve=>Ve.PlayerPageModule)},{path:"teacher-sakhi",loadChildren:()=>Promise.all([E.e(4503),E.e(1177)]).then(E.bind(E,1177)).then(Ve=>Ve.TeacherSakhiPageModule)},{path:"view-all",loadChildren:()=>Promise.all([E.e(5006),E.e(6674),E.e(3119)]).then(E.bind(E,3119)).then(Ve=>Ve.ViewAllPageModule)},{path:"create-playlist",loadChildren:()=>Promise.all([E.e(6674),E.e(3066)]).then(E.bind(E,3066)).then(Ve=>Ve.CreatePlaylistPageModule)},{path:"search",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(1983)]).then(E.bind(E,1983)).then(Ve=>Ve.SearchPageModule)},{path:"qr-scan-result",loadChildren:()=>Promise.all([E.e(5006),E.e(2076),E.e(8761)]).then(E.bind(E,8761)).then(Ve=>Ve.QrScanResultPageModule)},{path:"parent-sakhi",loadChildren:()=>Promise.all([E.e(4503),E.e(101)]).then(E.bind(E,101)).then(Ve=>Ve.ParentSakhiPageModule)},{path:"playlist-details",loadChildren:()=>Promise.all([E.e(2076),E.e(4294)]).then(E.bind(E,4294)).then(Ve=>Ve.PlaylistDetailsPageModule)}];let pr=(()=>{var Ve;class Re{}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)},Ve.\u0275mod=p.$C({type:Ve}),Ve.\u0275inj=p.G2t({imports:[O.iI.forRoot(Nn,{preloadingStrategy:O.Kp}),O.iI]}),Re})();var wr=E(5553);class qr{constructor(Re,Le="/assets/i18n/",Te=".json"){this.http=Re,this.prefix=Le,this.suffix=Te}getTranslation(Re){return this.http.get(`${this.prefix}${Re}${this.suffix}`)}}var Wr=E(1626),ei=E(3486),jr=E(4591),Vi=E(6011),Dr=E(1765),vi=E(444),$n=E(7803),mi=E(3696),Oi=E(3871),Di=E(2918),Ai=E(1113),ji=E(3721),Mi=E(8402),Hi=E(4447),Kr=E(3172);function wi(Ve){return new qr(Ve,"./assets/i18n/",".json")}function _i(Ve){return()=>Ve.initializePlugin()}let Po=(()=>{var Ve;class Re{constructor(Te,ut){this.translate=Te,this.storage=ut,this.findSiteSubDomain(),this.storage.getData("lang").then(Vt=>{this.translate.setDefaultLang(Vt||"hi"),Vt||this.setDefaultLanguage()}),gt.g.then(Vt=>{this.configVariables=Vt}).catch(Vt=>{console.error("Failed to load configuration:",Vt)})}setDefaultLanguage(){this.storage.setData("lang","hi"),this.translate.setDefaultLang("hi"),this.translate.use("hi");for(let dn=0;dn<(null===(Te=this.configVariables)||void 0===Te?void 0:Te.languages.length);dn++){var Te,ut;if(null!==(ut=this.configVariables)&&void 0!==ut&&ut.languages[dn].default){var Vt;let fn=null===(Vt=this.configVariables)||void 0===Vt?void 0:Vt.languages[dn].id;this.storage.setData("lang",fn),this.translate.setDefaultLang(fn),this.translate.use(fn)}}}findSiteSubDomain(){const Vt=new URL(document.baseURI).hostname.split(".");localStorage.setItem("subDomain",Vt[0]),this.setManifestFile(Vt[0])}setManifestFile(Te){var ut=document.createElement("link");ut.rel="manifest",ut.href=Te+".webmanifest",document.getElementsByTagName("head")[0].appendChild(ut)}}return(Ve=Re).\u0275fac=function(Te){return new(Te||Ve)(p.KVO(_.c$),p.KVO(ei.n))},Ve.\u0275mod=p.$C({type:Ve,bootstrap:[_t]}),Ve.\u0275inj=p.G2t({providers:[{provide:O.b,useClass:c.jM},ei.n,jr.a,Vi.H,Dr.H,ke,g.U,je.a,vi.f,$n.q,B.Gf,mi.w,B.hs,B.q4,B.XU,Oi.d,B.XI,Di.B,zt.O,it,Ze,Be,B.Sc,Ai.q,B.F_,Mi.Z,B.MK,Hi.i,Kn,{provide:p.hnV,useFactory:_i,deps:[jr.a],multi:!0}],imports:[S.Bb,D.bv.forRoot(),pr,Wr.q1,_.h.forRoot({loader:{provide:_.Wr,useFactory:wi,deps:[Wr.Qq]}}),wr.h,ji.h,vn.register("ngsw-worker.js",{enabled:Kr.c.production})]}),Re})();var Ir=E(1288),Bi=E(9657);const go=function(){var Ve=(0,a.A)(function*(Re,Le){if(!(typeof window>"u"))return yield,(0,Bi.b)([["jeep-sqlite",[[1,"jeep-sqlite",{autoSave:[516,"autosave"],typeOrm:[516,"typeorm"],wasmPath:[513,"wasmpath"],pickText:[513,"picktext"],saveText:[513,"savetext"],buttonOptions:[513,"buttonoptions"],innerAutoSave:[32],innerTypeOrm:[32],innerWasmPath:[32],innerPickText:[32],innerSaveText:[32],innerButtonOptions:[32],echo:[64],createConnection:[64],isConnection:[64],closeConnection:[64],open:[64],close:[64],getVersion:[64],beginTransaction:[64],commitTransaction:[64],rollbackTransaction:[64],isTransactionActive:[64],execute:[64],executeSet:[64],run:[64],query:[64],getTableList:[64],isDBExists:[64],isDBOpen:[64],deleteDatabase:[64],isStoreOpen:[64],copyFromAssets:[64],isTableExists:[64],createSyncTable:[64],getSyncDate:[64],setSyncDate:[64],isJsonValid:[64],importFromJson:[64],exportToJson:[64],deleteExportedRows:[64],addUpgradeStatement:[64],isDatabase:[64],getDatabaseList:[64],checkConnectionsConsistency:[64],saveToStore:[64],saveToLocalDisk:[64],getFromLocalDiskToStore:[64],getFromHTTPRequest:[64]},null,{autoSave:["parseAutoSave"],typeOrm:["parseTypeOrm"],wasmPath:["parseWasmPath"],pickText:["parsePickText"],saveText:["parseSaveText"],buttonOptions:["parseButtonOptions"]}]]]],Le)});return function(Le,Te){return Ve.apply(this,arguments)}}();var zi=E(5083);(0,p.SmG)(),"web"===zi.Ii.getPlatform()&&(window,typeof window>"u"?Promise.resolve():(0,Ir.p)().then(()=>(0,Ir.b)([["pwa-camera-modal",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],present:[64],dismiss:[64]}]]],["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],hidePicker:[4,"hide-picker"],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[16,"keyup","handleBackdropKeyUp"]]]]]],undefined)),go(window),window.addEventListener("DOMContentLoaded",(0,a.A)(function*(){const Ve=document.createElement("jeep-sqlite");document.body.appendChild(Ve),yield customElements.whenDefined("jeep-sqlite"),Ve.autoSave=!0}))),S.sG().bootstrapModule(Po).catch(Ve=>console.log(Ve))},1990:(Ce,ee,E)=>{var a=ee;a.bignum=E(6867),a.define=E(6626).define,a.base=E(5066),a.constants=E(7740),a.decoders=E(1558),a.encoders=E(2714)},6626:(Ce,ee,E)=>{var a=E(1990),S=E(1993);function O(c,D){this.name=c,this.body=D,this.decoders={},this.encoders={}}ee.define=function(D,C){return new O(D,C)},O.prototype._createNamed=function(D){var C;try{C=E(8326).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch{C=function(F){this._initNamed(F)}}return S(C,D),C.prototype._initNamed=function(F){D.call(this,F)},new C(this)},O.prototype._getDecoder=function(D){return this.decoders.hasOwnProperty(D=D||"der")||(this.decoders[D]=this._createNamed(a.decoders[D])),this.decoders[D]},O.prototype.decode=function(D,C,_){return this._getDecoder(C).decode(D,_)},O.prototype._getEncoder=function(D){return this.encoders.hasOwnProperty(D=D||"der")||(this.encoders[D]=this._createNamed(a.encoders[D])),this.encoders[D]},O.prototype.encode=function(D,C,_){return this._getEncoder(C).encode(D,_)}},7290:(Ce,ee,E)=>{var a=E(1993),S=E(5066).Reporter,p=E(3838).Buffer;function O(D,C){S.call(this,C),p.isBuffer(D)?(this.base=D,this.offset=0,this.length=D.length):this.error("Input not Buffer")}function c(D,C){if(Array.isArray(D))this.length=0,this.value=D.map(function(_){return _ instanceof c||(_=new c(_,C)),this.length+=_.length,_},this);else if("number"==typeof D){if(!(0<=D&&D<=255))return C.error("non-byte EncoderBuffer value");this.value=D,this.length=1}else if("string"==typeof D)this.value=D,this.length=p.byteLength(D);else{if(!p.isBuffer(D))return C.error("Unsupported type: "+typeof D);this.value=D,this.length=D.length}}a(O,S),ee.t=O,O.prototype.save=function(){return{offset:this.offset,reporter:S.prototype.save.call(this)}},O.prototype.restore=function(C){var _=new O(this.base);return _.offset=C.offset,_.length=this.offset,this.offset=C.offset,S.prototype.restore.call(this,C.reporter),_},O.prototype.isEmpty=function(){return this.offset===this.length},O.prototype.readUInt8=function(C){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(C||"DecoderBuffer overrun")},O.prototype.skip=function(C,_){if(!(this.offset+C<=this.length))return this.error(_||"DecoderBuffer overrun");var F=new O(this.base);return F._reporterState=this._reporterState,F.offset=this.offset,F.length=this.offset+C,this.offset+=C,F},O.prototype.raw=function(C){return this.base.slice(C?C.offset:this.offset,this.length)},ee.d=c,c.prototype.join=function(C,_){return C||(C=new p(this.length)),_||(_=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(F){F.join(C,_),_+=F.length}):("number"==typeof this.value?C[_]=this.value:"string"==typeof this.value?C.write(this.value,_):p.isBuffer(this.value)&&this.value.copy(C,_),_+=this.length)),C}},5066:(Ce,ee,E)=>{var a=ee;a.Reporter=E(5697).a,a.DecoderBuffer=E(7290).t,a.EncoderBuffer=E(7290).d,a.Node=E(4320)},4320:(Ce,ee,E)=>{var a=E(5066).Reporter,S=E(5066).EncoderBuffer,p=E(5066).DecoderBuffer,O=E(9210),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],D=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function _(B,m){var T={};this._baseState=T,T.enc=B,T.parent=m||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}Ce.exports=_;var F=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];_.prototype.clone=function(){var m=this._baseState,T={};F.forEach(function(w){T[w]=m[w]});var A=new this.constructor(T.parent);return A._baseState=T,A},_.prototype._wrap=function(){var m=this._baseState;D.forEach(function(T){this[T]=function(){var w=new this.constructor(this);return m.children.push(w),w[T].apply(w,arguments)}},this)},_.prototype._init=function(m){var T=this._baseState;O(null===T.parent),m.call(this),T.children=T.children.filter(function(A){return A._baseState.parent===this},this),O.equal(T.children.length,1,"Root node can have only one child")},_.prototype._useArgs=function(m){var T=this._baseState,A=m.filter(function(w){return w instanceof this.constructor},this);m=m.filter(function(w){return!(w instanceof this.constructor)},this),0!==A.length&&(O(null===T.children),T.children=A,A.forEach(function(w){w._baseState.parent=this},this)),0!==m.length&&(O(null===T.args),T.args=m,T.reverseArgs=m.map(function(w){if("object"!=typeof w||w.constructor!==Object)return w;var P={};return Object.keys(w).forEach(function($){$==(0|$)&&($|=0),P[w[$]]=$}),P}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(B){_.prototype[B]=function(){throw new Error(B+" not implemented for encoding: "+this._baseState.enc)}}),c.forEach(function(B){_.prototype[B]=function(){var T=this._baseState,A=Array.prototype.slice.call(arguments);return O(null===T.tag),T.tag=B,this._useArgs(A),this}}),_.prototype.use=function(m){O(m);var T=this._baseState;return O(null===T.use),T.use=m,this},_.prototype.optional=function(){return this._baseState.optional=!0,this},_.prototype.def=function(m){var T=this._baseState;return O(null===T.default),T.default=m,T.optional=!0,this},_.prototype.explicit=function(m){var T=this._baseState;return O(null===T.explicit&&null===T.implicit),T.explicit=m,this},_.prototype.implicit=function(m){var T=this._baseState;return O(null===T.explicit&&null===T.implicit),T.implicit=m,this},_.prototype.obj=function(){var m=this._baseState,T=Array.prototype.slice.call(arguments);return m.obj=!0,0!==T.length&&this._useArgs(T),this},_.prototype.key=function(m){var T=this._baseState;return O(null===T.key),T.key=m,this},_.prototype.any=function(){return this._baseState.any=!0,this},_.prototype.choice=function(m){var T=this._baseState;return O(null===T.choice),T.choice=m,this._useArgs(Object.keys(m).map(function(A){return m[A]})),this},_.prototype.contains=function(m){var T=this._baseState;return O(null===T.use),T.contains=m,this},_.prototype._decode=function(m,T){var A=this._baseState;if(null===A.parent)return m.wrapResult(A.children[0]._decode(m,T));var R,w=A.default,P=!0,$=null;if(null!==A.key&&($=m.enterKey(A.key)),A.optional){var L=null;if(null!==A.explicit?L=A.explicit:null!==A.implicit?L=A.implicit:null!==A.tag&&(L=A.tag),null!==L||A.any){if(P=this._peekTag(m,L,A.any),m.isError(P))return P}else{var M=m.save();try{null===A.choice?this._decodeGeneric(A.tag,m,T):this._decodeChoice(m,T),P=!0}catch{P=!1}m.restore(M)}}if(A.obj&&P&&(R=m.enterObject()),P){if(null!==A.explicit){var U=this._decodeTag(m,A.explicit);if(m.isError(U))return U;m=U}var j=m.offset;if(null===A.use&&null===A.choice){A.any&&(M=m.save());var W=this._decodeTag(m,null!==A.implicit?A.implicit:A.tag,A.any);if(m.isError(W))return W;A.any?w=m.raw(M):m=W}if(T&&T.track&&null!==A.tag&&T.track(m.path(),j,m.length,"tagged"),T&&T.track&&null!==A.tag&&T.track(m.path(),m.offset,m.length,"content"),A.any||(w=null===A.choice?this._decodeGeneric(A.tag,m,T):this._decodeChoice(m,T)),m.isError(w))return w;if(!A.any&&null===A.choice&&null!==A.children&&A.children.forEach(function(te){te._decode(m,T)}),A.contains&&("octstr"===A.tag||"bitstr"===A.tag)){var ie=new p(w);w=this._getUse(A.contains,m._reporterState.obj)._decode(ie,T)}}return A.obj&&P&&(w=m.leaveObject(R)),null===A.key||null===w&&!0!==P?null!==$&&m.exitKey($):m.leaveKey($,A.key,w),w},_.prototype._decodeGeneric=function(m,T,A){var w=this._baseState;return"seq"===m||"set"===m?null:"seqof"===m||"setof"===m?this._decodeList(T,m,w.args[0],A):/str$/.test(m)?this._decodeStr(T,m,A):"objid"===m&&w.args?this._decodeObjid(T,w.args[0],w.args[1],A):"objid"===m?this._decodeObjid(T,null,null,A):"gentime"===m||"utctime"===m?this._decodeTime(T,m,A):"null_"===m?this._decodeNull(T,A):"bool"===m?this._decodeBool(T,A):"objDesc"===m?this._decodeStr(T,m,A):"int"===m||"enum"===m?this._decodeInt(T,w.args&&w.args[0],A):null!==w.use?this._getUse(w.use,T._reporterState.obj)._decode(T,A):T.error("unknown tag: "+m)},_.prototype._getUse=function(m,T){var A=this._baseState;return A.useDecoder=this._use(m,T),O(null===A.useDecoder._baseState.parent),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit&&(A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit),A.useDecoder},_.prototype._decodeChoice=function(m,T){var A=this._baseState,w=null,P=!1;return Object.keys(A.choice).some(function($){var L=m.save(),M=A.choice[$];try{var R=M._decode(m,T);if(m.isError(R))return!1;w={type:$,value:R},P=!0}catch{return m.restore(L),!1}return!0},this),P?w:m.error("Choice not matched")},_.prototype._createEncoderBuffer=function(m){return new S(m,this.reporter)},_.prototype._encode=function(m,T,A){var w=this._baseState;if(null===w.default||w.default!==m){var P=this._encodeValue(m,T,A);if(void 0!==P&&!this._skipDefault(P,T,A))return P}},_.prototype._encodeValue=function(m,T,A){var w=this._baseState;if(null===w.parent)return w.children[0]._encode(m,T||new a);var M=null;if(this.reporter=T,w.optional&&void 0===m){if(null===w.default)return;m=w.default}var P=null,$=!1;if(w.any)M=this._createEncoderBuffer(m);else if(w.choice)M=this._encodeChoice(m,T);else if(w.contains)P=this._getUse(w.contains,A)._encode(m,T),$=!0;else if(w.children)P=w.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,T,m);if(null===j._baseState.key)return T.error("Child should have a key");var W=T.enterKey(j._baseState.key);if("object"!=typeof m)return T.error("Child expected, but input is not object");var ie=j._encode(m[j._baseState.key],T,m);return T.leaveKey(W),ie},this).filter(function(j){return j}),P=this._createEncoderBuffer(P);else if("seqof"===w.tag||"setof"===w.tag){if(!w.args||1!==w.args.length)return T.error("Too many args for : "+w.tag);if(!Array.isArray(m))return T.error("seqof/setof, but data is not Array");var L=this.clone();L._baseState.implicit=null,P=this._createEncoderBuffer(m.map(function(j){return this._getUse(this._baseState.args[0],m)._encode(j,T)},L))}else null!==w.use?M=this._getUse(w.use,A)._encode(m,T):(P=this._encodePrimitive(w.tag,m),$=!0);if(!w.any&&null===w.choice){var R=null!==w.implicit?w.implicit:w.tag,U=null===w.implicit?"universal":"context";null===R?null===w.use&&T.error("Tag could be omitted only for .use()"):null===w.use&&(M=this._encodeComposite(R,$,U,P))}return null!==w.explicit&&(M=this._encodeComposite(w.explicit,!1,"context",M)),M},_.prototype._encodeChoice=function(m,T){var A=this._baseState,w=A.choice[m.type];return w||O(!1,m.type+" not found in "+JSON.stringify(Object.keys(A.choice))),w._encode(m.value,T)},_.prototype._encodePrimitive=function(m,T){var A=this._baseState;if(/str$/.test(m))return this._encodeStr(T,m);if("objid"===m&&A.args)return this._encodeObjid(T,A.reverseArgs[0],A.args[1]);if("objid"===m)return this._encodeObjid(T,null,null);if("gentime"===m||"utctime"===m)return this._encodeTime(T,m);if("null_"===m)return this._encodeNull();if("int"===m||"enum"===m)return this._encodeInt(T,A.args&&A.reverseArgs[0]);if("bool"===m)return this._encodeBool(T);if("objDesc"===m)return this._encodeStr(T,m);throw new Error("Unsupported tag: "+m)},_.prototype._isNumstr=function(m){return/^[0-9 ]*$/.test(m)},_.prototype._isPrintstr=function(m){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(m)}},5697:(Ce,ee,E)=>{var a=E(1993);function S(O){this._reporterState={obj:null,path:[],options:O||{},errors:[]}}function p(O,c){this.path=O,this.rethrow(c)}ee.a=S,S.prototype.isError=function(c){return c instanceof p},S.prototype.save=function(){var c=this._reporterState;return{obj:c.obj,pathLen:c.path.length}},S.prototype.restore=function(c){var D=this._reporterState;D.obj=c.obj,D.path=D.path.slice(0,c.pathLen)},S.prototype.enterKey=function(c){return this._reporterState.path.push(c)},S.prototype.exitKey=function(c){var D=this._reporterState;D.path=D.path.slice(0,c-1)},S.prototype.leaveKey=function(c,D,C){var _=this._reporterState;this.exitKey(c),null!==_.obj&&(_.obj[D]=C)},S.prototype.path=function(){return this._reporterState.path.join("/")},S.prototype.enterObject=function(){var c=this._reporterState,D=c.obj;return c.obj={},D},S.prototype.leaveObject=function(c){var D=this._reporterState,C=D.obj;return D.obj=c,C},S.prototype.error=function(c){var D,C=this._reporterState,_=c instanceof p;if(D=_?c:new p(C.path.map(function(F){return"["+JSON.stringify(F)+"]"}).join(""),c.message||c,c.stack),!C.options.partial)throw D;return _||C.errors.push(D),D},S.prototype.wrapResult=function(c){var D=this._reporterState;return D.options.partial?{result:this.isError(c)?null:c,errors:D.errors}:c},a(p,Error),p.prototype.rethrow=function(c){if(this.message=c+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(D){this.stack=D.stack}return this}},6283:(Ce,ee,E)=>{var a=E(7740);ee.tagClass={0:"universal",1:"application",2:"context",3:"private"},ee.tagClassByName=a._reverse(ee.tagClass),ee.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ee.tagByName=a._reverse(ee.tag)},7740:(Ce,ee,E)=>{var a=ee;a._reverse=function(p){var O={};return Object.keys(p).forEach(function(c){(0|c)==c&&(c|=0),O[p[c]]=c}),O},a.der=E(6283)},5941:(Ce,ee,E)=>{var a=E(1993),S=E(1990),p=S.base,O=S.bignum,c=S.constants.der;function D(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new C,this.tree._init(B.body)}function C(B){p.Node.call(this,"der",B)}function _(B,m){var T=B.readUInt8(m);if(B.isError(T))return T;var A=c.tagClass[T>>6],w=!(32&T);if(31&~T)T&=31;else{var P=T;for(T=0;!(128&~P);){if(P=B.readUInt8(m),B.isError(P))return P;T<<=7,T|=127&P}}return{cls:A,primitive:w,tag:T,tagStr:c.tag[T]}}function F(B,m,T){var A=B.readUInt8(T);if(B.isError(A))return A;if(!m&&128===A)return null;if(!(128&A))return A;var w=127&A;if(w>4)return B.error("length octect is too long");A=0;for(var P=0;P{var a=ee;a.der=E(5941),a.pem=E(6935)},6935:(Ce,ee,E)=>{var a=E(1993),S=E(3838).Buffer,p=E(5941);function O(c){p.call(this,c),this.enc="pem"}a(O,p),Ce.exports=O,O.prototype.decode=function(D,C){for(var _=D.toString().split(/[\r\n]+/g),F=C.label.toUpperCase(),B=/^-----(BEGIN|END) ([^-]+)-----$/,m=-1,T=-1,A=0;A<_.length;A++){var w=_[A].match(B);if(null!==w&&w[2]===F){if(-1!==m){if("END"!==w[1])break;T=A;break}if("BEGIN"!==w[1])break;m=A}}if(-1===m||-1===T)throw new Error("PEM section not found for: "+F);var P=_.slice(m+1,T).join("");P.replace(/[^a-z0-9\+\/=]+/gi,"");var $=new S(P,"base64");return p.prototype.decode.call(this,$,C)}},2193:(Ce,ee,E)=>{var a=E(1993),S=E(3838).Buffer,p=E(1990),O=p.base,c=p.constants.der;function D(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new C,this.tree._init(B.body)}function C(B){O.Node.call(this,"der",B)}function _(B){return B<10?"0"+B:B}Ce.exports=D,D.prototype.encode=function(m,T){return this.tree._encode(m,T).join()},a(C,O.Node),C.prototype._encodeComposite=function(m,T,A,w){var M,P=function F(B,m,T,A){var w;if("seqof"===B?B="seq":"setof"===B&&(B="set"),c.tagByName.hasOwnProperty(B))w=c.tagByName[B];else{if("number"!=typeof B||(0|B)!==B)return A.error("Unknown tag: "+B);w=B}return w>=31?A.error("Multi-octet tag encoding unsupported"):(m||(w|=32),w|=c.tagClassByName[T||"universal"]<<6)}(m,T,A,this.reporter);if(w.length<128)return(M=new S(2))[0]=P,M[1]=w.length,this._createEncoderBuffer([M,w]);for(var $=1,L=w.length;L>=256;L>>=8)$++;(M=new S(2+$))[0]=P,M[1]=128|$,L=1+$;for(var R=w.length;R>0;L--,R>>=8)M[L]=255&R;return this._createEncoderBuffer([M,w])},C.prototype._encodeStr=function(m,T){if("bitstr"===T)return this._createEncoderBuffer([0|m.unused,m.data]);if("bmpstr"===T){for(var A=new S(2*m.length),w=0;w=40)return this.reporter.error("Second objid identifier OOB");m.splice(0,2,40*m[0]+m[1])}var P=0;for(w=0;w=128;$>>=7)P++}var L=new S(P),M=L.length-1;for(w=m.length-1;w>=0;w--)for(L[M--]=127&($=m[w]);($>>=7)>0;)L[M--]=128|127&$;return this._createEncoderBuffer(L)},C.prototype._encodeTime=function(m,T){var A,w=new Date(m);return"gentime"===T?A=[_(w.getFullYear()),_(w.getUTCMonth()+1),_(w.getUTCDate()),_(w.getUTCHours()),_(w.getUTCMinutes()),_(w.getUTCSeconds()),"Z"].join(""):"utctime"===T?A=[_(w.getFullYear()%100),_(w.getUTCMonth()+1),_(w.getUTCDate()),_(w.getUTCHours()),_(w.getUTCMinutes()),_(w.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+T+" time is not supported yet"),this._encodeStr(A,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(m,T){if("string"==typeof m){if(!T)return this.reporter.error("String int or enum given, but no values map");if(!T.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=T[m]}if("number"!=typeof m&&!S.isBuffer(m)){var A=m.toArray();!m.sign&&128&A[0]&&A.unshift(0),m=new S(A)}if(S.isBuffer(m)){var w=m.length;0===m.length&&w++;var $=new S(w);return m.copy($),0===m.length&&($[0]=0),this._createEncoderBuffer($)}if(m<128)return this._createEncoderBuffer(m);if(m<256)return this._createEncoderBuffer([0,m]);w=1;for(var P=m;P>=256;P>>=8)w++;for(P=($=new Array(w)).length-1;P>=0;P--)$[P]=255&m,m>>=8;return 128&$[0]&&$.unshift(0),this._createEncoderBuffer(new S($))},C.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)},C.prototype._use=function(m,T){return"function"==typeof m&&(m=m(T)),m._getEncoder("der").tree},C.prototype._skipDefault=function(m,T,A){var P,w=this._baseState;if(null===w.default)return!1;var $=m.join();if(void 0===w.defaultBuffer&&(w.defaultBuffer=this._encodeValue(w.default,T,A).join()),$.length!==w.defaultBuffer.length)return!1;for(P=0;P<$.length;P++)if($[P]!==w.defaultBuffer[P])return!1;return!0}},2714:(Ce,ee,E)=>{var a=ee;a.der=E(2193),a.pem=E(4816)},4816:(Ce,ee,E)=>{var a=E(1993),S=E(2193);function p(O){S.call(this,O),this.enc="pem"}a(p,S),Ce.exports=p,p.prototype.encode=function(c,D){for(var _=S.prototype.encode.call(this,c).toString("base64"),F=["-----BEGIN "+D.label+"-----"],B=0;B<_.length;B+=64)F.push(_.slice(B,B+64));return F.push("-----END "+D.label+"-----"),F.join("\n")}},6867:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(8982).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},3981:(Ce,ee)=>{"use strict";ee.byteLength=function C(A){var w=D(A),$=w[1];return 3*(w[0]+$)/4-$},ee.toByteArray=function F(A){var w,j,P=D(A),$=P[0],L=P[1],M=new S(function _(A,w,P){return 3*(w+P)/4-P}(0,$,L)),R=0,U=L>0?$-4:$;for(j=0;j>16&255,M[R++]=w>>8&255,M[R++]=255&w;return 2===L&&(w=a[A.charCodeAt(j)]<<2|a[A.charCodeAt(j+1)]>>4,M[R++]=255&w),1===L&&(w=a[A.charCodeAt(j)]<<10|a[A.charCodeAt(j+1)]<<4|a[A.charCodeAt(j+2)]>>2,M[R++]=w>>8&255,M[R++]=255&w),M},ee.fromByteArray=function T(A){for(var w,P=A.length,$=P%3,L=[],M=16383,R=0,U=P-$;RU?U:R+M));return 1===$?L.push(E[(w=A[P-1])>>2]+E[w<<4&63]+"=="):2===$&&L.push(E[(w=(A[P-2]<<8)+A[P-1])>>10]+E[w>>4&63]+E[w<<2&63]+"="),L.join("")};for(var E=[],a=[],S=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)E[O]=p[O],a[p.charCodeAt(O)]=O;function D(A){var w=A.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var P=A.indexOf("=");return-1===P&&(P=w),[P,P===w?0:4-P%4]}function B(A){return E[A>>18&63]+E[A>>12&63]+E[A>>6&63]+E[63&A]}function m(A,w,P){for(var L=[],M=w;M=48&&h<=57?h-48:h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:void p(!1,"Invalid character in "+l)}function _(l,s,h){var v=C(l,h);return h-1>=s&&(v|=C(l,h-1)<<4),v}function F(l,s,h,v){for(var y=0,d=0,r=Math.min(l.length,h),f=s;f=49?k-49+10:k>=17?k-17+10:k,p(k>=0&&d0?s:h},c.min=function(s,h){return s.cmp(h)<0?s:h},c.prototype._init=function(s,h,v){if("number"==typeof s)return this._initNumber(s,h,v);if("object"==typeof s)return this._initArray(s,h,v);"hex"===h&&(h=16),p(h===(0|h)&&h>=2&&h<=36);var y=0;"-"===(s=s.toString().replace(/\s+/g,""))[0]&&(y++,this.negative=1),y=0;y-=3)this.words[d]|=(r=s[y]|s[y-1]<<8|s[y-2]<<16)<>>26-f&67108863,(f+=24)>=26&&(f-=26,d++);else if("le"===v)for(y=0,d=0;y>>26-f&67108863,(f+=24)>=26&&(f-=26,d++);return this._strip()},c.prototype._parseHex=function(s,h,v){this.length=Math.ceil((s.length-h)/6),this.words=new Array(this.length);for(var y=0;y=h;y-=2)f=_(s,h,y)<=18?(d-=18,this.words[r+=1]|=f>>>26):d+=8;else for(y=(s.length-h)%2==0?h+1:h;y=18?(d-=18,this.words[r+=1]|=f>>>26):d+=8;this._strip()},c.prototype._parseBase=function(s,h,v){this.words=[0],this.length=1;for(var y=0,d=1;d<=67108863;d*=h)y++;y--,d=d/h|0;for(var r=s.length-v,f=r%y,k=Math.min(r,r-f)+v,I=0,V=v;V1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{c.prototype.inspect=m}else c.prototype.inspect=m;function m(){return(this.red?""}var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function L(l,s,h){h.negative=s.negative^l.negative;var v=l.length+s.length|0;h.length=v,v=v-1|0;var y=0|l.words[0],d=0|s.words[0],r=y*d,k=r/67108864|0;h.words[0]=67108863&r;for(var I=1;I>>26,J=67108863&k,oe=Math.min(I,s.length-1),ve=Math.max(0,I-l.length+1);ve<=oe;ve++)V+=(r=(y=0|l.words[I-ve|0])*(d=0|s.words[ve])+J)/67108864|0,J=67108863&r;h.words[I]=0|J,k=0|V}return 0!==k?h.words[I]=0|k:h.length--,h._strip()}c.prototype.toString=function(s,h){var v;if(h=0|h||1,16===(s=s||10)||"hex"===s){v="";for(var y=0,d=0,r=0;r>>24-y&16777215,(y+=2)>=26&&(y-=26,r--),v=0!==d||r!==this.length-1?T[6-k.length]+k+v:k+v}for(0!==d&&(v=d.toString(16)+v);v.length%h!=0;)v="0"+v;return 0!==this.negative&&(v="-"+v),v}if(s===(0|s)&&s>=2&&s<=36){var I=A[s],V=w[s];v="";var J=this.clone();for(J.negative=0;!J.isZero();){var oe=J.modrn(V).toString(s);v=(J=J.idivn(V)).isZero()?oe+v:T[I-oe.length]+oe+v}for(this.isZero()&&(v="0"+v);v.length%h!=0;)v="0"+v;return 0!==this.negative&&(v="-"+v),v}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var s=this.words[0];return 2===this.length?s+=67108864*this.words[1]:3===this.length&&1===this.words[2]?s+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-s:s},c.prototype.toJSON=function(){return this.toString(16,2)},D&&(c.prototype.toBuffer=function(s,h){return this.toArrayLike(D,s,h)}),c.prototype.toArray=function(s,h){return this.toArrayLike(Array,s,h)},c.prototype.toArrayLike=function(s,h,v){this._strip();var y=this.byteLength(),d=v||Math.max(1,y);p(y<=d,"byte array longer than desired length"),p(d>0,"Requested array length <= 0");var r=function(s,h){return s.allocUnsafe?s.allocUnsafe(h):new s(h)}(s,d);return this["_toArrayLike"+("le"===h?"LE":"BE")](r,y),r},c.prototype._toArrayLikeLE=function(s,h){for(var v=0,y=0,d=0,r=0;d>8&255),v>16&255),6===r?(v>24&255),y=0,r=0):(y=f>>>24,r+=2)}if(v=0&&(s[v--]=f>>8&255),v>=0&&(s[v--]=f>>16&255),6===r?(v>=0&&(s[v--]=f>>24&255),y=0,r=0):(y=f>>>24,r+=2)}if(v>=0)for(s[v--]=y;v>=0;)s[v--]=0},c.prototype._countBits=Math.clz32?function(s){return 32-Math.clz32(s)}:function(s){var h=s,v=0;return h>=4096&&(v+=13,h>>>=13),h>=64&&(v+=7,h>>>=7),h>=8&&(v+=4,h>>>=4),h>=2&&(v+=2,h>>>=2),v+h},c.prototype._zeroBits=function(s){if(0===s)return 26;var h=s,v=0;return 8191&h||(v+=13,h>>>=13),127&h||(v+=7,h>>>=7),15&h||(v+=4,h>>>=4),3&h||(v+=2,h>>>=2),1&h||v++,v},c.prototype.bitLength=function(){var h=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+h},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s=0,h=0;hs.length?this.clone().ior(s):s.clone().ior(this)},c.prototype.uor=function(s){return this.length>s.length?this.clone().iuor(s):s.clone().iuor(this)},c.prototype.iuand=function(s){var h;h=this.length>s.length?s:this;for(var v=0;vs.length?this.clone().iand(s):s.clone().iand(this)},c.prototype.uand=function(s){return this.length>s.length?this.clone().iuand(s):s.clone().iuand(this)},c.prototype.iuxor=function(s){var h,v;this.length>s.length?(h=this,v=s):(h=s,v=this);for(var y=0;ys.length?this.clone().ixor(s):s.clone().ixor(this)},c.prototype.uxor=function(s){return this.length>s.length?this.clone().iuxor(s):s.clone().iuxor(this)},c.prototype.inotn=function(s){p("number"==typeof s&&s>=0);var h=0|Math.ceil(s/26),v=s%26;this._expand(h),v>0&&h--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-v),this._strip()},c.prototype.notn=function(s){return this.clone().inotn(s)},c.prototype.setn=function(s,h){p("number"==typeof s&&s>=0);var v=s/26|0,y=s%26;return this._expand(v+1),this.words[v]=h?this.words[v]|1<s.length?(v=this,y=s):(v=s,y=this);for(var d=0,r=0;r>>26;for(;0!==d&&r>>26;if(this.length=v.length,0!==d)this.words[this.length]=d,this.length++;else if(v!==this)for(;rs.length?this.clone().iadd(s):s.clone().iadd(this)},c.prototype.isub=function(s){if(0!==s.negative){s.negative=0;var h=this.iadd(s);return s.negative=1,h._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(s),this.negative=1,this._normSign();var y,d,v=this.cmp(s);if(0===v)return this.negative=0,this.length=1,this.words[0]=0,this;v>0?(y=this,d=s):(y=s,d=this);for(var r=0,f=0;f>26,this.words[f]=67108863&h;for(;0!==r&&f>26,this.words[f]=67108863&h;if(0===r&&f>>13,De=0|y[1],Q=8191&De,ae=De>>>13,tt=0|y[2],ke=8191&tt,pe=tt>>>13,Ie=0|y[3],_e=8191&Ie,re=Ie>>>13,ne=0|y[4],G=8191&ne,ge=ne>>>13,xt=0|y[5],Qe=8191&xt,rt=xt>>>13,rn=0|y[6],mt=8191&rn,ft=rn>>>13,un=0|y[7],At=8191&un,It=un>>>13,Cn=0|y[8],St=8191&Cn,Ft=Cn>>>13,bn=0|y[9],bt=8191&bn,wt=bn>>>13,Dn=0|d[0],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|d[1],Nt=8191&Wt,Ot=Wt>>>13,zn=0|d[2],Ut=8191&zn,He=zn>>>13,Be=0|d[3],Ae=8191&Be,Me=Be>>>13,Ze=0|d[4],je=8191&Ze,it=Ze>>>13,Pe=0|d[5],Se=8191&Pe,ze=Pe>>>13,Et=0|d[6],Je=8191&Et,st=Et>>>13,en=0|d[7],yt=8191&en,vt=en>>>13,Kt=0|d[8],Pt=8191&Kt,Rt=Kt>>>13,On=0|d[9],An=8191&On,Bn=On>>>13;v.negative=s.negative^h.negative,v.length=19;var Mn=(f+(k=Math.imul(oe,Bt))|0)+((8191&(I=(I=Math.imul(oe,Lt))+Math.imul(ve,Bt)|0))<<13)|0;f=((V=Math.imul(ve,Lt))+(I>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,k=Math.imul(Q,Bt),I=(I=Math.imul(Q,Lt))+Math.imul(ae,Bt)|0,V=Math.imul(ae,Lt);var Wn=(f+(k=k+Math.imul(oe,Nt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0))<<13)|0;f=((V=V+Math.imul(ve,Ot)|0)+(I>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,k=Math.imul(ke,Bt),I=(I=Math.imul(ke,Lt))+Math.imul(pe,Bt)|0,V=Math.imul(pe,Lt),k=k+Math.imul(Q,Nt)|0,I=(I=I+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,V=V+Math.imul(ae,Ot)|0;var Ln=(f+(k=k+Math.imul(oe,Ut)|0)|0)+((8191&(I=(I=I+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0))<<13)|0;f=((V=V+Math.imul(ve,He)|0)+(I>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,k=Math.imul(_e,Bt),I=(I=Math.imul(_e,Lt))+Math.imul(re,Bt)|0,V=Math.imul(re,Lt),k=k+Math.imul(ke,Nt)|0,I=(I=I+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,V=V+Math.imul(pe,Ot)|0,k=k+Math.imul(Q,Ut)|0,I=(I=I+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,V=V+Math.imul(ae,He)|0;var Fn=(f+(k=k+Math.imul(oe,Ae)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0))<<13)|0;f=((V=V+Math.imul(ve,Me)|0)+(I>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,k=Math.imul(G,Bt),I=(I=Math.imul(G,Lt))+Math.imul(ge,Bt)|0,V=Math.imul(ge,Lt),k=k+Math.imul(_e,Nt)|0,I=(I=I+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,V=V+Math.imul(re,Ot)|0,k=k+Math.imul(ke,Ut)|0,I=(I=I+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,V=V+Math.imul(pe,He)|0,k=k+Math.imul(Q,Ae)|0,I=(I=I+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,V=V+Math.imul(ae,Me)|0;var kn=(f+(k=k+Math.imul(oe,je)|0)|0)+((8191&(I=(I=I+Math.imul(oe,it)|0)+Math.imul(ve,je)|0))<<13)|0;f=((V=V+Math.imul(ve,it)|0)+(I>>>13)|0)+(kn>>>26)|0,kn&=67108863,k=Math.imul(Qe,Bt),I=(I=Math.imul(Qe,Lt))+Math.imul(rt,Bt)|0,V=Math.imul(rt,Lt),k=k+Math.imul(G,Nt)|0,I=(I=I+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,V=V+Math.imul(ge,Ot)|0,k=k+Math.imul(_e,Ut)|0,I=(I=I+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,V=V+Math.imul(re,He)|0,k=k+Math.imul(ke,Ae)|0,I=(I=I+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,V=V+Math.imul(pe,Me)|0,k=k+Math.imul(Q,je)|0,I=(I=I+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,V=V+Math.imul(ae,it)|0;var Gn=(f+(k=k+Math.imul(oe,Se)|0)|0)+((8191&(I=(I=I+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0))<<13)|0;f=((V=V+Math.imul(ve,ze)|0)+(I>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,k=Math.imul(mt,Bt),I=(I=Math.imul(mt,Lt))+Math.imul(ft,Bt)|0,V=Math.imul(ft,Lt),k=k+Math.imul(Qe,Nt)|0,I=(I=I+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,V=V+Math.imul(rt,Ot)|0,k=k+Math.imul(G,Ut)|0,I=(I=I+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,V=V+Math.imul(ge,He)|0,k=k+Math.imul(_e,Ae)|0,I=(I=I+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,V=V+Math.imul(re,Me)|0,k=k+Math.imul(ke,je)|0,I=(I=I+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,V=V+Math.imul(pe,it)|0,k=k+Math.imul(Q,Se)|0,I=(I=I+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,V=V+Math.imul(ae,ze)|0;var Xn=(f+(k=k+Math.imul(oe,Je)|0)|0)+((8191&(I=(I=I+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0))<<13)|0;f=((V=V+Math.imul(ve,st)|0)+(I>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,k=Math.imul(At,Bt),I=(I=Math.imul(At,Lt))+Math.imul(It,Bt)|0,V=Math.imul(It,Lt),k=k+Math.imul(mt,Nt)|0,I=(I=I+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,V=V+Math.imul(ft,Ot)|0,k=k+Math.imul(Qe,Ut)|0,I=(I=I+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,V=V+Math.imul(rt,He)|0,k=k+Math.imul(G,Ae)|0,I=(I=I+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,V=V+Math.imul(ge,Me)|0,k=k+Math.imul(_e,je)|0,I=(I=I+Math.imul(_e,it)|0)+Math.imul(re,je)|0,V=V+Math.imul(re,it)|0,k=k+Math.imul(ke,Se)|0,I=(I=I+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,V=V+Math.imul(pe,ze)|0,k=k+Math.imul(Q,Je)|0,I=(I=I+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,V=V+Math.imul(ae,st)|0;var jn=(f+(k=k+Math.imul(oe,yt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0))<<13)|0;f=((V=V+Math.imul(ve,vt)|0)+(I>>>13)|0)+(jn>>>26)|0,jn&=67108863,k=Math.imul(St,Bt),I=(I=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,V=Math.imul(Ft,Lt),k=k+Math.imul(At,Nt)|0,I=(I=I+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,V=V+Math.imul(It,Ot)|0,k=k+Math.imul(mt,Ut)|0,I=(I=I+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,V=V+Math.imul(ft,He)|0,k=k+Math.imul(Qe,Ae)|0,I=(I=I+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,V=V+Math.imul(rt,Me)|0,k=k+Math.imul(G,je)|0,I=(I=I+Math.imul(G,it)|0)+Math.imul(ge,je)|0,V=V+Math.imul(ge,it)|0,k=k+Math.imul(_e,Se)|0,I=(I=I+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,V=V+Math.imul(re,ze)|0,k=k+Math.imul(ke,Je)|0,I=(I=I+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,V=V+Math.imul(pe,st)|0,k=k+Math.imul(Q,yt)|0,I=(I=I+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,V=V+Math.imul(ae,vt)|0;var $e=(f+(k=k+Math.imul(oe,Pt)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;f=((V=V+Math.imul(ve,Rt)|0)+(I>>>13)|0)+($e>>>26)|0,$e&=67108863,k=Math.imul(bt,Bt),I=(I=Math.imul(bt,Lt))+Math.imul(wt,Bt)|0,V=Math.imul(wt,Lt),k=k+Math.imul(St,Nt)|0,I=(I=I+Math.imul(St,Ot)|0)+Math.imul(Ft,Nt)|0,V=V+Math.imul(Ft,Ot)|0,k=k+Math.imul(At,Ut)|0,I=(I=I+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,V=V+Math.imul(It,He)|0,k=k+Math.imul(mt,Ae)|0,I=(I=I+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,V=V+Math.imul(ft,Me)|0,k=k+Math.imul(Qe,je)|0,I=(I=I+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,V=V+Math.imul(rt,it)|0,k=k+Math.imul(G,Se)|0,I=(I=I+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,V=V+Math.imul(ge,ze)|0,k=k+Math.imul(_e,Je)|0,I=(I=I+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,V=V+Math.imul(re,st)|0,k=k+Math.imul(ke,yt)|0,I=(I=I+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,V=V+Math.imul(pe,vt)|0,k=k+Math.imul(Q,Pt)|0,I=(I=I+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0,V=V+Math.imul(ae,Rt)|0;var lt=(f+(k=k+Math.imul(oe,An)|0)|0)+((8191&(I=(I=I+Math.imul(oe,Bn)|0)+Math.imul(ve,An)|0))<<13)|0;f=((V=V+Math.imul(ve,Bn)|0)+(I>>>13)|0)+(lt>>>26)|0,lt&=67108863,k=Math.imul(bt,Nt),I=(I=Math.imul(bt,Ot))+Math.imul(wt,Nt)|0,V=Math.imul(wt,Ot),k=k+Math.imul(St,Ut)|0,I=(I=I+Math.imul(St,He)|0)+Math.imul(Ft,Ut)|0,V=V+Math.imul(Ft,He)|0,k=k+Math.imul(At,Ae)|0,I=(I=I+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,V=V+Math.imul(It,Me)|0,k=k+Math.imul(mt,je)|0,I=(I=I+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,V=V+Math.imul(ft,it)|0,k=k+Math.imul(Qe,Se)|0,I=(I=I+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,V=V+Math.imul(rt,ze)|0,k=k+Math.imul(G,Je)|0,I=(I=I+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,V=V+Math.imul(ge,st)|0,k=k+Math.imul(_e,yt)|0,I=(I=I+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,V=V+Math.imul(re,vt)|0,k=k+Math.imul(ke,Pt)|0,I=(I=I+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0,V=V+Math.imul(pe,Rt)|0;var Tt=(f+(k=k+Math.imul(Q,An)|0)|0)+((8191&(I=(I=I+Math.imul(Q,Bn)|0)+Math.imul(ae,An)|0))<<13)|0;f=((V=V+Math.imul(ae,Bn)|0)+(I>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,k=Math.imul(bt,Ut),I=(I=Math.imul(bt,He))+Math.imul(wt,Ut)|0,V=Math.imul(wt,He),k=k+Math.imul(St,Ae)|0,I=(I=I+Math.imul(St,Me)|0)+Math.imul(Ft,Ae)|0,V=V+Math.imul(Ft,Me)|0,k=k+Math.imul(At,je)|0,I=(I=I+Math.imul(At,it)|0)+Math.imul(It,je)|0,V=V+Math.imul(It,it)|0,k=k+Math.imul(mt,Se)|0,I=(I=I+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,V=V+Math.imul(ft,ze)|0,k=k+Math.imul(Qe,Je)|0,I=(I=I+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,V=V+Math.imul(rt,st)|0,k=k+Math.imul(G,yt)|0,I=(I=I+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,V=V+Math.imul(ge,vt)|0,k=k+Math.imul(_e,Pt)|0,I=(I=I+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0,V=V+Math.imul(re,Rt)|0;var Mt=(f+(k=k+Math.imul(ke,An)|0)|0)+((8191&(I=(I=I+Math.imul(ke,Bn)|0)+Math.imul(pe,An)|0))<<13)|0;f=((V=V+Math.imul(pe,Bn)|0)+(I>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,k=Math.imul(bt,Ae),I=(I=Math.imul(bt,Me))+Math.imul(wt,Ae)|0,V=Math.imul(wt,Me),k=k+Math.imul(St,je)|0,I=(I=I+Math.imul(St,it)|0)+Math.imul(Ft,je)|0,V=V+Math.imul(Ft,it)|0,k=k+Math.imul(At,Se)|0,I=(I=I+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,V=V+Math.imul(It,ze)|0,k=k+Math.imul(mt,Je)|0,I=(I=I+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,V=V+Math.imul(ft,st)|0,k=k+Math.imul(Qe,yt)|0,I=(I=I+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,V=V+Math.imul(rt,vt)|0,k=k+Math.imul(G,Pt)|0,I=(I=I+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0,V=V+Math.imul(ge,Rt)|0;var kt=(f+(k=k+Math.imul(_e,An)|0)|0)+((8191&(I=(I=I+Math.imul(_e,Bn)|0)+Math.imul(re,An)|0))<<13)|0;f=((V=V+Math.imul(re,Bn)|0)+(I>>>13)|0)+(kt>>>26)|0,kt&=67108863,k=Math.imul(bt,je),I=(I=Math.imul(bt,it))+Math.imul(wt,je)|0,V=Math.imul(wt,it),k=k+Math.imul(St,Se)|0,I=(I=I+Math.imul(St,ze)|0)+Math.imul(Ft,Se)|0,V=V+Math.imul(Ft,ze)|0,k=k+Math.imul(At,Je)|0,I=(I=I+Math.imul(At,st)|0)+Math.imul(It,Je)|0,V=V+Math.imul(It,st)|0,k=k+Math.imul(mt,yt)|0,I=(I=I+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,V=V+Math.imul(ft,vt)|0,k=k+Math.imul(Qe,Pt)|0,I=(I=I+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0,V=V+Math.imul(rt,Rt)|0;var Zt=(f+(k=k+Math.imul(G,An)|0)|0)+((8191&(I=(I=I+Math.imul(G,Bn)|0)+Math.imul(ge,An)|0))<<13)|0;f=((V=V+Math.imul(ge,Bn)|0)+(I>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,k=Math.imul(bt,Se),I=(I=Math.imul(bt,ze))+Math.imul(wt,Se)|0,V=Math.imul(wt,ze),k=k+Math.imul(St,Je)|0,I=(I=I+Math.imul(St,st)|0)+Math.imul(Ft,Je)|0,V=V+Math.imul(Ft,st)|0,k=k+Math.imul(At,yt)|0,I=(I=I+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,V=V+Math.imul(It,vt)|0,k=k+Math.imul(mt,Pt)|0,I=(I=I+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0,V=V+Math.imul(ft,Rt)|0;var qt=(f+(k=k+Math.imul(Qe,An)|0)|0)+((8191&(I=(I=I+Math.imul(Qe,Bn)|0)+Math.imul(rt,An)|0))<<13)|0;f=((V=V+Math.imul(rt,Bn)|0)+(I>>>13)|0)+(qt>>>26)|0,qt&=67108863,k=Math.imul(bt,Je),I=(I=Math.imul(bt,st))+Math.imul(wt,Je)|0,V=Math.imul(wt,st),k=k+Math.imul(St,yt)|0,I=(I=I+Math.imul(St,vt)|0)+Math.imul(Ft,yt)|0,V=V+Math.imul(Ft,vt)|0,k=k+Math.imul(At,Pt)|0,I=(I=I+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0,V=V+Math.imul(It,Rt)|0;var Qt=(f+(k=k+Math.imul(mt,An)|0)|0)+((8191&(I=(I=I+Math.imul(mt,Bn)|0)+Math.imul(ft,An)|0))<<13)|0;f=((V=V+Math.imul(ft,Bn)|0)+(I>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,k=Math.imul(bt,yt),I=(I=Math.imul(bt,vt))+Math.imul(wt,yt)|0,V=Math.imul(wt,vt),k=k+Math.imul(St,Pt)|0,I=(I=I+Math.imul(St,Rt)|0)+Math.imul(Ft,Pt)|0,V=V+Math.imul(Ft,Rt)|0;var Tn=(f+(k=k+Math.imul(At,An)|0)|0)+((8191&(I=(I=I+Math.imul(At,Bn)|0)+Math.imul(It,An)|0))<<13)|0;f=((V=V+Math.imul(It,Bn)|0)+(I>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,k=Math.imul(bt,Pt),I=(I=Math.imul(bt,Rt))+Math.imul(wt,Pt)|0,V=Math.imul(wt,Rt);var wn=(f+(k=k+Math.imul(St,An)|0)|0)+((8191&(I=(I=I+Math.imul(St,Bn)|0)+Math.imul(Ft,An)|0))<<13)|0;f=((V=V+Math.imul(Ft,Bn)|0)+(I>>>13)|0)+(wn>>>26)|0,wn&=67108863;var Kn=(f+(k=Math.imul(bt,An))|0)+((8191&(I=(I=Math.imul(bt,Bn))+Math.imul(wt,An)|0))<<13)|0;return f=((V=Math.imul(wt,Bn))+(I>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,r[0]=Mn,r[1]=Wn,r[2]=Ln,r[3]=Fn,r[4]=kn,r[5]=Gn,r[6]=Xn,r[7]=jn,r[8]=$e,r[9]=lt,r[10]=Tt,r[11]=Mt,r[12]=kt,r[13]=Zt,r[14]=qt,r[15]=Qt,r[16]=Tn,r[17]=wn,r[18]=Kn,0!==f&&(r[19]=f,v.length++),v};function R(l,s,h){h.negative=s.negative^l.negative,h.length=l.length+s.length;for(var v=0,y=0,d=0;d>>26)|0)>>>26,r&=67108863}h.words[d]=f,v=r,r=y}return 0!==v?h.words[d]=v:h.length--,h._strip()}function U(l,s,h){return R(l,s,h)}function j(l,s){this.x=l,this.y=s}Math.imul||(M=L),c.prototype.mulTo=function(s,h){var y=this.length+s.length;return 10===this.length&&10===s.length?M(this,s,h):y<63?L(this,s,h):y<1024?R(this,s,h):U(this,s,h)},j.prototype.makeRBT=function(s){for(var h=new Array(s),v=c.prototype._countBits(s)-1,y=0;y>=1;return y},j.prototype.permute=function(s,h,v,y,d,r){for(var f=0;f>>=1)d++;return 1<>>=13),d>>>=13;for(r=2*h;r>=26,v+=d/67108864|0,v+=r>>>26,this.words[y]=67108863&r}return 0!==v&&(this.words[y]=v,this.length++),h?this.ineg():this},c.prototype.muln=function(s){return this.clone().imuln(s)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(s){var h=function $(l){for(var s=new Array(l.bitLength()),h=0;h>>h%26&1;return s}(s);if(0===h.length)return new c(1);for(var v=this,y=0;y=0);var d,h=s%26,v=(s-h)/26,y=67108863>>>26-h<<26-h;if(0!==h){var r=0;for(d=0;d>>26-h}r&&(this.words[d]=r,this.length++)}if(0!==v){for(d=this.length-1;d>=0;d--)this.words[d+v]=this.words[d];for(d=0;d=0),y=h?(h-h%26)/26:0;var d=s%26,r=Math.min((s-d)/26,this.length),f=67108863^67108863>>>d<r)for(this.length-=r,I=0;I=0&&(0!==V||I>=y);I--){var J=0|this.words[I];this.words[I]=V<<26-d|J>>>d,V=J&f}return k&&0!==V&&(k.words[k.length++]=V),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(s,h,v){return p(0===this.negative),this.iushrn(s,h,v)},c.prototype.shln=function(s){return this.clone().ishln(s)},c.prototype.ushln=function(s){return this.clone().iushln(s)},c.prototype.shrn=function(s){return this.clone().ishrn(s)},c.prototype.ushrn=function(s){return this.clone().iushrn(s)},c.prototype.testn=function(s){p("number"==typeof s&&s>=0);var h=s%26,v=(s-h)/26;return!(this.length<=v||!(this.words[v]&1<=0);var h=s%26,v=(s-h)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=v?this:(0!==h&&v++,this.length=Math.min(v,this.length),0!==h&&(this.words[this.length-1]&=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},c.prototype.isubn=function(s){if(p("number"==typeof s),p(s<67108864),s<0)return this.iaddn(-s);if(0!==this.negative)return this.negative=0,this.iaddn(s),this.negative=1,this;if(this.words[0]-=s,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(k/67108864|0),this.words[d+v]=67108863&r}for(;d>26,this.words[d+v]=67108863&r;if(0===f)return this._strip();for(p(-1===f),f=0,d=0;d>26,this.words[d]=67108863&r;return this.negative=1,this._strip()},c.prototype._wordDiv=function(s,h){var v,y=this.clone(),d=s,r=0|d.words[d.length-1];0!=(v=26-this._countBits(r))&&(d=d.ushln(v),y.iushln(v),r=0|d.words[d.length-1]);var I,k=y.length-d.length;if("mod"!==h){(I=new c(null)).length=k+1,I.words=new Array(I.length);for(var V=0;V=0;oe--){var ve=67108864*(0|y.words[d.length+oe])+(0|y.words[d.length+oe-1]);for(ve=Math.min(ve/r|0,67108863),y._ishlnsubmul(d,ve,oe);0!==y.negative;)ve--,y.negative=0,y._ishlnsubmul(d,1,oe),y.isZero()||(y.negative^=1);I&&(I.words[oe]=ve)}return I&&I._strip(),y._strip(),"div"!==h&&0!==v&&y.iushrn(v),{div:I||null,mod:y}},c.prototype.divmod=function(s,h,v){return p(!s.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===s.negative?(r=this.neg().divmod(s,h),"mod"!==h&&(y=r.div.neg()),"div"!==h&&(d=r.mod.neg(),v&&0!==d.negative&&d.iadd(s)),{div:y,mod:d}):0===this.negative&&0!==s.negative?(r=this.divmod(s.neg(),h),"mod"!==h&&(y=r.div.neg()),{div:y,mod:r.mod}):this.negative&s.negative?(r=this.neg().divmod(s.neg(),h),"div"!==h&&(d=r.mod.neg(),v&&0!==d.negative&&d.isub(s)),{div:r.div,mod:d}):s.length>this.length||this.cmp(s)<0?{div:new c(0),mod:this}:1===s.length?"div"===h?{div:this.divn(s.words[0]),mod:null}:"mod"===h?{div:null,mod:new c(this.modrn(s.words[0]))}:{div:this.divn(s.words[0]),mod:new c(this.modrn(s.words[0]))}:this._wordDiv(s,h);var y,d,r},c.prototype.div=function(s){return this.divmod(s,"div",!1).div},c.prototype.mod=function(s){return this.divmod(s,"mod",!1).mod},c.prototype.umod=function(s){return this.divmod(s,"mod",!0).mod},c.prototype.divRound=function(s){var h=this.divmod(s);if(h.mod.isZero())return h.div;var v=0!==h.div.negative?h.mod.isub(s):h.mod,y=s.ushrn(1),d=s.andln(1),r=v.cmp(y);return r<0||1===d&&0===r?h.div:0!==h.div.negative?h.div.isubn(1):h.div.iaddn(1)},c.prototype.modrn=function(s){var h=s<0;h&&(s=-s),p(s<=67108863);for(var v=(1<<26)%s,y=0,d=this.length-1;d>=0;d--)y=(v*y+(0|this.words[d]))%s;return h?-y:y},c.prototype.modn=function(s){return this.modrn(s)},c.prototype.idivn=function(s){var h=s<0;h&&(s=-s),p(s<=67108863);for(var v=0,y=this.length-1;y>=0;y--){var d=(0|this.words[y])+67108864*v;this.words[y]=d/s|0,v=d%s}return this._strip(),h?this.ineg():this},c.prototype.divn=function(s){return this.clone().idivn(s)},c.prototype.egcd=function(s){p(0===s.negative),p(!s.isZero());var h=this,v=s.clone();h=0!==h.negative?h.umod(s):h.clone();for(var y=new c(1),d=new c(0),r=new c(0),f=new c(1),k=0;h.isEven()&&v.isEven();)h.iushrn(1),v.iushrn(1),++k;for(var I=v.clone(),V=h.clone();!h.isZero();){for(var J=0,oe=1;!(h.words[0]&oe)&&J<26;++J,oe<<=1);if(J>0)for(h.iushrn(J);J-- >0;)(y.isOdd()||d.isOdd())&&(y.iadd(I),d.isub(V)),y.iushrn(1),d.iushrn(1);for(var ve=0,De=1;!(v.words[0]&De)&&ve<26;++ve,De<<=1);if(ve>0)for(v.iushrn(ve);ve-- >0;)(r.isOdd()||f.isOdd())&&(r.iadd(I),f.isub(V)),r.iushrn(1),f.iushrn(1);h.cmp(v)>=0?(h.isub(v),y.isub(r),d.isub(f)):(v.isub(h),r.isub(y),f.isub(d))}return{a:r,b:f,gcd:v.iushln(k)}},c.prototype._invmp=function(s){p(0===s.negative),p(!s.isZero());var J,h=this,v=s.clone();h=0!==h.negative?h.umod(s):h.clone();for(var y=new c(1),d=new c(0),r=v.clone();h.cmpn(1)>0&&v.cmpn(1)>0;){for(var f=0,k=1;!(h.words[0]&k)&&f<26;++f,k<<=1);if(f>0)for(h.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(r),y.iushrn(1);for(var I=0,V=1;!(v.words[0]&V)&&I<26;++I,V<<=1);if(I>0)for(v.iushrn(I);I-- >0;)d.isOdd()&&d.iadd(r),d.iushrn(1);h.cmp(v)>=0?(h.isub(v),y.isub(d)):(v.isub(h),d.isub(y))}return(J=0===h.cmpn(1)?y:d).cmpn(0)<0&&J.iadd(s),J},c.prototype.gcd=function(s){if(this.isZero())return s.abs();if(s.isZero())return this.abs();var h=this.clone(),v=s.clone();h.negative=0,v.negative=0;for(var y=0;h.isEven()&&v.isEven();y++)h.iushrn(1),v.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;v.isEven();)v.iushrn(1);var d=h.cmp(v);if(d<0){var r=h;h=v,v=r}else if(0===d||0===v.cmpn(1))break;h.isub(v)}return v.iushln(y)},c.prototype.invm=function(s){return this.egcd(s).a.umod(s)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(s){return this.words[0]&s},c.prototype.bincn=function(s){p("number"==typeof s);var h=s%26,v=(s-h)/26,y=1<>>26,this.words[r]=f&=67108863}return 0!==d&&(this.words[r]=d,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(s){var v,h=s<0;if(0!==this.negative&&!h)return-1;if(0===this.negative&&h)return 1;if(this._strip(),this.length>1)v=1;else{h&&(s=-s),p(s<=67108863,"Number is too big");var y=0|this.words[0];v=y===s?0:ys.length)return 1;if(this.length=0;v--){var y=0|this.words[v],d=0|s.words[v];if(y!==d){yd&&(h=1);break}}return h},c.prototype.gtn=function(s){return 1===this.cmpn(s)},c.prototype.gt=function(s){return 1===this.cmp(s)},c.prototype.gten=function(s){return this.cmpn(s)>=0},c.prototype.gte=function(s){return this.cmp(s)>=0},c.prototype.ltn=function(s){return-1===this.cmpn(s)},c.prototype.lt=function(s){return-1===this.cmp(s)},c.prototype.lten=function(s){return this.cmpn(s)<=0},c.prototype.lte=function(s){return this.cmp(s)<=0},c.prototype.eqn=function(s){return 0===this.cmpn(s)},c.prototype.eq=function(s){return 0===this.cmp(s)},c.red=function(s){return new n(s)},c.prototype.toRed=function(s){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),s.convertTo(this)._forceRed(s)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(s){return this.red=s,this},c.prototype.forceRed=function(s){return p(!this.red,"Already a number in reduction context"),this._forceRed(s)},c.prototype.redAdd=function(s){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,s)},c.prototype.redIAdd=function(s){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s)},c.prototype.redSub=function(s){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,s)},c.prototype.redISub=function(s){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,s)},c.prototype.redShl=function(s){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,s)},c.prototype.redMul=function(s){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.mul(this,s)},c.prototype.redIMul=function(s){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,s),this.red.imul(this,s)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(s){return p(this.red&&!s.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s)};var W={k256:null,p224:null,p192:null,p25519:null};function ie(l,s){this.name=l,this.p=new c(s,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function se(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function n(l){if("string"==typeof l){var s=c._prime(l);this.m=s.p,this.prime=s}else p(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}function o(l){n.call(this,l),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var s=new c(null);return s.words=new Array(Math.ceil(this.n/13)),s},ie.prototype.ireduce=function(s){var v,h=s;do{this.split(h,this.tmp),v=(h=(h=this.imulK(h)).iadd(this.tmp)).bitLength()}while(v>this.n);var y=v0?h.isub(this.p):void 0!==h.strip?h.strip():h._strip(),h},ie.prototype.split=function(s,h){s.iushrn(this.n,0,h)},ie.prototype.imulK=function(s){return s.imul(this.k)},O(me,ie),me.prototype.split=function(s,h){for(var v=4194303,y=Math.min(s.length,9),d=0;d>>22,r=f}s.words[d-10]=r>>>=22,s.length-=0===r&&s.length>10?10:9},me.prototype.imulK=function(s){s.words[s.length]=0,s.words[s.length+1]=0,s.length+=2;for(var h=0,v=0;v>>=26,s.words[v]=d,h=y}return 0!==h&&(s.words[s.length++]=h),s},c._prime=function(s){if(W[s])return W[s];var h;if("k256"===s)h=new me;else if("p224"===s)h=new te;else if("p192"===s)h=new se;else{if("p25519"!==s)throw new Error("Unknown prime "+s);h=new g}return W[s]=h,h},n.prototype._verify1=function(s){p(0===s.negative,"red works only with positives"),p(s.red,"red works only with red numbers")},n.prototype._verify2=function(s,h){p(!(s.negative|h.negative),"red works only with positives"),p(s.red&&s.red===h.red,"red works only with red numbers")},n.prototype.imod=function(s){return this.prime?this.prime.ireduce(s)._forceRed(this):(B(s,s.umod(this.m)._forceRed(this)),s)},n.prototype.neg=function(s){return s.isZero()?s.clone():this.m.sub(s)._forceRed(this)},n.prototype.add=function(s,h){this._verify2(s,h);var v=s.add(h);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},n.prototype.iadd=function(s,h){this._verify2(s,h);var v=s.iadd(h);return v.cmp(this.m)>=0&&v.isub(this.m),v},n.prototype.sub=function(s,h){this._verify2(s,h);var v=s.sub(h);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},n.prototype.isub=function(s,h){this._verify2(s,h);var v=s.isub(h);return v.cmpn(0)<0&&v.iadd(this.m),v},n.prototype.shl=function(s,h){return this._verify1(s),this.imod(s.ushln(h))},n.prototype.imul=function(s,h){return this._verify2(s,h),this.imod(s.imul(h))},n.prototype.mul=function(s,h){return this._verify2(s,h),this.imod(s.mul(h))},n.prototype.isqr=function(s){return this.imul(s,s.clone())},n.prototype.sqr=function(s){return this.mul(s,s)},n.prototype.sqrt=function(s){if(s.isZero())return s.clone();var h=this.m.andln(3);if(p(h%2==1),3===h){var v=this.m.add(new c(1)).iushrn(2);return this.pow(s,v)}for(var y=this.m.subn(1),d=0;!y.isZero()&&0===y.andln(1);)d++,y.iushrn(1);p(!y.isZero());var r=new c(1).toRed(this),f=r.redNeg(),k=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new c(2*I*I).toRed(this);0!==this.pow(I,k).cmp(f);)I.redIAdd(f);for(var V=this.pow(I,y),J=this.pow(s,y.addn(1).iushrn(1)),oe=this.pow(s,y),ve=d;0!==oe.cmp(r);){for(var De=oe,Q=0;0!==De.cmp(r);Q++)De=De.redSqr();p(Q=0;d--){for(var V=h.words[d],J=I-1;J>=0;J--){var oe=V>>J&1;r!==y[0]&&(r=this.sqr(r)),0!==oe||0!==f?(f<<=1,f|=oe,(4==++k||0===d&&0===J)&&(r=this.mul(r,y[f]),k=0,f=0)):k=0}I=26}return r},n.prototype.convertTo=function(s){var h=s.umod(this.m);return h===s?h.clone():h},n.prototype.convertFrom=function(s){var h=s.clone();return h.red=null,h},c.mont=function(s){return new o(s)},O(o,n),o.prototype.convertTo=function(s){return this.imod(s.ushln(this.shift))},o.prototype.convertFrom=function(s){var h=this.imod(s.mul(this.rinv));return h.red=null,h},o.prototype.imul=function(s,h){if(s.isZero()||h.isZero())return s.words[0]=0,s.length=1,s;var v=s.imul(h),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=v.isub(y).iushrn(this.shift),r=d;return d.cmp(this.m)>=0?r=d.isub(this.m):d.cmpn(0)<0&&(r=d.iadd(this.m)),r._forceRed(this)},o.prototype.mul=function(s,h){if(s.isZero()||h.isZero())return new c(0)._forceRed(this);var v=s.mul(h),y=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=v.isub(y).iushrn(this.shift),r=d;return d.cmp(this.m)>=0?r=d.isub(this.m):d.cmpn(0)<0&&(r=d.iadd(this.m)),r._forceRed(this)},o.prototype.invm=function(s){return this.imod(s._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},5294:(Ce,ee,E)=>{var a;function S(O){this.rand=O}if(Ce.exports=function(c){return a||(a=new S(null)),a.generate(c)},Ce.exports.Rand=S,S.prototype.generate=function(c){return this._rand(c)},S.prototype._rand=function(c){if(this.rand.getBytes)return this.rand.getBytes(c);for(var D=new Uint8Array(c),C=0;C{var a=E(7054).Buffer;function S(_){a.isBuffer(_)||(_=a.from(_));for(var F=_.length/4|0,B=new Array(F),m=0;m>>24]^w[M>>>16&255]^P[R>>>8&255]^$[255&U]^F[te++],W=A[M>>>24]^w[R>>>16&255]^P[U>>>8&255]^$[255&L]^F[te++],ie=A[R>>>24]^w[U>>>16&255]^P[L>>>8&255]^$[255&M]^F[te++],me=A[U>>>24]^w[L>>>16&255]^P[M>>>8&255]^$[255&R]^F[te++],L=j,M=W,R=ie,U=me;return j=(m[L>>>24]<<24|m[M>>>16&255]<<16|m[R>>>8&255]<<8|m[255&U])^F[te++],W=(m[M>>>24]<<24|m[R>>>16&255]<<16|m[U>>>8&255]<<8|m[255&L])^F[te++],ie=(m[R>>>24]<<24|m[U>>>16&255]<<16|m[L>>>8&255]<<8|m[255&M])^F[te++],me=(m[U>>>24]<<24|m[L>>>16&255]<<16|m[M>>>8&255]<<8|m[255&R])^F[te++],[j>>>=0,W>>>=0,ie>>>=0,me>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],D=function(){for(var _=new Array(256),F=0;F<256;F++)_[F]=F<128?F<<1:F<<1^283;for(var B=[],m=[],T=[[],[],[],[]],A=[[],[],[],[]],w=0,P=0,$=0;$<256;++$){var L=P^P<<1^P<<2^P<<3^P<<4;B[w]=L=L>>>8^255&L^99,m[L]=w;var M=_[w],R=_[M],U=_[R],j=257*_[L]^16843008*L;T[0][w]=j<<24|j>>>8,T[1][w]=j<<16|j>>>16,T[2][w]=j<<8|j>>>24,T[3][w]=j,A[0][L]=(j=16843009*U^65537*R^257*M^16843008*w)<<24|j>>>8,A[1][L]=j<<16|j>>>16,A[2][L]=j<<8|j>>>24,A[3][L]=j,0===w?w=P=1:(w=M^_[_[_[U^M]]],P^=_[_[P]])}return{SBOX:B,INV_SBOX:m,SUB_MIX:T,INV_SUB_MIX:A}}();function C(_){this._key=S(_),this._reset()}C.blockSize=16,C.keySize=32,C.prototype.blockSize=C.blockSize,C.prototype.keySize=C.keySize,C.prototype._reset=function(){for(var _=this._key,F=_.length,B=F+6,m=4*(B+1),T=[],A=0;A>>24)>>>24]<<24|D.SBOX[w>>>16&255]<<16|D.SBOX[w>>>8&255]<<8|D.SBOX[255&w],w^=c[A/F|0]<<24):F>6&&A%F==4&&(w=D.SBOX[w>>>24]<<24|D.SBOX[w>>>16&255]<<16|D.SBOX[w>>>8&255]<<8|D.SBOX[255&w]),T[A]=T[A-F]^w}for(var P=[],$=0;$>>24]]^D.INV_SUB_MIX[1][D.SBOX[M>>>16&255]]^D.INV_SUB_MIX[2][D.SBOX[M>>>8&255]]^D.INV_SUB_MIX[3][D.SBOX[255&M]]}this._nRounds=B,this._keySchedule=T,this._invKeySchedule=P},C.prototype.encryptBlockRaw=function(_){return O(_=S(_),this._keySchedule,D.SUB_MIX,D.SBOX,this._nRounds)},C.prototype.encryptBlock=function(_){var F=this.encryptBlockRaw(_),B=a.allocUnsafe(16);return B.writeUInt32BE(F[0],0),B.writeUInt32BE(F[1],4),B.writeUInt32BE(F[2],8),B.writeUInt32BE(F[3],12),B},C.prototype.decryptBlock=function(_){var F=(_=S(_))[1];_[1]=_[3],_[3]=F;var B=O(_,this._invKeySchedule,D.INV_SUB_MIX,D.INV_SBOX,this._nRounds),m=a.allocUnsafe(16);return m.writeUInt32BE(B[0],0),m.writeUInt32BE(B[3],4),m.writeUInt32BE(B[2],8),m.writeUInt32BE(B[1],12),m},C.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},Ce.exports.AES=C},9307:(Ce,ee,E)=>{var a=E(2375),S=E(7054).Buffer,p=E(3247),O=E(1993),c=E(5917),D=E(3546),C=E(5725);function B(m,T,A,w){p.call(this);var P=S.alloc(4,0);this._cipher=new a.AES(T);var $=this._cipher.encryptBlock(P);this._ghash=new c($),A=function F(m,T,A){if(12===T.length)return m._finID=S.concat([T,S.from([0,0,0,1])]),S.concat([T,S.from([0,0,0,2])]);var w=new c(A),P=T.length,$=P%16;w.update(T),$&&w.update(S.alloc($=16-$,0)),w.update(S.alloc(8,0));var L=8*P,M=S.alloc(8);M.writeUIntBE(L,0,8),w.update(M),m._finID=w.state;var R=S.from(m._finID);return C(R),R}(this,A,$),this._prev=S.from(A),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=m,this._authTag=null,this._called=!1}O(B,p),B.prototype._update=function(m){if(!this._called&&this._alen){var T=16-this._alen%16;T<16&&(T=S.alloc(T,0),this._ghash.update(T))}this._called=!0;var A=this._mode.encrypt(this,m);return this._ghash.update(this._decrypt?m:A),this._len+=m.length,A},B.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var m=D(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function _(m,T){var A=0;m.length!==T.length&&A++;for(var w=Math.min(m.length,T.length),P=0;P{var a=E(350),S=E(102),p=E(3219);ee.createCipher=ee.Cipher=a.createCipher,ee.createCipheriv=ee.Cipheriv=a.createCipheriv,ee.createDecipher=ee.Decipher=S.createDecipher,ee.createDecipheriv=ee.Decipheriv=S.createDecipheriv,ee.listCiphers=ee.getCiphers=function O(){return Object.keys(p)}},102:(Ce,ee,E)=>{var a=E(9307),S=E(7054).Buffer,p=E(503),O=E(1821),c=E(3247),D=E(2375),C=E(8211);function F(w,P,$){c.call(this),this._cache=new B,this._last=void 0,this._cipher=new D.AES(P),this._prev=S.from($),this._mode=w,this._autopadding=!0}function B(){this.cache=S.allocUnsafe(0)}function T(w,P,$){var L=p[w.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof $&&($=S.from($)),"GCM"!==L.mode&&$.length!==L.iv)throw new TypeError("invalid iv length "+$.length);if("string"==typeof P&&(P=S.from(P)),P.length!==L.key/8)throw new TypeError("invalid key length "+P.length);return"stream"===L.type?new O(L.module,P,$,!0):"auth"===L.type?new a(L.module,P,$,!0):new F(L.module,P,$)}E(1993)(F,c),F.prototype._update=function(w){this._cache.add(w);for(var P,$,L=[];P=this._cache.get(this._autopadding);)$=this._mode.decrypt(this,P),L.push($);return S.concat(L)},F.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return function m(w){var P=w[15];if(P<1||P>16)throw new Error("unable to decrypt data");for(var $=-1;++$16)return P=this.cache.slice(0,16),this.cache=this.cache.slice(16),P}else if(this.cache.length>=16)return P=this.cache.slice(0,16),this.cache=this.cache.slice(16),P;return null},B.prototype.flush=function(){if(this.cache.length)return this.cache},ee.createDecipher=function A(w,P){var $=p[w.toLowerCase()];if(!$)throw new TypeError("invalid suite type");var L=C(P,!1,$.key,$.iv);return T(w,L.key,L.iv)},ee.createDecipheriv=T},350:(Ce,ee,E)=>{var a=E(503),S=E(9307),p=E(7054).Buffer,O=E(1821),c=E(3247),D=E(2375),C=E(8211);function F(w,P,$){c.call(this),this._cache=new m,this._cipher=new D.AES(P),this._prev=p.from($),this._mode=w,this._autopadding=!0}E(1993)(F,c),F.prototype._update=function(w){this._cache.add(w);for(var P,$,L=[];P=this._cache.get();)$=this._mode.encrypt(this,P),L.push($);return p.concat(L)};var B=p.alloc(16,16);function m(){this.cache=p.allocUnsafe(0)}function T(w,P,$){var L=a[w.toLowerCase()];if(!L)throw new TypeError("invalid suite type");if("string"==typeof P&&(P=p.from(P)),P.length!==L.key/8)throw new TypeError("invalid key length "+P.length);if("string"==typeof $&&($=p.from($)),"GCM"!==L.mode&&$.length!==L.iv)throw new TypeError("invalid iv length "+$.length);return"stream"===L.type?new O(L.module,P,$):"auth"===L.type?new S(L.module,P,$):new F(L.module,P,$)}F.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return w=this._mode.encrypt(this,w),this._cipher.scrub(),w;if(!w.equals(B))throw this._cipher.scrub(),new Error("data not multiple of block length")},F.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this},m.prototype.add=function(w){this.cache=p.concat([this.cache,w])},m.prototype.get=function(){if(this.cache.length>15){var w=this.cache.slice(0,16);return this.cache=this.cache.slice(16),w}return null},m.prototype.flush=function(){for(var w=16-this.cache.length,P=p.allocUnsafe(w),$=-1;++${var a=E(7054).Buffer,S=a.alloc(16,0);function O(D){var C=a.allocUnsafe(16);return C.writeUInt32BE(D[0]>>>0,0),C.writeUInt32BE(D[1]>>>0,4),C.writeUInt32BE(D[2]>>>0,8),C.writeUInt32BE(D[3]>>>0,12),C}function c(D){this.h=D,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}c.prototype.ghash=function(D){for(var C=-1;++C0;_--)D[_]=D[_]>>>1|(1&D[_-1])<<31;D[0]=D[0]>>>1,B&&(D[0]=D[0]^225<<24)}this.state=O(C)},c.prototype.update=function(D){this.cache=a.concat([this.cache,D]);for(var C;this.cache.length>=16;)C=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(C)},c.prototype.final=function(D,C){return this.cache.length&&this.ghash(a.concat([this.cache,S],16)),this.ghash(O([0,D,0,C])),this.state},Ce.exports=c},5725:Ce=>{Ce.exports=function ee(E){for(var S,a=E.length;a--;){if(255!==(S=E.readUInt8(a))){S++,E.writeUInt8(S,a);break}E.writeUInt8(0,a)}}},4133:(Ce,ee,E)=>{var a=E(3546);ee.encrypt=function(S,p){var O=a(p,S._prev);return S._prev=S._cipher.encryptBlock(O),S._prev},ee.decrypt=function(S,p){var O=S._prev;S._prev=p;var c=S._cipher.decryptBlock(p);return a(c,O)}},7090:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(3546);function p(O,c,D){var C=c.length,_=S(c,O._cache);return O._cache=O._cache.slice(C),O._prev=a.concat([O._prev,D?c:_]),_}ee.encrypt=function(O,c,D){for(var _,C=a.allocUnsafe(0);c.length;){if(0===O._cache.length&&(O._cache=O._cipher.encryptBlock(O._prev),O._prev=a.allocUnsafe(0)),!(O._cache.length<=c.length)){C=a.concat([C,p(O,c,D)]);break}C=a.concat([C,p(O,c.slice(0,_=O._cache.length),D)]),c=c.slice(_)}return C}},1039:(Ce,ee,E)=>{var a=E(7054).Buffer;function S(O,c,D){for(var m,T,_=-1,B=0;++_<8;)B+=(128&(T=O._cipher.encryptBlock(O._prev)[0]^(m=c&1<<7-_?128:0)))>>_%8,O._prev=p(O._prev,D?m:T);return B}function p(O,c){var D=O.length,C=-1,_=a.allocUnsafe(O.length);for(O=a.concat([O,a.from([c])]);++C>7;return _}ee.encrypt=function(O,c,D){for(var C=c.length,_=a.allocUnsafe(C),F=-1;++F{var a=E(7054).Buffer;function S(p,O,c){var C=p._cipher.encryptBlock(p._prev)[0]^O;return p._prev=a.concat([p._prev.slice(1),a.from([c?O:C])]),C}ee.encrypt=function(p,O,c){for(var D=O.length,C=a.allocUnsafe(D),_=-1;++_{var a=E(3546),S=E(7054).Buffer,p=E(5725);function O(D){var C=D._cipher.encryptBlockRaw(D._prev);return p(D._prev),C}ee.encrypt=function(D,C){var _=Math.ceil(C.length/16),F=D._cache.length;D._cache=S.concat([D._cache,S.allocUnsafe(16*_)]);for(var B=0;B<_;B++){var m=O(D),T=F+16*B;D._cache.writeUInt32BE(m[0],T+0),D._cache.writeUInt32BE(m[1],T+4),D._cache.writeUInt32BE(m[2],T+8),D._cache.writeUInt32BE(m[3],T+12)}var A=D._cache.slice(0,C.length);return D._cache=D._cache.slice(C.length),a(C,A)}},7513:(Ce,ee)=>{ee.encrypt=function(E,a){return E._cipher.encryptBlock(a)},ee.decrypt=function(E,a){return E._cipher.decryptBlock(a)}},503:(Ce,ee,E)=>{var a={ECB:E(7513),CBC:E(4133),CFB:E(7090),CFB8:E(2576),CFB1:E(1039),OFB:E(6854),CTR:E(336),GCM:E(336)},S=E(3219);for(var p in S)S[p].module=a[S[p].mode];Ce.exports=S},6854:(Ce,ee,E)=>{var a=E(3546);function S(p){return p._prev=p._cipher.encryptBlock(p._prev),p._prev}ee.encrypt=function(p,O){for(;p._cache.length{var a=E(2375),S=E(7054).Buffer,p=E(3247);function c(D,C,_,F){p.call(this),this._cipher=new a.AES(C),this._prev=S.from(_),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=F,this._mode=D}E(1993)(c,p),c.prototype._update=function(D){return this._mode.encrypt(this,D,this._decrypt)},c.prototype._final=function(){this._cipher.scrub()},Ce.exports=c},8862:(Ce,ee,E)=>{var a=E(9799),S=E(3388),p=E(503),O=E(9571),c=E(8211);function _(m,T,A){if(m=m.toLowerCase(),p[m])return S.createCipheriv(m,T,A);if(O[m])return new a({key:T,iv:A,mode:m});throw new TypeError("invalid suite type")}function F(m,T,A){if(m=m.toLowerCase(),p[m])return S.createDecipheriv(m,T,A);if(O[m])return new a({key:T,iv:A,mode:m,decrypt:!0});throw new TypeError("invalid suite type")}ee.createCipher=ee.Cipher=function D(m,T){var A,w;if(m=m.toLowerCase(),p[m])A=p[m].key,w=p[m].iv;else{if(!O[m])throw new TypeError("invalid suite type");A=8*O[m].key,w=O[m].iv}var P=c(T,!1,A,w);return _(m,P.key,P.iv)},ee.createCipheriv=ee.Cipheriv=_,ee.createDecipher=ee.Decipher=function C(m,T){var A,w;if(m=m.toLowerCase(),p[m])A=p[m].key,w=p[m].iv;else{if(!O[m])throw new TypeError("invalid suite type");A=8*O[m].key,w=O[m].iv}var P=c(T,!1,A,w);return F(m,P.key,P.iv)},ee.createDecipheriv=ee.Decipheriv=F,ee.listCiphers=ee.getCiphers=function B(){return Object.keys(O).concat(S.getCiphers())}},9799:(Ce,ee,E)=>{var a=E(3247),S=E(1549),p=E(1993),O=E(7054).Buffer,c={"des-ede3-cbc":S.CBC.instantiate(S.EDE),"des-ede3":S.EDE,"des-ede-cbc":S.CBC.instantiate(S.EDE),"des-ede":S.EDE,"des-cbc":S.CBC.instantiate(S.DES),"des-ecb":S.DES};function D(C){a.call(this);var B,_=C.mode.toLowerCase(),F=c[_];B=C.decrypt?"decrypt":"encrypt";var m=C.key;O.isBuffer(m)||(m=O.from(m)),("des-ede"===_||"des-ede-cbc"===_)&&(m=O.concat([m,m.slice(0,8)]));var T=C.iv;O.isBuffer(T)||(T=O.from(T)),this._des=F.create({key:m,iv:T,type:B})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],Ce.exports=D,p(D,a),D.prototype._update=function(C){return O.from(this._des.update(C))},D.prototype._final=function(){return O.from(this._des.final())}},9571:(Ce,ee)=>{ee["des-ecb"]={key:8,iv:0},ee["des-cbc"]=ee.des={key:8,iv:8},ee["des-ede3-cbc"]=ee.des3={key:24,iv:8},ee["des-ede3"]={key:24,iv:0},ee["des-ede-cbc"]={key:16,iv:8},ee["des-ede"]={key:16,iv:0}},4105:(Ce,ee,E)=>{var a=E(917),S=E(3342);function O(D){var _,C=D.modulus.byteLength();do{_=new a(S(C))}while(_.cmp(D.modulus)>=0||!_.umod(D.prime1)||!_.umod(D.prime2));return _}function c(D,C){var _=function p(D){var C=O(D);return{blinder:C.toRed(a.mont(D.modulus)).redPow(new a(D.publicExponent)).fromRed(),unblinder:C.invm(D.modulus)}}(C),F=C.modulus.byteLength(),B=new a(D).mul(_.blinder).umod(C.modulus),m=B.toRed(a.mont(C.prime1)),T=B.toRed(a.mont(C.prime2)),A=C.coefficient,w=C.prime1,P=C.prime2,$=m.redPow(C.exponent1).fromRed(),L=T.redPow(C.exponent2).fromRed(),M=$.isub(L).imul(A).umod(w).imul(P);return L.iadd(M).imul(_.unblinder).umod(C.modulus).toArrayLike(Buffer,"be",F)}c.getr=O,Ce.exports=c},9560:(Ce,ee,E)=>{"use strict";Ce.exports=E(2951)},9143:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(7211),p=E(5942),O=E(1993),c=E(3150),D=E(4754),C=E(2951);function _(T){p.Writable.call(this);var A=C[T];if(!A)throw new Error("Unknown message digest");this._hashType=A.hash,this._hash=S(A.hash),this._tag=A.id,this._signType=A.sign}function F(T){p.Writable.call(this);var A=C[T];if(!A)throw new Error("Unknown message digest");this._hash=S(A.hash),this._tag=A.id,this._signType=A.sign}function B(T){return new _(T)}function m(T){return new F(T)}Object.keys(C).forEach(function(T){C[T].id=a.from(C[T].id,"hex"),C[T.toLowerCase()]=C[T]}),O(_,p.Writable),_.prototype._write=function(A,w,P){this._hash.update(A),P()},_.prototype.update=function(A,w){return this._hash.update("string"==typeof A?a.from(A,w):A),this},_.prototype.sign=function(A,w){this.end();var P=this._hash.digest(),$=c(P,A,this._hashType,this._signType,this._tag);return w?$.toString(w):$},O(F,p.Writable),F.prototype._write=function(A,w,P){this._hash.update(A),P()},F.prototype.update=function(A,w){return this._hash.update("string"==typeof A?a.from(A,w):A),this},F.prototype.verify=function(A,w,P){var $="string"==typeof w?a.from(w,P):w;this.end();var L=this._hash.digest();return D($,L,A,this._signType,this._tag)},Ce.exports={Sign:B,Verify:m,createSign:B,createVerify:m}},3150:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(6432),p=E(4105),O=E(518).ec,c=E(917),D=E(5667),C=E(4589);function A(M,R,U,j){if((M=a.from(M.toArray())).length0&&U.ishrn(j),U}function $(M,R,U){var j,W;do{for(j=a.alloc(0);8*j.length{"use strict";var a=E(7054).Buffer,S=E(917),p=E(518).ec,O=E(5667),c=E(4589);function F(B,m){if(B.cmpn(0)<=0)throw new Error("invalid sig");if(B.cmp(m)>=0)throw new Error("invalid sig")}Ce.exports=function D(B,m,T,A,w){var P=O(T);if("ec"===P.type){if("ecdsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");return function C(B,m,T){var A=c[T.data.algorithm.curve.join(".")];if(!A)throw new Error("unknown curve "+T.data.algorithm.curve.join("."));return new p(A).verify(m,B,T.data.subjectPrivateKey.data)}(B,m,P)}if("dsa"===P.type){if("dsa"!==A)throw new Error("wrong public key type");return function _(B,m,T){var A=T.data.p,w=T.data.q,P=T.data.g,$=T.data.pub_key,L=O.signature.decode(B,"der"),M=L.s,R=L.r;F(M,w),F(R,w);var U=S.mont(A),j=M.invm(w);return 0===P.toRed(U).redPow(new S(m).mul(j).mod(w)).fromRed().mul($.toRed(U).redPow(R.mul(j).mod(w)).fromRed()).mod(A).mod(w).cmp(R)}(B,m,P)}if("rsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");m=a.concat([w,m]);for(var $=P.modulus.byteLength(),L=[1],M=0;m.length+L.length+2<$;)L.push(255),M+=1;L.push(0);for(var R=-1;++R{Ce.exports=function(E,a){for(var S=Math.min(E.length,a.length),p=new Buffer(S),O=0;O{"use strict";var a=E(3981),S=E(2020),p="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ee.Buffer=C,ee.SlowBuffer=function M(re){return+re!=re&&(re=0),C.alloc(+re)},ee.INSPECT_MAX_BYTES=50;var O=2147483647;function D(re){if(re>O)throw new RangeError('The value "'+re+'" is invalid for option "size"');var ne=new Uint8Array(re);return Object.setPrototypeOf(ne,C.prototype),ne}function C(re,ne,G){if("number"==typeof re){if("string"==typeof ne)throw new TypeError('The "string" argument must be of type string. Received type number');return m(re)}return _(re,ne,G)}function _(re,ne,G){if("string"==typeof re)return function T(re,ne){if(("string"!=typeof ne||""===ne)&&(ne="utf8"),!C.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);var G=0|R(re,ne),ge=D(G),xt=ge.write(re,ne);return xt!==G&&(ge=ge.slice(0,xt)),ge}(re,ne);if(ArrayBuffer.isView(re))return function w(re){if(pe(re,Uint8Array)){var ne=new Uint8Array(re);return P(ne.buffer,ne.byteOffset,ne.byteLength)}return A(re)}(re);if(null==re)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(pe(re,ArrayBuffer)||re&&pe(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(re,SharedArrayBuffer)||re&&pe(re.buffer,SharedArrayBuffer)))return P(re,ne,G);if("number"==typeof re)throw new TypeError('The "value" argument must not be of type number. Received type number');var ge=re.valueOf&&re.valueOf();if(null!=ge&&ge!==re)return C.from(ge,ne,G);var xt=function $(re){if(C.isBuffer(re)){var ne=0|L(re.length),G=D(ne);return 0===G.length||re.copy(G,0,0,ne),G}return void 0!==re.length?"number"!=typeof re.length||Ie(re.length)?D(0):A(re):"Buffer"===re.type&&Array.isArray(re.data)?A(re.data):void 0}(re);if(xt)return xt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof re[Symbol.toPrimitive])return C.from(re[Symbol.toPrimitive]("string"),ne,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}function F(re){if("number"!=typeof re)throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function m(re){return F(re),D(re<0?0:0|L(re))}function A(re){for(var ne=re.length<0?0:0|L(re.length),G=D(ne),ge=0;ge=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return 0|re}function R(re,ne){if(C.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||pe(re,ArrayBuffer))return re.byteLength;if("string"!=typeof re)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);var G=re.length,ge=arguments.length>2&&!0===arguments[2];if(!ge&&0===G)return 0;for(var xt=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return De(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return tt(re).length;default:if(xt)return ge?-1:De(re).length;ne=(""+ne).toLowerCase(),xt=!0}}function U(re,ne,G){var ge=!1;if((void 0===ne||ne<0)&&(ne=0),ne>this.length||((void 0===G||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(ne>>>=0))return"";for(re||(re="utf8");;)switch(re){case"hex":return d(this,ne,G);case"utf8":case"utf-8":return l(this,ne,G);case"ascii":return v(this,ne,G);case"latin1":case"binary":return y(this,ne,G);case"base64":return o(this,ne,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,ne,G);default:if(ge)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),ge=!0}}function j(re,ne,G){var ge=re[ne];re[ne]=re[G],re[G]=ge}function W(re,ne,G,ge,xt){if(0===re.length)return-1;if("string"==typeof G?(ge=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),Ie(G=+G)&&(G=xt?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(xt)return-1;G=re.length-1}else if(G<0){if(!xt)return-1;G=0}if("string"==typeof ne&&(ne=C.from(ne,ge)),C.isBuffer(ne))return 0===ne.length?-1:ie(re,ne,G,ge,xt);if("number"==typeof ne)return ne&=255,"function"==typeof Uint8Array.prototype.indexOf?xt?Uint8Array.prototype.indexOf.call(re,ne,G):Uint8Array.prototype.lastIndexOf.call(re,ne,G):ie(re,[ne],G,ge,xt);throw new TypeError("val must be string, number or Buffer")}function ie(re,ne,G,ge,xt){var ft,Qe=1,rt=re.length,rn=ne.length;if(void 0!==ge&&("ucs2"===(ge=String(ge).toLowerCase())||"ucs-2"===ge||"utf16le"===ge||"utf-16le"===ge)){if(re.length<2||ne.length<2)return-1;Qe=2,rt/=2,rn/=2,G/=2}function mt(Cn,St){return 1===Qe?Cn[St]:Cn.readUInt16BE(St*Qe)}if(xt){var un=-1;for(ft=G;ftrt&&(G=rt-rn),ft=G;ft>=0;ft--){for(var At=!0,It=0;Itxt&&(ge=xt):ge=xt;var Qe=ne.length;ge>Qe/2&&(ge=Qe/2);for(var rt=0;rt>8,Qe.push(G%256),Qe.push(ge);return Qe}(ne,re.length-G),re,G,ge)}function o(re,ne,G){return a.fromByteArray(0===ne&&G===re.length?re:re.slice(ne,G))}function l(re,ne,G){G=Math.min(re.length,G);for(var ge=[],xt=ne;xt239?4:Qe>223?3:Qe>191?2:1;if(xt+rn<=G)switch(rn){case 1:Qe<128&&(rt=Qe);break;case 2:128==(192&(mt=re[xt+1]))&&(At=(31&Qe)<<6|63&mt)>127&&(rt=At);break;case 3:ft=re[xt+2],128==(192&(mt=re[xt+1]))&&128==(192&ft)&&(At=(15&Qe)<<12|(63&mt)<<6|63&ft)>2047&&(At<55296||At>57343)&&(rt=At);break;case 4:ft=re[xt+2],un=re[xt+3],128==(192&(mt=re[xt+1]))&&128==(192&ft)&&128==(192&un)&&(At=(15&Qe)<<18|(63&mt)<<12|(63&ft)<<6|63&un)>65535&&At<1114112&&(rt=At)}null===rt?(rt=65533,rn=1):rt>65535&&(ge.push((rt-=65536)>>>10&1023|55296),rt=56320|1023&rt),ge.push(rt),xt+=rn}return function h(re){var ne=re.length;if(ne<=s)return String.fromCharCode.apply(String,re);for(var G="",ge=0;gext.length?C.from(rt).copy(xt,Qe):Uint8Array.prototype.set.call(xt,rt,Qe);else{if(!C.isBuffer(rt))throw new TypeError('"list" argument must be an Array of Buffers');rt.copy(xt,Qe)}Qe+=rt.length}return xt},C.byteLength=R,C.prototype._isBuffer=!0,C.prototype.swap16=function(){var ne=this.length;if(ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;GG&&(ne+=" ... "),""},p&&(C.prototype[p]=C.prototype.inspect),C.prototype.compare=function(ne,G,ge,xt,Qe){if(pe(ne,Uint8Array)&&(ne=C.from(ne,ne.offset,ne.byteLength)),!C.isBuffer(ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ne);if(void 0===G&&(G=0),void 0===ge&&(ge=ne?ne.length:0),void 0===xt&&(xt=0),void 0===Qe&&(Qe=this.length),G<0||ge>ne.length||xt<0||Qe>this.length)throw new RangeError("out of range index");if(xt>=Qe&&G>=ge)return 0;if(xt>=Qe)return-1;if(G>=ge)return 1;if(this===ne)return 0;for(var rt=(Qe>>>=0)-(xt>>>=0),rn=(ge>>>=0)-(G>>>=0),mt=Math.min(rt,rn),ft=this.slice(xt,Qe),un=ne.slice(G,ge),At=0;At>>=0,isFinite(ge)?(ge>>>=0,void 0===xt&&(xt="utf8")):(xt=ge,ge=void 0)}var Qe=this.length-G;if((void 0===ge||ge>Qe)&&(ge=Qe),ne.length>0&&(ge<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");xt||(xt="utf8");for(var rt=!1;;)switch(xt){case"hex":return me(this,ne,G,ge);case"utf8":case"utf-8":return te(this,ne,G,ge);case"ascii":case"latin1":case"binary":return se(this,ne,G,ge);case"base64":return g(this,ne,G,ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,ne,G,ge);default:if(rt)throw new TypeError("Unknown encoding: "+xt);xt=(""+xt).toLowerCase(),rt=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var s=4096;function v(re,ne,G){var ge="";G=Math.min(re.length,G);for(var xt=ne;xtge)&&(G=ge);for(var xt="",Qe=ne;QeG)throw new RangeError("Trying to access beyond buffer length")}function k(re,ne,G,ge,xt,Qe){if(!C.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>xt||nere.length)throw new RangeError("Index out of range")}function I(re,ne,G,ge,xt,Qe){if(G+ge>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function V(re,ne,G,ge,xt){return ne=+ne,G>>>=0,xt||I(re,0,G,4),S.write(re,ne,G,ge,23,4),G+4}function J(re,ne,G,ge,xt){return ne=+ne,G>>>=0,xt||I(re,0,G,8),S.write(re,ne,G,ge,52,8),G+8}C.prototype.slice=function(ne,G){var ge=this.length;(ne=~~ne)<0?(ne+=ge)<0&&(ne=0):ne>ge&&(ne=ge),(G=void 0===G?ge:~~G)<0?(G+=ge)<0&&(G=0):G>ge&&(G=ge),G>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne],Qe=1,rt=0;++rt>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne+--G],Qe=1;G>0&&(Qe*=256);)xt+=this[ne+--G]*Qe;return xt},C.prototype.readUint8=C.prototype.readUInt8=function(ne,G){return ne>>>=0,G||f(ne,1,this.length),this[ne]},C.prototype.readUint16LE=C.prototype.readUInt16LE=function(ne,G){return ne>>>=0,G||f(ne,2,this.length),this[ne]|this[ne+1]<<8},C.prototype.readUint16BE=C.prototype.readUInt16BE=function(ne,G){return ne>>>=0,G||f(ne,2,this.length),this[ne]<<8|this[ne+1]},C.prototype.readUint32LE=C.prototype.readUInt32LE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+16777216*this[ne+3]},C.prototype.readUint32BE=C.prototype.readUInt32BE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),16777216*this[ne]+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},C.prototype.readIntLE=function(ne,G,ge){ne>>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=this[ne],Qe=1,rt=0;++rt=(Qe*=128)&&(xt-=Math.pow(2,8*G)),xt},C.prototype.readIntBE=function(ne,G,ge){ne>>>=0,G>>>=0,ge||f(ne,G,this.length);for(var xt=G,Qe=1,rt=this[ne+--xt];xt>0&&(Qe*=256);)rt+=this[ne+--xt]*Qe;return rt>=(Qe*=128)&&(rt-=Math.pow(2,8*G)),rt},C.prototype.readInt8=function(ne,G){return ne>>>=0,G||f(ne,1,this.length),128&this[ne]?-1*(255-this[ne]+1):this[ne]},C.prototype.readInt16LE=function(ne,G){ne>>>=0,G||f(ne,2,this.length);var ge=this[ne]|this[ne+1]<<8;return 32768&ge?4294901760|ge:ge},C.prototype.readInt16BE=function(ne,G){ne>>>=0,G||f(ne,2,this.length);var ge=this[ne+1]|this[ne]<<8;return 32768&ge?4294901760|ge:ge},C.prototype.readInt32LE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},C.prototype.readInt32BE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},C.prototype.readFloatLE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),S.read(this,ne,!0,23,4)},C.prototype.readFloatBE=function(ne,G){return ne>>>=0,G||f(ne,4,this.length),S.read(this,ne,!1,23,4)},C.prototype.readDoubleLE=function(ne,G){return ne>>>=0,G||f(ne,8,this.length),S.read(this,ne,!0,52,8)},C.prototype.readDoubleBE=function(ne,G){return ne>>>=0,G||f(ne,8,this.length),S.read(this,ne,!1,52,8)},C.prototype.writeUintLE=C.prototype.writeUIntLE=function(ne,G,ge,xt){ne=+ne,G>>>=0,ge>>>=0,xt||k(this,ne,G,ge,Math.pow(2,8*ge)-1,0);var rt=1,rn=0;for(this[G]=255≠++rn>>=0,ge>>>=0,xt||k(this,ne,G,ge,Math.pow(2,8*ge)-1,0);var rt=ge-1,rn=1;for(this[G+rt]=255≠--rt>=0&&(rn*=256);)this[G+rt]=ne/rn&255;return G+ge},C.prototype.writeUint8=C.prototype.writeUInt8=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,1,255,0),this[G]=255&ne,G+1},C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,65535,0),this[G]=255&ne,this[G+1]=ne>>>8,G+2},C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,65535,0),this[G]=ne>>>8,this[G+1]=255&ne,G+2},C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,4294967295,0),this[G+3]=ne>>>24,this[G+2]=ne>>>16,this[G+1]=ne>>>8,this[G]=255&ne,G+4},C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,4294967295,0),this[G]=ne>>>24,this[G+1]=ne>>>16,this[G+2]=ne>>>8,this[G+3]=255&ne,G+4},C.prototype.writeIntLE=function(ne,G,ge,xt){if(ne=+ne,G>>>=0,!xt){var Qe=Math.pow(2,8*ge-1);k(this,ne,G,ge,Qe-1,-Qe)}var rt=0,rn=1,mt=0;for(this[G]=255≠++rt>>=0,!xt){var Qe=Math.pow(2,8*ge-1);k(this,ne,G,ge,Qe-1,-Qe)}var rt=ge-1,rn=1,mt=0;for(this[G+rt]=255≠--rt>=0&&(rn*=256);)ne<0&&0===mt&&0!==this[G+rt+1]&&(mt=1),this[G+rt]=(ne/rn|0)-mt&255;return G+ge},C.prototype.writeInt8=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,1,127,-128),ne<0&&(ne=255+ne+1),this[G]=255&ne,G+1},C.prototype.writeInt16LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,32767,-32768),this[G]=255&ne,this[G+1]=ne>>>8,G+2},C.prototype.writeInt16BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,2,32767,-32768),this[G]=ne>>>8,this[G+1]=255&ne,G+2},C.prototype.writeInt32LE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,2147483647,-2147483648),this[G]=255&ne,this[G+1]=ne>>>8,this[G+2]=ne>>>16,this[G+3]=ne>>>24,G+4},C.prototype.writeInt32BE=function(ne,G,ge){return ne=+ne,G>>>=0,ge||k(this,ne,G,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),this[G]=ne>>>24,this[G+1]=ne>>>16,this[G+2]=ne>>>8,this[G+3]=255&ne,G+4},C.prototype.writeFloatLE=function(ne,G,ge){return V(this,ne,G,!0,ge)},C.prototype.writeFloatBE=function(ne,G,ge){return V(this,ne,G,!1,ge)},C.prototype.writeDoubleLE=function(ne,G,ge){return J(this,ne,G,!0,ge)},C.prototype.writeDoubleBE=function(ne,G,ge){return J(this,ne,G,!1,ge)},C.prototype.copy=function(ne,G,ge,xt){if(!C.isBuffer(ne))throw new TypeError("argument should be a Buffer");if(ge||(ge=0),!xt&&0!==xt&&(xt=this.length),G>=ne.length&&(G=ne.length),G||(G=0),xt>0&&xt=this.length)throw new RangeError("Index out of range");if(xt<0)throw new RangeError("sourceEnd out of bounds");xt>this.length&&(xt=this.length),ne.length-G>>=0,ge=void 0===ge?this.length:ge>>>0,ne||(ne=0),"number"==typeof ne)for(rt=G;rt55295&&G<57344){if(!xt){if(G>56319){(ne-=3)>-1&&Qe.push(239,191,189);continue}if(rt+1===ge){(ne-=3)>-1&&Qe.push(239,191,189);continue}xt=G;continue}if(G<56320){(ne-=3)>-1&&Qe.push(239,191,189),xt=G;continue}G=65536+(xt-55296<<10|G-56320)}else xt&&(ne-=3)>-1&&Qe.push(239,191,189);if(xt=null,G<128){if((ne-=1)<0)break;Qe.push(G)}else if(G<2048){if((ne-=2)<0)break;Qe.push(G>>6|192,63&G|128)}else if(G<65536){if((ne-=3)<0)break;Qe.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;Qe.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return Qe}function tt(re){return a.toByteArray(function ve(re){if((re=(re=re.split("=")[0]).trim().replace(oe,"")).length<2)return"";for(;re.length%4!=0;)re+="=";return re}(re))}function ke(re,ne,G,ge){for(var xt=0;xt=ne.length||xt>=re.length);++xt)ne[xt+G]=re[xt];return xt}function pe(re,ne){return re instanceof ne||null!=re&&null!=re.constructor&&null!=re.constructor.name&&re.constructor.name===ne.name}function Ie(re){return re!=re}var _e=function(){for(var re="0123456789abcdef",ne=new Array(256),G=0;G<16;++G)for(var ge=16*G,xt=0;xt<16;++xt)ne[ge+xt]=re[G]+re[xt];return ne}()},5293:(Ce,ee,E)=>{"use strict";E.d(ee,{R:()=>S});const S=(0,E(5083).F3)("VoiceRecorder",{web:()=>E.e(5120).then(E.bind(E,5120)).then(p=>new p.VoiceRecorderWeb)})},3247:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(7045).Transform,p=E(8454).I;function c(D){S.call(this),this.hashMode="string"==typeof D,this.hashMode?this[D]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}E(1993)(c,S),c.prototype.update=function(D,C,_){"string"==typeof D&&(D=a.from(D,C));var F=this._update(D);return this.hashMode?this:(_&&(F=this._toString(F,_)),F)},c.prototype.setAutoPadding=function(){},c.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},c.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},c.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},c.prototype._transform=function(D,C,_){var F;try{this.hashMode?this._update(D):this.push(this._update(D))}catch(B){F=B}finally{_(F)}},c.prototype._flush=function(D){var C;try{this.push(this.__final())}catch(_){C=_}D(C)},c.prototype._finalOrDigest=function(D){var C=this.__final()||a.alloc(0);return D&&(C=this._toString(C,D,!0)),C},c.prototype._toString=function(D,C,_){if(this._decoder||(this._decoder=new p(C),this._encoding=C),this._encoding!==C)throw new Error("can't switch encodings");var F=this._decoder.write(D);return _&&(F+=this._decoder.end()),F},Ce.exports=c},7637:(Ce,ee,E)=>{function P($){return Object.prototype.toString.call($)}ee.isArray=function a($){return Array.isArray?Array.isArray($):"[object Array]"===P($)},ee.isBoolean=function S($){return"boolean"==typeof $},ee.isNull=function p($){return null===$},ee.isNullOrUndefined=function O($){return null==$},ee.isNumber=function c($){return"number"==typeof $},ee.isString=function D($){return"string"==typeof $},ee.isSymbol=function C($){return"symbol"==typeof $},ee.isUndefined=function _($){return void 0===$},ee.isRegExp=function F($){return"[object RegExp]"===P($)},ee.isObject=function B($){return"object"==typeof $&&null!==$},ee.isDate=function m($){return"[object Date]"===P($)},ee.isError=function T($){return"[object Error]"===P($)||$ instanceof Error},ee.isFunction=function A($){return"function"==typeof $},ee.isPrimitive=function w($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||typeof $>"u"},ee.isBuffer=E(3838).Buffer.isBuffer},7303:(Ce,ee,E)=>{var a=E(518),S=E(9606);Ce.exports=function(C){return new O(C)};var p={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function O(D){this.curveType=p[D],this.curveType||(this.curveType={name:D}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function c(D,C,_){Array.isArray(D)||(D=D.toArray());var F=new Buffer(D);if(_&&F.length<_){var B=new Buffer(_-F.length);B.fill(0),F=Buffer.concat([B,F])}return C?F.toString(C):F}p.p224=p.secp224r1,p.p256=p.secp256r1=p.prime256v1,p.p192=p.secp192r1=p.prime192v1,p.p384=p.secp384r1,p.p521=p.secp521r1,O.prototype.generateKeys=function(D,C){return this.keys=this.curve.genKeyPair(),this.getPublicKey(D,C)},O.prototype.computeSecret=function(D,C,_){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),c(this.curve.keyFromPublic(D).getPublic().mul(this.keys.getPrivate()).getX(),_,this.curveType.byteLength)},O.prototype.getPublicKey=function(D,C){var _=this.keys.getPublic("compressed"===C,!0);return"hybrid"===C&&(_[0]=_[_.length-1]%2?7:6),c(_,D)},O.prototype.getPrivateKey=function(D){return c(this.keys.getPrivate(),D)},O.prototype.setPublicKey=function(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this.keys._importPublic(D),this},O.prototype.setPrivateKey=function(D,C){C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C));var _=new S(D);return _=_.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(_),this}},9606:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(7965).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},7211:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(4725),p=E(6636),O=E(5443),c=E(3247);function D(C){c.call(this,"digest"),this._hash=C}a(D,c),D.prototype._update=function(C){this._hash.update(C)},D.prototype._final=function(){return this._hash.digest()},Ce.exports=function(_){return"md5"===(_=_.toLowerCase())?new S:"rmd160"===_||"ripemd160"===_?new p:new D(O(_))}},3407:(Ce,ee,E)=>{var a=E(4725);Ce.exports=function(S){return(new a).update(S).digest()}},6432:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(509),p=E(3247),O=E(7054).Buffer,c=E(3407),D=E(6636),C=E(5443),_=O.alloc(128);function F(B,m){p.call(this,"digest"),"string"==typeof m&&(m=O.from(m));var T="sha512"===B||"sha384"===B?128:64;this._alg=B,this._key=m,m.length>T?m=("rmd160"===B?new D:C(B)).update(m).digest():m.length{"use strict";var a=E(1993),S=E(7054).Buffer,p=E(3247),O=S.alloc(128),c=64;function D(C,_){p.call(this,"digest"),"string"==typeof _&&(_=S.from(_)),this._alg=C,this._key=_,_.length>c?_=C(_):_.length{"use strict";ee.randomBytes=ee.rng=ee.pseudoRandomBytes=ee.prng=E(3342),ee.createHash=ee.Hash=E(7211),ee.createHmac=ee.Hmac=E(6432);var a=E(9560),S=Object.keys(a),p=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(S);ee.getHashes=function(){return p};var O=E(3397);ee.pbkdf2=O.pbkdf2,ee.pbkdf2Sync=O.pbkdf2Sync;var c=E(8862);ee.Cipher=c.Cipher,ee.createCipher=c.createCipher,ee.Cipheriv=c.Cipheriv,ee.createCipheriv=c.createCipheriv,ee.Decipher=c.Decipher,ee.createDecipher=c.createDecipher,ee.Decipheriv=c.Decipheriv,ee.createDecipheriv=c.createDecipheriv,ee.getCiphers=c.getCiphers,ee.listCiphers=c.listCiphers;var D=E(4377);ee.DiffieHellmanGroup=D.DiffieHellmanGroup,ee.createDiffieHellmanGroup=D.createDiffieHellmanGroup,ee.getDiffieHellman=D.getDiffieHellman,ee.createDiffieHellman=D.createDiffieHellman,ee.DiffieHellman=D.DiffieHellman;var C=E(9143);ee.createSign=C.createSign,ee.Sign=C.Sign,ee.createVerify=C.createVerify,ee.Verify=C.Verify,ee.createECDH=E(7303);var _=E(2965);ee.publicEncrypt=_.publicEncrypt,ee.privateEncrypt=_.privateEncrypt,ee.publicDecrypt=_.publicDecrypt,ee.privateDecrypt=_.privateDecrypt;var F=E(9682);ee.randomFill=F.randomFill,ee.randomFillSync=F.randomFillSync,ee.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},ee.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},7656:function(Ce,ee,E){var a;Ce.exports=(a=a||function(S,p){var O;if(typeof window<"u"&&window.crypto&&(O=window.crypto),typeof self<"u"&&self.crypto&&(O=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(O=globalThis.crypto),!O&&typeof window<"u"&&window.msCrypto&&(O=window.msCrypto),!O&&typeof global<"u"&&global.crypto&&(O=global.crypto),!O)try{O=E(1426)}catch{}var c=function(){if(O){if("function"==typeof O.getRandomValues)try{return O.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof O.randomBytes)try{return O.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},D=Object.create||function(){function M(){}return function(R){var U;return M.prototype=R,U=new M,M.prototype=null,U}}(),C={},_=C.lib={},F=_.Base=function(){return{extend:function(M){var R=D(this);return M&&R.mixIn(M),(!R.hasOwnProperty("init")||this.init===R.init)&&(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var R in M)M.hasOwnProperty(R)&&(this[R]=M[R]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=_.WordArray=F.extend({init:function(M,R){M=this.words=M||[],this.sigBytes=null!=R?R:4*M.length},toString:function(M){return(M||T).stringify(this)},concat:function(M){var R=this.words,U=M.words,j=this.sigBytes,W=M.sigBytes;if(this.clamp(),j%4)for(var ie=0;ie>>2]|=(U[ie>>>2]>>>24-ie%4*8&255)<<24-(j+ie)%4*8;else for(var te=0;te>>2]=U[te>>>2];return this.sigBytes+=W,this},clamp:function(){var M=this.words,R=this.sigBytes;M[R>>>2]&=4294967295<<32-R%4*8,M.length=S.ceil(R/4)},clone:function(){var M=F.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var R=[],U=0;U>>2]>>>24-W%4*8&255;j.push((ie>>>4).toString(16)),j.push((15&ie).toString(16))}return j.join("")},parse:function(M){for(var R=M.length,U=[],j=0;j>>3]|=parseInt(M.substr(j,2),16)<<24-j%8*4;return new B.init(U,R/2)}},A=m.Latin1={stringify:function(M){for(var R=M.words,U=M.sigBytes,j=[],W=0;W>>2]>>>24-W%4*8&255));return j.join("")},parse:function(M){for(var R=M.length,U=[],j=0;j>>2]|=(255&M.charCodeAt(j))<<24-j%4*8;return new B.init(U,R)}},w=m.Utf8={stringify:function(M){try{return decodeURIComponent(escape(A.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(M){return A.parse(unescape(encodeURIComponent(M)))}},P=_.BufferedBlockAlgorithm=F.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(M){"string"==typeof M&&(M=w.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var R,U=this._data,j=U.words,W=U.sigBytes,ie=this.blockSize,te=W/(4*ie),se=(te=M?S.ceil(te):S.max((0|te)-this._minBufferSize,0))*ie,g=S.min(4*se,W);if(se){for(var n=0;n>>24)|4278255360&(M<<24|M>>>8)}var R=this._hash.words,U=w[P+0],j=w[P+1],W=w[P+2],ie=w[P+3],me=w[P+4],te=w[P+5],se=w[P+6],g=w[P+7],n=w[P+8],o=w[P+9],l=w[P+10],s=w[P+11],h=w[P+12],v=w[P+13],y=w[P+14],d=w[P+15],r=R[0],f=R[1],k=R[2],I=R[3];r=B(r,f,k,I,U,7,_[0]),I=B(I,r,f,k,j,12,_[1]),k=B(k,I,r,f,W,17,_[2]),f=B(f,k,I,r,ie,22,_[3]),r=B(r,f,k,I,me,7,_[4]),I=B(I,r,f,k,te,12,_[5]),k=B(k,I,r,f,se,17,_[6]),f=B(f,k,I,r,g,22,_[7]),r=B(r,f,k,I,n,7,_[8]),I=B(I,r,f,k,o,12,_[9]),k=B(k,I,r,f,l,17,_[10]),f=B(f,k,I,r,s,22,_[11]),r=B(r,f,k,I,h,7,_[12]),I=B(I,r,f,k,v,12,_[13]),k=B(k,I,r,f,y,17,_[14]),r=m(r,f=B(f,k,I,r,d,22,_[15]),k,I,j,5,_[16]),I=m(I,r,f,k,se,9,_[17]),k=m(k,I,r,f,s,14,_[18]),f=m(f,k,I,r,U,20,_[19]),r=m(r,f,k,I,te,5,_[20]),I=m(I,r,f,k,l,9,_[21]),k=m(k,I,r,f,d,14,_[22]),f=m(f,k,I,r,me,20,_[23]),r=m(r,f,k,I,o,5,_[24]),I=m(I,r,f,k,y,9,_[25]),k=m(k,I,r,f,ie,14,_[26]),f=m(f,k,I,r,n,20,_[27]),r=m(r,f,k,I,v,5,_[28]),I=m(I,r,f,k,W,9,_[29]),k=m(k,I,r,f,g,14,_[30]),r=T(r,f=m(f,k,I,r,h,20,_[31]),k,I,te,4,_[32]),I=T(I,r,f,k,n,11,_[33]),k=T(k,I,r,f,s,16,_[34]),f=T(f,k,I,r,y,23,_[35]),r=T(r,f,k,I,j,4,_[36]),I=T(I,r,f,k,me,11,_[37]),k=T(k,I,r,f,g,16,_[38]),f=T(f,k,I,r,l,23,_[39]),r=T(r,f,k,I,v,4,_[40]),I=T(I,r,f,k,U,11,_[41]),k=T(k,I,r,f,ie,16,_[42]),f=T(f,k,I,r,se,23,_[43]),r=T(r,f,k,I,o,4,_[44]),I=T(I,r,f,k,h,11,_[45]),k=T(k,I,r,f,d,16,_[46]),r=A(r,f=T(f,k,I,r,W,23,_[47]),k,I,U,6,_[48]),I=A(I,r,f,k,g,10,_[49]),k=A(k,I,r,f,y,15,_[50]),f=A(f,k,I,r,te,21,_[51]),r=A(r,f,k,I,h,6,_[52]),I=A(I,r,f,k,ie,10,_[53]),k=A(k,I,r,f,l,15,_[54]),f=A(f,k,I,r,j,21,_[55]),r=A(r,f,k,I,n,6,_[56]),I=A(I,r,f,k,d,10,_[57]),k=A(k,I,r,f,se,15,_[58]),f=A(f,k,I,r,v,21,_[59]),r=A(r,f,k,I,me,6,_[60]),I=A(I,r,f,k,s,10,_[61]),k=A(k,I,r,f,W,15,_[62]),f=A(f,k,I,r,o,21,_[63]),R[0]=R[0]+r|0,R[1]=R[1]+f|0,R[2]=R[2]+k|0,R[3]=R[3]+I|0},_doFinalize:function(){var w=this._data,P=w.words,$=8*this._nDataBytes,L=8*w.sigBytes;P[L>>>5]|=128<<24-L%32;var M=S.floor($/4294967296),R=$;P[15+(L+64>>>9<<4)]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8),P[14+(L+64>>>9<<4)]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),w.sigBytes=4*(P.length+1),this._process();for(var U=this._hash,j=U.words,W=0;W<4;W++){var ie=j[W];j[W]=16711935&(ie<<8|ie>>>24)|4278255360&(ie<<24|ie>>>8)}return U},clone:function(){var w=D.clone.call(this);return w._hash=this._hash.clone(),w}});function B(w,P,$,L,M,R,U){var j=w+(P&$|~P&L)+M+U;return(j<>>32-R)+P}function m(w,P,$,L,M,R,U){var j=w+(P&L|$&~L)+M+U;return(j<>>32-R)+P}function T(w,P,$,L,M,R,U){var j=w+(P^$^L)+M+U;return(j<>>32-R)+P}function A(w,P,$,L,M,R,U){var j=w+($^(P|~L))+M+U;return(j<>>32-R)+P}p.MD5=D._createHelper(F),p.HmacMD5=D._createHmacHelper(F)}(Math),a.MD5)},9986:function(Ce,ee,E){var S,p,O,c,C,_,a;Ce.exports=(a=E(7656),O=(p=(S=a).lib).WordArray,C=[],_=S.algo.SHA1=(c=p.Hasher).extend({_doReset:function(){this._hash=new O.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(F,B){for(var m=this._hash.words,T=m[0],A=m[1],w=m[2],P=m[3],$=m[4],L=0;L<80;L++){if(L<16)C[L]=0|F[B+L];else{var M=C[L-3]^C[L-8]^C[L-14]^C[L-16];C[L]=M<<1|M>>>31}var R=(T<<5|T>>>27)+$+C[L];R+=L<20?1518500249+(A&w|~A&P):L<40?1859775393+(A^w^P):L<60?(A&w|A&P|w&P)-1894007588:(A^w^P)-899497514,$=P,P=w,w=A<<30|A>>>2,A=T,T=R}m[0]=m[0]+T|0,m[1]=m[1]+A|0,m[2]=m[2]+w|0,m[3]=m[3]+P|0,m[4]=m[4]+$|0},_doFinalize:function(){var F=this._data,B=F.words,m=8*this._nDataBytes,T=8*F.sigBytes;return B[T>>>5]|=128<<24-T%32,B[14+(T+64>>>9<<4)]=Math.floor(m/4294967296),B[15+(T+64>>>9<<4)]=m,F.sigBytes=4*B.length,this._process(),this._hash},clone:function(){var F=c.clone.call(this);return F._hash=this._hash.clone(),F}}),S.SHA1=c._createHelper(_),S.HmacSHA1=c._createHmacHelper(_),a.SHA1)},7374:function(Ce){Ce.exports=function(){"use strict";var E=6e4,a=36e5,S="millisecond",p="second",O="minute",c="hour",D="day",C="week",_="month",F="quarter",B="year",m="date",T="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={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(g){var n=["th","st","nd","rd"],o=g%100;return"["+g+(n[(o-20)%10]||n[o]||n[0])+"]"}},$=function(g,n,o){var l=String(g);return!l||l.length>=n?g:""+Array(n+1-l.length).join(o)+g},L={s:$,z:function(g){var n=-g.utcOffset(),o=Math.abs(n),l=Math.floor(o/60),s=o%60;return(n<=0?"+":"-")+$(l,2,"0")+":"+$(s,2,"0")},m:function g(n,o){if(n.date()1)return g(v[0])}else{var y=n.name;R[y]=n,s=y}return!l&&s&&(M=s),s||!l&&M},ie=function(g,n){if(j(g))return g.clone();var o="object"==typeof n?n:{};return o.date=g,o.args=arguments,new te(o)},me=L;me.l=W,me.i=j,me.w=function(g,n){return ie(g,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var te=function(){function g(o){this.$L=W(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[U]=!0}var n=g.prototype;return n.parse=function(o){this.$d=function(l){var s=l.date,h=l.utc;if(null===s)return new Date(NaN);if(me.u(s))return new Date;if(s instanceof Date)return new Date(s);if("string"==typeof s&&!/Z$/i.test(s)){var v=s.match(A);if(v){var y=v[2]-1||0,d=(v[7]||"0").substring(0,3);return h?new Date(Date.UTC(v[1],y,v[3]||1,v[4]||0,v[5]||0,v[6]||0,d)):new Date(v[1],y,v[3]||1,v[4]||0,v[5]||0,v[6]||0,d)}}return new Date(s)}(o),this.init()},n.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},n.$utils=function(){return me},n.isValid=function(){return this.$d.toString()!==T},n.isSame=function(o,l){var s=ie(o);return this.startOf(l)<=s&&s<=this.endOf(l)},n.isAfter=function(o,l){return ie(o){"use strict";ee.utils=E(5671),ee.Cipher=E(219),ee.DES=E(4166),ee.CBC=E(8800),ee.EDE=E(2122)},8800:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993),p={};function O(D){a.equal(D.length,8,"Invalid IV length"),this.iv=new Array(8);for(var C=0;C{"use strict";var a=E(9210);function S(p){this.options=p,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==p.padding}Ce.exports=S,S.prototype._init=function(){},S.prototype.update=function(O){return 0===O.length?[]:"decrypt"===this.type?this._updateDecrypt(O):this._updateEncrypt(O)},S.prototype._buffer=function(O,c){for(var D=Math.min(this.buffer.length-this.bufferOff,O.length-c),C=0;C0;C--)c+=this._buffer(O,c),D+=this._flushBuffer(_,D);return c+=this._buffer(O,c),_},S.prototype.final=function(O){var c,D;return O&&(c=this.update(O)),D="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),c?c.concat(D):D},S.prototype._pad=function(O,c){if(0===c)return!1;for(;c{"use strict";var a=E(9210),S=E(1993),p=E(5671),O=E(219);function c(){this.tmp=new Array(2),this.keys=null}function D(_){O.call(this,_);var F=new c;this._desState=F,this.deriveKeys(F,_.key)}S(D,O),Ce.exports=D,D.create=function(F){return new D(F)};var C=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];D.prototype.deriveKeys=function(F,B){F.keys=new Array(32),a.equal(B.length,this.blockSize,"Invalid key length");var m=p.readUInt32BE(B,0),T=p.readUInt32BE(B,4);p.pc1(m,T,F.tmp,0),m=F.tmp[0],T=F.tmp[1];for(var A=0;A>>1];m=p.r28shl(m,w),T=p.r28shl(T,w),p.pc2(m,T,F.keys,A)}},D.prototype._update=function(F,B,m,T){var A=this._desState,w=p.readUInt32BE(F,B),P=p.readUInt32BE(F,B+4);p.ip(w,P,A.tmp,0),w=A.tmp[0],P=A.tmp[1],"encrypt"===this.type?this._encrypt(A,w,P,A.tmp,0):this._decrypt(A,w,P,A.tmp,0),P=A.tmp[1],p.writeUInt32BE(m,w=A.tmp[0],T),p.writeUInt32BE(m,P,T+4)},D.prototype._pad=function(F,B){if(!1===this.padding)return!1;for(var m=F.length-B,T=B;T>>0,w=j}p.rip(P,w,T,A)},D.prototype._decrypt=function(F,B,m,T,A){for(var w=m,P=B,$=F.keys.length-2;$>=0;$-=2){var L=F.keys[$],M=F.keys[$+1];p.expand(w,F.tmp,0);var R=p.substitute(L^=F.tmp[0],M^=F.tmp[1]),j=w;w=(P^p.permute(R))>>>0,P=j}p.rip(w,P,T,A)}},2122:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993),p=E(219),O=E(4166);function c(C,_){a.equal(_.length,24,"Invalid key length");var F=_.slice(0,8),B=_.slice(8,16),m=_.slice(16,24);this.ciphers="encrypt"===C?[O.create({type:"encrypt",key:F}),O.create({type:"decrypt",key:B}),O.create({type:"encrypt",key:m})]:[O.create({type:"decrypt",key:m}),O.create({type:"encrypt",key:B}),O.create({type:"decrypt",key:F})]}function D(C){p.call(this,C);var _=new c(this.type,this.options.key);this._edeState=_}S(D,p),Ce.exports=D,D.create=function(_){return new D(_)},D.prototype._update=function(_,F,B,m){var T=this._edeState;T.ciphers[0]._update(_,F,B,m),T.ciphers[1]._update(B,m,B,m),T.ciphers[2]._update(B,m,B,m)},D.prototype._pad=O.prototype._pad,D.prototype._unpad=O.prototype._unpad},5671:(Ce,ee)=>{"use strict";ee.readUInt32BE=function(O,c){return(O[0+c]<<24|O[1+c]<<16|O[2+c]<<8|O[3+c])>>>0},ee.writeUInt32BE=function(O,c,D){O[0+D]=c>>>24,O[1+D]=c>>>16&255,O[2+D]=c>>>8&255,O[3+D]=255&c},ee.ip=function(O,c,D,C){for(var _=0,F=0,B=6;B>=0;B-=2){for(var m=0;m<=24;m+=8)_<<=1,_|=c>>>m+B&1;for(m=0;m<=24;m+=8)_<<=1,_|=O>>>m+B&1}for(B=6;B>=0;B-=2){for(m=1;m<=25;m+=8)F<<=1,F|=c>>>m+B&1;for(m=1;m<=25;m+=8)F<<=1,F|=O>>>m+B&1}D[C+0]=_>>>0,D[C+1]=F>>>0},ee.rip=function(O,c,D,C){for(var _=0,F=0,B=0;B<4;B++)for(var m=24;m>=0;m-=8)_<<=1,_|=c>>>m+B&1,_<<=1,_|=O>>>m+B&1;for(B=4;B<8;B++)for(m=24;m>=0;m-=8)F<<=1,F|=c>>>m+B&1,F<<=1,F|=O>>>m+B&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.pc1=function(O,c,D,C){for(var _=0,F=0,B=7;B>=5;B--){for(var m=0;m<=24;m+=8)_<<=1,_|=c>>m+B&1;for(m=0;m<=24;m+=8)_<<=1,_|=O>>m+B&1}for(m=0;m<=24;m+=8)_<<=1,_|=c>>m+B&1;for(B=1;B<=3;B++){for(m=0;m<=24;m+=8)F<<=1,F|=c>>m+B&1;for(m=0;m<=24;m+=8)F<<=1,F|=O>>m+B&1}for(m=0;m<=24;m+=8)F<<=1,F|=O>>m+B&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.r28shl=function(O,c){return O<>>28-c};var E=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ee.pc2=function(O,c,D,C){for(var _=0,F=0,B=E.length>>>1,m=0;m>>E[m]&1;for(m=B;m>>E[m]&1;D[C+0]=_>>>0,D[C+1]=F>>>0},ee.expand=function(O,c,D){var C=0,_=0;C=(1&O)<<5|O>>>27;for(var F=23;F>=15;F-=4)C<<=6,C|=O>>>F&63;for(F=11;F>=3;F-=4)_|=O>>>F&63,_<<=6;_|=(31&O)<<1|O>>>31,c[D+0]=C>>>0,c[D+1]=_>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ee.substitute=function(O,c){for(var D=0,C=0;C<4;C++)D<<=4,D|=a[64*C+(O>>>18-6*C&63)];for(C=0;C<4;C++)D<<=4,D|=a[256+64*C+(c>>>18-6*C&63)];return D>>>0};var S=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ee.permute=function(O){for(var c=0,D=0;D>>S[D]&1;return c>>>0},ee.padSplit=function(O,c,D){for(var C=O.toString(2);C.length{var a=E(2727),S=E(3241),p=E(4593),c={binary:!0,hex:!0,base64:!0};ee.DiffieHellmanGroup=ee.createDiffieHellmanGroup=ee.getDiffieHellman=function O(C){var _=new Buffer(S[C].prime,"hex"),F=new Buffer(S[C].gen,"hex");return new p(_,F)},ee.createDiffieHellman=ee.DiffieHellman=function D(C,_,F,B){return Buffer.isBuffer(_)||void 0===c[_]?D(C,"binary",_,F):(_=_||"binary",B=B||"binary",F=F||new Buffer([2]),Buffer.isBuffer(F)||(F=new Buffer(F,B)),"number"==typeof C?new p(a(C,F),F,!0):(Buffer.isBuffer(C)||(C=new Buffer(C,_)),new p(C,F,!0)))}},4593:(Ce,ee,E)=>{var a=E(8280),p=new(E(3459)),O=new a(24),c=new a(11),D=new a(10),C=new a(3),_=new a(7),F=E(2727),B=E(3342);function m(L,M){return M=M||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,M)),this._pub=new a(L),this}function T(L,M){return M=M||"utf8",Buffer.isBuffer(L)||(L=new Buffer(L,M)),this._priv=new a(L),this}Ce.exports=P;var A={};function P(L,M,R){this.setGenerator(M),this.__prime=new a(L),this._prime=a.mont(this.__prime),this._primeLen=L.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,R?(this.setPublicKey=m,this.setPrivateKey=T):this._primeCode=8}function $(L,M){var R=new Buffer(L.toArray());return M?R.toString(M):R}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function w(L,M){var R=M.toString("hex"),U=[R,L.toString(16)].join("_");if(U in A)return A[U];var W,j=0;if(L.isEven()||!F.simpleSieve||!F.fermatTest(L)||!p.test(L))return j+=1,A[U]=j+="02"===R||"05"===R?8:4,j;switch(p.test(L.shrn(1))||(j+=2),R){case"02":L.mod(O).cmp(c)&&(j+=8);break;case"05":(W=L.mod(D)).cmp(C)&&W.cmp(_)&&(j+=8);break;default:j+=4}return A[U]=j,j}(this.__prime,this.__gen)),this._primeCode}}),P.prototype.generateKeys=function(){return this._priv||(this._priv=new a(B(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(L){var M=(L=(L=new a(L)).toRed(this._prime)).redPow(this._priv).fromRed(),R=new Buffer(M.toArray()),U=this.getPrime();if(R.length{var a=E(3342);Ce.exports=j,j.simpleSieve=R,j.fermatTest=U;var S=E(8280),p=new S(24),c=new(E(3459)),D=new S(1),C=new S(2),_=new S(5),m=(new S(16),new S(8),new S(10)),T=new S(3),w=(new S(7),new S(11)),P=new S(4),L=(new S(12),null);function R(W){for(var ie=function M(){if(null!==L)return L;var ie=[];ie[0]=2;for(var me=1,te=3;te<1048576;te+=2){for(var se=Math.ceil(Math.sqrt(te)),g=0;gW;)me.ishrn(1);if(me.isEven()&&me.iadd(D),me.testn(1)||me.iadd(C),ie.cmp(C)){if(!ie.cmp(_))for(;me.mod(m).cmp(T);)me.iadd(P)}else for(;me.mod(p).cmp(w);)me.iadd(P);if(R(te=me.shrn(1))&&R(me)&&U(te)&&U(me)&&c.test(te)&&c.test(me))return me}}},8280:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(6089).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},518:(Ce,ee,E)=>{"use strict";var a=ee;a.version=E(1636).rE,a.utils=E(3136),a.rand=E(5294),a.curve=E(8729),a.curves=E(3401),a.ec=E(9042),a.eddsa=E(3045)},8828:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.getNAF,O=S.getJSF,c=S.assert;function D(_,F){this.type=_,this.p=new a(F.p,16),this.red=F.prime?a.red(F.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=F.n&&new a(F.n,16),this.g=F.g&&this.pointFromJSON(F.g,F.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var B=this.n&&this.p.div(this.n);!B||B.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function C(_,F){this.curve=_,this.type=F,this.precomputed=null}Ce.exports=D,D.prototype.point=function(){throw new Error("Not implemented")},D.prototype.validate=function(){throw new Error("Not implemented")},D.prototype._fixedNafMul=function(F,B){c(F.precomputed);var m=F._getDoubles(),T=p(B,1,this._bitLength),A=(1<=P;L--)$=($<<1)+T[L];w.push($)}for(var M=this.jpoint(null,null,null),R=this.jpoint(null,null,null),U=A;U>0;U--){for(P=0;P=0;$--){for(var L=0;$>=0&&0===w[$];$--)L++;if($>=0&&L++,P=P.dblp(L),$<0)break;var M=w[$];c(0!==M),P="affine"===F.type?P.mixedAdd(M>0?A[M-1>>1]:A[-M-1>>1].neg()):P.add(M>0?A[M-1>>1]:A[-M-1>>1].neg())}return"affine"===F.type?P.toP():P},D.prototype._wnafMulAdd=function(F,B,m,T,A){var M,R,U,w=this._wnafT1,P=this._wnafT2,$=this._wnafT3,L=0;for(M=0;M=1;M-=2){var W=M-1,ie=M;if(1===w[W]&&1===w[ie]){var me=[B[W],null,null,B[ie]];0===B[W].y.cmp(B[ie].y)?(me[1]=B[W].add(B[ie]),me[2]=B[W].toJ().mixedAdd(B[ie].neg())):0===B[W].y.cmp(B[ie].y.redNeg())?(me[1]=B[W].toJ().mixedAdd(B[ie]),me[2]=B[W].add(B[ie].neg())):(me[1]=B[W].toJ().mixedAdd(B[ie]),me[2]=B[W].toJ().mixedAdd(B[ie].neg()));var te=[-3,-1,-5,-7,0,7,5,1,3],se=O(m[W],m[ie]);for(L=Math.max(se[0].length,L),$[W]=new Array(L),$[ie]=new Array(L),R=0;R=0;M--){for(var s=0;M>=0;){var h=!0;for(R=0;R=0&&s++,o=o.dblp(s),M<0)break;for(R=0;R0?U=P[R][v-1>>1]:v<0&&(U=P[R][-v-1>>1].neg()),o="affine"===U.type?o.mixedAdd(U):o.add(U))}}for(M=0;M=Math.ceil((F.bitLength()+1)/B.step)},C.prototype._getDoubles=function(F,B){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],T=this,A=0;A{"use strict";var a=E(3136),S=E(8723),p=E(1993),O=E(8828),c=a.assert;function D(_){this.twisted=1!=(0|_.a),this.mOneA=this.twisted&&-1==(0|_.a),this.extended=this.mOneA,O.call(this,"edwards",_),this.a=new S(_.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new S(_.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new S(_.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|_.c)}function C(_,F,B,m,T){O.BasePoint.call(this,_,"projective"),null===F&&null===B&&null===m?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new S(F,16),this.y=new S(B,16),this.z=m?new S(m,16):this.curve.one,this.t=T&&new S(T,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}p(D,O),Ce.exports=D,D.prototype._mulA=function(F){return this.mOneA?F.redNeg():this.a.redMul(F)},D.prototype._mulC=function(F){return this.oneC?F:this.c.redMul(F)},D.prototype.jpoint=function(F,B,m,T){return this.point(F,B,m,T)},D.prototype.pointFromX=function(F,B){(F=new S(F,16)).red||(F=F.toRed(this.red));var m=F.redSqr(),T=this.c2.redSub(this.a.redMul(m)),A=this.one.redSub(this.c2.redMul(this.d).redMul(m)),w=T.redMul(A.redInvm()),P=w.redSqrt();if(0!==P.redSqr().redSub(w).cmp(this.zero))throw new Error("invalid point");var $=P.fromRed().isOdd();return(B&&!$||!B&&$)&&(P=P.redNeg()),this.point(F,P)},D.prototype.pointFromY=function(F,B){(F=new S(F,16)).red||(F=F.toRed(this.red));var m=F.redSqr(),T=m.redSub(this.c2),A=m.redMul(this.d).redMul(this.c2).redSub(this.a),w=T.redMul(A.redInvm());if(0===w.cmp(this.zero)){if(B)throw new Error("invalid point");return this.point(this.zero,F)}var P=w.redSqrt();if(0!==P.redSqr().redSub(w).cmp(this.zero))throw new Error("invalid point");return P.fromRed().isOdd()!==B&&(P=P.redNeg()),this.point(P,F)},D.prototype.validate=function(F){if(F.isInfinity())return!0;F.normalize();var B=F.x.redSqr(),m=F.y.redSqr(),T=B.redMul(this.a).redAdd(m),A=this.c2.redMul(this.one.redAdd(this.d.redMul(B).redMul(m)));return 0===T.cmp(A)},p(C,O.BasePoint),D.prototype.pointFromJSON=function(F){return C.fromJSON(this,F)},D.prototype.point=function(F,B,m,T){return new C(this,F,B,m,T)},C.fromJSON=function(F,B){return new C(F,B[0],B[1],B[2])},C.prototype.inspect=function(){return this.isInfinity()?"":""},C.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},C.prototype._extDbl=function(){var F=this.x.redSqr(),B=this.y.redSqr(),m=this.z.redSqr();m=m.redIAdd(m);var T=this.curve._mulA(F),A=this.x.redAdd(this.y).redSqr().redISub(F).redISub(B),w=T.redAdd(B),P=w.redSub(m),$=T.redSub(B),L=A.redMul(P),M=w.redMul($),R=A.redMul($),U=P.redMul(w);return this.curve.point(L,M,U,R)},C.prototype._projDbl=function(){var T,A,w,P,$,L,F=this.x.redAdd(this.y).redSqr(),B=this.x.redSqr(),m=this.y.redSqr();if(this.curve.twisted){var M=(P=this.curve._mulA(B)).redAdd(m);this.zOne?(T=F.redSub(B).redSub(m).redMul(M.redSub(this.curve.two)),A=M.redMul(P.redSub(m)),w=M.redSqr().redSub(M).redSub(M)):($=this.z.redSqr(),L=M.redSub($).redISub($),T=F.redSub(B).redISub(m).redMul(L),A=M.redMul(P.redSub(m)),w=M.redMul(L))}else P=B.redAdd(m),$=this.curve._mulC(this.z).redSqr(),L=P.redSub($).redSub($),T=this.curve._mulC(F.redISub(P)).redMul(L),A=this.curve._mulC(P).redMul(B.redISub(m)),w=P.redMul(L);return this.curve.point(T,A,w)},C.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},C.prototype._extAdd=function(F){var B=this.y.redSub(this.x).redMul(F.y.redSub(F.x)),m=this.y.redAdd(this.x).redMul(F.y.redAdd(F.x)),T=this.t.redMul(this.curve.dd).redMul(F.t),A=this.z.redMul(F.z.redAdd(F.z)),w=m.redSub(B),P=A.redSub(T),$=A.redAdd(T),L=m.redAdd(B),M=w.redMul(P),R=$.redMul(L),U=w.redMul(L),j=P.redMul($);return this.curve.point(M,R,j,U)},C.prototype._projAdd=function(F){var R,U,B=this.z.redMul(F.z),m=B.redSqr(),T=this.x.redMul(F.x),A=this.y.redMul(F.y),w=this.curve.d.redMul(T).redMul(A),P=m.redSub(w),$=m.redAdd(w),L=this.x.redAdd(this.y).redMul(F.x.redAdd(F.y)).redISub(T).redISub(A),M=B.redMul(P).redMul(L);return this.curve.twisted?(R=B.redMul($).redMul(A.redSub(this.curve._mulA(T))),U=P.redMul($)):(R=B.redMul($).redMul(A.redSub(T)),U=this.curve._mulC(P).redMul($)),this.curve.point(M,R,U)},C.prototype.add=function(F){return this.isInfinity()?F:F.isInfinity()?this:this.curve.extended?this._extAdd(F):this._projAdd(F)},C.prototype.mul=function(F){return this._hasDoubles(F)?this.curve._fixedNafMul(this,F):this.curve._wnafMul(this,F)},C.prototype.mulAdd=function(F,B,m){return this.curve._wnafMulAdd(1,[this,B],[F,m],2,!1)},C.prototype.jmulAdd=function(F,B,m){return this.curve._wnafMulAdd(1,[this,B],[F,m],2,!0)},C.prototype.normalize=function(){if(this.zOne)return this;var F=this.z.redInvm();return this.x=this.x.redMul(F),this.y=this.y.redMul(F),this.t&&(this.t=this.t.redMul(F)),this.z=this.curve.one,this.zOne=!0,this},C.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()},C.prototype.getY=function(){return this.normalize(),this.y.fromRed()},C.prototype.eq=function(F){return this===F||0===this.getX().cmp(F.getX())&&0===this.getY().cmp(F.getY())},C.prototype.eqXToP=function(F){var B=F.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(B))return!0;for(var m=F.clone(),T=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(B.redIAdd(T),0===this.x.cmp(B))return!0}},C.prototype.toP=C.prototype.normalize,C.prototype.mixedAdd=C.prototype.add},8729:(Ce,ee,E)=>{"use strict";var a=ee;a.base=E(8828),a.short=E(8075),a.mont=E(4947),a.edwards=E(5537)},4947:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(1993),p=E(8828),O=E(3136);function c(C){p.call(this,"mont",C),this.a=new a(C.a,16).toRed(this.red),this.b=new a(C.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function D(C,_,F){p.BasePoint.call(this,C,"projective"),null===_&&null===F?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(_,16),this.z=new a(F,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}S(c,p),Ce.exports=c,c.prototype.validate=function(_){var F=_.normalize().x,B=F.redSqr(),m=B.redMul(F).redAdd(B.redMul(this.a)).redAdd(F);return 0===m.redSqrt().redSqr().cmp(m)},S(D,p.BasePoint),c.prototype.decodePoint=function(_,F){return this.point(O.toArray(_,F),1)},c.prototype.point=function(_,F){return new D(this,_,F)},c.prototype.pointFromJSON=function(_){return D.fromJSON(this,_)},D.prototype.precompute=function(){},D.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},D.fromJSON=function(_,F){return new D(_,F[0],F[1]||_.one)},D.prototype.inspect=function(){return this.isInfinity()?"":""},D.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},D.prototype.dbl=function(){var F=this.x.redAdd(this.z).redSqr(),m=this.x.redSub(this.z).redSqr(),T=F.redSub(m),A=F.redMul(m),w=T.redMul(m.redAdd(this.curve.a24.redMul(T)));return this.curve.point(A,w)},D.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.diffAdd=function(_,F){var B=this.x.redAdd(this.z),m=this.x.redSub(this.z),T=_.x.redAdd(_.z),w=_.x.redSub(_.z).redMul(B),P=T.redMul(m),$=F.z.redMul(w.redAdd(P).redSqr()),L=F.x.redMul(w.redISub(P).redSqr());return this.curve.point($,L)},D.prototype.mul=function(_){for(var F=_.clone(),B=this,m=this.curve.point(null,null),A=[];0!==F.cmpn(0);F.iushrn(1))A.push(F.andln(1));for(var w=A.length-1;w>=0;w--)0===A[w]?(B=B.diffAdd(m,this),m=m.dbl()):(m=B.diffAdd(m,this),B=B.dbl());return m},D.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},D.prototype.eq=function(_){return 0===this.getX().cmp(_.getX())},D.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},D.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},8075:(Ce,ee,E)=>{"use strict";var a=E(3136),S=E(8723),p=E(1993),O=E(8828),c=a.assert;function D(F){O.call(this,"short",F),this.a=new S(F.a,16).toRed(this.red),this.b=new S(F.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(F),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function C(F,B,m,T){O.BasePoint.call(this,F,"affine"),null===B&&null===m?(this.x=null,this.y=null,this.inf=!0):(this.x=new S(B,16),this.y=new S(m,16),T&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function _(F,B,m,T){O.BasePoint.call(this,F,"jacobian"),null===B&&null===m&&null===T?(this.x=this.curve.one,this.y=this.curve.one,this.z=new S(0)):(this.x=new S(B,16),this.y=new S(m,16),this.z=new S(T,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}p(D,O),Ce.exports=D,D.prototype._getEndomorphism=function(B){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var m,T;if(B.beta)m=new S(B.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);m=(m=A[0].cmp(A[1])<0?A[0]:A[1]).toRed(this.red)}if(B.lambda)T=new S(B.lambda,16);else{var w=this._getEndoRoots(this.n);0===this.g.mul(w[0]).x.cmp(this.g.x.redMul(m))?T=w[0]:c(0===this.g.mul(T=w[1]).x.cmp(this.g.x.redMul(m)))}return{beta:m,lambda:T,basis:B.basis?B.basis.map(function($){return{a:new S($.a,16),b:new S($.b,16)}}):this._getEndoBasis(T)}}},D.prototype._getEndoRoots=function(B){var m=B===this.p?this.red:S.mont(B),T=new S(2).toRed(m).redInvm(),A=T.redNeg(),w=new S(3).toRed(m).redNeg().redSqrt().redMul(T);return[A.redAdd(w).fromRed(),A.redSub(w).fromRed()]},D.prototype._getEndoBasis=function(B){for(var M,R,U,j,W,ie,me,se,g,m=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=B,A=this.n.clone(),w=new S(1),P=new S(0),$=new S(0),L=new S(1),te=0;0!==T.cmpn(0);){var n=A.div(T);se=A.sub(n.mul(T)),g=$.sub(n.mul(w));var o=L.sub(n.mul(P));if(!U&&se.cmp(m)<0)M=me.neg(),R=w,U=se.neg(),j=g;else if(U&&2==++te)break;me=se,A=T,T=se,$=w,w=g,L=P,P=o}W=se.neg(),ie=g;var l=U.sqr().add(j.sqr());return W.sqr().add(ie.sqr()).cmp(l)>=0&&(W=M,ie=R),U.negative&&(U=U.neg(),j=j.neg()),W.negative&&(W=W.neg(),ie=ie.neg()),[{a:U,b:j},{a:W,b:ie}]},D.prototype._endoSplit=function(B){var m=this.endo.basis,T=m[0],A=m[1],w=A.b.mul(B).divRound(this.n),P=T.b.neg().mul(B).divRound(this.n),$=w.mul(T.a),L=P.mul(A.a),M=w.mul(T.b),R=P.mul(A.b);return{k1:B.sub($).sub(L),k2:M.add(R).neg()}},D.prototype.pointFromX=function(B,m){(B=new S(B,16)).red||(B=B.toRed(this.red));var T=B.redSqr().redMul(B).redIAdd(B.redMul(this.a)).redIAdd(this.b),A=T.redSqrt();if(0!==A.redSqr().redSub(T).cmp(this.zero))throw new Error("invalid point");var w=A.fromRed().isOdd();return(m&&!w||!m&&w)&&(A=A.redNeg()),this.point(B,A)},D.prototype.validate=function(B){if(B.inf)return!0;var m=B.x,T=B.y,A=this.a.redMul(m),w=m.redSqr().redMul(m).redIAdd(A).redIAdd(this.b);return 0===T.redSqr().redISub(w).cmpn(0)},D.prototype._endoWnafMulAdd=function(B,m,T){for(var A=this._endoWnafT1,w=this._endoWnafT2,P=0;P":""},C.prototype.isInfinity=function(){return this.inf},C.prototype.add=function(B){if(this.inf)return B;if(B.inf)return this;if(this.eq(B))return this.dbl();if(this.neg().eq(B))return this.curve.point(null,null);if(0===this.x.cmp(B.x))return this.curve.point(null,null);var m=this.y.redSub(B.y);0!==m.cmpn(0)&&(m=m.redMul(this.x.redSub(B.x).redInvm()));var T=m.redSqr().redISub(this.x).redISub(B.x),A=m.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,A)},C.prototype.dbl=function(){if(this.inf)return this;var B=this.y.redAdd(this.y);if(0===B.cmpn(0))return this.curve.point(null,null);var m=this.curve.a,T=this.x.redSqr(),A=B.redInvm(),w=T.redAdd(T).redIAdd(T).redIAdd(m).redMul(A),P=w.redSqr().redISub(this.x.redAdd(this.x)),$=w.redMul(this.x.redSub(P)).redISub(this.y);return this.curve.point(P,$)},C.prototype.getX=function(){return this.x.fromRed()},C.prototype.getY=function(){return this.y.fromRed()},C.prototype.mul=function(B){return B=new S(B,16),this.isInfinity()?this:this._hasDoubles(B)?this.curve._fixedNafMul(this,B):this.curve.endo?this.curve._endoWnafMulAdd([this],[B]):this.curve._wnafMul(this,B)},C.prototype.mulAdd=function(B,m,T){var A=[this,m],w=[B,T];return this.curve.endo?this.curve._endoWnafMulAdd(A,w):this.curve._wnafMulAdd(1,A,w,2)},C.prototype.jmulAdd=function(B,m,T){var A=[this,m],w=[B,T];return this.curve.endo?this.curve._endoWnafMulAdd(A,w,!0):this.curve._wnafMulAdd(1,A,w,2,!0)},C.prototype.eq=function(B){return this===B||this.inf===B.inf&&(this.inf||0===this.x.cmp(B.x)&&0===this.y.cmp(B.y))},C.prototype.neg=function(B){if(this.inf)return this;var m=this.curve.point(this.x,this.y.redNeg());if(B&&this.precomputed){var T=this.precomputed,A=function(w){return w.neg()};m.precomputed={naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(A)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(A)}}}return m},C.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(_,O.BasePoint),D.prototype.jpoint=function(B,m,T){return new _(this,B,m,T)},_.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var B=this.z.redInvm(),m=B.redSqr(),T=this.x.redMul(m),A=this.y.redMul(m).redMul(B);return this.curve.point(T,A)},_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},_.prototype.add=function(B){if(this.isInfinity())return B;if(B.isInfinity())return this;var m=B.z.redSqr(),T=this.z.redSqr(),A=this.x.redMul(m),w=B.x.redMul(T),P=this.y.redMul(m.redMul(B.z)),$=B.y.redMul(T.redMul(this.z)),L=A.redSub(w),M=P.redSub($);if(0===L.cmpn(0))return 0!==M.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var R=L.redSqr(),U=R.redMul(L),j=A.redMul(R),W=M.redSqr().redIAdd(U).redISub(j).redISub(j),ie=M.redMul(j.redISub(W)).redISub(P.redMul(U)),me=this.z.redMul(B.z).redMul(L);return this.curve.jpoint(W,ie,me)},_.prototype.mixedAdd=function(B){if(this.isInfinity())return B.toJ();if(B.isInfinity())return this;var m=this.z.redSqr(),T=this.x,A=B.x.redMul(m),w=this.y,P=B.y.redMul(m).redMul(this.z),$=T.redSub(A),L=w.redSub(P);if(0===$.cmpn(0))return 0!==L.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var M=$.redSqr(),R=M.redMul($),U=T.redMul(M),j=L.redSqr().redIAdd(R).redISub(U).redISub(U),W=L.redMul(U.redISub(j)).redISub(w.redMul(R)),ie=this.z.redMul($);return this.curve.jpoint(j,W,ie)},_.prototype.dblp=function(B){if(0===B)return this;if(this.isInfinity())return this;if(!B)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var T=this;for(m=0;m=0)return!1;if(T.redIAdd(w),0===this.x.cmp(T))return!0}},_.prototype.inspect=function(){return this.isInfinity()?"":""},_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3401:(Ce,ee,E)=>{"use strict";var _,a=ee,S=E(2529),p=E(8729),c=E(3136).assert;function D(F){this.curve="short"===F.type?new p.short(F):"edwards"===F.type?new p.edwards(F):new p.mont(F),this.g=this.curve.g,this.n=this.curve.n,this.hash=F.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function C(F,B){Object.defineProperty(a,F,{configurable:!0,enumerable:!0,get:function(){var m=new D(B);return Object.defineProperty(a,F,{configurable:!0,enumerable:!0,value:m}),m}})}a.PresetCurve=D,C("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),C("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),C("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),C("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:S.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),C("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:S.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),C("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),C("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{_=E(1416)}catch{_=void 0}C("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",_]})},9042:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3556),p=E(3136),O=E(3401),c=E(5294),D=p.assert,C=E(541),_=E(484);function F(B){if(!(this instanceof F))return new F(B);"string"==typeof B&&(D(Object.prototype.hasOwnProperty.call(O,B),"Unknown curve "+B),B=O[B]),B instanceof O.PresetCurve&&(B={curve:B}),this.curve=B.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=B.curve.g,this.g.precompute(B.curve.n.bitLength()+1),this.hash=B.hash||B.curve.hash}Ce.exports=F,F.prototype.keyPair=function(m){return new C(this,m)},F.prototype.keyFromPrivate=function(m,T){return C.fromPrivate(this,m,T)},F.prototype.keyFromPublic=function(m,T){return C.fromPublic(this,m,T)},F.prototype.genKeyPair=function(m){m||(m={});for(var T=new S({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||c(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),w=this.n.sub(new a(2));;){var P=new a(T.generate(A));if(!(P.cmp(w)>0))return P.iaddn(1),this.keyFromPrivate(P)}},F.prototype._truncateToN=function(m,T){var A=8*m.byteLength()-this.n.bitLength();return A>0&&(m=m.ushrn(A)),!T&&m.cmp(this.n)>=0?m.sub(this.n):m},F.prototype.sign=function(m,T,A,w){"object"==typeof A&&(w=A,A=null),w||(w={}),T=this.keyFromPrivate(T,A),m=this._truncateToN(new a(m,16));for(var P=this.n.byteLength(),$=T.getPrivate().toArray("be",P),L=m.toArray("be",P),M=new S({hash:this.hash,entropy:$,nonce:L,pers:w.pers,persEnc:w.persEnc||"utf8"}),R=this.n.sub(new a(1)),U=0;;U++){var j=w.k?w.k(U):new a(M.generate(this.n.byteLength()));if(!((j=this._truncateToN(j,!0)).cmpn(1)<=0||j.cmp(R)>=0)){var W=this.g.mul(j);if(!W.isInfinity()){var ie=W.getX(),me=ie.umod(this.n);if(0!==me.cmpn(0)){var te=j.invm(this.n).mul(me.mul(T.getPrivate()).iadd(m));if(0!==(te=te.umod(this.n)).cmpn(0)){var se=(W.getY().isOdd()?1:0)|(0!==ie.cmp(me)?2:0);return w.canonical&&te.cmp(this.nh)>0&&(te=this.n.sub(te),se^=1),new _({r:me,s:te,recoveryParam:se})}}}}}},F.prototype.verify=function(m,T,A,w){m=this._truncateToN(new a(m,16)),A=this.keyFromPublic(A,w);var P=(T=new _(T,"hex")).r,$=T.s;if(P.cmpn(1)<0||P.cmp(this.n)>=0||$.cmpn(1)<0||$.cmp(this.n)>=0)return!1;var U,L=$.invm(this.n),M=L.mul(m).umod(this.n),R=L.mul(P).umod(this.n);return this.curve._maxwellTrick?!(U=this.g.jmulAdd(M,A.getPublic(),R)).isInfinity()&&U.eqXToP(P):!(U=this.g.mulAdd(M,A.getPublic(),R)).isInfinity()&&0===U.getX().umod(this.n).cmp(P)},F.prototype.recoverPubKey=function(B,m,T,A){D((3&T)===T,"The recovery param is more than two bits"),m=new _(m,A);var w=this.n,P=new a(B),$=m.r,L=m.s,M=1&T,R=T>>1;if($.cmp(this.curve.p.umod(this.curve.n))>=0&&R)throw new Error("Unable to find sencond key candinate");$=this.curve.pointFromX(R?$.add(this.curve.n):$,M);var U=m.r.invm(w),j=w.sub(P).mul(U).umod(w),W=L.mul(U).umod(w);return this.g.mulAdd(j,$,W)},F.prototype.getKeyRecoveryParam=function(B,m,T,A){if(null!==(m=new _(m,A)).recoveryParam)return m.recoveryParam;for(var w=0;w<4;w++){var P;try{P=this.recoverPubKey(B,m,w)}catch{continue}if(P.eq(T))return w}throw new Error("Unable to find valid recovery factor")}},541:(Ce,ee,E)=>{"use strict";var a=E(8723),p=E(3136).assert;function O(c,D){this.ec=c,this.priv=null,this.pub=null,D.priv&&this._importPrivate(D.priv,D.privEnc),D.pub&&this._importPublic(D.pub,D.pubEnc)}Ce.exports=O,O.fromPublic=function(D,C,_){return C instanceof O?C:new O(D,{pub:C,pubEnc:_})},O.fromPrivate=function(D,C,_){return C instanceof O?C:new O(D,{priv:C,privEnc:_})},O.prototype.validate=function(){var D=this.getPublic();return D.isInfinity()?{result:!1,reason:"Invalid public key"}:D.validate()?D.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},O.prototype.getPublic=function(D,C){return"string"==typeof D&&(C=D,D=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),C?this.pub.encode(C,D):this.pub},O.prototype.getPrivate=function(D){return"hex"===D?this.priv.toString(16,2):this.priv},O.prototype._importPrivate=function(D,C){this.priv=new a(D,C||16),this.priv=this.priv.umod(this.ec.curve.n)},O.prototype._importPublic=function(D,C){if(D.x||D.y)return"mont"===this.ec.curve.type?p(D.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&p(D.x&&D.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(D.x,D.y));this.pub=this.ec.curve.decodePoint(D,C)},O.prototype.derive=function(D){return D.validate()||p(D.validate(),"public point not validated"),D.mul(this.priv).getX()},O.prototype.sign=function(D,C,_){return this.ec.sign(D,this,C,_)},O.prototype.verify=function(D,C){return this.ec.verify(D,C,this)},O.prototype.inspect=function(){return""}},484:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.assert;function O(F,B){if(F instanceof O)return F;this._importDER(F,B)||(p(F.r&&F.s,"Signature without r or s"),this.r=new a(F.r,16),this.s=new a(F.s,16),this.recoveryParam=void 0===F.recoveryParam?null:F.recoveryParam)}function c(){this.place=0}function D(F,B){var m=F[B.place++];if(!(128&m))return m;var T=15&m;if(0===T||T>4)return!1;for(var A=0,w=0,P=B.place;w>>=0;return!(A<=127)&&(B.place=P,A)}function C(F){for(var B=0,m=F.length-1;!F[B]&&!(128&F[B+1])&&B>>3);for(F.push(128|m);--m;)F.push(B>>>(m<<3)&255);F.push(B)}}Ce.exports=O,O.prototype._importDER=function(B,m){B=S.toArray(B,m);var T=new c;if(48!==B[T.place++])return!1;var A=D(B,T);if(!1===A||A+T.place!==B.length||2!==B[T.place++])return!1;var w=D(B,T);if(!1===w)return!1;var P=B.slice(T.place,w+T.place);if(T.place+=w,2!==B[T.place++])return!1;var $=D(B,T);if(!1===$||B.length!==$+T.place)return!1;var L=B.slice(T.place,$+T.place);if(0===P[0]){if(!(128&P[1]))return!1;P=P.slice(1)}if(0===L[0]){if(!(128&L[1]))return!1;L=L.slice(1)}return this.r=new a(P),this.s=new a(L),this.recoveryParam=null,!0},O.prototype.toDER=function(B){var m=this.r.toArray(),T=this.s.toArray();for(128&m[0]&&(m=[0].concat(m)),128&T[0]&&(T=[0].concat(T)),m=C(m),T=C(T);!(T[0]||128&T[1]);)T=T.slice(1);var A=[2];_(A,m.length),(A=A.concat(m)).push(2),_(A,T.length);var w=A.concat(T),P=[48];return _(P,w.length),P=P.concat(w),S.encode(P,B)}},3045:(Ce,ee,E)=>{"use strict";var a=E(2529),S=E(3401),p=E(3136),O=p.assert,c=p.parseBytes,D=E(7222),C=E(5451);function _(F){if(O("ed25519"===F,"only tested with ed25519 so far"),!(this instanceof _))return new _(F);this.curve=F=S[F].curve,this.g=F.g,this.g.precompute(F.n.bitLength()+1),this.pointClass=F.point().constructor,this.encodingLength=Math.ceil(F.n.bitLength()/8),this.hash=a.sha512}Ce.exports=_,_.prototype.sign=function(B,m){B=c(B);var T=this.keyFromSecret(m),A=this.hashInt(T.messagePrefix(),B),w=this.g.mul(A),P=this.encodePoint(w),$=this.hashInt(P,T.pubBytes(),B).mul(T.priv()),L=A.add($).umod(this.curve.n);return this.makeSignature({R:w,S:L,Rencoded:P})},_.prototype.verify=function(B,m,T){if(B=c(B),(m=this.makeSignature(m)).S().gte(m.eddsa.curve.n)||m.S().isNeg())return!1;var A=this.keyFromPublic(T),w=this.hashInt(m.Rencoded(),A.pubBytes(),B),P=this.g.mul(m.S());return m.R().add(A.pub().mul(w)).eq(P)},_.prototype.hashInt=function(){for(var B=this.hash(),m=0;m{"use strict";var a=E(3136),S=a.assert,p=a.parseBytes,O=a.cachedProperty;function c(D,C){this.eddsa=D,this._secret=p(C.secret),D.isPoint(C.pub)?this._pub=C.pub:this._pubBytes=p(C.pub)}c.fromPublic=function(C,_){return _ instanceof c?_:new c(C,{pub:_})},c.fromSecret=function(C,_){return _ instanceof c?_:new c(C,{secret:_})},c.prototype.secret=function(){return this._secret},O(c,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),O(c,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),O(c,"privBytes",function(){var C=this.eddsa,_=this.hash(),F=C.encodingLength-1,B=_.slice(0,C.encodingLength);return B[0]&=248,B[F]&=127,B[F]|=64,B}),O(c,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),O(c,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),O(c,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),c.prototype.sign=function(C){return S(this._secret,"KeyPair can only verify"),this.eddsa.sign(C,this)},c.prototype.verify=function(C,_){return this.eddsa.verify(C,_,this)},c.prototype.getSecret=function(C){return S(this._secret,"KeyPair is public only"),a.encode(this.secret(),C)},c.prototype.getPublic=function(C){return a.encode(this.pubBytes(),C)},Ce.exports=c},5451:(Ce,ee,E)=>{"use strict";var a=E(8723),S=E(3136),p=S.assert,O=S.cachedProperty,c=S.parseBytes;function D(C,_){this.eddsa=C,"object"!=typeof _&&(_=c(_)),Array.isArray(_)&&(_={R:_.slice(0,C.encodingLength),S:_.slice(C.encodingLength)}),p(_.R&&_.S,"Signature without R or S"),C.isPoint(_.R)&&(this._R=_.R),_.S instanceof a&&(this._S=_.S),this._Rencoded=Array.isArray(_.R)?_.R:_.Rencoded,this._Sencoded=Array.isArray(_.S)?_.S:_.Sencoded}O(D,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),O(D,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),O(D,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),O(D,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),D.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},D.prototype.toHex=function(){return S.encode(this.toBytes(),"hex").toUpperCase()},Ce.exports=D},1416:Ce=>{Ce.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},3136:(Ce,ee,E)=>{"use strict";var a=ee,S=E(8723),p=E(9210),O=E(1832);a.assert=p,a.toArray=O.toArray,a.zero2=O.zero2,a.toHex=O.toHex,a.encode=O.encode,a.getNAF=function c(B,m,T){var w,A=new Array(Math.max(B.bitLength(),T)+1);for(w=0;w(P>>1)-1?(P>>1)-M:M):L=0,A[w]=L,$.iushrn(1)}return A},a.getJSF=function D(B,m){var T=[[],[]];B=B.clone(),m=m.clone();for(var P,A=0,w=0;B.cmpn(-A)>0||m.cmpn(-w)>0;){var M,R,$=B.andln(3)+A&3,L=m.andln(3)+w&3;3===$&&($=-1),3===L&&(L=-1),M=1&$?3!=(P=B.andln(7)+A&7)&&5!==P||2!==L?$:-$:0,T[0].push(M),R=1&L?3!=(P=m.andln(7)+w&7)&&5!==P||2!==$?L:-L:0,T[1].push(R),2*A===M+1&&(A=1-A),2*w===R+1&&(w=1-w),B.iushrn(1),m.iushrn(1)}return T},a.cachedProperty=function C(B,m,T){var A="_"+m;B.prototype[m]=function(){return void 0!==this[A]?this[A]:this[A]=T.call(this)}},a.parseBytes=function _(B){return"string"==typeof B?a.toArray(B,"hex"):B},a.intFromLE=function F(B){return new S(B,"hex","le")}},8723:function(Ce,ee,E){!function(a,S){"use strict";function p(g,n){if(!g)throw new Error(n||"Assertion failed")}function O(g,n){g.super_=n;var o=function(){};o.prototype=n.prototype,g.prototype=new o,g.prototype.constructor=g}function c(g,n,o){if(c.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,null!==g&&(("le"===n||"be"===n)&&(o=n,n=10),this._init(g||0,n||10,o||"be"))}var D;"object"==typeof a?a.exports=c:S.BN=c,c.BN=c,c.wordSize=26;try{D=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:E(9368).Buffer}catch{}function C(g,n){var o=g.charCodeAt(n);return o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},4356:Ce=>{"use strict";var a,ee="object"==typeof Reflect?Reflect:null,E=ee&&"function"==typeof ee.apply?ee.apply:function(U,j,W){return Function.prototype.apply.call(U,j,W)};a=ee&&"function"==typeof ee.ownKeys?ee.ownKeys:Object.getOwnPropertySymbols?function(U){return Object.getOwnPropertyNames(U).concat(Object.getOwnPropertySymbols(U))}:function(U){return Object.getOwnPropertyNames(U)};var p=Number.isNaN||function(U){return U!=U};function O(){O.init.call(this)}Ce.exports=O,Ce.exports.once=function $(R,U){return new Promise(function(j,W){function ie(te){R.removeListener(U,me),W(te)}function me(){"function"==typeof R.removeListener&&R.removeListener("error",ie),j([].slice.call(arguments))}M(R,U,me,{once:!0}),"error"!==U&&function L(R,U,j){"function"==typeof R.on&&M(R,"error",U,j)}(R,ie,{once:!0})})},O.EventEmitter=O,O.prototype._events=void 0,O.prototype._eventsCount=0,O.prototype._maxListeners=void 0;var c=10;function D(R){if("function"!=typeof R)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof R)}function C(R){return void 0===R._maxListeners?O.defaultMaxListeners:R._maxListeners}function _(R,U,j,W){var ie,me,te;if(D(j),void 0===(me=R._events)?(me=R._events=Object.create(null),R._eventsCount=0):(void 0!==me.newListener&&(R.emit("newListener",U,j.listener?j.listener:j),me=R._events),te=me[U]),void 0===te)te=me[U]=j,++R._eventsCount;else if("function"==typeof te?te=me[U]=W?[j,te]:[te,j]:W?te.unshift(j):te.push(j),(ie=C(R))>0&&te.length>ie&&!te.warned){te.warned=!0;var se=new Error("Possible EventEmitter memory leak detected. "+te.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");se.name="MaxListenersExceededWarning",se.emitter=R,se.type=U,se.count=te.length,function S(R){console&&console.warn&&console.warn(R)}(se)}return R}function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function B(R,U,j){var W={fired:!1,wrapFn:void 0,target:R,type:U,listener:j},ie=F.bind(W);return ie.listener=j,W.wrapFn=ie,ie}function m(R,U,j){var W=R._events;if(void 0===W)return[];var ie=W[U];return void 0===ie?[]:"function"==typeof ie?j?[ie.listener||ie]:[ie]:j?function P(R){for(var U=new Array(R.length),j=0;j0&&(te=j[0]),te instanceof Error)throw te;var se=new Error("Unhandled error."+(te?" ("+te.message+")":""));throw se.context=te,se}var g=me[U];if(void 0===g)return!1;if("function"==typeof g)E(g,this,j);else{var n=g.length,o=A(g,n);for(W=0;W=0;te--)if(W[te]===j||W[te].listener===j){se=W[te].listener,me=te;break}if(me<0)return this;0===me?W.shift():function w(R,U){for(;U+1=0;ie--)this.removeListener(U,j[ie]);return this},O.prototype.listeners=function(U){return m(this,U,!0)},O.prototype.rawListeners=function(U){return m(this,U,!1)},O.listenerCount=function(R,U){return"function"==typeof R.listenerCount?R.listenerCount(U):T.call(R,U)},O.prototype.listenerCount=T,O.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},8211:(Ce,ee,E)=>{var a=E(7054).Buffer,S=E(4725);Ce.exports=function p(O,c,D,C){if(a.isBuffer(O)||(O=a.from(O,"binary")),c&&(a.isBuffer(c)||(c=a.from(c,"binary")),8!==c.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var _=D/8,F=a.alloc(_),B=a.alloc(C||0),m=a.alloc(0);_>0||C>0;){var T=new S;T.update(m),T.update(O),c&&T.update(c),m=T.digest();var A=0;if(_>0){var w=F.length-_;A=Math.min(_,m.length),m.copy(F,w,0,A),_-=A}if(A0){var P=B.length-C,$=Math.min(C,m.length-A);m.copy(B,P,A,A+$),C-=$}}return m.fill(0),{key:F,iv:B}}},3686:(Ce,ee,E)=>{"use strict";var a=E(7054).Buffer,S=E(7045).Transform;function c(D){S.call(this),this._block=a.allocUnsafe(D),this._blockSize=D,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}E(1993)(c,S),c.prototype._transform=function(D,C,_){var F=null;try{this.update(D,C)}catch(B){F=B}_(F)},c.prototype._flush=function(D){var C=null;try{this.push(this.digest())}catch(_){C=_}D(C)},c.prototype.update=function(D,C){if(function O(D,C){if(!a.isBuffer(D)&&"string"!=typeof D)throw new TypeError(C+" must be a string or a buffer")}(D,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(D)||(D=a.from(D,C));for(var _=this._block,F=0;this._blockOffset+D.length-F>=this._blockSize;){for(var B=this._blockOffset;B0;++m)this._length[m]+=T,(T=this._length[m]/4294967296|0)>0&&(this._length[m]-=4294967296*T);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(D){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var C=this._digest();void 0!==D&&(C=C.toString(D)),this._block.fill(0),this._blockOffset=0;for(var _=0;_<4;++_)this._length[_]=0;return C},c.prototype._digest=function(){throw new Error("_digest is not implemented")},Ce.exports=c},2529:(Ce,ee,E)=>{var a=ee;a.utils=E(8283),a.common=E(2901),a.sha=E(8528),a.ripemd=E(5283),a.hmac=E(7163),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},2901:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(9210);function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ee.BlockHash=p,p.prototype.update=function(c,D){if(c=a.toArray(c,D),this.pending=this.pending?this.pending.concat(c):c,this.pendingTotal+=c.length,this.pending.length>=this._delta8){var C=(c=this.pending).length%this._delta8;this.pending=c.slice(c.length-C,c.length),0===this.pending.length&&(this.pending=null),c=a.join32(c,0,c.length-C,this.endian);for(var _=0;_>>24&255,_[F++]=c>>>16&255,_[F++]=c>>>8&255,_[F++]=255&c}else for(_[F++]=255&c,_[F++]=c>>>8&255,_[F++]=c>>>16&255,_[F++]=c>>>24&255,_[F++]=0,_[F++]=0,_[F++]=0,_[F++]=0,B=8;B{"use strict";var a=E(8283),S=E(9210);function p(O,c,D){if(!(this instanceof p))return new p(O,c,D);this.Hash=O,this.blockSize=O.blockSize/8,this.outSize=O.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(c,D))}Ce.exports=p,p.prototype._init=function(c){c.length>this.blockSize&&(c=(new this.Hash).update(c).digest()),S(c.length<=this.blockSize);for(var D=c.length;D{"use strict";var a=E(8283),S=E(2901),p=a.rotl32,O=a.sum32,c=a.sum32_3,D=a.sum32_4,C=S.BlockHash;function _(){if(!(this instanceof _))return new _;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function F($,L,M,R){return $<=15?L^M^R:$<=31?L&M|~L&R:$<=47?(L|~M)^R:$<=63?L&R|M&~R:L^(M|~R)}function m($){return $<=15?1352829926:$<=31?1548603684:$<=47?1836072691:$<=63?2053994217:0}a.inherits(_,C),ee.ripemd160=_,_.blockSize=512,_.outSize=160,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(L,M){for(var R=this.h[0],U=this.h[1],j=this.h[2],W=this.h[3],ie=this.h[4],me=R,te=U,se=j,g=W,n=ie,o=0;o<80;o++){var l=O(p(D(R,F(o,U,j,W),L[T[o]+M],($=o)<=15?0:$<=31?1518500249:$<=47?1859775393:$<=63?2400959708:2840853838),w[o]),ie);R=ie,ie=W,W=p(j,10),j=U,U=l,l=O(p(D(me,F(79-o,te,se,g),L[A[o]+M],m(o)),P[o]),n),me=n,n=g,g=p(se,10),se=te,te=l}var $;l=c(this.h[1],j,g),this.h[1]=c(this.h[2],W,n),this.h[2]=c(this.h[3],ie,me),this.h[3]=c(this.h[4],R,te),this.h[4]=c(this.h[0],U,se),this.h[0]=l},_.prototype._digest=function(L){return"hex"===L?a.toHex32(this.h,"little"):a.split32(this.h,"little")};var T=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],w=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},8528:(Ce,ee,E)=>{"use strict";ee.sha1=E(3468),ee.sha224=E(5563),ee.sha256=E(7138),ee.sha384=E(3898),ee.sha512=E(827)},3468:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(5542),O=a.rotl32,c=a.sum32,D=a.sum32_5,C=p.ft_1,_=S.BlockHash,F=[1518500249,1859775393,2400959708,3395469782];function B(){if(!(this instanceof B))return new B;_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a.inherits(B,_),Ce.exports=B,B.blockSize=512,B.outSize=160,B.hmacStrength=80,B.padLength=64,B.prototype._update=function(T,A){for(var w=this.W,P=0;P<16;P++)w[P]=T[A+P];for(;P{"use strict";var a=E(8283),S=E(7138);function p(){if(!(this instanceof p))return new p;S.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(p,S),Ce.exports=p,p.blockSize=512,p.outSize=224,p.hmacStrength=192,p.padLength=64,p.prototype._digest=function(c){return"hex"===c?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}},7138:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(5542),O=E(9210),c=a.sum32,D=a.sum32_4,C=a.sum32_5,_=p.ch32,F=p.maj32,B=p.s0_256,m=p.s1_256,T=p.g0_256,A=p.g1_256,w=S.BlockHash,P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function $(){if(!(this instanceof $))return new $;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=P,this.W=new Array(64)}a.inherits($,w),Ce.exports=$,$.blockSize=512,$.outSize=256,$.hmacStrength=192,$.padLength=64,$.prototype._update=function(M,R){for(var U=this.W,j=0;j<16;j++)U[j]=M[R+j];for(;j{"use strict";var a=E(8283),S=E(827);function p(){if(!(this instanceof p))return new p;S.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a.inherits(p,S),Ce.exports=p,p.blockSize=1024,p.outSize=384,p.hmacStrength=192,p.padLength=128,p.prototype._digest=function(c){return"hex"===c?a.toHex32(this.h.slice(0,12),"big"):a.split32(this.h.slice(0,12),"big")}},827:(Ce,ee,E)=>{"use strict";var a=E(8283),S=E(2901),p=E(9210),O=a.rotr64_hi,c=a.rotr64_lo,D=a.shr64_hi,C=a.shr64_lo,_=a.sum64,F=a.sum64_hi,B=a.sum64_lo,m=a.sum64_4_hi,T=a.sum64_4_lo,A=a.sum64_5_hi,w=a.sum64_5_lo,P=S.BlockHash,$=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function L(){if(!(this instanceof L))return new L;P.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=$,this.W=new Array(160)}function M(l,s,h,v,y){var d=l&h^~l&y;return d<0&&(d+=4294967296),d}function R(l,s,h,v,y,d){var r=s&v^~s&d;return r<0&&(r+=4294967296),r}function U(l,s,h,v,y){var d=l&h^l&y^h&y;return d<0&&(d+=4294967296),d}function j(l,s,h,v,y,d){var r=s&v^s&d^v&d;return r<0&&(r+=4294967296),r}function W(l,s){var d=O(l,s,28)^O(s,l,2)^O(s,l,7);return d<0&&(d+=4294967296),d}function ie(l,s){var d=c(l,s,28)^c(s,l,2)^c(s,l,7);return d<0&&(d+=4294967296),d}function me(l,s){var d=O(l,s,14)^O(l,s,18)^O(s,l,9);return d<0&&(d+=4294967296),d}function te(l,s){var d=c(l,s,14)^c(l,s,18)^c(s,l,9);return d<0&&(d+=4294967296),d}function se(l,s){var d=O(l,s,1)^O(l,s,8)^D(l,s,7);return d<0&&(d+=4294967296),d}function g(l,s){var d=c(l,s,1)^c(l,s,8)^C(l,s,7);return d<0&&(d+=4294967296),d}function n(l,s){var d=O(l,s,19)^O(s,l,29)^D(l,s,6);return d<0&&(d+=4294967296),d}function o(l,s){var d=c(l,s,19)^c(s,l,29)^C(l,s,6);return d<0&&(d+=4294967296),d}a.inherits(L,P),Ce.exports=L,L.blockSize=1024,L.outSize=512,L.hmacStrength=192,L.padLength=128,L.prototype._prepareBlock=function(s,h){for(var v=this.W,y=0;y<32;y++)v[y]=s[h+y];for(;y{"use strict";var S=E(8283).rotr32;function O(m,T,A){return m&T^~m&A}function c(m,T,A){return m&T^m&A^T&A}function D(m,T,A){return m^T^A}ee.ft_1=function p(m,T,A,w){return 0===m?O(T,A,w):1===m||3===m?D(T,A,w):2===m?c(T,A,w):void 0},ee.ch32=O,ee.maj32=c,ee.p32=D,ee.s0_256=function C(m){return S(m,2)^S(m,13)^S(m,22)},ee.s1_256=function _(m){return S(m,6)^S(m,11)^S(m,25)},ee.g0_256=function F(m){return S(m,7)^S(m,18)^m>>>3},ee.g1_256=function B(m){return S(m,17)^S(m,19)^m>>>10}},8283:(Ce,ee,E)=>{"use strict";var a=E(9210),S=E(1993);function p(o,l){return!(55296!=(64512&o.charCodeAt(l))||l<0||l+1>=o.length)&&56320==(64512&o.charCodeAt(l+1))}function D(o){return(o>>>24|o>>>8&65280|o<<8&16711680|(255&o)<<24)>>>0}function _(o){return 1===o.length?"0"+o:o}function F(o){return 7===o.length?"0"+o:6===o.length?"00"+o:5===o.length?"000"+o:4===o.length?"0000"+o:3===o.length?"00000"+o:2===o.length?"000000"+o:1===o.length?"0000000"+o:o}ee.inherits=S,ee.toArray=function O(o,l){if(Array.isArray(o))return o.slice();if(!o)return[];var s=[];if("string"==typeof o)if(l){if("hex"===l)for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),v=0;v>6|192,s[h++]=63&y|128):p(o,v)?(y=65536+((1023&y)<<10)+(1023&o.charCodeAt(++v)),s[h++]=y>>18|240,s[h++]=y>>12&63|128,s[h++]=y>>6&63|128,s[h++]=63&y|128):(s[h++]=y>>12|224,s[h++]=y>>6&63|128,s[h++]=63&y|128)}else for(v=0;v>>0;return y},ee.split32=function m(o,l){for(var s=new Array(4*o.length),h=0,v=0;h>>24,s[v+1]=y>>>16&255,s[v+2]=y>>>8&255,s[v+3]=255&y):(s[v+3]=y>>>24,s[v+2]=y>>>16&255,s[v+1]=y>>>8&255,s[v]=255&y)}return s},ee.rotr32=function T(o,l){return o>>>l|o<<32-l},ee.rotl32=function A(o,l){return o<>>32-l},ee.sum32=function w(o,l){return o+l>>>0},ee.sum32_3=function P(o,l,s){return o+l+s>>>0},ee.sum32_4=function $(o,l,s,h){return o+l+s+h>>>0},ee.sum32_5=function L(o,l,s,h,v){return o+l+s+h+v>>>0},ee.sum64=function M(o,l,s,h){var d=h+o[l+1]>>>0;o[l]=(d>>0,o[l+1]=d},ee.sum64_hi=function R(o,l,s,h){return(l+h>>>0>>0},ee.sum64_lo=function U(o,l,s,h){return l+h>>>0},ee.sum64_4_hi=function j(o,l,s,h,v,y,d,r){var f=0,k=l;return f+=(k=k+h>>>0)>>0)>>0)>>0},ee.sum64_4_lo=function W(o,l,s,h,v,y,d,r){return l+h+y+r>>>0},ee.sum64_5_hi=function ie(o,l,s,h,v,y,d,r,f,k){var I=0,V=l;return I+=(V=V+h>>>0)>>0)>>0)>>0)>>0},ee.sum64_5_lo=function me(o,l,s,h,v,y,d,r,f,k){return l+h+y+r+k>>>0},ee.rotr64_hi=function te(o,l,s){return(l<<32-s|o>>>s)>>>0},ee.rotr64_lo=function se(o,l,s){return(o<<32-s|l>>>s)>>>0},ee.shr64_hi=function g(o,l,s){return o>>>s},ee.shr64_lo=function n(o,l,s){return(o<<32-s|l>>>s)>>>0}},3556:(Ce,ee,E)=>{"use strict";var a=E(2529),S=E(1832),p=E(9210);function O(c){if(!(this instanceof O))return new O(c);this.hash=c.hash,this.predResist=!!c.predResist,this.outLen=this.hash.outSize,this.minEntropy=c.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var D=S.toArray(c.entropy,c.entropyEnc||"hex"),C=S.toArray(c.nonce,c.nonceEnc||"hex"),_=S.toArray(c.pers,c.persEnc||"hex");p(D.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(D,C,_)}Ce.exports=O,O.prototype._init=function(D,C,_){var F=D.concat(C).concat(_);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var B=0;B=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(D.concat(_||[])),this._reseed=1},O.prototype.generate=function(D,C,_,F){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof C&&(F=_,_=C,C=null),_&&(_=S.toArray(_,F||"hex"),this._update(_));for(var B=[];B.length{ee.read=function(E,a,S,p,O){var c,D,C=8*O-p-1,_=(1<>1,B=-7,m=S?O-1:0,T=S?-1:1,A=E[a+m];for(m+=T,c=A&(1<<-B)-1,A>>=-B,B+=C;B>0;c=256*c+E[a+m],m+=T,B-=8);for(D=c&(1<<-B)-1,c>>=-B,B+=p;B>0;D=256*D+E[a+m],m+=T,B-=8);if(0===c)c=1-F;else{if(c===_)return D?NaN:1/0*(A?-1:1);D+=Math.pow(2,p),c-=F}return(A?-1:1)*D*Math.pow(2,c-p)},ee.write=function(E,a,S,p,O,c){var D,C,_,F=8*c-O-1,B=(1<>1,T=23===O?Math.pow(2,-24)-Math.pow(2,-77):0,A=p?0:c-1,w=p?1:-1,P=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(C=isNaN(a)?1:0,D=B):(D=Math.floor(Math.log(a)/Math.LN2),a*(_=Math.pow(2,-D))<1&&(D--,_*=2),(a+=D+m>=1?T/_:T*Math.pow(2,1-m))*_>=2&&(D++,_/=2),D+m>=B?(C=0,D=B):D+m>=1?(C=(a*_-1)*Math.pow(2,O),D+=m):(C=a*Math.pow(2,m-1)*Math.pow(2,O),D=0));O>=8;E[S+A]=255&C,A+=w,C/=256,O-=8);for(D=D<0;E[S+A]=255&D,A+=w,D/=256,F-=8);E[S+A-w]|=128*P}},1993:Ce=>{Ce.exports="function"==typeof Object.create?function(E,a){a&&(E.super_=a,E.prototype=Object.create(a.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:function(E,a){if(a){E.super_=a;var S=function(){};S.prototype=a.prototype,E.prototype=new S,E.prototype.constructor=E}}},53:Ce=>{var ee={}.toString;Ce.exports=Array.isArray||function(E){return"[object Array]"==ee.call(E)}},9657:(Ce,ee,E)=>{"use strict";E.d(ee,{b:()=>Qe,c:()=>j,g:()=>U,r:()=>ft});var a=E(467);let p,O,D=!1;const B="slot-fb{display:contents}slot-fb[hidden]{display:none}",m={},A=Be=>"object"==(Be=typeof Be)||"function"===Be;function w(Be){var Ae,Me,Ze;return null!==(Ze=null===(Me=null===(Ae=Be.head)||void 0===Ae?void 0:Ae.querySelector('meta[name="csp-nonce"]'))||void 0===Me?void 0:Me.getAttribute("content"))&&void 0!==Ze?Ze:void 0}const $=(Be,Ae)=>({$flags$:0,$tag$:Be,$text$:Ae,$elm$:null,$children$:null,$attrs$:null}),L={},U=Be=>mt(Be).$hostElement$,j=(Be,Ae,Me)=>{const Ze=U(Be);return{emit:je=>W(Ze,Ae,{bubbles:!!(4&Me),composed:!!(2&Me),cancelable:!!(1&Me),detail:je})}},W=(Be,Ae,Me)=>{const Ze=wt.ce(Ae,Me);return Be.dispatchEvent(Ze),Ze},ie=new WeakMap,g=(Be,Ae)=>"sc-"+Be.$tagName$,n=(Be,Ae,Me,Ze,je,it)=>{if(Me!==Ze){let Pe=At(Be,Ae);Ae.toLowerCase();{const Se=A(Ze);if((Pe||Se&&null!==Ze)&&!je)try{if(Be.tagName.includes("-"))Be[Ae]=Ze;else{const ze=null==Ze?"":Ze;"list"===Ae?Pe=!1:(null==Me||Be[Ae]!=ze)&&(Be[Ae]=ze)}}catch{}null==Ze||!1===Ze?(!1!==Ze||""===Be.getAttribute(Ae))&&Be.removeAttribute(Ae):(!Pe||4&it||je)&&!Se&&Be.setAttribute(Ae,Ze=!0===Ze?"":Ze)}}},o=(Be,Ae,Me,Ze)=>{const je=11===Ae.$elm$.nodeType&&Ae.$elm$.host?Ae.$elm$.host:Ae.$elm$,it=Be&&Be.$attrs$||m,Pe=Ae.$attrs$||m;for(Ze of l(Object.keys(it)))Ze in Pe||n(je,Ze,it[Ze],void 0,Me,Ae.$flags$);for(Ze of l(Object.keys(Pe)))n(je,Ze,it[Ze],Pe[Ze],Me,Ae.$flags$)};function l(Be){return Be.includes("ref")?[...Be.filter(Ae=>"ref"!==Ae),"ref"]:Be}const s=(Be,Ae,Me,Ze)=>{const je=Ae.$children$[Me];let Pe,Se,it=0;if(Pe=je.$elm$=bt.createElement(je.$tag$),o(null,je,!1),(Be=>null!=Be)(p)&&Pe["s-si"]!==p&&Pe.classList.add(Pe["s-si"]=p),je.$children$)for(it=0;it{let Se,Pe=Be;for(Pe.shadowRoot&&Pe.tagName===O&&(Pe=Pe.shadowRoot);je<=it;++je)Ze[je]&&(Se=s(null,Me,je),Se&&(Ze[je].$elm$=Se,Pe.insertBefore(Se,Ae)))},v=(Be,Ae,Me)=>{for(let Ze=Ae;Ze<=Me;++Ze){const je=Be[Ze];if(je){const it=je.$elm$;it&&it.remove()}}},d=(Be,Ae,Me=!1)=>Be.$tag$===Ae.$tag$,r=(Be,Ae,Me=!1)=>{const Ze=Ae.$elm$=Be.$elm$,je=Be.$children$,it=Ae.$children$;o(Be,Ae,!1),null!==je&&null!==it?((Be,Ae,Me,Ze,je=!1)=>{let yt,it=0,Pe=0,Se=Ae.length-1,ze=Ae[0],Et=Ae[Se],Je=Ze.length-1,st=Ze[0],en=Ze[Je];for(;it<=Se&&Pe<=Je;)null==ze?ze=Ae[++it]:null==Et?Et=Ae[--Se]:null==st?st=Ze[++Pe]:null==en?en=Ze[--Je]:d(ze,st,je)?(r(ze,st,je),ze=Ae[++it],st=Ze[++Pe]):d(Et,en,je)?(r(Et,en,je),Et=Ae[--Se],en=Ze[--Je]):d(ze,en,je)?(r(ze,en,je),Be.insertBefore(ze.$elm$,Et.$elm$.nextSibling),ze=Ae[++it],en=Ze[--Je]):d(Et,st,je)?(r(Et,st,je),Be.insertBefore(Et.$elm$,ze.$elm$),Et=Ae[--Se],st=Ze[++Pe]):(yt=s(Ae&&Ae[Pe],Me,Pe),st=Ze[++Pe],yt&&ze.$elm$.parentNode.insertBefore(yt,ze.$elm$));it>Se?h(Be,null==Ze[Je+1]?null:Ze[Je+1].$elm$,Me,Ze,Pe,Je):Pe>Je&&v(Ae,it,Se)})(Ze,je,Ae,it,Me):null!==it?h(Ze,null,Ae,it,0,it.length-1):null!==je&&v(je,0,je.length-1)},k=(Be,Ae)=>{Ae&&!Be.$onRenderResolve$&&Ae["s-p"]&&Ae["s-p"].push(new Promise(Me=>Be.$onRenderResolve$=Me))},I=(Be,Ae)=>{if(Be.$flags$|=16,!(4&Be.$flags$))return k(Be,Be.$ancestorComponent$),He(()=>V(Be,Ae));Be.$flags$|=512},V=(Be,Ae)=>{const Ze=Be.$lazyInstance$;let je;return Ae&&(je=tt(Ze,"componentWillLoad")),J(je,()=>ve(Be,Ze,Ae))},J=(Be,Ae)=>oe(Be)?Be.then(Ae):Ae(),oe=Be=>Be instanceof Promise||Be&&Be.then&&"function"==typeof Be.then,ve=function(){var Be=(0,a.A)(function*(Ae,Me,Ze){var je;const it=Ae.$hostElement$,Se=it["s-rc"];Ze&&(Be=>{const Ae=Be.$cmpMeta$,Me=Be.$hostElement$,Ze=Ae.$flags$,it=((Be,Ae,Me)=>{var Ze;const je=g(Ae),it=Ft.get(je);if(Be=11===Be.nodeType?Be:bt,it)if("string"==typeof it){let Se,Pe=ie.get(Be=Be.head||Be);if(Pe||ie.set(Be,Pe=new Set),!Pe.has(je)){{Se=bt.createElement("style"),Se.innerHTML=it;const ze=null!==(Ze=wt.$nonce$)&&void 0!==Ze?Ze:w(bt);null!=ze&&Se.setAttribute("nonce",ze),Be.insertBefore(Se,Be.querySelector("link"))}4&Ae.$flags$&&(Se.innerHTML+=B),Pe&&Pe.add(je)}}else Be.adoptedStyleSheets.includes(it)||(Be.adoptedStyleSheets=[...Be.adoptedStyleSheets,it]);return je})(Me.shadowRoot?Me.shadowRoot:Me.getRootNode(),Ae);10&Ze&&(Me["s-sc"]=it,Me.classList.add(it+"-h"))})(Ae);De(Ae,Me,it,Ze),Se&&(Se.map(Et=>Et()),it["s-rc"]=void 0);{const Et=null!==(je=it["s-p"])&&void 0!==je?je:[],Je=()=>Q(Ae);0===Et.length?Je():(Promise.all(Et).then(Je),Ae.$flags$|=4,Et.length=0)}});return function(Me,Ze,je){return Be.apply(this,arguments)}}(),De=(Be,Ae,Me,Ze)=>{try{Ae=Ae.render(),Be.$flags$&=-17,Be.$flags$|=2,((Be,Ae,Me=!1)=>{const Ze=Be.$hostElement$,je=Be.$cmpMeta$,it=Be.$vnode$||$(null,null),Pe=(Be=>Be&&Be.$tag$===L)(Ae)?Ae:((Be,Ae,...Me)=>{let Ze=null,je=!1,it=!1;const Pe=[],Se=Et=>{for(let Je=0;Je0&&(ze.$children$=Pe),ze})(null,null,Ae);if(O=Ze.tagName,je.$attrsToReflect$&&(Pe.$attrs$=Pe.$attrs$||{},je.$attrsToReflect$.map(([Se,ze])=>Pe.$attrs$[ze]=Ze[Se])),Me&&Pe.$attrs$)for(const Se of Object.keys(Pe.$attrs$))Ze.hasAttribute(Se)&&!["key","ref","style","class"].includes(Se)&&(Pe.$attrs$[Se]=Ze[Se]);Pe.$tag$=null,Pe.$flags$|=4,Be.$vnode$=Pe,Pe.$elm$=it.$elm$=Ze.shadowRoot||Ze,p=Ze["s-sc"],r(it,Pe,Me)})(Be,Ae,Ze)}catch(je){It(je,Be.$hostElement$)}return null},Q=Be=>{const Me=Be.$hostElement$,je=Be.$lazyInstance$,it=Be.$ancestorComponent$;64&Be.$flags$||(Be.$flags$|=64,ke(Me),tt(je,"componentDidLoad"),Be.$onReadyResolve$(Me),it||ae()),Be.$onInstanceResolve$(Me),Be.$onRenderResolve$&&(Be.$onRenderResolve$(),Be.$onRenderResolve$=void 0),512&Be.$flags$&&Ut(()=>I(Be,!1)),Be.$flags$&=-517},ae=Be=>{ke(bt.documentElement),Ut(()=>W(bn,"appload",{detail:{namespace:"jeep-sqlite"}}))},tt=(Be,Ae,Me)=>{if(Be&&Be[Ae])try{return Be[Ae](Me)}catch(Ze){It(Ze)}},ke=Be=>Be.classList.add("hydrated"),_e=(Be,Ae,Me)=>{var Ze;const je=Be.prototype;if(Ae.$members$){Be.watchers&&(Ae.$watchers$=Be.watchers);const it=Object.entries(Ae.$members$);if(it.map(([Pe,[Se]])=>{31&Se||2&Me&&32&Se?Object.defineProperty(je,Pe,{get(){return((Be,Ae)=>mt(this).$instanceValues$.get(Ae))(0,Pe)},set(ze){((Be,Ae,Me,Ze)=>{const je=mt(Be),it=je.$hostElement$,Pe=je.$instanceValues$.get(Ae),Se=je.$flags$,ze=je.$lazyInstance$;Me=((Be,Ae)=>null==Be||A(Be)?Be:4&Ae?"false"!==Be&&(""===Be||!!Be):1&Ae?String(Be):Be)(Me,Ze.$members$[Ae][0]);const Et=Number.isNaN(Pe)&&Number.isNaN(Me);if((!(8&Se)||void 0===Pe)&&Me!==Pe&&!Et&&(je.$instanceValues$.set(Ae,Me),ze)){if(Ze.$watchers$&&128&Se){const st=Ze.$watchers$[Ae];st&&st.map(en=>{try{ze[en](Me,Pe,Ae)}catch(yt){It(yt,it)}})}2==(18&Se)&&I(je,!1)}})(this,Pe,ze,Ae)},configurable:!0,enumerable:!0}):1&Me&&64&Se&&Object.defineProperty(je,Pe,{value(...ze){var Et;const Je=mt(this);return null===(Et=null==Je?void 0:Je.$onInstancePromise$)||void 0===Et?void 0:Et.then(()=>{var st;return null===(st=Je.$lazyInstance$)||void 0===st?void 0:st[Pe](...ze)})}})}),1&Me){const Pe=new Map;je.attributeChangedCallback=function(Se,ze,Et){wt.jmp(()=>{var Je;const st=Pe.get(Se);if(this.hasOwnProperty(st))Et=this[st],delete this[st];else{if(je.hasOwnProperty(st)&&"number"==typeof this[st]&&this[st]==Et)return;if(null==st){const en=mt(this),yt=null==en?void 0:en.$flags$;if(yt&&!(8&yt)&&128&yt&&Et!==ze){const vt=en.$lazyInstance$,Kt=null===(Je=Ae.$watchers$)||void 0===Je?void 0:Je[Se];null==Kt||Kt.forEach(Pt=>{null!=vt[Pt]&&vt[Pt].call(vt,Et,ze,Se)})}return}}this[st]=(null!==Et||"boolean"!=typeof this[st])&&Et})},Be.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ze=Ae.$watchers$)&&void 0!==Ze?Ze:{}),...it.filter(([Se,ze])=>15&ze[0]).map(([Se,ze])=>{var Et;const Je=ze[1]||Se;return Pe.set(Je,Se),512&ze[0]&&(null===(Et=Ae.$attrsToReflect$)||void 0===Et||Et.push([Se,Je])),Je})]))}}return Be},re=function(){var Be=(0,a.A)(function*(Ae,Me,Ze,je){let it;if(!(32&Me.$flags$)){if(Me.$flags$|=32,Ze.$lazyBundleId$){if(it=St(Ze),it.then){const Je=()=>{};it=yield it,Je()}it.isProxied||(Ze.$watchers$=it.watchers,_e(it,Ze,2),it.isProxied=!0);const Et=()=>{};Me.$flags$|=8;try{new it(Me)}catch(Je){It(Je)}Me.$flags$&=-9,Me.$flags$|=128,Et(),ne(Me.$lazyInstance$)}else it=Ae.constructor,customElements.whenDefined(Ze.$tagName$).then(()=>Me.$flags$|=128);if(it.style){let Et=it.style;const Je=g(Ze);if(!Ft.has(Je)){const st=()=>{};((Be,Ae,Me)=>{let Ze=Ft.get(Be);Bt&&Me?(Ze=Ze||new CSSStyleSheet,"string"==typeof Ze?Ze=Ae:Ze.replaceSync(Ae)):Ze=Ae,Ft.set(Be,Ze)})(Je,Et,!!(1&Ze.$flags$)),st()}}}const Pe=Me.$ancestorComponent$,Se=()=>I(Me,!0);Pe&&Pe["s-rc"]?Pe["s-rc"].push(Se):Se()});return function(Me,Ze,je,it){return Be.apply(this,arguments)}}(),ne=Be=>{tt(Be,"connectedCallback")},xt=function(){var Be=(0,a.A)(function*(Ae){if(!(1&wt.$flags$)){const Me=mt(Ae);null!=Me&&Me.$lazyInstance$||null!=Me&&Me.$onReadyPromise$&&Me.$onReadyPromise$.then(()=>{})}});return function(Me){return Be.apply(this,arguments)}}(),Qe=(Be,Ae={})=>{var Me;const je=[],it=Ae.exclude||[],Pe=bn.customElements,Se=bt.head,ze=Se.querySelector("meta[charset]"),Et=bt.createElement("style"),Je=[];let st,en=!0;Object.assign(wt,Ae),wt.$resourcesUrl$=new URL(Ae.resourcesUrl||"./",bt.baseURI).href;let yt=!1;if(Be.map(vt=>{vt[1].map(Kt=>{var Pt;const Rt={$flags$:Kt[0],$tagName$:Kt[1],$members$:Kt[2],$listeners$:Kt[3]};4&Rt.$flags$&&(yt=!0),Rt.$members$=Kt[2],Rt.$attrsToReflect$=[],Rt.$watchers$=null!==(Pt=Kt[4])&&void 0!==Pt?Pt:{};const On=Rt.$tagName$,An=class extends HTMLElement{constructor(Bn){super(Bn),un(Bn=this,Rt),1&Rt.$flags$&&Bn.attachShadow({mode:"open"})}connectedCallback(){st&&(clearTimeout(st),st=null),en?Je.push(this):wt.jmp(()=>(Be=>{if(!(1&wt.$flags$)){const Ae=mt(Be),Me=Ae.$cmpMeta$,Ze=()=>{};if(1&Ae.$flags$)null!=Ae&&Ae.$lazyInstance$?ne(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>ne(Ae.$lazyInstance$));else{Ae.$flags$|=1;{let je=Be;for(;je=je.parentNode||je.host;)if(je["s-p"]){k(Ae,Ae.$ancestorComponent$=je);break}}Me.$members$&&Object.entries(Me.$members$).map(([je,[it]])=>{if(31&it&&Be.hasOwnProperty(je)){const Pe=Be[je];delete Be[je],Be[je]=Pe}}),re(Be,Ae,Me)}Ze()}})(this))}disconnectedCallback(){wt.jmp(()=>xt(this))}componentOnReady(){return mt(this).$onReadyPromise$}};Rt.$lazyBundleId$=vt[0],!it.includes(On)&&!Pe.get(On)&&(je.push(On),Pe.define(On,_e(An,Rt,1)))})}),je.length>0&&(yt&&(Et.textContent+=B),Et.textContent+=je+"{visibility:hidden}.hydrated{visibility:inherit}",Et.innerHTML.length)){Et.setAttribute("data-styles","");const vt=null!==(Me=wt.$nonce$)&&void 0!==Me?Me:w(bt);null!=vt&&Et.setAttribute("nonce",vt),Se.insertBefore(Et,ze?ze.nextSibling:Se.firstChild)}en=!1,Je.length?Je.map(vt=>vt.connectedCallback()):wt.jmp(()=>st=setTimeout(ae,30))},rn=new WeakMap,mt=Be=>rn.get(Be),ft=(Be,Ae)=>rn.set(Ae.$lazyInstance$=Be,Ae),un=(Be,Ae)=>{const Me={$flags$:0,$hostElement$:Be,$cmpMeta$:Ae,$instanceValues$:new Map};return Me.$onInstancePromise$=new Promise(Ze=>Me.$onInstanceResolve$=Ze),Me.$onReadyPromise$=new Promise(Ze=>Me.$onReadyResolve$=Ze),Be["s-p"]=[],Be["s-rc"]=[],rn.set(Be,Me)},At=(Be,Ae)=>Ae in Be,It=(Be,Ae)=>(0,console.error)(Be,Ae),Cn=new Map,St=(Be,Ae,Me)=>{const Ze=Be.$tagName$.replace(/-/g,"_"),je=Be.$lazyBundleId$,it=Cn.get(je);return it?it[Ze]:E(7321)(`./${je}.entry.js`).then(Pe=>(Cn.set(je,Pe),Pe[Ze]),It)},Ft=new Map,bn=typeof window<"u"?window:{},bt=bn.document||{head:{}},wt={$flags$:0,$resourcesUrl$:"",jmp:Be=>Be(),raf:Be=>requestAnimationFrame(Be),ael:(Be,Ae,Me,Ze)=>Be.addEventListener(Ae,Me,Ze),rel:(Be,Ae,Me,Ze)=>Be.removeEventListener(Ae,Me,Ze),ce:(Be,Ae)=>new CustomEvent(Be,Ae)},Bt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Lt=[],Wt=[],Nt=(Be,Ae)=>Me=>{Be.push(Me),D||(D=!0,Ae&&4&wt.$flags$?Ut(zn):wt.raf(zn))},Ot=Be=>{for(let Ae=0;Ae{Ot(Lt),Ot(Wt),(D=Lt.length>0)&&wt.raf(zn)},Ut=Be=>Promise.resolve(void 0).then(Be),He=Nt(Wt,!0)},4801:function(Ce){typeof self<"u"&&self,Ce.exports=function(ee){var E={};function a(S){if(E[S])return E[S].exports;var p=E[S]={i:S,l:!1,exports:{}};return ee[S].call(p.exports,p,p.exports,a),p.l=!0,p.exports}return a.m=ee,a.c=E,a.d=function(S,p,O){a.o(S,p)||Object.defineProperty(S,p,{configurable:!1,enumerable:!0,get:O})},a.n=function(S){var p=S&&S.__esModule?function(){return S.default}:function(){return S};return a.d(p,"a",p),p},a.o=function(S,p){return Object.prototype.hasOwnProperty.call(S,p)},a.p="",a(a.s=3)}([function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=function(){function p(O,c){this.width=c,this.height=O.length/c,this.data=O}return p.createEmpty=function(O,c){return new p(new Uint8ClampedArray(O*c),O)},p.prototype.get=function(O,c){return!(O<0||O>=this.width||c<0||c>=this.height||!this.data[c*this.width+O])},p.prototype.set=function(O,c,D){this.data[c*this.width+O]=D?1:0},p.prototype.setRegion=function(O,c,D,C,_){for(var F=c;F=this.size&&(F=(F^this.primitive)&this.size-1);for(B=0;B1&&0===D[0]){for(var _=1;__.length&&(C=(D=[_,C])[0],_=D[1]);for(var F=new Uint8ClampedArray(_.length),B=_.length-C.length,m=0;mB?B:_}var D=function(){function _(F,B){this.width=F,this.data=new Uint8ClampedArray(F*B)}return _.prototype.get=function(F,B){return this.data[B*this.width+F]},_.prototype.set=function(F,B,m){this.data[B*this.width+F]=m},_}();E.binarize=function C(_,F,B,m){if(_.length!==F*B*4)throw new Error("Malformed data passed to binarizer.");for(var T=new D(F,B),A=0;A0&&W>0)){var n=(U.get(W,j-1)+2*U.get(W-1,j)+U.get(W-1,j-1))/4;me6&&(R.setRegion(M-11,0,3,6,!0),R.setRegion(0,M-11,6,3,!0)),R}(M),ie=[],me=0,te=0,se=!0,g=j-1;g>0;g-=2){6===g&&g--;for(var n=0;n=0;j--)for(var W=M-9;W>=M-11;W--)U=C(L.get(W,j),U);var ie=0;for(W=5;W>=0;W--)for(j=M-9;j>=M-11;j--)ie=C(L.get(W,j),ie);for(var te,me=1/0,se=0,g=c.VERSIONS;se=0;U--)6!==U&&(M=C(L.get(8,U),M));var j=L.height,W=0;for(U=j-1;U>=j-7;U--)W=C(L.get(8,U),W);for(R=j-8;R1){var n=U.ecBlocks[0].numBlocks,o=U.ecBlocks[1].numBlocks;for(me=0;me0;)for(var l=0,s=j;l=3;){if((M=T.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var R=Math.floor(M/100),U=Math.floor(M/10)%10,j=M%10;w.push(48+R,48+U,48+j),P+=R.toString()+U.toString()+j.toString(),L-=3}if(2===L){if((M=T.readBits(7))>=100)throw new Error("Invalid numeric value above 99");R=Math.floor(M/10),w.push(48+R,48+(U=M%10)),P+=R.toString()+U.toString()}else if(1===L){var M;if((M=T.readBits(4))>=10)throw new Error("Invalid numeric value above 9");w.push(48+M),P+=M.toString()}return{bytes:w,text:P}}var C=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function _(T,A){for(var w=[],P="",L=T.readBits([9,11,13][A]);L>=2;){var M=T.readBits(11),R=Math.floor(M/45),U=M%45;w.push(C[R].charCodeAt(0),C[U].charCodeAt(0)),P+=C[R]+C[U],L-=2}return 1===L&&(R=T.readBits(6),w.push(C[R].charCodeAt(0)),P+=C[R]),{bytes:w,text:P}}function F(T,A){for(var w=[],P="",L=T.readBits([8,16,16][A]),M=0;M>8,255&U),P+=String.fromCharCode(p.shiftJISTable[U])}return{bytes:w,text:P}}E.decode=function m(T,A){for(var w,P,$,L,M=new S.BitStream(T),R=A<=9?0:A<=26?1:2,U={text:"",bytes:[],chunks:[],version:A};M.available()>=4;){var j=M.readBits(4);if(j===c.Terminator)return U;if(j===c.ECI)0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(7)}):0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(14)}):0===M.readBits(1)?U.chunks.push({type:O.ECI,assignmentNumber:M.readBits(21)}):U.chunks.push({type:O.ECI,assignmentNumber:-1});else if(j===c.Numeric){var W=D(M,R);U.text+=W.text,(w=U.bytes).push.apply(w,W.bytes),U.chunks.push({type:O.Numeric,text:W.text})}else if(j===c.Alphanumeric){var ie=_(M,R);U.text+=ie.text,(P=U.bytes).push.apply(P,ie.bytes),U.chunks.push({type:O.Alphanumeric,text:ie.text})}else if(j===c.Byte){var me=F(M,R);U.text+=me.text,($=U.bytes).push.apply($,me.bytes),U.chunks.push({type:O.Byte,bytes:me.bytes,text:me.text})}else if(j===c.Kanji){var te=B(M,R);U.text+=te.text,(L=U.bytes).push.apply(L,te.bytes),U.chunks.push({type:O.Kanji,bytes:te.bytes,text:te.text})}}if(0===M.available()||0===M.readBits(M.available()))return U}},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=function(){function p(O){this.byteOffset=0,this.bitOffset=0,this.bytes=O}return p.prototype.readBits=function(O){if(O<1||O>32||O>this.available())throw new Error("Cannot read "+O.toString()+" bits");var c=0;if(this.bitOffset>0){var D=8-this.bitOffset,C=O>8-C<<(_=D-C))>>_,O-=C,this.bitOffset+=C,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(O>0){for(;O>=8;)c=c<<8|255&this.bytes[this.byteOffset],this.byteOffset++,O-=8;var _;O>0&&(c=c<>(_=8-O)<<_)>>_,this.bitOffset+=O)}return c},p.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},p}();E.BitStream=S},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(ee,E,a){"use strict";Object.defineProperty(E,"__esModule",{value:!0});var S=a(1),p=a(2);E.decode=function C(_,F){var B=new Uint8ClampedArray(_.length);B.set(_);for(var m=new S.default(285,256,0),T=new p.default(m,B),A=new Uint8ClampedArray(F),w=!1,P=0;P=m/2;){var L=A,M=P;if(P=$,(A=w).isZero())return null;w=L;for(var R=_.zero,U=A.getCoefficient(A.degree()),j=_.inverse(U);w.degree()>=A.degree()&&!w.isZero();){var W=w.degree()-A.degree(),ie=_.multiply(w.getCoefficient(w.degree()),j);R=R.addOrSubtract(_.buildMonomial(W,ie)),w=w.addOrSubtract(A.multiplyByMonomial(W,ie))}if($=R.multiplyPoly(P).addOrSubtract(M),w.degree()>=A.degree())return null}var me=$.getCoefficient(0);if(0===me)return null;var te=_.inverse(me);return[$.multiply(te),w.multiply(te)]}(m,m.buildMonomial(F,1),L,F);if(null===M)return null;var R=function c(_,F){var B=F.degree();if(1===B)return[F.getCoefficient(1)];for(var m=new Array(B),T=0,A=1;A<_.size&&TMath.abs(L.x-$.x);j?(W=Math.floor($.y),ie=Math.floor($.x),me=Math.floor(L.y),te=Math.floor(L.x)):(W=Math.floor($.x),ie=Math.floor($.y),me=Math.floor(L.x),te=Math.floor(L.y));for(var se=Math.abs(me-W),g=Math.abs(te-ie),n=Math.floor(-se/2),o=W0){if(v===te)break;v+=l,n-=se}}for(var r=[],f=0;f=15&&n.length?n[0]:g,dimension:W}}E.locate=function w($){for(var L=[],M=[],R=[],U=[],j=function(y){for(var d=0,r=!1,f=[0,0,0,0,0],k=function(V){var J=$.get(V,y);if(J===r)d++;else{f=[f[1],f[2],f[3],f[4],d],d=1,r=J;var oe=D(f)/7,ve=Math.abs(f[0]-oe)=re.bottom.startX&&tt<=re.bottom.endX||ae>=re.bottom.startX&&tt<=re.bottom.endX||tt<=re.bottom.startX&&ae>=re.bottom.endX&&f[2]/(re.bottom.endX-re.bottom.startX)<1.5&&f[2]/(re.bottom.endX-re.bottom.startX)>.5})).length>0?pe[0].bottom=ke:M.push({top:ke,bottom:ke})}if(Q){var pe,Ie=V-f[4],_e=Ie-f[3];ke={startX:_e,y,endX:Ie},(pe=U.filter(function(G){return _e>=G.bottom.startX&&_e<=G.bottom.endX||Ie>=G.bottom.startX&&_e<=G.bottom.endX||_e<=G.bottom.startX&&Ie>=G.bottom.endX&&f[2]/(G.bottom.endX-G.bottom.startX)<1.5&&f[2]/(G.bottom.endX-G.bottom.startX)>.5})).length>0?pe[0].bottom=ke:U.push({top:ke,bottom:ke})}}},I=-1;I<=$.width;I++)k(I);L.push.apply(L,M.filter(function(V){return V.bottom.y!==y&&V.bottom.y-V.top.y>=2})),M=M.filter(function(V){return V.bottom.y===y}),R.push.apply(R,U.filter(function(V){return V.bottom.y!==y})),U=U.filter(function(V){return V.bottom.y===y})},W=0;W<=$.height;W++)j(W);L.push.apply(L,M.filter(function(y){return y.bottom.y-y.top.y>=2})),R.push.apply(R,U);var ie=L.filter(function(y){return y.bottom.y-y.top.y>=2}).map(function(y){var d=(y.top.startX+y.top.endX+y.bottom.startX+y.bottom.endX)/4,r=(y.top.y+y.bottom.y+1)/2;if($.get(Math.round(d),Math.round(r))){var f=[y.top.endX-y.top.startX,y.bottom.endX-y.bottom.startX,y.bottom.y-y.top.y+1],k=D(f)/f.length;return{score:T({x:Math.round(d),y:Math.round(r)},[1,1,3,1,1],$),x:d,y:r,size:k}}}).filter(function(y){return!!y}).sort(function(y,d){return y.score-d.score}).map(function(y,d,r){if(d>4)return null;var f=r.filter(function(I,V){return d!==V}).map(function(I){return{x:I.x,y:I.y,score:I.score+Math.pow(I.size-y.size,2)/y.size,size:I.size}}).sort(function(I,V){return I.score-V.score});if(f.length<2)return null;var k=y.score+f[0].score+f[1].score;return{points:[y].concat(f.slice(0,2)),score:k}}).filter(function(y){return!!y}).sort(function(y,d){return y.score-d.score});if(0===ie.length)return null;var me=function C($,L,M){var R,U,j,W,se,g,n,ie=c($,L),me=c(L,M),te=c($,M);return me>=ie&&me>=te?(se=(R=[L,$,M])[0],g=R[1],n=R[2]):te>=me&&te>=ie?(se=(U=[$,L,M])[0],g=U[1],n=U[2]):(se=(j=[$,M,L])[0],g=j[1],n=j[2]),(n.x-g.x)*(se.y-g.y)-(n.y-g.y)*(se.x-g.x)<0&&(se=(W=[n,se])[0],n=W[1]),{bottomLeft:se,topLeft:g,topRight:n}}(ie[0].points[0],ie[0].points[1],ie[0].points[2]),te=me.topRight,se=me.topLeft,g=me.bottomLeft,n=P($,R,te,se,g),o=[];n&&o.push({alignmentPattern:{x:n.alignmentPattern.x,y:n.alignmentPattern.y},bottomLeft:{x:g.x,y:g.y},dimension:n.dimension,topLeft:{x:se.x,y:se.y},topRight:{x:te.x,y:te.y}});var l=A($,te),s=A($,se),h=A($,g),v=P($,R,l,s,h);return v&&o.push({alignmentPattern:{x:v.alignmentPattern.x,y:v.alignmentPattern.y},bottomLeft:{x:h.x,y:h.y},topLeft:{x:s.x,y:s.y},topRight:{x:l.x,y:l.y},dimension:v.dimension}),0===o.length?null:o}}]).default},4725:(Ce,ee,E)=>{"use strict";var a=E(1993),S=E(3686),p=E(7054).Buffer,O=new Array(16);function c(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function D(m,T){return m<>>32-T}function C(m,T,A,w,P,$,L){return D(m+(T&A|~T&w)+P+$|0,L)+T|0}function _(m,T,A,w,P,$,L){return D(m+(T&w|A&~w)+P+$|0,L)+T|0}function F(m,T,A,w,P,$,L){return D(m+(T^A^w)+P+$|0,L)+T|0}function B(m,T,A,w,P,$,L){return D(m+(A^(T|~w))+P+$|0,L)+T|0}a(c,S),c.prototype._update=function(){for(var m=O,T=0;T<16;++T)m[T]=this._block.readInt32LE(4*T);var A=this._a,w=this._b,P=this._c,$=this._d;A=C(A,w,P,$,m[0],3614090360,7),$=C($,A,w,P,m[1],3905402710,12),P=C(P,$,A,w,m[2],606105819,17),w=C(w,P,$,A,m[3],3250441966,22),A=C(A,w,P,$,m[4],4118548399,7),$=C($,A,w,P,m[5],1200080426,12),P=C(P,$,A,w,m[6],2821735955,17),w=C(w,P,$,A,m[7],4249261313,22),A=C(A,w,P,$,m[8],1770035416,7),$=C($,A,w,P,m[9],2336552879,12),P=C(P,$,A,w,m[10],4294925233,17),w=C(w,P,$,A,m[11],2304563134,22),A=C(A,w,P,$,m[12],1804603682,7),$=C($,A,w,P,m[13],4254626195,12),P=C(P,$,A,w,m[14],2792965006,17),A=_(A,w=C(w,P,$,A,m[15],1236535329,22),P,$,m[1],4129170786,5),$=_($,A,w,P,m[6],3225465664,9),P=_(P,$,A,w,m[11],643717713,14),w=_(w,P,$,A,m[0],3921069994,20),A=_(A,w,P,$,m[5],3593408605,5),$=_($,A,w,P,m[10],38016083,9),P=_(P,$,A,w,m[15],3634488961,14),w=_(w,P,$,A,m[4],3889429448,20),A=_(A,w,P,$,m[9],568446438,5),$=_($,A,w,P,m[14],3275163606,9),P=_(P,$,A,w,m[3],4107603335,14),w=_(w,P,$,A,m[8],1163531501,20),A=_(A,w,P,$,m[13],2850285829,5),$=_($,A,w,P,m[2],4243563512,9),P=_(P,$,A,w,m[7],1735328473,14),A=F(A,w=_(w,P,$,A,m[12],2368359562,20),P,$,m[5],4294588738,4),$=F($,A,w,P,m[8],2272392833,11),P=F(P,$,A,w,m[11],1839030562,16),w=F(w,P,$,A,m[14],4259657740,23),A=F(A,w,P,$,m[1],2763975236,4),$=F($,A,w,P,m[4],1272893353,11),P=F(P,$,A,w,m[7],4139469664,16),w=F(w,P,$,A,m[10],3200236656,23),A=F(A,w,P,$,m[13],681279174,4),$=F($,A,w,P,m[0],3936430074,11),P=F(P,$,A,w,m[3],3572445317,16),w=F(w,P,$,A,m[6],76029189,23),A=F(A,w,P,$,m[9],3654602809,4),$=F($,A,w,P,m[12],3873151461,11),P=F(P,$,A,w,m[15],530742520,16),A=B(A,w=F(w,P,$,A,m[2],3299628645,23),P,$,m[0],4096336452,6),$=B($,A,w,P,m[7],1126891415,10),P=B(P,$,A,w,m[14],2878612391,15),w=B(w,P,$,A,m[5],4237533241,21),A=B(A,w,P,$,m[12],1700485571,6),$=B($,A,w,P,m[3],2399980690,10),P=B(P,$,A,w,m[10],4293915773,15),w=B(w,P,$,A,m[1],2240044497,21),A=B(A,w,P,$,m[8],1873313359,6),$=B($,A,w,P,m[15],4264355552,10),P=B(P,$,A,w,m[6],2734768916,15),w=B(w,P,$,A,m[13],1309151649,21),A=B(A,w,P,$,m[4],4149444226,6),$=B($,A,w,P,m[11],3174756917,10),P=B(P,$,A,w,m[2],718787259,15),w=B(w,P,$,A,m[9],3951481745,21),this._a=this._a+A|0,this._b=this._b+w|0,this._c=this._c+P|0,this._d=this._d+$|0},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=p.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},Ce.exports=c},3459:(Ce,ee,E)=>{var a=E(7223),S=E(5294);function p(O){this.rand=O||new S.Rand}Ce.exports=p,p.create=function(c){return new p(c)},p.prototype._randbelow=function(c){var D=c.bitLength(),C=Math.ceil(D/8);do{var _=new a(this.rand.generate(C))}while(_.cmp(c)>=0);return _},p.prototype._randrange=function(c,D){var C=D.sub(c);return c.add(this._randbelow(C))},p.prototype.test=function(c,D,C){var _=c.bitLength(),F=a.mont(c),B=new a(1).toRed(F);D||(D=Math.max(1,_/48|0));for(var m=c.subn(1),T=0;!m.testn(T);T++);for(var A=c.shrn(T),w=m.toRed(F);D>0;D--){var $=this._randrange(new a(2),m);C&&C($);var L=$.toRed(F).redPow(A);if(0!==L.cmp(B)&&0!==L.cmp(w)){for(var M=1;M0;D--){var w=this._randrange(new a(2),B),P=c.gcd(w);if(0!==P.cmpn(1))return P;var $=w.toRed(_).redPow(T);if(0!==$.cmp(F)&&0!==$.cmp(A)){for(var L=1;L=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},9210:Ce=>{function ee(E,a){if(!E)throw new Error(a||"Assertion failed")}Ce.exports=ee,ee.equal=function(a,S,p){if(a!=S)throw new Error(p||"Assertion failed: "+a+" != "+S)}},1832:(Ce,ee)=>{"use strict";var E=ee;function S(O){return 1===O.length?"0"+O:O}function p(O){for(var c="",D=0;D>8,B=255&_;F?D.push(F,B):D.push(B)}return D},E.zero2=S,E.toHex=p,E.encode=function(c,D){return"hex"===D?p(c):c}},3138:(Ce,ee,E)=>{"use strict";var a=E(1990);ee.certificate=E(4772);var S=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});ee.RSAPrivateKey=S;var p=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});ee.RSAPublicKey=p;var O=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(O),this.key("subjectPublicKey").bitstr())});ee.PublicKey=c;var D=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(O),this.key("subjectPrivateKey").octstr())});ee.PrivateKey=D;var C=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});ee.EncryptedPrivateKey=C;var _=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});ee.DSAPrivateKey=_,ee.DSAparam=a.define("DSAparam",function(){this.int()});var F=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),B=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(F),this.key("publicKey").optional().explicit(1).bitstr())});ee.ECPrivateKey=B,ee.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},4772:(Ce,ee,E)=>{"use strict";var a=E(1990),S=a.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),p=a.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),O=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(O),this.key("subjectPublicKey").bitstr())}),D=a.define("RelativeDistinguishedName",function(){this.setof(p)}),C=a.define("RDNSequence",function(){this.seqof(D)}),_=a.define("Name",function(){this.choice({rdnSequence:this.use(C)})}),F=a.define("Validity",function(){this.seq().obj(this.key("notBefore").use(S),this.key("notAfter").use(S))}),B=a.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),m=a.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(O),this.key("issuer").use(_),this.key("validity").use(F),this.key("subject").use(_),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(B).optional())}),T=a.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(O),this.key("signatureValue").bitstr())});Ce.exports=T},9472:(Ce,ee,E)=>{"use strict";var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,O=E(8211),c=E(3388),D=E(7054).Buffer;Ce.exports=function(C,_){var m,F=C.toString(),B=F.match(a);if(B){var A="aes"+B[1],w=D.from(B[2],"hex"),P=D.from(B[3].replace(/[\r\n]/g,""),"base64"),$=O(_,w.slice(0,8),parseInt(B[1],10)).key,L=[],M=c.createDecipheriv(A,$,w);L.push(M.update(P)),L.push(M.final()),m=D.concat(L)}else{var T=F.match(p);m=D.from(T[2].replace(/[\r\n]/g,""),"base64")}return{tag:F.match(S)[1],data:m}}},5667:(Ce,ee,E)=>{"use strict";var a=E(3138),S=E(5579),p=E(9472),O=E(3388),c=E(3397),D=E(7054).Buffer;function _(F){var B;"object"==typeof F&&!D.isBuffer(F)&&(B=F.passphrase,F=F.key),"string"==typeof F&&(F=D.from(F));var w,P,m=p(F,B),T=m.tag,A=m.data;switch(T){case"CERTIFICATE":P=a.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(P||(P=a.PublicKey.decode(A,"der")),w=P.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(P.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return P.subjectPrivateKey=P.subjectPublicKey,{type:"ec",data:P};case"1.2.840.10040.4.1":return P.algorithm.params.pub_key=a.DSAparam.decode(P.subjectPublicKey.data,"der"),{type:"dsa",data:P.algorithm.params};default:throw new Error("unknown key id "+w)}case"ENCRYPTED PRIVATE KEY":A=function C(F,B){var m=F.algorithm.decrypt.kde.kdeparams.salt,T=parseInt(F.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=S[F.algorithm.decrypt.cipher.algo.join(".")],w=F.algorithm.decrypt.cipher.iv,P=F.subjectPrivateKey,$=parseInt(A.split("-")[1],10)/8,L=c.pbkdf2Sync(B,m,T,$,"sha1"),M=O.createDecipheriv(A,L,w),R=[];return R.push(M.update(P)),R.push(M.final()),D.concat(R)}(A=a.EncryptedPrivateKey.decode(A,"der"),B);case"PRIVATE KEY":switch(w=(P=a.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(P.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:P.algorithm.curve,privateKey:a.ECPrivateKey.decode(P.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return P.algorithm.params.priv_key=a.DSAparam.decode(P.subjectPrivateKey,"der"),{type:"dsa",params:P.algorithm.params};default:throw new Error("unknown key id "+w)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=a.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw new Error("unknown key type "+T)}}_.signature=a.signature,Ce.exports=_},3397:(Ce,ee,E)=>{ee.pbkdf2=E(2685),ee.pbkdf2Sync=E(9111)},2685:(Ce,ee,E)=>{var D,m,a=E(7054).Buffer,S=E(6111),p=E(5392),O=E(9111),c=E(6643),C=global.crypto&&global.crypto.subtle,_={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},F=[];function T(){return m||(m=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function A(P,$,L,M,R){return C.importKey("raw",P,{name:"PBKDF2"},!1,["deriveBits"]).then(function(U){return C.deriveBits({name:"PBKDF2",salt:$,iterations:L,hash:{name:R}},U,M<<3)}).then(function(U){return a.from(U)})}Ce.exports=function(P,$,L,M,R,U){"function"==typeof R&&(U=R,R=void 0);var j=_[(R=R||"sha1").toLowerCase()];if(j&&"function"==typeof global.Promise){if(S(L,M),P=c(P,p,"Password"),$=c($,p,"Salt"),"function"!=typeof U)throw new Error("No callback provided to pbkdf2");!function w(P,$){P.then(function(L){T()(function(){$(null,L)})},function(L){T()(function(){$(L)})})}(function B(P){if(global.process&&!global.process.browser||!C||!C.importKey||!C.deriveBits)return Promise.resolve(!1);if(void 0!==F[P])return F[P];var $=A(D=D||a.alloc(8),D,10,128,P).then(function(){return!0}).catch(function(){return!1});return F[P]=$,$}(j).then(function(W){return W?A(P,$,L,M,j):O(P,$,L,M,R)}),U)}else T()(function(){var W;try{W=O(P,$,L,M,R)}catch(ie){return U(ie)}U(null,W)})}},5392:Ce=>{var ee;ee=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",Ce.exports=ee},6111:Ce=>{var ee=Math.pow(2,30)-1;Ce.exports=function(E,a){if("number"!=typeof E)throw new TypeError("Iterations not a number");if(E<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>ee||a!=a)throw new TypeError("Bad key length")}},9111:(Ce,ee,E)=>{var a=E(3407),S=E(6636),p=E(5443),O=E(7054).Buffer,c=E(6111),D=E(5392),C=E(6643),_=O.alloc(128),F={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function B(A,w,P){var $=function m(A){return"rmd160"===A||"ripemd160"===A?function P($){return(new S).update($).digest()}:"md5"===A?a:function w($){return p(A).update($).digest()}}(A),L="sha512"===A||"sha384"===A?128:64;w.length>L?w=$(w):w.length{var a=E(7054).Buffer;Ce.exports=function(S,p,O){if(a.isBuffer(S))return S;if("string"==typeof S)return a.from(S,p);if(ArrayBuffer.isView(S))return a.from(S.buffer);throw new TypeError(O+" must be a string, a Buffer, a typed array or a DataView")}},9656:Ce=>{"use strict";Ce.exports=typeof process>"u"||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function ee(E,a,S,p){if("function"!=typeof E)throw new TypeError('"callback" argument must be a function');var c,D,O=arguments.length;switch(O){case 0:case 1:return process.nextTick(E);case 2:return process.nextTick(function(){E.call(null,a)});case 3:return process.nextTick(function(){E.call(null,a,S)});case 4:return process.nextTick(function(){E.call(null,a,S,p)});default:for(c=new Array(O-1),D=0;D{ee.publicEncrypt=E(7267),ee.privateDecrypt=E(8613),ee.privateEncrypt=function(S,p){return ee.publicEncrypt(S,p,!0)},ee.publicDecrypt=function(S,p){return ee.privateDecrypt(S,p,!0)}},715:(Ce,ee,E)=>{var a=E(7211),S=E(7054).Buffer;function p(O){var c=S.allocUnsafe(4);return c.writeUInt32BE(O,0),c}Ce.exports=function(O,c){for(var _,D=S.alloc(0),C=0;D.length=65&&o<=70?o-55:o>=97&&o<=102?o-87:o-48&15}function _(g,n,o){var l=C(g,o);return o-1>=n&&(l|=C(g,o-1)<<4),l}function F(g,n,o,l){for(var s=0,h=Math.min(g.length,o),v=n;v=49?y-49+10:y>=17?y-17+10:y}return s}c.isBN=function(n){return n instanceof c||null!==n&&"object"==typeof n&&n.constructor.wordSize===c.wordSize&&Array.isArray(n.words)},c.max=function(n,o){return n.cmp(o)>0?n:o},c.min=function(n,o){return n.cmp(o)<0?n:o},c.prototype._init=function(n,o,l){if("number"==typeof n)return this._initNumber(n,o,l);if("object"==typeof n)return this._initArray(n,o,l);"hex"===o&&(o=16),p(o===(0|o)&&o>=2&&o<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&(s++,this.negative=1),s=0;s-=3)this.words[h]|=(v=n[s]|n[s-1]<<8|n[s-2]<<16)<>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);else if("le"===l)for(s=0,h=0;s>>26-y&67108863,(y+=24)>=26&&(y-=26,h++);return this.strip()},c.prototype._parseHex=function(n,o,l){this.length=Math.ceil((n.length-o)/6),this.words=new Array(this.length);for(var s=0;s=o;s-=2)y=_(n,o,s)<=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;else for(s=(n.length-o)%2==0?o+1:o;s=18?(h-=18,this.words[v+=1]|=y>>>26):h+=8;this.strip()},c.prototype._parseBase=function(n,o,l){this.words=[0],this.length=1;for(var s=0,h=1;h<=67108863;h*=o)s++;s--,h=h/o|0;for(var v=n.length-l,y=v%s,d=Math.min(v,v-y)+l,r=0,f=l;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function w(g,n,o){o.negative=n.negative^g.negative;var l=g.length+n.length|0;o.length=l,l=l-1|0;var s=0|g.words[0],h=0|n.words[0],v=s*h,d=v/67108864|0;o.words[0]=67108863&v;for(var r=1;r>>26,k=67108863&d,I=Math.min(r,n.length-1),V=Math.max(0,r-g.length+1);V<=I;V++)f+=(v=(s=0|g.words[r-V|0])*(h=0|n.words[V])+k)/67108864|0,k=67108863&v;o.words[r]=0|k,d=0|f}return 0!==d?o.words[r]=0|d:o.length--,o.strip()}c.prototype.toString=function(n,o){var l;if(o=0|o||1,16===(n=n||10)||"hex"===n){l="";for(var s=0,h=0,v=0;v>>24-s&16777215)||v!==this.length-1?B[6-d.length]+d+l:d+l,(s+=2)>=26&&(s-=26,v--)}for(0!==h&&(l=h.toString(16)+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}if(n===(0|n)&&n>=2&&n<=36){var r=m[n],f=T[n];l="";var k=this.clone();for(k.negative=0;!k.isZero();){var I=k.modn(f).toString(n);l=(k=k.idivn(f)).isZero()?I+l:B[r-I.length]+I+l}for(this.isZero()&&(l="0"+l);l.length%o!=0;)l="0"+l;return 0!==this.negative&&(l="-"+l),l}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(n,o){return p(typeof D<"u"),this.toArrayLike(D,n,o)},c.prototype.toArray=function(n,o){return this.toArrayLike(Array,n,o)},c.prototype.toArrayLike=function(n,o,l){var s=this.byteLength(),h=l||Math.max(1,s);p(s<=h,"byte array longer than desired length"),p(h>0,"Requested array length <= 0"),this.strip();var d,r,v="le"===o,y=new n(h),f=this.clone();if(v){for(r=0;!f.isZero();r++)d=f.andln(255),f.iushrn(8),y[r]=d;for(;r=4096&&(l+=13,o>>>=13),o>=64&&(l+=7,o>>>=7),o>=8&&(l+=4,o>>>=4),o>=2&&(l+=2,o>>>=2),l+o},c.prototype._zeroBits=function(n){if(0===n)return 26;var o=n,l=0;return 8191&o||(l+=13,o>>>=13),127&o||(l+=7,o>>>=7),15&o||(l+=4,o>>>=4),3&o||(l+=2,o>>>=2),1&o||l++,l},c.prototype.bitLength=function(){var o=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+o},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,o=0;on.length?this.clone().ior(n):n.clone().ior(this)},c.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},c.prototype.iuand=function(n){var o;o=this.length>n.length?n:this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},c.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},c.prototype.iuxor=function(n){var o,l;this.length>n.length?(o=this,l=n):(o=n,l=this);for(var s=0;sn.length?this.clone().ixor(n):n.clone().ixor(this)},c.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},c.prototype.inotn=function(n){p("number"==typeof n&&n>=0);var o=0|Math.ceil(n/26),l=n%26;this._expand(o),l>0&&o--;for(var s=0;s0&&(this.words[s]=~this.words[s]&67108863>>26-l),this.strip()},c.prototype.notn=function(n){return this.clone().inotn(n)},c.prototype.setn=function(n,o){p("number"==typeof n&&n>=0);var l=n/26|0,s=n%26;return this._expand(l+1),this.words[l]=o?this.words[l]|1<n.length?(l=this,s=n):(l=n,s=this);for(var h=0,v=0;v>>26;for(;0!==h&&v>>26;if(this.length=l.length,0!==h)this.words[this.length]=h,this.length++;else if(l!==this)for(;vn.length?this.clone().iadd(n):n.clone().iadd(this)},c.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var o=this.iadd(n);return n.negative=1,o._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s,h,l=this.cmp(n);if(0===l)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(s=this,h=n):(s=n,h=this);for(var v=0,y=0;y>26,this.words[y]=67108863&o;for(;0!==v&&y>26,this.words[y]=67108863&o;if(0===v&&y>>13,J=0|s[1],oe=8191&J,ve=J>>>13,De=0|s[2],Q=8191&De,ae=De>>>13,tt=0|s[3],ke=8191&tt,pe=tt>>>13,Ie=0|s[4],_e=8191&Ie,re=Ie>>>13,ne=0|s[5],G=8191&ne,ge=ne>>>13,xt=0|s[6],Qe=8191&xt,rt=xt>>>13,rn=0|s[7],mt=8191&rn,ft=rn>>>13,un=0|s[8],At=8191&un,It=un>>>13,Cn=0|s[9],St=8191&Cn,Ft=Cn>>>13,bn=0|h[0],bt=8191&bn,wt=bn>>>13,Dn=0|h[1],Bt=8191&Dn,Lt=Dn>>>13,Wt=0|h[2],Nt=8191&Wt,Ot=Wt>>>13,zn=0|h[3],Ut=8191&zn,He=zn>>>13,Be=0|h[4],Ae=8191&Be,Me=Be>>>13,Ze=0|h[5],je=8191&Ze,it=Ze>>>13,Pe=0|h[6],Se=8191&Pe,ze=Pe>>>13,Et=0|h[7],Je=8191&Et,st=Et>>>13,en=0|h[8],yt=8191&en,vt=en>>>13,Kt=0|h[9],Pt=8191&Kt,Rt=Kt>>>13;l.negative=n.negative^o.negative,l.length=19;var On=(y+(d=Math.imul(I,bt))|0)+((8191&(r=(r=Math.imul(I,wt))+Math.imul(V,bt)|0))<<13)|0;y=((f=Math.imul(V,wt))+(r>>>13)|0)+(On>>>26)|0,On&=67108863,d=Math.imul(oe,bt),r=(r=Math.imul(oe,wt))+Math.imul(ve,bt)|0,f=Math.imul(ve,wt);var An=(y+(d=d+Math.imul(I,Bt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Lt)|0)+Math.imul(V,Bt)|0))<<13)|0;y=((f=f+Math.imul(V,Lt)|0)+(r>>>13)|0)+(An>>>26)|0,An&=67108863,d=Math.imul(Q,bt),r=(r=Math.imul(Q,wt))+Math.imul(ae,bt)|0,f=Math.imul(ae,wt),d=d+Math.imul(oe,Bt)|0,r=(r=r+Math.imul(oe,Lt)|0)+Math.imul(ve,Bt)|0,f=f+Math.imul(ve,Lt)|0;var Bn=(y+(d=d+Math.imul(I,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Ot)|0)+Math.imul(V,Nt)|0))<<13)|0;y=((f=f+Math.imul(V,Ot)|0)+(r>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,d=Math.imul(ke,bt),r=(r=Math.imul(ke,wt))+Math.imul(pe,bt)|0,f=Math.imul(pe,wt),d=d+Math.imul(Q,Bt)|0,r=(r=r+Math.imul(Q,Lt)|0)+Math.imul(ae,Bt)|0,f=f+Math.imul(ae,Lt)|0,d=d+Math.imul(oe,Nt)|0,r=(r=r+Math.imul(oe,Ot)|0)+Math.imul(ve,Nt)|0,f=f+Math.imul(ve,Ot)|0;var Mn=(y+(d=d+Math.imul(I,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(I,He)|0)+Math.imul(V,Ut)|0))<<13)|0;y=((f=f+Math.imul(V,He)|0)+(r>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,d=Math.imul(_e,bt),r=(r=Math.imul(_e,wt))+Math.imul(re,bt)|0,f=Math.imul(re,wt),d=d+Math.imul(ke,Bt)|0,r=(r=r+Math.imul(ke,Lt)|0)+Math.imul(pe,Bt)|0,f=f+Math.imul(pe,Lt)|0,d=d+Math.imul(Q,Nt)|0,r=(r=r+Math.imul(Q,Ot)|0)+Math.imul(ae,Nt)|0,f=f+Math.imul(ae,Ot)|0,d=d+Math.imul(oe,Ut)|0,r=(r=r+Math.imul(oe,He)|0)+Math.imul(ve,Ut)|0,f=f+Math.imul(ve,He)|0;var Wn=(y+(d=d+Math.imul(I,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(I,Me)|0)+Math.imul(V,Ae)|0))<<13)|0;y=((f=f+Math.imul(V,Me)|0)+(r>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,d=Math.imul(G,bt),r=(r=Math.imul(G,wt))+Math.imul(ge,bt)|0,f=Math.imul(ge,wt),d=d+Math.imul(_e,Bt)|0,r=(r=r+Math.imul(_e,Lt)|0)+Math.imul(re,Bt)|0,f=f+Math.imul(re,Lt)|0,d=d+Math.imul(ke,Nt)|0,r=(r=r+Math.imul(ke,Ot)|0)+Math.imul(pe,Nt)|0,f=f+Math.imul(pe,Ot)|0,d=d+Math.imul(Q,Ut)|0,r=(r=r+Math.imul(Q,He)|0)+Math.imul(ae,Ut)|0,f=f+Math.imul(ae,He)|0,d=d+Math.imul(oe,Ae)|0,r=(r=r+Math.imul(oe,Me)|0)+Math.imul(ve,Ae)|0,f=f+Math.imul(ve,Me)|0;var Ln=(y+(d=d+Math.imul(I,je)|0)|0)+((8191&(r=(r=r+Math.imul(I,it)|0)+Math.imul(V,je)|0))<<13)|0;y=((f=f+Math.imul(V,it)|0)+(r>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,d=Math.imul(Qe,bt),r=(r=Math.imul(Qe,wt))+Math.imul(rt,bt)|0,f=Math.imul(rt,wt),d=d+Math.imul(G,Bt)|0,r=(r=r+Math.imul(G,Lt)|0)+Math.imul(ge,Bt)|0,f=f+Math.imul(ge,Lt)|0,d=d+Math.imul(_e,Nt)|0,r=(r=r+Math.imul(_e,Ot)|0)+Math.imul(re,Nt)|0,f=f+Math.imul(re,Ot)|0,d=d+Math.imul(ke,Ut)|0,r=(r=r+Math.imul(ke,He)|0)+Math.imul(pe,Ut)|0,f=f+Math.imul(pe,He)|0,d=d+Math.imul(Q,Ae)|0,r=(r=r+Math.imul(Q,Me)|0)+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,Me)|0,d=d+Math.imul(oe,je)|0,r=(r=r+Math.imul(oe,it)|0)+Math.imul(ve,je)|0,f=f+Math.imul(ve,it)|0;var Fn=(y+(d=d+Math.imul(I,Se)|0)|0)+((8191&(r=(r=r+Math.imul(I,ze)|0)+Math.imul(V,Se)|0))<<13)|0;y=((f=f+Math.imul(V,ze)|0)+(r>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,d=Math.imul(mt,bt),r=(r=Math.imul(mt,wt))+Math.imul(ft,bt)|0,f=Math.imul(ft,wt),d=d+Math.imul(Qe,Bt)|0,r=(r=r+Math.imul(Qe,Lt)|0)+Math.imul(rt,Bt)|0,f=f+Math.imul(rt,Lt)|0,d=d+Math.imul(G,Nt)|0,r=(r=r+Math.imul(G,Ot)|0)+Math.imul(ge,Nt)|0,f=f+Math.imul(ge,Ot)|0,d=d+Math.imul(_e,Ut)|0,r=(r=r+Math.imul(_e,He)|0)+Math.imul(re,Ut)|0,f=f+Math.imul(re,He)|0,d=d+Math.imul(ke,Ae)|0,r=(r=r+Math.imul(ke,Me)|0)+Math.imul(pe,Ae)|0,f=f+Math.imul(pe,Me)|0,d=d+Math.imul(Q,je)|0,r=(r=r+Math.imul(Q,it)|0)+Math.imul(ae,je)|0,f=f+Math.imul(ae,it)|0,d=d+Math.imul(oe,Se)|0,r=(r=r+Math.imul(oe,ze)|0)+Math.imul(ve,Se)|0,f=f+Math.imul(ve,ze)|0;var kn=(y+(d=d+Math.imul(I,Je)|0)|0)+((8191&(r=(r=r+Math.imul(I,st)|0)+Math.imul(V,Je)|0))<<13)|0;y=((f=f+Math.imul(V,st)|0)+(r>>>13)|0)+(kn>>>26)|0,kn&=67108863,d=Math.imul(At,bt),r=(r=Math.imul(At,wt))+Math.imul(It,bt)|0,f=Math.imul(It,wt),d=d+Math.imul(mt,Bt)|0,r=(r=r+Math.imul(mt,Lt)|0)+Math.imul(ft,Bt)|0,f=f+Math.imul(ft,Lt)|0,d=d+Math.imul(Qe,Nt)|0,r=(r=r+Math.imul(Qe,Ot)|0)+Math.imul(rt,Nt)|0,f=f+Math.imul(rt,Ot)|0,d=d+Math.imul(G,Ut)|0,r=(r=r+Math.imul(G,He)|0)+Math.imul(ge,Ut)|0,f=f+Math.imul(ge,He)|0,d=d+Math.imul(_e,Ae)|0,r=(r=r+Math.imul(_e,Me)|0)+Math.imul(re,Ae)|0,f=f+Math.imul(re,Me)|0,d=d+Math.imul(ke,je)|0,r=(r=r+Math.imul(ke,it)|0)+Math.imul(pe,je)|0,f=f+Math.imul(pe,it)|0,d=d+Math.imul(Q,Se)|0,r=(r=r+Math.imul(Q,ze)|0)+Math.imul(ae,Se)|0,f=f+Math.imul(ae,ze)|0,d=d+Math.imul(oe,Je)|0,r=(r=r+Math.imul(oe,st)|0)+Math.imul(ve,Je)|0,f=f+Math.imul(ve,st)|0;var Gn=(y+(d=d+Math.imul(I,yt)|0)|0)+((8191&(r=(r=r+Math.imul(I,vt)|0)+Math.imul(V,yt)|0))<<13)|0;y=((f=f+Math.imul(V,vt)|0)+(r>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,d=Math.imul(St,bt),r=(r=Math.imul(St,wt))+Math.imul(Ft,bt)|0,f=Math.imul(Ft,wt),d=d+Math.imul(At,Bt)|0,r=(r=r+Math.imul(At,Lt)|0)+Math.imul(It,Bt)|0,f=f+Math.imul(It,Lt)|0,d=d+Math.imul(mt,Nt)|0,r=(r=r+Math.imul(mt,Ot)|0)+Math.imul(ft,Nt)|0,f=f+Math.imul(ft,Ot)|0,d=d+Math.imul(Qe,Ut)|0,r=(r=r+Math.imul(Qe,He)|0)+Math.imul(rt,Ut)|0,f=f+Math.imul(rt,He)|0,d=d+Math.imul(G,Ae)|0,r=(r=r+Math.imul(G,Me)|0)+Math.imul(ge,Ae)|0,f=f+Math.imul(ge,Me)|0,d=d+Math.imul(_e,je)|0,r=(r=r+Math.imul(_e,it)|0)+Math.imul(re,je)|0,f=f+Math.imul(re,it)|0,d=d+Math.imul(ke,Se)|0,r=(r=r+Math.imul(ke,ze)|0)+Math.imul(pe,Se)|0,f=f+Math.imul(pe,ze)|0,d=d+Math.imul(Q,Je)|0,r=(r=r+Math.imul(Q,st)|0)+Math.imul(ae,Je)|0,f=f+Math.imul(ae,st)|0,d=d+Math.imul(oe,yt)|0,r=(r=r+Math.imul(oe,vt)|0)+Math.imul(ve,yt)|0,f=f+Math.imul(ve,vt)|0;var Xn=(y+(d=d+Math.imul(I,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,Rt)|0)+Math.imul(V,Pt)|0))<<13)|0;y=((f=f+Math.imul(V,Rt)|0)+(r>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,d=Math.imul(St,Bt),r=(r=Math.imul(St,Lt))+Math.imul(Ft,Bt)|0,f=Math.imul(Ft,Lt),d=d+Math.imul(At,Nt)|0,r=(r=r+Math.imul(At,Ot)|0)+Math.imul(It,Nt)|0,f=f+Math.imul(It,Ot)|0,d=d+Math.imul(mt,Ut)|0,r=(r=r+Math.imul(mt,He)|0)+Math.imul(ft,Ut)|0,f=f+Math.imul(ft,He)|0,d=d+Math.imul(Qe,Ae)|0,r=(r=r+Math.imul(Qe,Me)|0)+Math.imul(rt,Ae)|0,f=f+Math.imul(rt,Me)|0,d=d+Math.imul(G,je)|0,r=(r=r+Math.imul(G,it)|0)+Math.imul(ge,je)|0,f=f+Math.imul(ge,it)|0,d=d+Math.imul(_e,Se)|0,r=(r=r+Math.imul(_e,ze)|0)+Math.imul(re,Se)|0,f=f+Math.imul(re,ze)|0,d=d+Math.imul(ke,Je)|0,r=(r=r+Math.imul(ke,st)|0)+Math.imul(pe,Je)|0,f=f+Math.imul(pe,st)|0,d=d+Math.imul(Q,yt)|0,r=(r=r+Math.imul(Q,vt)|0)+Math.imul(ae,yt)|0,f=f+Math.imul(ae,vt)|0;var jn=(y+(d=d+Math.imul(oe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(oe,Rt)|0)+Math.imul(ve,Pt)|0))<<13)|0;y=((f=f+Math.imul(ve,Rt)|0)+(r>>>13)|0)+(jn>>>26)|0,jn&=67108863,d=Math.imul(St,Nt),r=(r=Math.imul(St,Ot))+Math.imul(Ft,Nt)|0,f=Math.imul(Ft,Ot),d=d+Math.imul(At,Ut)|0,r=(r=r+Math.imul(At,He)|0)+Math.imul(It,Ut)|0,f=f+Math.imul(It,He)|0,d=d+Math.imul(mt,Ae)|0,r=(r=r+Math.imul(mt,Me)|0)+Math.imul(ft,Ae)|0,f=f+Math.imul(ft,Me)|0,d=d+Math.imul(Qe,je)|0,r=(r=r+Math.imul(Qe,it)|0)+Math.imul(rt,je)|0,f=f+Math.imul(rt,it)|0,d=d+Math.imul(G,Se)|0,r=(r=r+Math.imul(G,ze)|0)+Math.imul(ge,Se)|0,f=f+Math.imul(ge,ze)|0,d=d+Math.imul(_e,Je)|0,r=(r=r+Math.imul(_e,st)|0)+Math.imul(re,Je)|0,f=f+Math.imul(re,st)|0,d=d+Math.imul(ke,yt)|0,r=(r=r+Math.imul(ke,vt)|0)+Math.imul(pe,yt)|0,f=f+Math.imul(pe,vt)|0;var $e=(y+(d=d+Math.imul(Q,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Q,Rt)|0)+Math.imul(ae,Pt)|0))<<13)|0;y=((f=f+Math.imul(ae,Rt)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,d=Math.imul(St,Ut),r=(r=Math.imul(St,He))+Math.imul(Ft,Ut)|0,f=Math.imul(Ft,He),d=d+Math.imul(At,Ae)|0,r=(r=r+Math.imul(At,Me)|0)+Math.imul(It,Ae)|0,f=f+Math.imul(It,Me)|0,d=d+Math.imul(mt,je)|0,r=(r=r+Math.imul(mt,it)|0)+Math.imul(ft,je)|0,f=f+Math.imul(ft,it)|0,d=d+Math.imul(Qe,Se)|0,r=(r=r+Math.imul(Qe,ze)|0)+Math.imul(rt,Se)|0,f=f+Math.imul(rt,ze)|0,d=d+Math.imul(G,Je)|0,r=(r=r+Math.imul(G,st)|0)+Math.imul(ge,Je)|0,f=f+Math.imul(ge,st)|0,d=d+Math.imul(_e,yt)|0,r=(r=r+Math.imul(_e,vt)|0)+Math.imul(re,yt)|0,f=f+Math.imul(re,vt)|0;var lt=(y+(d=d+Math.imul(ke,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(ke,Rt)|0)+Math.imul(pe,Pt)|0))<<13)|0;y=((f=f+Math.imul(pe,Rt)|0)+(r>>>13)|0)+(lt>>>26)|0,lt&=67108863,d=Math.imul(St,Ae),r=(r=Math.imul(St,Me))+Math.imul(Ft,Ae)|0,f=Math.imul(Ft,Me),d=d+Math.imul(At,je)|0,r=(r=r+Math.imul(At,it)|0)+Math.imul(It,je)|0,f=f+Math.imul(It,it)|0,d=d+Math.imul(mt,Se)|0,r=(r=r+Math.imul(mt,ze)|0)+Math.imul(ft,Se)|0,f=f+Math.imul(ft,ze)|0,d=d+Math.imul(Qe,Je)|0,r=(r=r+Math.imul(Qe,st)|0)+Math.imul(rt,Je)|0,f=f+Math.imul(rt,st)|0,d=d+Math.imul(G,yt)|0,r=(r=r+Math.imul(G,vt)|0)+Math.imul(ge,yt)|0,f=f+Math.imul(ge,vt)|0;var Tt=(y+(d=d+Math.imul(_e,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(_e,Rt)|0)+Math.imul(re,Pt)|0))<<13)|0;y=((f=f+Math.imul(re,Rt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,d=Math.imul(St,je),r=(r=Math.imul(St,it))+Math.imul(Ft,je)|0,f=Math.imul(Ft,it),d=d+Math.imul(At,Se)|0,r=(r=r+Math.imul(At,ze)|0)+Math.imul(It,Se)|0,f=f+Math.imul(It,ze)|0,d=d+Math.imul(mt,Je)|0,r=(r=r+Math.imul(mt,st)|0)+Math.imul(ft,Je)|0,f=f+Math.imul(ft,st)|0,d=d+Math.imul(Qe,yt)|0,r=(r=r+Math.imul(Qe,vt)|0)+Math.imul(rt,yt)|0,f=f+Math.imul(rt,vt)|0;var Mt=(y+(d=d+Math.imul(G,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(G,Rt)|0)+Math.imul(ge,Pt)|0))<<13)|0;y=((f=f+Math.imul(ge,Rt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,d=Math.imul(St,Se),r=(r=Math.imul(St,ze))+Math.imul(Ft,Se)|0,f=Math.imul(Ft,ze),d=d+Math.imul(At,Je)|0,r=(r=r+Math.imul(At,st)|0)+Math.imul(It,Je)|0,f=f+Math.imul(It,st)|0,d=d+Math.imul(mt,yt)|0,r=(r=r+Math.imul(mt,vt)|0)+Math.imul(ft,yt)|0,f=f+Math.imul(ft,vt)|0;var kt=(y+(d=d+Math.imul(Qe,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(Qe,Rt)|0)+Math.imul(rt,Pt)|0))<<13)|0;y=((f=f+Math.imul(rt,Rt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,d=Math.imul(St,Je),r=(r=Math.imul(St,st))+Math.imul(Ft,Je)|0,f=Math.imul(Ft,st),d=d+Math.imul(At,yt)|0,r=(r=r+Math.imul(At,vt)|0)+Math.imul(It,yt)|0,f=f+Math.imul(It,vt)|0;var Zt=(y+(d=d+Math.imul(mt,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(mt,Rt)|0)+Math.imul(ft,Pt)|0))<<13)|0;y=((f=f+Math.imul(ft,Rt)|0)+(r>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,d=Math.imul(St,yt),r=(r=Math.imul(St,vt))+Math.imul(Ft,yt)|0,f=Math.imul(Ft,vt);var qt=(y+(d=d+Math.imul(At,Pt)|0)|0)+((8191&(r=(r=r+Math.imul(At,Rt)|0)+Math.imul(It,Pt)|0))<<13)|0;y=((f=f+Math.imul(It,Rt)|0)+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Qt=(y+(d=Math.imul(St,Pt))|0)+((8191&(r=(r=Math.imul(St,Rt))+Math.imul(Ft,Pt)|0))<<13)|0;return y=((f=Math.imul(Ft,Rt))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,v[0]=On,v[1]=An,v[2]=Bn,v[3]=Mn,v[4]=Wn,v[5]=Ln,v[6]=Fn,v[7]=kn,v[8]=Gn,v[9]=Xn,v[10]=jn,v[11]=$e,v[12]=lt,v[13]=Tt,v[14]=Mt,v[15]=kt,v[16]=Zt,v[17]=qt,v[18]=Qt,0!==y&&(v[19]=y,l.length++),l};function L(g,n,o){return(new M).mulp(g,n,o)}function M(g,n){this.x=g,this.y=n}Math.imul||(P=w),c.prototype.mulTo=function(n,o){var l,s=this.length+n.length;return l=10===this.length&&10===n.length?P(this,n,o):s<63?w(this,n,o):s<1024?function $(g,n,o){o.negative=n.negative^g.negative,o.length=g.length+n.length;for(var l=0,s=0,h=0;h>>26)|0)>>>26,v&=67108863}o.words[h]=y,l=v,v=s}return 0!==l?o.words[h]=l:o.length--,o.strip()}(this,n,o):L(this,n,o),l},M.prototype.makeRBT=function(n){for(var o=new Array(n),l=c.prototype._countBits(n)-1,s=0;s>=1;return s},M.prototype.permute=function(n,o,l,s,h,v){for(var y=0;y>>=1)h++;return 1<>>=13),h>>>=13;for(v=2*o;v>=26,o+=s/67108864|0,o+=h>>>26,this.words[l]=67108863&h}return 0!==o&&(this.words[l]=o,this.length++),this},c.prototype.muln=function(n){return this.clone().imuln(n)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(n){var o=function A(g){for(var n=new Array(g.bitLength()),o=0;o>>s}return n}(n);if(0===o.length)return new c(1);for(var l=this,s=0;s=0);var h,o=n%26,l=(n-o)/26,s=67108863>>>26-o<<26-o;if(0!==o){var v=0;for(h=0;h>>26-o}v&&(this.words[h]=v,this.length++)}if(0!==l){for(h=this.length-1;h>=0;h--)this.words[h+l]=this.words[h];for(h=0;h=0),s=o?(o-o%26)/26:0;var h=n%26,v=Math.min((n-h)/26,this.length),y=67108863^67108863>>>h<v)for(this.length-=v,r=0;r=0&&(0!==f||r>=s);r--){var k=0|this.words[r];this.words[r]=f<<26-h|k>>>h,f=k&y}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(n,o,l){return p(0===this.negative),this.iushrn(n,o,l)},c.prototype.shln=function(n){return this.clone().ishln(n)},c.prototype.ushln=function(n){return this.clone().iushln(n)},c.prototype.shrn=function(n){return this.clone().ishrn(n)},c.prototype.ushrn=function(n){return this.clone().iushrn(n)},c.prototype.testn=function(n){p("number"==typeof n&&n>=0);var o=n%26,l=(n-o)/26;return!(this.length<=l||!(this.words[l]&1<=0);var o=n%26,l=(n-o)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=l?this:(0!==o&&l++,this.length=Math.min(l,this.length),0!==o&&(this.words[this.length-1]&=67108863^67108863>>>o<=67108864;o++)this.words[o]-=67108864,o===this.length-1?this.words[o+1]=1:this.words[o+1]++;return this.length=Math.max(this.length,o+1),this},c.prototype.isubn=function(n){if(p("number"==typeof n),p(n<67108864),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var o=0;o>26)-(d/67108864|0),this.words[h+l]=67108863&v}for(;h>26,this.words[h+l]=67108863&v;if(0===y)return this.strip();for(p(-1===y),y=0,h=0;h>26,this.words[h]=67108863&v;return this.negative=1,this.strip()},c.prototype._wordDiv=function(n,o){var l,s=this.clone(),h=n,v=0|h.words[h.length-1];0!=(l=26-this._countBits(v))&&(h=h.ushln(l),s.iushln(l),v=0|h.words[h.length-1]);var r,d=s.length-h.length;if("mod"!==o){(r=new c(null)).length=d+1,r.words=new Array(r.length);for(var f=0;f=0;I--){var V=67108864*(0|s.words[h.length+I])+(0|s.words[h.length+I-1]);for(V=Math.min(V/v|0,67108863),s._ishlnsubmul(h,V,I);0!==s.negative;)V--,s.negative=0,s._ishlnsubmul(h,1,I),s.isZero()||(s.negative^=1);r&&(r.words[I]=V)}return r&&r.strip(),s.strip(),"div"!==o&&0!==l&&s.iushrn(l),{div:r||null,mod:s}},c.prototype.divmod=function(n,o,l){return p(!n.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===n.negative?(v=this.neg().divmod(n,o),"mod"!==o&&(s=v.div.neg()),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.iadd(n)),{div:s,mod:h}):0===this.negative&&0!==n.negative?(v=this.divmod(n.neg(),o),"mod"!==o&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&n.negative?(v=this.neg().divmod(n.neg(),o),"div"!==o&&(h=v.mod.neg(),l&&0!==h.negative&&h.isub(n)),{div:v.div,mod:h}):n.length>this.length||this.cmp(n)<0?{div:new c(0),mod:this}:1===n.length?"div"===o?{div:this.divn(n.words[0]),mod:null}:"mod"===o?{div:null,mod:new c(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new c(this.modn(n.words[0]))}:this._wordDiv(n,o);var s,h,v},c.prototype.div=function(n){return this.divmod(n,"div",!1).div},c.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},c.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},c.prototype.divRound=function(n){var o=this.divmod(n);if(o.mod.isZero())return o.div;var l=0!==o.div.negative?o.mod.isub(n):o.mod,s=n.ushrn(1),h=n.andln(1),v=l.cmp(s);return v<0||1===h&&0===v?o.div:0!==o.div.negative?o.div.isubn(1):o.div.iaddn(1)},c.prototype.modn=function(n){p(n<=67108863);for(var o=(1<<26)%n,l=0,s=this.length-1;s>=0;s--)l=(o*l+(0|this.words[s]))%n;return l},c.prototype.idivn=function(n){p(n<=67108863);for(var o=0,l=this.length-1;l>=0;l--){var s=(0|this.words[l])+67108864*o;this.words[l]=s/n|0,o=s%n}return this.strip()},c.prototype.divn=function(n){return this.clone().idivn(n)},c.prototype.egcd=function(n){p(0===n.negative),p(!n.isZero());var o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=new c(0),y=new c(1),d=0;o.isEven()&&l.isEven();)o.iushrn(1),l.iushrn(1),++d;for(var r=l.clone(),f=o.clone();!o.isZero();){for(var k=0,I=1;!(o.words[0]&I)&&k<26;++k,I<<=1);if(k>0)for(o.iushrn(k);k-- >0;)(s.isOdd()||h.isOdd())&&(s.iadd(r),h.isub(f)),s.iushrn(1),h.iushrn(1);for(var V=0,J=1;!(l.words[0]&J)&&V<26;++V,J<<=1);if(V>0)for(l.iushrn(V);V-- >0;)(v.isOdd()||y.isOdd())&&(v.iadd(r),y.isub(f)),v.iushrn(1),y.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(v),h.isub(y)):(l.isub(o),v.isub(s),y.isub(h))}return{a:v,b:y,gcd:l.iushln(d)}},c.prototype._invmp=function(n){p(0===n.negative),p(!n.isZero());var k,o=this,l=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var s=new c(1),h=new c(0),v=l.clone();o.cmpn(1)>0&&l.cmpn(1)>0;){for(var y=0,d=1;!(o.words[0]&d)&&y<26;++y,d<<=1);if(y>0)for(o.iushrn(y);y-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var r=0,f=1;!(l.words[0]&f)&&r<26;++r,f<<=1);if(r>0)for(l.iushrn(r);r-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);o.cmp(l)>=0?(o.isub(l),s.isub(h)):(l.isub(o),h.isub(s))}return(k=0===o.cmpn(1)?s:h).cmpn(0)<0&&k.iadd(n),k},c.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var o=this.clone(),l=n.clone();o.negative=0,l.negative=0;for(var s=0;o.isEven()&&l.isEven();s++)o.iushrn(1),l.iushrn(1);for(;;){for(;o.isEven();)o.iushrn(1);for(;l.isEven();)l.iushrn(1);var h=o.cmp(l);if(h<0){var v=o;o=l,l=v}else if(0===h||0===l.cmpn(1))break;o.isub(l)}return l.iushln(s)},c.prototype.invm=function(n){return this.egcd(n).a.umod(n)},c.prototype.isEven=function(){return!(1&this.words[0])},c.prototype.isOdd=function(){return!(1&~this.words[0])},c.prototype.andln=function(n){return this.words[0]&n},c.prototype.bincn=function(n){p("number"==typeof n);var o=n%26,l=(n-o)/26,s=1<>>26,this.words[v]=y&=67108863}return 0!==h&&(this.words[v]=h,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(n){var l,o=n<0;if(0!==this.negative&&!o)return-1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)l=1;else{o&&(n=-n),p(n<=67108863,"Number is too big");var s=0|this.words[0];l=s===n?0:sn.length)return 1;if(this.length=0;l--){var s=0|this.words[l],h=0|n.words[l];if(s!==h){sh&&(o=1);break}}return o},c.prototype.gtn=function(n){return 1===this.cmpn(n)},c.prototype.gt=function(n){return 1===this.cmp(n)},c.prototype.gten=function(n){return this.cmpn(n)>=0},c.prototype.gte=function(n){return this.cmp(n)>=0},c.prototype.ltn=function(n){return-1===this.cmpn(n)},c.prototype.lt=function(n){return-1===this.cmp(n)},c.prototype.lten=function(n){return this.cmpn(n)<=0},c.prototype.lte=function(n){return this.cmp(n)<=0},c.prototype.eqn=function(n){return 0===this.cmpn(n)},c.prototype.eq=function(n){return 0===this.cmp(n)},c.red=function(n){return new te(n)},c.prototype.toRed=function(n){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(n){return this.red=n,this},c.prototype.forceRed=function(n){return p(!this.red,"Already a number in reduction context"),this._forceRed(n)},c.prototype.redAdd=function(n){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},c.prototype.redIAdd=function(n){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},c.prototype.redSub=function(n){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},c.prototype.redISub=function(n){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},c.prototype.redShl=function(n){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},c.prototype.redMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},c.prototype.redIMul=function(n){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(n){return p(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function U(g,n){this.name=g,this.p=new c(n,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function me(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function te(g){if("string"==typeof g){var n=c._prime(g);this.m=n.p,this.prime=n}else p(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}function se(g){te.call(this,g),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}U.prototype._tmp=function(){var n=new c(null);return n.words=new Array(Math.ceil(this.n/13)),n},U.prototype.ireduce=function(n){var l,o=n;do{this.split(o,this.tmp),l=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength()}while(l>this.n);var s=l0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},U.prototype.split=function(n,o){n.iushrn(this.n,0,o)},U.prototype.imulK=function(n){return n.imul(this.k)},O(j,U),j.prototype.split=function(n,o){for(var l=4194303,s=Math.min(n.length,9),h=0;h>>22,v=y}n.words[h-10]=v>>>=22,n.length-=0===v&&n.length>10?10:9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var o=0,l=0;l>>=26,n.words[l]=h,o=s}return 0!==o&&(n.words[n.length++]=o),n},c._prime=function(n){if(R[n])return R[n];var o;if("k256"===n)o=new j;else if("p224"===n)o=new W;else if("p192"===n)o=new ie;else{if("p25519"!==n)throw new Error("Unknown prime "+n);o=new me}return R[n]=o,o},te.prototype._verify1=function(n){p(0===n.negative,"red works only with positives"),p(n.red,"red works only with red numbers")},te.prototype._verify2=function(n,o){p(!(n.negative|o.negative),"red works only with positives"),p(n.red&&n.red===o.red,"red works only with red numbers")},te.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},te.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},te.prototype.add=function(n,o){this._verify2(n,o);var l=n.add(o);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},te.prototype.iadd=function(n,o){this._verify2(n,o);var l=n.iadd(o);return l.cmp(this.m)>=0&&l.isub(this.m),l},te.prototype.sub=function(n,o){this._verify2(n,o);var l=n.sub(o);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},te.prototype.isub=function(n,o){this._verify2(n,o);var l=n.isub(o);return l.cmpn(0)<0&&l.iadd(this.m),l},te.prototype.shl=function(n,o){return this._verify1(n),this.imod(n.ushln(o))},te.prototype.imul=function(n,o){return this._verify2(n,o),this.imod(n.imul(o))},te.prototype.mul=function(n,o){return this._verify2(n,o),this.imod(n.mul(o))},te.prototype.isqr=function(n){return this.imul(n,n.clone())},te.prototype.sqr=function(n){return this.mul(n,n)},te.prototype.sqrt=function(n){if(n.isZero())return n.clone();var o=this.m.andln(3);if(p(o%2==1),3===o){var l=this.m.add(new c(1)).iushrn(2);return this.pow(n,l)}for(var s=this.m.subn(1),h=0;!s.isZero()&&0===s.andln(1);)h++,s.iushrn(1);p(!s.isZero());var v=new c(1).toRed(this),y=v.redNeg(),d=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new c(2*r*r).toRed(this);0!==this.pow(r,d).cmp(y);)r.redIAdd(y);for(var f=this.pow(r,s),k=this.pow(n,s.addn(1).iushrn(1)),I=this.pow(n,s),V=h;0!==I.cmp(v);){for(var J=I,oe=0;0!==J.cmp(v);oe++)J=J.redSqr();p(oe=0;h--){for(var f=o.words[h],k=r-1;k>=0;k--){var I=f>>k&1;v!==s[0]&&(v=this.sqr(v)),0!==I||0!==y?(y<<=1,y|=I,(4==++d||0===h&&0===k)&&(v=this.mul(v,s[y]),d=0,y=0)):d=0}r=26}return v},te.prototype.convertTo=function(n){var o=n.umod(this.m);return o===n?o.clone():o},te.prototype.convertFrom=function(n){var o=n.clone();return o.red=null,o},c.mont=function(n){return new se(n)},O(se,te),se.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},se.prototype.convertFrom=function(n){var o=this.imod(n.mul(this.rinv));return o.red=null,o},se.prototype.imul=function(n,o){if(n.isZero()||o.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.mul=function(n,o){if(n.isZero()||o.isZero())return new c(0)._forceRed(this);var l=n.mul(o),s=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=l.isub(s).iushrn(this.shift),v=h;return h.cmp(this.m)>=0?v=h.isub(this.m):h.cmpn(0)<0&&(v=h.iadd(this.m)),v._forceRed(this)},se.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ce=E.nmd(Ce),this)},8613:(Ce,ee,E)=>{var a=E(5667),S=E(715),p=E(7196),O=E(6508),c=E(4105),D=E(7211),C=E(568),_=E(7054).Buffer;Ce.exports=function(A,w,P){var $;$=A.padding?A.padding:P?1:4;var R,L=a(A),M=L.modulus.byteLength();if(w.length>M||new O(w).cmp(L.modulus)>=0)throw new Error("decryption error");R=P?C(new O(w),L):c(w,L);var U=_.alloc(M-R.length);if(R=_.concat([U,R],M),4===$)return function F(T,A){var w=T.modulus.byteLength(),P=D("sha1").update(_.alloc(0)).digest(),$=P.length;if(0!==A[0])throw new Error("decryption error");var L=A.slice(1,$+1),M=A.slice($+1),R=p(L,S(M,$)),U=p(M,S(R,w-$-1));if(function m(T,A){T=_.from(T),A=_.from(A);var w=0,P=T.length;T.length!==A.length&&(w++,P=Math.min(T.length,A.length));for(var $=-1;++$=A.length){L++;break}var M=A.slice(2,$-1);if(("0002"!==P.toString("hex")&&!w||"0001"!==P.toString("hex")&&w)&&L++,M.length<8&&L++,L)throw new Error("decryption error");return A.slice($)}(0,R,P);if(3===$)return R;throw new Error("unknown padding")}},7267:(Ce,ee,E)=>{var a=E(5667),S=E(3342),p=E(7211),O=E(715),c=E(7196),D=E(6508),C=E(568),_=E(4105),F=E(7054).Buffer;Ce.exports=function(w,P,$){var L;L=w.padding?w.padding:$?1:4;var R,M=a(w);if(4===L)R=function B(A,w){var P=A.modulus.byteLength(),$=w.length,L=p("sha1").update(F.alloc(0)).digest(),M=L.length,R=2*M;if($>P-R-2)throw new Error("message too long");var U=F.alloc(P-$-R-2),j=P-M-1,W=S(M),ie=c(F.concat([L,U,F.alloc(1,1),w],j),O(W,j)),me=c(W,O(ie,M));return new D(F.concat([F.alloc(1),me,ie],P))}(M,P);else if(1===L)R=function m(A,w,P){var M,$=w.length,L=A.modulus.byteLength();if($>L-11)throw new Error("message too long");return M=P?F.alloc(L-$-3,255):function T(A){for(var M,w=F.allocUnsafe(A),P=0,$=S(2*A),L=0;P=0)throw new Error("data too long for modulus")}return $?_(R,M):C(R,M)}},568:(Ce,ee,E)=>{var a=E(6508),S=E(7054).Buffer;Ce.exports=function p(O,c){return S.from(O.toRed(a.mont(c.modulus)).redPow(new a(c.publicExponent)).fromRed().toArray())}},7196:Ce=>{Ce.exports=function(E,a){for(var S=E.length,p=-1;++p{"use strict";var a=65536,O=E(7054).Buffer,c=global.crypto||global.msCrypto;Ce.exports=c&&c.getRandomValues?function D(C,_){if(C>4294967295)throw new RangeError("requested too many random bytes");var F=O.allocUnsafe(C);if(C>0)if(C>a)for(var B=0;B{"use strict";function a(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var S=E(7054),p=E(3342),O=S.Buffer,c=S.kMaxLength,D=global.crypto||global.msCrypto,C=Math.pow(2,32)-1;function _(A,w){if("number"!=typeof A||A!=A)throw new TypeError("offset must be a number");if(A>C||A<0)throw new TypeError("offset must be a uint32");if(A>c||A>w)throw new RangeError("offset out of range")}function F(A,w,P){if("number"!=typeof A||A!=A)throw new TypeError("size must be a number");if(A>C||A<0)throw new TypeError("size must be a uint32");if(A+w>P||A>c)throw new RangeError("buffer too small")}function m(A,w,P,$){if(process.browser){var M=new Uint8Array(A.buffer,w,P);return D.getRandomValues(M),$?void process.nextTick(function(){$(null,A)}):A}if(!$)return p(P).copy(A,w),A;p(P,function(U,j){if(U)return $(U);j.copy(A,w),$(null,A)})}D&&D.getRandomValues||!process.browser?(ee.randomFill=function B(A,w,P,$){if(!(O.isBuffer(A)||A instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof w)$=w,w=0,P=A.length;else if("function"==typeof P)$=P,P=A.length-w;else if("function"!=typeof $)throw new TypeError('"cb" argument must be a function');return _(w,A.length),F(P,w,A.length),m(A,w,P,$)},ee.randomFillSync=function T(A,w,P){if(typeof w>"u"&&(w=0),!(O.isBuffer(A)||A instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return _(w,A.length),void 0===P&&(P=A.length-w),F(P,w,A.length),m(A,w,P)}):(ee.randomFill=a,ee.randomFillSync=a)},4075:(Ce,ee,E)=>{"use strict";var a=E(9656),S=Object.keys||function(T){var A=[];for(var w in T)A.push(w);return A};Ce.exports=F;var p=Object.create(E(7637));p.inherits=E(1993);var O=E(9609),c=E(7849);p.inherits(F,O);for(var D=S(c.prototype),C=0;C{"use strict";Ce.exports=p;var a=E(2909),S=Object.create(E(7637));function p(O){if(!(this instanceof p))return new p(O);a.call(this,O)}S.inherits=E(1993),S.inherits(p,a),p.prototype._transform=function(O,c,D){D(null,O)}},9609:(Ce,ee,E)=>{"use strict";var a=E(9656);Ce.exports=U;var p,S=E(53);U.ReadableState=R,E(4356);var c=function(Q,ae){return Q.listeners(ae).length},D=E(8342),C=E(2655).Buffer,_=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},m=Object.create(E(7637));m.inherits=E(1993);var T=E(9838),A=void 0;A=T&&T.debuglog?T.debuglog("stream"):function(){};var $,w=E(7809),P=E(1509);m.inherits(U,D);var L=["error","close","destroy","pause","resume"];function R(Q,ae){var tt=ae instanceof(p=p||E(4075));this.objectMode=!!(Q=Q||{}).objectMode,tt&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var ke=Q.highWaterMark,pe=Q.readableHighWaterMark;this.highWaterMark=ke||0===ke?ke:tt&&(pe||0===pe)?pe:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&($||($=E(8454).I),this.decoder=new $(Q.encoding),this.encoding=Q.encoding)}function U(Q){if(p=p||E(4075),!(this instanceof U))return new U(Q);this._readableState=new R(Q,this),this.readable=!0,Q&&("function"==typeof Q.read&&(this._read=Q.read),"function"==typeof Q.destroy&&(this._destroy=Q.destroy)),D.call(this)}function j(Q,ae,tt,ke,pe){var _e,Ie=Q._readableState;return null===ae?(Ie.reading=!1,function n(Q,ae){if(!ae.ended){if(ae.decoder){var tt=ae.decoder.end();tt&&tt.length&&(ae.buffer.push(tt),ae.length+=ae.objectMode?1:tt.length)}ae.ended=!0,o(Q)}}(Q,Ie)):(pe||(_e=function ie(Q,ae){var tt;return!function B(Q){return C.isBuffer(Q)||Q instanceof _}(ae)&&"string"!=typeof ae&&void 0!==ae&&!Q.objectMode&&(tt=new TypeError("Invalid non-string/buffer chunk")),tt}(Ie,ae)),_e?Q.emit("error",_e):Ie.objectMode||ae&&ae.length>0?("string"!=typeof ae&&!Ie.objectMode&&Object.getPrototypeOf(ae)!==C.prototype&&(ae=function F(Q){return C.from(Q)}(ae)),ke?Ie.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):W(Q,Ie,ae,!0):Ie.ended?Q.emit("error",new Error("stream.push() after EOF")):(Ie.reading=!1,Ie.decoder&&!tt?(ae=Ie.decoder.write(ae),Ie.objectMode||0!==ae.length?W(Q,Ie,ae,!1):s(Q,Ie)):W(Q,Ie,ae,!1))):ke||(Ie.reading=!1)),function me(Q){return!Q.ended&&(Q.needReadable||Q.lengthae.highWaterMark&&(ae.highWaterMark=function se(Q){return Q>=8388608?Q=8388608:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(Q)),Q<=ae.length?Q:ae.ended?ae.length:(ae.needReadable=!0,0))}function o(Q){var ae=Q._readableState;ae.needReadable=!1,ae.emittedReadable||(A("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?a.nextTick(l,Q):l(Q))}function l(Q){A("emit readable"),Q.emit("readable"),f(Q)}function s(Q,ae){ae.readingMore||(ae.readingMore=!0,a.nextTick(h,Q,ae))}function h(Q,ae){for(var tt=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length=ae.length?(tt=ae.decoder?ae.buffer.join(""):1===ae.buffer.length?ae.buffer.head.data:ae.buffer.concat(ae.length),ae.buffer.clear()):tt=function I(Q,ae,tt){var ke;return QIe.length?Ie.length:Q;if(pe+=_e===Ie.length?Ie:Ie.slice(0,Q),0==(Q-=_e)){_e===Ie.length?(++ke,ae.head=tt.next?tt.next:ae.tail=null):(ae.head=tt,tt.data=Ie.slice(_e));break}++ke}return ae.length-=ke,pe}(Q,ae):function J(Q,ae){var tt=C.allocUnsafe(Q),ke=ae.head,pe=1;for(ke.data.copy(tt),Q-=ke.data.length;ke=ke.next;){var Ie=ke.data,_e=Q>Ie.length?Ie.length:Q;if(Ie.copy(tt,tt.length-Q,0,_e),0==(Q-=_e)){_e===Ie.length?(++pe,ae.head=ke.next?ke.next:ae.tail=null):(ae.head=ke,ke.data=Ie.slice(_e));break}++pe}return ae.length-=pe,tt}(Q,ae),ke}(Q,ae.buffer,ae.decoder),tt);var tt}function oe(Q){var ae=Q._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,a.nextTick(ve,ae,Q))}function ve(Q,ae){!Q.endEmitted&&0===Q.length&&(Q.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function De(Q,ae){for(var tt=0,ke=Q.length;tt=ae.highWaterMark||ae.ended))return A("read: emitReadable",ae.length,ae.ended),0===ae.length&&ae.ended?oe(this):o(this),null;if(0===(Q=g(Q,ae))&&ae.ended)return 0===ae.length&&oe(this),null;var pe,ke=ae.needReadable;return A("need readable",ke),(0===ae.length||ae.length-Q0?k(Q,ae):null)?(ae.needReadable=!0,Q=0):ae.length-=Q,0===ae.length&&(ae.ended||(ae.needReadable=!0),tt!==Q&&ae.ended&&oe(this)),null!==pe&&this.emit("data",pe),pe},U.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},U.prototype.pipe=function(Q,ae){var tt=this,ke=this._readableState;switch(ke.pipesCount){case 0:ke.pipes=Q;break;case 1:ke.pipes=[ke.pipes,Q];break;default:ke.pipes.push(Q)}ke.pipesCount+=1,A("pipe count=%d opts=%j",ke.pipesCount,ae);var Ie=ae&&!1===ae.end||Q===process.stdout||Q===process.stderr?ft:re;function re(){A("onend"),Q.end()}ke.endEmitted?a.nextTick(Ie):tt.once("end",Ie),Q.on("unpipe",function _e(un,At){A("onunpipe"),un===tt&&At&&!1===At.hasUnpiped&&(At.hasUnpiped=!0,function ge(){A("cleanup"),Q.removeListener("close",rn),Q.removeListener("finish",mt),Q.removeListener("drain",ne),Q.removeListener("error",rt),Q.removeListener("unpipe",_e),tt.removeListener("end",re),tt.removeListener("end",ft),tt.removeListener("data",Qe),G=!0,ke.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&ne()}())});var ne=function v(Q){return function(){var ae=Q._readableState;A("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,0===ae.awaitDrain&&c(Q,"data")&&(ae.flowing=!0,f(Q))}}(tt);Q.on("drain",ne);var G=!1,xt=!1;function Qe(un){A("ondata"),xt=!1,!1===Q.write(un)&&!xt&&((1===ke.pipesCount&&ke.pipes===Q||ke.pipesCount>1&&-1!==De(ke.pipes,Q))&&!G&&(A("false write response, pause",ke.awaitDrain),ke.awaitDrain++,xt=!0),tt.pause())}function rt(un){A("onerror",un),ft(),Q.removeListener("error",rt),0===c(Q,"error")&&Q.emit("error",un)}function rn(){Q.removeListener("finish",mt),ft()}function mt(){A("onfinish"),Q.removeListener("close",rn),ft()}function ft(){A("unpipe"),tt.unpipe(Q)}return tt.on("data",Qe),function M(Q,ae,tt){if("function"==typeof Q.prependListener)return Q.prependListener(ae,tt);Q._events&&Q._events[ae]?S(Q._events[ae])?Q._events[ae].unshift(tt):Q._events[ae]=[tt,Q._events[ae]]:Q.on(ae,tt)}(Q,"error",rt),Q.once("close",rn),Q.once("finish",mt),Q.emit("pipe",tt),ke.flowing||(A("pipe resume"),tt.resume()),Q},U.prototype.unpipe=function(Q){var ae=this._readableState,tt={hasUnpiped:!1};if(0===ae.pipesCount)return this;if(1===ae.pipesCount)return Q&&Q!==ae.pipes||(Q||(Q=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,Q&&Q.emit("unpipe",this,tt)),this;if(!Q){var ke=ae.pipes,pe=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Ie=0;Ie{"use strict";Ce.exports=O;var a=E(4075),S=Object.create(E(7637));function p(C,_){var F=this._transformState;F.transforming=!1;var B=F.writecb;if(!B)return this.emit("error",new Error("write callback called multiple times"));F.writechunk=null,F.writecb=null,null!=_&&this.push(_),B(C);var m=this._readableState;m.reading=!1,(m.needReadable||m.length{"use strict";var a=E(9656);function p(d){var r=this;this.next=null,this.entry=null,this.finish=function(){!function y(d,r,f){var k=d.entry;for(d.entry=null;k;){var I=k.callback;r.pendingcb--,I(f),k=k.next}r.corkedRequestsFree.next=d}(r,d)}}Ce.exports=L;var c,O=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;L.WritableState=P;var D=Object.create(E(7637));D.inherits=E(1993);var $,C={deprecate:E(3398)},_=E(8342),F=E(2655).Buffer,B=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},A=E(1509);function w(){}function P(d,r){c=c||E(4075);var f=r instanceof c;this.objectMode=!!(d=d||{}).objectMode,f&&(this.objectMode=this.objectMode||!!d.writableObjectMode);var k=d.highWaterMark,I=d.writableHighWaterMark;this.highWaterMark=k||0===k?k:f&&(I||0===I)?I:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===d.decodeStrings),this.defaultEncoding=d.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){!function te(d,r){var f=d._writableState,k=f.sync,I=f.writecb;if(function me(d){d.writing=!1,d.writecb=null,d.length-=d.writelen,d.writelen=0}(f),r)!function ie(d,r,f,k,I){--r.pendingcb,f?(a.nextTick(I,k),a.nextTick(h,d,r),d._writableState.errorEmitted=!0,d.emit("error",k)):(I(k),d._writableState.errorEmitted=!0,d.emit("error",k),h(d,r))}(d,f,k,r,I);else{var V=o(f);!V&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&n(d,f),k?O(se,d,f,V,I):se(d,f,V,I)}}(r,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function L(d){if(c=c||E(4075),!($.call(L,this)||this instanceof c))return new L(d);this._writableState=new P(d,this),this.writable=!0,d&&("function"==typeof d.write&&(this._write=d.write),"function"==typeof d.writev&&(this._writev=d.writev),"function"==typeof d.destroy&&(this._destroy=d.destroy),"function"==typeof d.final&&(this._final=d.final)),_.call(this)}function W(d,r,f,k,I,V,J){r.writelen=k,r.writecb=J,r.writing=!0,r.sync=!0,f?d._writev(I,r.onwrite):d._write(I,V,r.onwrite),r.sync=!1}function se(d,r,f,k){f||function g(d,r){0===r.length&&r.needDrain&&(r.needDrain=!1,d.emit("drain"))}(d,r),r.pendingcb--,k(),h(d,r)}function n(d,r){r.bufferProcessing=!0;var f=r.bufferedRequest;if(d._writev&&f&&f.next){var I=new Array(r.bufferedRequestCount),V=r.corkedRequestsFree;V.entry=f;for(var J=0,oe=!0;f;)I[J]=f,f.isBuf||(oe=!1),f=f.next,J+=1;I.allBuffers=oe,W(d,r,!0,r.length,I,"",V.finish),r.pendingcb++,r.lastBufferedRequest=null,V.next?(r.corkedRequestsFree=V.next,V.next=null):r.corkedRequestsFree=new p(r),r.bufferedRequestCount=0}else{for(;f;){var ve=f.chunk;if(W(d,r,!1,r.objectMode?1:ve.length,ve,f.encoding,f.callback),f=f.next,r.bufferedRequestCount--,r.writing)break}null===f&&(r.lastBufferedRequest=null)}r.bufferedRequest=f,r.bufferProcessing=!1}function o(d){return d.ending&&0===d.length&&null===d.bufferedRequest&&!d.finished&&!d.writing}function l(d,r){d._final(function(f){r.pendingcb--,f&&d.emit("error",f),r.prefinished=!0,d.emit("prefinish"),h(d,r)})}function h(d,r){var f=o(r);return f&&(function s(d,r){!r.prefinished&&!r.finalCalled&&("function"==typeof d._final?(r.pendingcb++,r.finalCalled=!0,a.nextTick(l,d,r)):(r.prefinished=!0,d.emit("prefinish")))}(d,r),0===r.pendingcb&&(r.finished=!0,d.emit("finish"))),f}D.inherits(L,_),P.prototype.getBuffer=function(){for(var r=this.bufferedRequest,f=[];r;)f.push(r),r=r.next;return f},function(){try{Object.defineProperty(P.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(d){return!!$.call(this,d)||this===L&&d&&d._writableState instanceof P}})):$=function(d){return d instanceof this},L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},L.prototype.write=function(d,r,f){var k=this._writableState,I=!1,V=!k.objectMode&&function T(d){return F.isBuffer(d)||d instanceof B}(d);return V&&!F.isBuffer(d)&&(d=function m(d){return F.from(d)}(d)),"function"==typeof r&&(f=r,r=null),V?r="buffer":r||(r=k.defaultEncoding),"function"!=typeof f&&(f=w),k.ended?function M(d,r){var f=new Error("write after end");d.emit("error",f),a.nextTick(r,f)}(this,f):(V||function R(d,r,f,k){var I=!0,V=!1;return null===f?V=new TypeError("May not write null values to stream"):"string"!=typeof f&&void 0!==f&&!r.objectMode&&(V=new TypeError("Invalid non-string/buffer chunk")),V&&(d.emit("error",V),a.nextTick(k,V),I=!1),I}(this,k,d,f))&&(k.pendingcb++,I=function j(d,r,f,k,I,V){if(!f){var J=function U(d,r,f){return!d.objectMode&&!1!==d.decodeStrings&&"string"==typeof r&&(r=F.from(r,f)),r}(r,k,I);k!==J&&(f=!0,I="buffer",k=J)}var oe=r.objectMode?1:k.length;r.length+=oe;var ve=r.length-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this},Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),L.prototype._write=function(d,r,f){f(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(d,r,f){var k=this._writableState;"function"==typeof d?(f=d,d=null,r=null):"function"==typeof r&&(f=r,r=null),null!=d&&this.write(d,r),k.corked&&(k.corked=1,this.uncork()),k.ending||function v(d,r,f){r.ending=!0,h(d,r),f&&(r.finished?a.nextTick(f):d.once("finish",f)),r.ended=!0,d.writable=!1}(this,k,f)},Object.defineProperty(L.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(d){this._writableState&&(this._writableState.destroyed=d)}}),L.prototype.destroy=A.destroy,L.prototype._undestroy=A.undestroy,L.prototype._destroy=function(d,r){this.end(),r(d)}},7809:(Ce,ee,E)=>{"use strict";var S=E(2655).Buffer,p=E(5340);function O(c,D,C){c.copy(D,C)}Ce.exports=function(){function c(){(function a(c,D){if(!(c instanceof D))throw new TypeError("Cannot call a class as a function")})(this,c),this.head=null,this.tail=null,this.length=0}return c.prototype.push=function(C){var _={data:C,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length},c.prototype.unshift=function(C){var _={data:C,next:this.head};0===this.length&&(this.tail=_),this.head=_,++this.length},c.prototype.shift=function(){if(0!==this.length){var C=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,C}},c.prototype.clear=function(){this.head=this.tail=null,this.length=0},c.prototype.join=function(C){if(0===this.length)return"";for(var _=this.head,F=""+_.data;_=_.next;)F+=C+_.data;return F},c.prototype.concat=function(C){if(0===this.length)return S.alloc(0);for(var _=S.allocUnsafe(C>>>0),F=this.head,B=0;F;)O(F.data,_,B),B+=F.data.length,F=F.next;return _},c}(),p&&p.inspect&&p.inspect.custom&&(Ce.exports.prototype[p.inspect.custom]=function(){var c=p.inspect({length:this.length});return this.constructor.name+" "+c})},1509:(Ce,ee,E)=>{"use strict";var a=E(9656);function O(c,D){c.emit("error",D)}Ce.exports={destroy:function S(c,D){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(D?D(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(O,this,c)):a.nextTick(O,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(B){!D&&B?C._writableState?C._writableState.errorEmitted||(C._writableState.errorEmitted=!0,a.nextTick(O,C,B)):a.nextTick(O,C,B):D&&D(B)}),this)},undestroy:function p(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},8342:(Ce,ee,E)=>{Ce.exports=E(4356).EventEmitter},2655:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},5942:(Ce,ee,E)=>{(ee=Ce.exports=E(9609)).Stream=ee,ee.Readable=ee,ee.Writable=E(7849),ee.Duplex=E(4075),ee.Transform=E(2909),ee.PassThrough=E(8823)},6636:(Ce,ee,E)=>{"use strict";var a=E(3838).Buffer,S=E(1993),p=E(3686),O=new Array(16),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],C=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],F=[0,1518500249,1859775393,2400959708,2840853838],B=[1352829926,1548603684,1836072691,2053994217,0];function m(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function T(M,R){return M<>>32-R}function A(M,R,U,j,W,ie,me,te){return T(M+(R^U^j)+ie+me|0,te)+W|0}function w(M,R,U,j,W,ie,me,te){return T(M+(R&U|~R&j)+ie+me|0,te)+W|0}function P(M,R,U,j,W,ie,me,te){return T(M+((R|~U)^j)+ie+me|0,te)+W|0}function $(M,R,U,j,W,ie,me,te){return T(M+(R&j|U&~j)+ie+me|0,te)+W|0}function L(M,R,U,j,W,ie,me,te){return T(M+(R^(U|~j))+ie+me|0,te)+W|0}S(m,p),m.prototype._update=function(){for(var M=O,R=0;R<16;++R)M[R]=this._block.readInt32LE(4*R);for(var U=0|this._a,j=0|this._b,W=0|this._c,ie=0|this._d,me=0|this._e,te=0|this._a,se=0|this._b,g=0|this._c,n=0|this._d,o=0|this._e,l=0;l<80;l+=1){var s,h;l<16?(s=A(U,j,W,ie,me,M[c[l]],F[0],C[l]),h=L(te,se,g,n,o,M[D[l]],B[0],_[l])):l<32?(s=w(U,j,W,ie,me,M[c[l]],F[1],C[l]),h=$(te,se,g,n,o,M[D[l]],B[1],_[l])):l<48?(s=P(U,j,W,ie,me,M[c[l]],F[2],C[l]),h=P(te,se,g,n,o,M[D[l]],B[2],_[l])):l<64?(s=$(U,j,W,ie,me,M[c[l]],F[3],C[l]),h=w(te,se,g,n,o,M[D[l]],B[3],_[l])):(s=L(U,j,W,ie,me,M[c[l]],F[4],C[l]),h=A(te,se,g,n,o,M[D[l]],B[4],_[l])),U=me,me=ie,ie=T(W,10),W=j,j=s,te=o,o=n,n=T(g,10),g=se,se=h}var v=this._b+W+n|0;this._b=this._c+ie+o|0,this._c=this._d+me+te|0,this._d=this._e+U+se|0,this._e=this._a+j+g|0,this._a=v},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var M=a.alloc?a.alloc(20):new a(20);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M.writeInt32LE(this._e,16),M},Ce.exports=m},4412:(Ce,ee,E)=>{"use strict";E.d(ee,{t:()=>S});var a=E(1413);class S extends a.B{constructor(O){super(),this._value=O}get value(){return this.getValue()}_subscribe(O){const c=super._subscribe(O);return!c.closed&&O.next(this._value),c}getValue(){const{hasError:O,thrownError:c,_value:D}=this;if(O)throw c;return this._throwIfClosed(),D}next(O){super.next(this._value=O)}}},1985:(Ce,ee,E)=>{"use strict";E.d(ee,{c:()=>_});var a=E(7707),S=E(8359),p=E(3494),O=E(1203),c=E(1026),D=E(8071),C=E(9786);let _=(()=>{class T{constructor(w){w&&(this._subscribe=w)}lift(w){const P=new T;return P.source=this,P.operator=w,P}subscribe(w,P,$){const L=function m(T){return T&&T instanceof a.vU||function B(T){return T&&(0,D.T)(T.next)&&(0,D.T)(T.error)&&(0,D.T)(T.complete)}(T)&&(0,S.Uv)(T)}(w)?w:new a.Ms(w,P,$);return(0,C.Y)(()=>{const{operator:M,source:R}=this;L.add(M?M.call(L,R):R?this._subscribe(L):this._trySubscribe(L))}),L}_trySubscribe(w){try{return this._subscribe(w)}catch(P){w.error(P)}}forEach(w,P){return new(P=F(P))(($,L)=>{const M=new a.Ms({next:R=>{try{w(R)}catch(U){L(U),M.unsubscribe()}},error:L,complete:$});this.subscribe(M)})}_subscribe(w){var P;return null===(P=this.source)||void 0===P?void 0:P.subscribe(w)}[p.s](){return this}pipe(...w){return(0,O.m)(w)(this)}toPromise(w){return new(w=F(w))((P,$)=>{let L;this.subscribe(M=>L=M,M=>$(M),()=>P(L))})}}return T.create=A=>new T(A),T})();function F(T){var A;return null!==(A=null!=T?T:c.$.Promise)&&void 0!==A?A:Promise}},2771:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>p});var a=E(1413),S=E(6129);class p extends a.B{constructor(c=1/0,D=1/0,C=S.U){super(),this._bufferSize=c,this._windowTime=D,this._timestampProvider=C,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=D===1/0,this._bufferSize=Math.max(1,c),this._windowTime=Math.max(1,D)}next(c){const{isStopped:D,_buffer:C,_infiniteTimeWindow:_,_timestampProvider:F,_windowTime:B}=this;D||(C.push(c),!_&&C.push(F.now()+B)),this._trimBuffer(),super.next(c)}_subscribe(c){this._throwIfClosed(),this._trimBuffer();const D=this._innerSubscribe(c),{_infiniteTimeWindow:C,_buffer:_}=this,F=_.slice();for(let B=0;B{"use strict";E.d(ee,{B:()=>C});var a=E(1985),S=E(8359);const O=(0,E(1853).L)(F=>function(){F(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var c=E(7908),D=E(9786);let C=(()=>{class F extends a.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(m){const T=new _(this,this);return T.operator=m,T}_throwIfClosed(){if(this.closed)throw new O}next(m){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const T of this.currentObservers)T.next(m)}})}error(m){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=m;const{observers:T}=this;for(;T.length;)T.shift().error(m)}})}complete(){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:m}=this;for(;m.length;)m.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var m;return(null===(m=this.observers)||void 0===m?void 0:m.length)>0}_trySubscribe(m){return this._throwIfClosed(),super._trySubscribe(m)}_subscribe(m){return this._throwIfClosed(),this._checkFinalizedStatuses(m),this._innerSubscribe(m)}_innerSubscribe(m){const{hasError:T,isStopped:A,observers:w}=this;return T||A?S.Kn:(this.currentObservers=null,w.push(m),new S.yU(()=>{this.currentObservers=null,(0,c.o)(w,m)}))}_checkFinalizedStatuses(m){const{hasError:T,thrownError:A,isStopped:w}=this;T?m.error(A):w&&m.complete()}asObservable(){const m=new a.c;return m.source=this,m}}return F.create=(B,m)=>new _(B,m),F})();class _ extends C{constructor(B,m){super(),this.destination=B,this.source=m}next(B){var m,T;null===(T=null===(m=this.destination)||void 0===m?void 0:m.next)||void 0===T||T.call(m,B)}error(B){var m,T;null===(T=null===(m=this.destination)||void 0===m?void 0:m.error)||void 0===T||T.call(m,B)}complete(){var B,m;null===(m=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===m||m.call(B)}_subscribe(B){var m,T;return null!==(T=null===(m=this.source)||void 0===m?void 0:m.subscribe(B))&&void 0!==T?T:S.Kn}}},7707:(Ce,ee,E)=>{"use strict";E.d(ee,{Ms:()=>$,vU:()=>T});var a=E(8071),S=E(8359),p=E(1026),O=E(5334),c=E(5343);const D=F("C",void 0,void 0);function F(j,W,ie){return{kind:j,value:W,error:ie}}var B=E(9270),m=E(9786);class T extends S.yU{constructor(W){super(),this.isStopped=!1,W?(this.destination=W,(0,S.Uv)(W)&&W.add(this)):this.destination=U}static create(W,ie,me){return new $(W,ie,me)}next(W){this.isStopped?R(function _(j){return F("N",j,void 0)}(W),this):this._next(W)}error(W){this.isStopped?R(function C(j){return F("E",void 0,j)}(W),this):(this.isStopped=!0,this._error(W))}complete(){this.isStopped?R(D,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(W){this.destination.next(W)}_error(W){try{this.destination.error(W)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const A=Function.prototype.bind;function w(j,W){return A.call(j,W)}class P{constructor(W){this.partialObserver=W}next(W){const{partialObserver:ie}=this;if(ie.next)try{ie.next(W)}catch(me){L(me)}}error(W){const{partialObserver:ie}=this;if(ie.error)try{ie.error(W)}catch(me){L(me)}else L(W)}complete(){const{partialObserver:W}=this;if(W.complete)try{W.complete()}catch(ie){L(ie)}}}class $ extends T{constructor(W,ie,me){let te;if(super(),(0,a.T)(W)||!W)te={next:null!=W?W:void 0,error:null!=ie?ie:void 0,complete:null!=me?me:void 0};else{let se;this&&p.$.useDeprecatedNextContext?(se=Object.create(W),se.unsubscribe=()=>this.unsubscribe(),te={next:W.next&&w(W.next,se),error:W.error&&w(W.error,se),complete:W.complete&&w(W.complete,se)}):te=W}this.destination=new P(te)}}function L(j){p.$.useDeprecatedSynchronousErrorHandling?(0,m.l)(j):(0,O.m)(j)}function R(j,W){const{onStoppedNotification:ie}=p.$;ie&&B.f.setTimeout(()=>ie(j,W))}const U={closed:!0,next:c.l,error:function M(j){throw j},complete:c.l}},8359:(Ce,ee,E)=>{"use strict";E.d(ee,{Kn:()=>D,yU:()=>c,Uv:()=>C});var a=E(8071);const p=(0,E(1853).L)(F=>function(m){F(this),this.message=m?`${m.length} errors occurred during unsubscription:\n${m.map((T,A)=>`${A+1}) ${T.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=m});var O=E(7908);class c{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:m}=this;if(m)if(this._parentage=null,Array.isArray(m))for(const w of m)w.remove(this);else m.remove(this);const{initialTeardown:T}=this;if((0,a.T)(T))try{T()}catch(w){B=w instanceof p?w.errors:[w]}const{_finalizers:A}=this;if(A){this._finalizers=null;for(const w of A)try{_(w)}catch(P){B=null!=B?B:[],P instanceof p?B=[...B,...P.errors]:B.push(P)}}if(B)throw new p(B)}}add(B){var m;if(B&&B!==this)if(this.closed)_(B);else{if(B instanceof c){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(m=this._finalizers)&&void 0!==m?m:[]).push(B)}}_hasParent(B){const{_parentage:m}=this;return m===B||Array.isArray(m)&&m.includes(B)}_addParent(B){const{_parentage:m}=this;this._parentage=Array.isArray(m)?(m.push(B),m):m?[m,B]:B}_removeParent(B){const{_parentage:m}=this;m===B?this._parentage=null:Array.isArray(m)&&(0,O.o)(m,B)}remove(B){const{_finalizers:m}=this;m&&(0,O.o)(m,B),B instanceof c&&B._removeParent(this)}}c.EMPTY=(()=>{const F=new c;return F.closed=!0,F})();const D=c.EMPTY;function C(F){return F instanceof c||F&&"closed"in F&&(0,a.T)(F.remove)&&(0,a.T)(F.add)&&(0,a.T)(F.unsubscribe)}function _(F){(0,a.T)(F)?F():F.unsubscribe()}},1026:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>S});var a=E(9350);function S(p,O){const c="object"==typeof O;return new Promise((D,C)=>{let F,_=!1;p.subscribe({next:B=>{F=B,_=!0},error:C,complete:()=>{_?D(F):c?D(O.defaultValue):C(new a.G)}})})}},17:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>D});var a=E(1985),S=E(8359),p=E(9898),O=E(4360),c=E(9974);class D extends a.c{constructor(_,F){super(),this.source=_,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,c.S)(_)&&(this.lift=_.lift)}_subscribe(_){return this.getSubject().subscribe(_)}getSubject(){const _=this._subject;return(!_||_.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:_}=this;this._subject=this._connection=null,null==_||_.unsubscribe()}connect(){let _=this._connection;if(!_){_=this._connection=new S.yU;const F=this.getSubject();_.add(this.source.subscribe((0,O._)(F,void 0,()=>{this._teardown(),F.complete()},B=>{this._teardown(),F.error(B)},()=>this._teardown()))),_.closed&&(this._connection=null,_=S.yU.EMPTY)}return _}refCount(){return(0,p.B)()(this)}}},4572:(Ce,ee,E)=>{"use strict";E.d(ee,{z:()=>B});var a=E(1985),S=E(3073),p=E(6648),O=E(3669),c=E(6450),D=E(9326),C=E(8496),_=E(4360),F=E(5225);function B(...A){const w=(0,D.lI)(A),P=(0,D.ms)(A),{args:$,keys:L}=(0,S.D)(A);if(0===$.length)return(0,p.H)([],w);const M=new a.c(function m(A,w,P=O.D){return $=>{T(w,()=>{const{length:L}=A,M=new Array(L);let R=L,U=L;for(let j=0;j{const W=(0,p.H)(A[j],w);let ie=!1;W.subscribe((0,_._)($,me=>{M[j]=me,ie||(ie=!0,U--),U||$.next(P(M.slice()))},()=>{--R||$.complete()}))},$)},$)}}($,w,L?R=>(0,C.e)(L,R):O.D));return P?M.pipe((0,c.I)(P)):M}function T(A,w,P){A?(0,F.N)(P,A,w):w()}},8793:(Ce,ee,E)=>{"use strict";E.d(ee,{x:()=>c});var a=E(6365),p=E(9326),O=E(6648);function c(...D){return function S(){return(0,a.U)(1)}()((0,O.H)(D,(0,p.lI)(D)))}},9030:(Ce,ee,E)=>{"use strict";E.d(ee,{v:()=>p});var a=E(1985),S=E(8750);function p(O){return new a.c(c=>{(0,S.Tg)(O()).subscribe(c)})}},983:(Ce,ee,E)=>{"use strict";E.d(ee,{w:()=>S});const S=new(E(1985).c)(c=>c.complete())},7468:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>_});var a=E(1985),S=E(3073),p=E(8750),O=E(9326),c=E(4360),D=E(6450),C=E(8496);function _(...F){const B=(0,O.ms)(F),{args:m,keys:T}=(0,S.D)(F),A=new a.c(w=>{const{length:P}=m;if(!P)return void w.complete();const $=new Array(P);let L=P,M=P;for(let R=0;R{U||(U=!0,M--),$[R]=j},()=>L--,void 0,()=>{(!L||!U)&&(M||w.next(T?(0,C.e)(T,$):$),w.complete())}))}});return B?A.pipe((0,D.I)(B)):A}},6648:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>me});var a=E(8750),S=E(5225),p=E(9974),O=E(4360);function c(te,se=0){return(0,p.N)((g,n)=>{g.subscribe((0,O._)(n,o=>(0,S.N)(n,te,()=>n.next(o),se),()=>(0,S.N)(n,te,()=>n.complete(),se),o=>(0,S.N)(n,te,()=>n.error(o),se)))})}function D(te,se=0){return(0,p.N)((g,n)=>{n.add(te.schedule(()=>g.subscribe(n),se))})}var F=E(1985),m=E(4761),T=E(8071);function w(te,se){if(!te)throw new Error("Iterable cannot be null");return new F.c(g=>{(0,S.N)(g,se,()=>{const n=te[Symbol.asyncIterator]();(0,S.N)(g,se,()=>{n.next().then(o=>{o.done?g.complete():g.next(o.value)})},0,!0)})})}var P=E(5055),$=E(9858),L=E(7441),M=E(5397),R=E(7953),U=E(591),j=E(5196);function me(te,se){return se?function ie(te,se){if(null!=te){if((0,P.l)(te))return function C(te,se){return(0,a.Tg)(te).pipe(D(se),c(se))}(te,se);if((0,L.X)(te))return function B(te,se){return new F.c(g=>{let n=0;return se.schedule(function(){n===te.length?g.complete():(g.next(te[n++]),g.closed||this.schedule())})})}(te,se);if((0,$.y)(te))return function _(te,se){return(0,a.Tg)(te).pipe(D(se),c(se))}(te,se);if((0,R.T)(te))return w(te,se);if((0,M.x)(te))return function A(te,se){return new F.c(g=>{let n;return(0,S.N)(g,se,()=>{n=te[m.l](),(0,S.N)(g,se,()=>{let o,l;try{({value:o,done:l}=n.next())}catch(s){return void g.error(s)}l?g.complete():g.next(o)},0,!0)}),()=>(0,T.T)(null==n?void 0:n.return)&&n.return()})}(te,se);if((0,j.U)(te))return function W(te,se){return w((0,j.C)(te),se)}(te,se)}throw(0,U.L)(te)}(te,se):(0,a.Tg)(te)}},3726:(Ce,ee,E)=>{"use strict";E.d(ee,{R:()=>B});var a=E(8750),S=E(1985),p=E(3028),O=E(7441),c=E(8071),D=E(6450);const C=["addListener","removeListener"],_=["addEventListener","removeEventListener"],F=["on","off"];function B(P,$,L,M){if((0,c.T)(L)&&(M=L,L=void 0),M)return B(P,$,L).pipe((0,D.I)(M));const[R,U]=function w(P){return(0,c.T)(P.addEventListener)&&(0,c.T)(P.removeEventListener)}(P)?_.map(j=>W=>P[j]($,W,L)):function T(P){return(0,c.T)(P.addListener)&&(0,c.T)(P.removeListener)}(P)?C.map(m(P,$)):function A(P){return(0,c.T)(P.on)&&(0,c.T)(P.off)}(P)?F.map(m(P,$)):[];if(!R&&(0,O.X)(P))return(0,p.Z)(j=>B(j,$,L))((0,a.Tg)(P));if(!R)throw new TypeError("Invalid event target");return new S.c(j=>{const W=(...ie)=>j.next(1U(W)})}function m(P,$){return L=>M=>P[L]($,M)}},8750:(Ce,ee,E)=>{"use strict";E.d(ee,{Tg:()=>A});var a=E(1635),S=E(7441),p=E(9858),O=E(1985),c=E(5055),D=E(7953),C=E(591),_=E(5397),F=E(5196),B=E(8071),m=E(5334),T=E(3494);function A(j){if(j instanceof O.c)return j;if(null!=j){if((0,c.l)(j))return function w(j){return new O.c(W=>{const ie=j[T.s]();if((0,B.T)(ie.subscribe))return ie.subscribe(W);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(j);if((0,S.X)(j))return function P(j){return new O.c(W=>{for(let ie=0;ie{j.then(ie=>{W.closed||(W.next(ie),W.complete())},ie=>W.error(ie)).then(null,m.m)})}(j);if((0,D.T)(j))return M(j);if((0,_.x)(j))return function L(j){return new O.c(W=>{for(const ie of j)if(W.next(ie),W.closed)return;W.complete()})}(j);if((0,F.U)(j))return function R(j){return M((0,F.C)(j))}(j)}throw(0,C.L)(j)}function M(j){return new O.c(W=>{(function U(j,W){var ie,me,te,se;return(0,a.sH)(this,void 0,void 0,function*(){try{for(ie=(0,a.xN)(j);!(me=yield ie.next()).done;)if(W.next(me.value),W.closed)return}catch(g){te={error:g}}finally{try{me&&!me.done&&(se=ie.return)&&(yield se.call(ie))}finally{if(te)throw te.error}}W.complete()})})(j,W).catch(ie=>W.error(ie))})}},7673:(Ce,ee,E)=>{"use strict";E.d(ee,{of:()=>p});var a=E(9326),S=E(6648);function p(...O){const c=(0,a.lI)(O);return(0,S.H)(O,c)}},8810:(Ce,ee,E)=>{"use strict";E.d(ee,{$:()=>p});var a=E(1985),S=E(8071);function p(O,c){const D=(0,S.T)(O)?O:()=>O,C=_=>_.error(D());return new a.c(c?_=>c.schedule(C,0,_):C)}},4360:(Ce,ee,E)=>{"use strict";E.d(ee,{_:()=>S});var a=E(7707);function S(O,c,D,C,_){return new p(O,c,D,C,_)}class p extends a.vU{constructor(c,D,C,_,F,B){super(c),this.onFinalize=F,this.shouldUnsubscribe=B,this._next=D?function(m){try{D(m)}catch(T){c.error(T)}}:super._next,this._error=_?function(m){try{_(m)}catch(T){c.error(T)}finally{this.unsubscribe()}}:super._error,this._complete=C?function(){try{C()}catch(m){c.error(m)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:D}=this;super.unsubscribe(),!D&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}}},9437:(Ce,ee,E)=>{"use strict";E.d(ee,{W:()=>O});var a=E(8750),S=E(4360),p=E(9974);function O(c){return(0,p.N)((D,C)=>{let B,_=null,F=!1;_=D.subscribe((0,S._)(C,void 0,void 0,m=>{B=(0,a.Tg)(c(m,O(c)(D))),_?(_.unsubscribe(),_=null,B.subscribe(C)):F=!0})),F&&(_.unsubscribe(),_=null,B.subscribe(C))})}},274:(Ce,ee,E)=>{"use strict";E.d(ee,{H:()=>p});var a=E(3028),S=E(8071);function p(O,c){return(0,S.T)(c)?(0,a.Z)(O,c,1):(0,a.Z)(O,1)}},5964:(Ce,ee,E)=>{"use strict";E.d(ee,{p:()=>p});var a=E(9974),S=E(4360);function p(O,c){return(0,a.N)((D,C)=>{let _=0;D.subscribe((0,S._)(C,F=>O.call(c,F,_++)&&C.next(F)))})}},980:(Ce,ee,E)=>{"use strict";E.d(ee,{j:()=>S});var a=E(9974);function S(p){return(0,a.N)((O,c)=>{try{O.subscribe(c)}finally{c.add(p)}})}},6354:(Ce,ee,E)=>{"use strict";E.d(ee,{T:()=>p});var a=E(9974),S=E(4360);function p(O,c){return(0,a.N)((D,C)=>{let _=0;D.subscribe((0,S._)(C,F=>{C.next(O.call(c,F,_++))}))})}},3703:(Ce,ee,E)=>{"use strict";E.d(ee,{u:()=>S});var a=E(6354);function S(p){return(0,a.T)(()=>p)}},6365:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>p});var a=E(3028),S=E(3669);function p(O=1/0){return(0,a.Z)(S.D,O)}},5412:(Ce,ee,E)=>{"use strict";E.d(ee,{h:()=>O});var a=E(8750),S=E(5225),p=E(4360);function O(c,D,C,_,F,B,m,T){const A=[];let w=0,P=0,$=!1;const L=()=>{$&&!A.length&&!w&&D.complete()},M=U=>w<_?R(U):A.push(U),R=U=>{B&&D.next(U),w++;let j=!1;(0,a.Tg)(C(U,P++)).subscribe((0,p._)(D,W=>{null==F||F(W),B?M(W):D.next(W)},()=>{j=!0},void 0,()=>{if(j)try{for(w--;A.length&&w<_;){const W=A.shift();m?(0,S.N)(D,m,()=>R(W)):R(W)}L()}catch(W){D.error(W)}}))};return c.subscribe((0,p._)(D,M,()=>{$=!0,L()})),()=>{null==T||T()}}},3028:(Ce,ee,E)=>{"use strict";E.d(ee,{Z:()=>D});var a=E(6354),S=E(8750),p=E(9974),O=E(5412),c=E(8071);function D(C,_,F=1/0){return(0,c.T)(_)?D((B,m)=>(0,a.T)((T,A)=>_(B,T,m,A))((0,S.Tg)(C(B,m))),F):("number"==typeof _&&(F=_),(0,p.N)((B,m)=>(0,O.h)(B,m,C,F)))}},9898:(Ce,ee,E)=>{"use strict";E.d(ee,{B:()=>p});var a=E(9974),S=E(4360);function p(){return(0,a.N)((O,c)=>{let D=null;O._refCount++;const C=(0,S._)(c,void 0,void 0,void 0,()=>{if(!O||O._refCount<=0||0<--O._refCount)return void(D=null);const _=O._connection,F=D;D=null,_&&(!F||_===F)&&_.unsubscribe(),c.unsubscribe()});O.subscribe(C),C.closed||(D=O.connect())})}},6649:(Ce,ee,E)=>{"use strict";E.d(ee,{S:()=>S});var a=E(4360);function S(p,O,c,D,C){return(_,F)=>{let B=c,m=O,T=0;_.subscribe((0,a._)(F,A=>{const w=T++;m=B?p(m,A,w):(B=!0,A),D&&F.next(m)},C&&(()=>{B&&F.next(m),F.complete()})))}}},5558:(Ce,ee,E)=>{"use strict";E.d(ee,{n:()=>O});var a=E(8750),S=E(9974),p=E(4360);function O(c,D){return(0,S.N)((C,_)=>{let F=null,B=0,m=!1;const T=()=>m&&!F&&_.complete();C.subscribe((0,p._)(_,A=>{null==F||F.unsubscribe();let w=0;const P=B++;(0,a.Tg)(c(A,P)).subscribe(F=(0,p._)(_,$=>_.next(D?D(A,$,P,w++):$),()=>{F=null,T()}))},()=>{m=!0,T()}))})}},6697:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>O});var a=E(983),S=E(9974),p=E(4360);function O(c){return c<=0?()=>a.w:(0,S.N)((D,C)=>{let _=0;D.subscribe((0,p._)(C,F=>{++_<=c&&(C.next(F),c<=_&&C.complete())}))})}},8141:(Ce,ee,E)=>{"use strict";E.d(ee,{M:()=>c});var a=E(8071),S=E(9974),p=E(4360),O=E(3669);function c(D,C,_){const F=(0,a.T)(D)||C||_?{next:D,error:C,complete:_}:D;return F?(0,S.N)((B,m)=>{var T;null===(T=F.subscribe)||void 0===T||T.call(F);let A=!0;B.subscribe((0,p._)(m,w=>{var P;null===(P=F.next)||void 0===P||P.call(F,w),m.next(w)},()=>{var w;A=!1,null===(w=F.complete)||void 0===w||w.call(F),m.complete()},w=>{var P;A=!1,null===(P=F.error)||void 0===P||P.call(F,w),m.error(w)},()=>{var w,P;A&&(null===(w=F.unsubscribe)||void 0===w||w.call(F)),null===(P=F.finalize)||void 0===P||P.call(F)}))}):O.D}},6129:(Ce,ee,E)=>{"use strict";E.d(ee,{U:()=>a});const a={now:()=>(a.delegate||Date).now(),delegate:void 0}},9270:(Ce,ee,E)=>{"use strict";E.d(ee,{f:()=>a});const a={setTimeout(S,p,...O){const{delegate:c}=a;return null!=c&&c.setTimeout?c.setTimeout(S,p,...O):setTimeout(S,p,...O)},clearTimeout(S){const{delegate:p}=a;return((null==p?void 0:p.clearTimeout)||clearTimeout)(S)},delegate:void 0}},4761:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>S});const S=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Ce,ee,E)=>{"use strict";E.d(ee,{s:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Ce,ee,E)=>{"use strict";E.d(ee,{G:()=>S});const S=(0,E(1853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Ce,ee,E)=>{"use strict";E.d(ee,{R0:()=>D,lI:()=>c,ms:()=>O});var a=E(8071),S=E(9470);function p(C){return C[C.length-1]}function O(C){return(0,a.T)(p(C))?C.pop():void 0}function c(C){return(0,S.m)(p(C))?C.pop():void 0}function D(C,_){return"number"==typeof p(C)?C.pop():_}},3073:(Ce,ee,E)=>{"use strict";E.d(ee,{D:()=>c});const{isArray:a}=Array,{getPrototypeOf:S,prototype:p,keys:O}=Object;function c(C){if(1===C.length){const _=C[0];if(a(_))return{args:_,keys:null};if(function D(C){return C&&"object"==typeof C&&S(C)===p}(_)){const F=O(_);return{args:F.map(B=>_[B]),keys:F}}}return{args:C,keys:null}}},7908:(Ce,ee,E)=>{"use strict";function a(S,p){if(S){const O=S.indexOf(p);0<=O&&S.splice(O,1)}}E.d(ee,{o:()=>a})},1853:(Ce,ee,E)=>{"use strict";function a(S){const O=S(c=>{Error.call(c),c.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}E.d(ee,{L:()=>a})},8496:(Ce,ee,E)=>{"use strict";function a(S,p){return S.reduce((O,c,D)=>(O[c]=p[D],O),{})}E.d(ee,{e:()=>a})},9786:(Ce,ee,E)=>{"use strict";E.d(ee,{Y:()=>p,l:()=>O});var a=E(1026);let S=null;function p(c){if(a.$.useDeprecatedSynchronousErrorHandling){const D=!S;if(D&&(S={errorThrown:!1,error:null}),c(),D){const{errorThrown:C,error:_}=S;if(S=null,C)throw _}}else c()}function O(c){a.$.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=c)}},5225:(Ce,ee,E)=>{"use strict";function a(S,p,O,c=0,D=!1){const C=p.schedule(function(){O(),D?S.add(this.schedule(null,c)):this.unsubscribe()},c);if(S.add(C),!D)return C}E.d(ee,{N:()=>a})},3669:(Ce,ee,E)=>{"use strict";function a(S){return S}E.d(ee,{D:()=>a})},7441:(Ce,ee,E)=>{"use strict";E.d(ee,{X:()=>a});const a=S=>S&&"number"==typeof S.length&&"function"!=typeof S},7953:(Ce,ee,E)=>{"use strict";E.d(ee,{T:()=>S});var a=E(8071);function S(p){return Symbol.asyncIterator&&(0,a.T)(null==p?void 0:p[Symbol.asyncIterator])}},8071:(Ce,ee,E)=>{"use strict";function a(S){return"function"==typeof S}E.d(ee,{T:()=>a})},5055:(Ce,ee,E)=>{"use strict";E.d(ee,{l:()=>p});var a=E(3494),S=E(8071);function p(O){return(0,S.T)(O[a.s])}},5397:(Ce,ee,E)=>{"use strict";E.d(ee,{x:()=>p});var a=E(4761),S=E(8071);function p(O){return(0,S.T)(null==O?void 0:O[a.l])}},4402:(Ce,ee,E)=>{"use strict";E.d(ee,{A:()=>p});var a=E(1985),S=E(8071);function p(O){return!!O&&(O instanceof a.c||(0,S.T)(O.lift)&&(0,S.T)(O.subscribe))}},9858:(Ce,ee,E)=>{"use strict";E.d(ee,{y:()=>S});var a=E(8071);function S(p){return(0,a.T)(null==p?void 0:p.then)}},5196:(Ce,ee,E)=>{"use strict";E.d(ee,{C:()=>p,U:()=>O});var a=E(1635),S=E(8071);function p(c){return(0,a.AQ)(this,arguments,function*(){const C=c.getReader();try{for(;;){const{value:_,done:F}=yield(0,a.N3)(C.read());if(F)return yield(0,a.N3)(void 0);yield yield(0,a.N3)(_)}}finally{C.releaseLock()}})}function O(c){return(0,S.T)(null==c?void 0:c.getReader)}},9470:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>S});var a=E(8071);function S(p){return p&&(0,a.T)(p.schedule)}},9974:(Ce,ee,E)=>{"use strict";E.d(ee,{N:()=>p,S:()=>S});var a=E(8071);function S(O){return(0,a.T)(null==O?void 0:O.lift)}function p(O){return c=>{if(S(c))return c.lift(function(D){try{return O(D,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Ce,ee,E)=>{"use strict";E.d(ee,{I:()=>O});var a=E(6354);const{isArray:S}=Array;function O(c){return(0,a.T)(D=>function p(c,D){return S(D)?c(...D):c(D)}(c,D))}},5343:(Ce,ee,E)=>{"use strict";function a(){}E.d(ee,{l:()=>a})},1203:(Ce,ee,E)=>{"use strict";E.d(ee,{F:()=>S,m:()=>p});var a=E(3669);function S(...O){return p(O)}function p(O){return 0===O.length?a.D:1===O.length?O[0]:function(D){return O.reduce((C,_)=>_(C),D)}}},5334:(Ce,ee,E)=>{"use strict";E.d(ee,{m:()=>p});var a=E(1026),S=E(9270);function p(O){S.f.setTimeout(()=>{const{onUnhandledError:c}=a.$;if(!c)throw O;c(O)})}},591:(Ce,ee,E)=>{"use strict";function a(S){return new TypeError(`You provided ${null!==S&&"object"==typeof S?"an invalid object":`'${S}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(ee,{L:()=>a})},7054:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),O.prototype=Object.create(S.prototype),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},463:(Ce,ee,E)=>{var a=E(7054).Buffer;function S(p,O){this._block=a.alloc(p),this._finalSize=O,this._blockSize=p,this._len=0}S.prototype.update=function(p,O){"string"==typeof p&&(p=a.from(p,O=O||"utf8"));for(var c=this._block,D=this._blockSize,C=p.length,_=this._len,F=0;F=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var D=(4294967295&c)>>>0;this._block.writeUInt32BE((c-D)/4294967296,this._blockSize-8),this._block.writeUInt32BE(D,this._blockSize-4)}this._update(this._block);var _=this._hash();return p?_.toString(p):_},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ce.exports=S},5443:(Ce,ee,E)=>{var a=Ce.exports=function(p){p=p.toLowerCase();var O=a[p];if(!O)throw new Error(p+" is not supported (we accept pull requests)");return new O};a.sha=E(8585),a.sha1=E(1270),a.sha224=E(2709),a.sha256=E(2148),a.sha384=E(1856),a.sha512=E(3121)},8585:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(B){return B<<5|B>>>27}function _(B){return B<<30|B>>>2}function F(B,m,T,A){return 0===B?m&T|~m&A:2===B?m&T|m&A|T&A:m^T^A}a(D,S),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(B){for(var m=this._w,T=0|this._a,A=0|this._b,w=0|this._c,P=0|this._d,$=0|this._e,L=0;L<16;++L)m[L]=B.readInt32BE(4*L);for(;L<80;++L)m[L]=m[L-3]^m[L-8]^m[L-14]^m[L-16];for(var M=0;M<80;++M){var R=~~(M/20),U=C(T)+F(R,A,w,P)+$+m[M]+O[R]|0;$=P,P=w,w=_(A),A=T,T=U}this._a=T+this._a|0,this._b=A+this._b|0,this._c=w+this._c|0,this._d=P+this._d|0,this._e=$+this._e|0},D.prototype._hash=function(){var B=p.allocUnsafe(20);return B.writeInt32BE(0|this._a,0),B.writeInt32BE(0|this._b,4),B.writeInt32BE(0|this._c,8),B.writeInt32BE(0|this._d,12),B.writeInt32BE(0|this._e,16),B},Ce.exports=D},1270:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(m){return m<<1|m>>>31}function _(m){return m<<5|m>>>27}function F(m){return m<<30|m>>>2}function B(m,T,A,w){return 0===m?T&A|~T&w:2===m?T&A|T&w|A&w:T^A^w}a(D,S),D.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},D.prototype._update=function(m){for(var T=this._w,A=0|this._a,w=0|this._b,P=0|this._c,$=0|this._d,L=0|this._e,M=0;M<16;++M)T[M]=m.readInt32BE(4*M);for(;M<80;++M)T[M]=C(T[M-3]^T[M-8]^T[M-14]^T[M-16]);for(var R=0;R<80;++R){var U=~~(R/20),j=_(A)+B(U,w,P,$)+L+T[R]+O[U]|0;L=$,$=P,P=F(w),w=A,A=j}this._a=A+this._a|0,this._b=w+this._b|0,this._c=P+this._c|0,this._d=$+this._d|0,this._e=L+this._e|0},D.prototype._hash=function(){var m=p.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},Ce.exports=D},2709:(Ce,ee,E)=>{var a=E(1993),S=E(2148),p=E(463),O=E(7054).Buffer,c=new Array(64);function D(){this.init(),this._w=c,p.call(this,64,56)}a(D,S),D.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},D.prototype._hash=function(){var C=O.allocUnsafe(28);return C.writeInt32BE(this._a,0),C.writeInt32BE(this._b,4),C.writeInt32BE(this._c,8),C.writeInt32BE(this._d,12),C.writeInt32BE(this._e,16),C.writeInt32BE(this._f,20),C.writeInt32BE(this._g,24),C},Ce.exports=D},2148:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function D(){this.init(),this._w=c,S.call(this,64,56)}function C(A,w,P){return P^A&(w^P)}function _(A,w,P){return A&w|P&(A|w)}function F(A){return(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10)}function B(A){return(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7)}function m(A){return(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3}function T(A){return(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10}a(D,S),D.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},D.prototype._update=function(A){for(var w=this._w,P=0|this._a,$=0|this._b,L=0|this._c,M=0|this._d,R=0|this._e,U=0|this._f,j=0|this._g,W=0|this._h,ie=0;ie<16;++ie)w[ie]=A.readInt32BE(4*ie);for(;ie<64;++ie)w[ie]=T(w[ie-2])+w[ie-7]+m(w[ie-15])+w[ie-16]|0;for(var me=0;me<64;++me){var te=W+B(R)+C(R,U,j)+O[me]+w[me]|0,se=F(P)+_(P,$,L)|0;W=j,j=U,U=R,R=M+te|0,M=L,L=$,$=P,P=te+se|0}this._a=P+this._a|0,this._b=$+this._b|0,this._c=L+this._c|0,this._d=M+this._d|0,this._e=R+this._e|0,this._f=U+this._f|0,this._g=j+this._g|0,this._h=W+this._h|0},D.prototype._hash=function(){var A=p.allocUnsafe(32);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A.writeInt32BE(this._h,28),A},Ce.exports=D},1856:(Ce,ee,E)=>{var a=E(1993),S=E(3121),p=E(463),O=E(7054).Buffer,c=new Array(160);function D(){this.init(),this._w=c,p.call(this,128,112)}a(D,S),D.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},D.prototype._hash=function(){var C=O.allocUnsafe(48);function _(F,B,m){C.writeInt32BE(F,m),C.writeInt32BE(B,m+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),C},Ce.exports=D},3121:(Ce,ee,E)=>{var a=E(1993),S=E(463),p=E(7054).Buffer,O=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function D(){this.init(),this._w=c,S.call(this,128,112)}function C($,L,M){return M^$&(L^M)}function _($,L,M){return $&L|M&($|L)}function F($,L){return($>>>28|L<<4)^(L>>>2|$<<30)^(L>>>7|$<<25)}function B($,L){return($>>>14|L<<18)^($>>>18|L<<14)^(L>>>9|$<<23)}function m($,L){return($>>>1|L<<31)^($>>>8|L<<24)^$>>>7}function T($,L){return($>>>1|L<<31)^($>>>8|L<<24)^($>>>7|L<<25)}function A($,L){return($>>>19|L<<13)^(L>>>29|$<<3)^$>>>6}function w($,L){return($>>>19|L<<13)^(L>>>29|$<<3)^($>>>6|L<<26)}function P($,L){return $>>>0>>0?1:0}a(D,S),D.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},D.prototype._update=function($){for(var L=this._w,M=0|this._ah,R=0|this._bh,U=0|this._ch,j=0|this._dh,W=0|this._eh,ie=0|this._fh,me=0|this._gh,te=0|this._hh,se=0|this._al,g=0|this._bl,n=0|this._cl,o=0|this._dl,l=0|this._el,s=0|this._fl,h=0|this._gl,v=0|this._hl,y=0;y<32;y+=2)L[y]=$.readInt32BE(4*y),L[y+1]=$.readInt32BE(4*y+4);for(;y<160;y+=2){var d=L[y-30],r=L[y-30+1],f=m(d,r),k=T(r,d),I=A(d=L[y-4],r=L[y-4+1]),V=w(r,d),ve=L[y-32],De=L[y-32+1],Q=k+L[y-14+1]|0,ae=f+L[y-14]+P(Q,k)|0;ae=(ae=ae+I+P(Q=Q+V|0,V)|0)+ve+P(Q=Q+De|0,De)|0,L[y]=ae,L[y+1]=Q}for(var tt=0;tt<160;tt+=2){ae=L[tt],Q=L[tt+1];var ke=_(M,R,U),pe=_(se,g,n),Ie=F(M,se),_e=F(se,M),re=B(W,l),ne=B(l,W),G=O[tt],ge=O[tt+1],xt=C(W,ie,me),Qe=C(l,s,h),rt=v+ne|0,rn=te+re+P(rt,v)|0;rn=(rn=(rn=rn+xt+P(rt=rt+Qe|0,Qe)|0)+G+P(rt=rt+ge|0,ge)|0)+ae+P(rt=rt+Q|0,Q)|0;var mt=_e+pe|0,ft=Ie+ke+P(mt,_e)|0;te=me,v=h,me=ie,h=s,ie=W,s=l,W=j+rn+P(l=o+rt|0,o)|0,j=U,o=n,U=R,n=g,R=M,g=se,M=rn+ft+P(se=rt+mt|0,rt)|0}this._al=this._al+se|0,this._bl=this._bl+g|0,this._cl=this._cl+n|0,this._dl=this._dl+o|0,this._el=this._el+l|0,this._fl=this._fl+s|0,this._gl=this._gl+h|0,this._hl=this._hl+v|0,this._ah=this._ah+M+P(this._al,se)|0,this._bh=this._bh+R+P(this._bl,g)|0,this._ch=this._ch+U+P(this._cl,n)|0,this._dh=this._dh+j+P(this._dl,o)|0,this._eh=this._eh+W+P(this._el,l)|0,this._fh=this._fh+ie+P(this._fl,s)|0,this._gh=this._gh+me+P(this._gl,h)|0,this._hh=this._hh+te+P(this._hl,v)|0},D.prototype._hash=function(){var $=p.allocUnsafe(64);function L(M,R,U){$.writeInt32BE(M,U),$.writeInt32BE(R,U+4)}return L(this._ah,this._al,0),L(this._bh,this._bl,8),L(this._ch,this._cl,16),L(this._dh,this._dl,24),L(this._eh,this._el,32),L(this._fh,this._fl,40),L(this._gh,this._gl,48),L(this._hh,this._hl,56),$},Ce.exports=D},7045:(Ce,ee,E)=>{Ce.exports=p;var a=E(4356).EventEmitter;function p(){a.call(this)}E(1993)(p,a),p.Readable=E(1092),p.Writable=E(5492),p.Duplex=E(1030),p.Transform=E(3410),p.PassThrough=E(3824),p.finished=E(7854),p.pipeline=E(6846),p.Stream=p,p.prototype.pipe=function(O,c){var D=this;function C(w){O.writable&&!1===O.write(w)&&D.pause&&D.pause()}function _(){D.readable&&D.resume&&D.resume()}D.on("data",C),O.on("drain",_),!O._isStdio&&(!c||!1!==c.end)&&(D.on("end",B),D.on("close",m));var F=!1;function B(){F||(F=!0,O.end())}function m(){F||(F=!0,"function"==typeof O.destroy&&O.destroy())}function T(w){if(A(),0===a.listenerCount(this,"error"))throw w}function A(){D.removeListener("data",C),O.removeListener("drain",_),D.removeListener("end",B),D.removeListener("close",m),D.removeListener("error",T),O.removeListener("error",T),D.removeListener("end",A),D.removeListener("close",A),O.removeListener("close",A)}return D.on("error",T),O.on("error",T),D.on("end",A),D.on("close",A),O.on("close",A),O.emit("pipe",D),O}},8083:Ce=>{"use strict";var E={};function a(D,C,_){_||(_=Error);var B=function(m){function T(A,w,P){return m.call(this,function F(m,T,A){return"string"==typeof C?C:C(m,T,A)}(A,w,P))||this}return function ee(D,C){D.prototype=Object.create(C.prototype),D.prototype.constructor=D,D.__proto__=C}(T,m),T}(_);B.prototype.name=_.name,B.prototype.code=D,E[D]=B}function S(D,C){if(Array.isArray(D)){var _=D.length;return D=D.map(function(F){return String(F)}),_>2?"one of ".concat(C," ").concat(D.slice(0,_-1).join(", "),", or ")+D[_-1]:2===_?"one of ".concat(C," ").concat(D[0]," or ").concat(D[1]):"of ".concat(C," ").concat(D[0])}return"of ".concat(C," ").concat(String(D))}a("ERR_INVALID_OPT_VALUE",function(D,C){return'The value "'+C+'" is invalid for option "'+D+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(D,C,_){var F,B;if("string"==typeof C&&function p(D,C,_){return D.substr(!_||_<0?0:+_,C.length)===C}(C,"not ")?(F="must not be",C=C.replace(/^not /,"")):F="must be",function O(D,C,_){return(void 0===_||_>D.length)&&(_=D.length),D.substring(_-C.length,_)===C}(D," argument"))B="The ".concat(D," ").concat(F," ").concat(S(C,"type"));else{var m=function c(D,C,_){return"number"!=typeof _&&(_=0),!(_+C.length>D.length)&&-1!==D.indexOf(C,_)}(D,".")?"property":"argument";B='The "'.concat(D,'" ').concat(m," ").concat(F," ").concat(S(C,"type"))}return B+". Received type ".concat(typeof _)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(D){return"The "+D+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(D){return"Cannot call "+D+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(D){return"Unknown encoding: "+D},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ce.exports.F=E},1030:(Ce,ee,E)=>{"use strict";var a=Object.keys||function(B){var m=[];for(var T in B)m.push(T);return m};Ce.exports=C;var S=E(1092),p=E(5492);E(1993)(C,S);for(var O=a(p.prototype),c=0;c{"use strict";Ce.exports=S;var a=E(3410);function S(p){if(!(this instanceof S))return new S(p);a.call(this,p)}E(1993)(S,a),S.prototype._transform=function(p,O,c){c(null,p)}},1092:(Ce,ee,E)=>{"use strict";var a;Ce.exports=g,g.ReadableState=se,E(4356);var B,p=function(Ie,_e){return Ie.listeners(_e).length},O=E(2601),c=E(3838).Buffer,D=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},F=E(7199);B=F&&F.debuglog?F.debuglog("stream"):function(){};var U,j,W,m=E(7606),T=E(8152),w=E(2827).getHighWaterMark,P=E(8083).F,$=P.ERR_INVALID_ARG_TYPE,L=P.ERR_STREAM_PUSH_AFTER_EOF,M=P.ERR_METHOD_NOT_IMPLEMENTED,R=P.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;E(1993)(g,O);var ie=T.errorOrDestroy,me=["error","close","destroy","pause","resume"];function se(pe,Ie,_e){a=a||E(1030),"boolean"!=typeof _e&&(_e=Ie instanceof a),this.objectMode=!!(pe=pe||{}).objectMode,_e&&(this.objectMode=this.objectMode||!!pe.readableObjectMode),this.highWaterMark=w(this,pe,"readableHighWaterMark",_e),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==pe.emitClose,this.autoDestroy=!!pe.autoDestroy,this.destroyed=!1,this.defaultEncoding=pe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,pe.encoding&&(U||(U=E(8454).I),this.decoder=new U(pe.encoding),this.encoding=pe.encoding)}function g(pe){if(a=a||E(1030),!(this instanceof g))return new g(pe);this._readableState=new se(pe,this,this instanceof a),this.readable=!0,pe&&("function"==typeof pe.read&&(this._read=pe.read),"function"==typeof pe.destroy&&(this._destroy=pe.destroy)),O.call(this)}function n(pe,Ie,_e,re,ne){B("readableAddChunk",Ie);var ge,G=pe._readableState;if(null===Ie)G.reading=!1,function y(pe,Ie){if(B("onEofChunk"),!Ie.ended){if(Ie.decoder){var _e=Ie.decoder.end();_e&&_e.length&&(Ie.buffer.push(_e),Ie.length+=Ie.objectMode?1:_e.length)}Ie.ended=!0,Ie.sync?d(pe):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,r(pe)))}}(pe,G);else if(ne||(ge=function l(pe,Ie){var _e;return!function _(pe){return c.isBuffer(pe)||pe instanceof D}(Ie)&&"string"!=typeof Ie&&void 0!==Ie&&!pe.objectMode&&(_e=new $("chunk",["string","Buffer","Uint8Array"],Ie)),_e}(G,Ie)),ge)ie(pe,ge);else if(G.objectMode||Ie&&Ie.length>0)if("string"!=typeof Ie&&!G.objectMode&&Object.getPrototypeOf(Ie)!==c.prototype&&(Ie=function C(pe){return c.from(pe)}(Ie)),re)G.endEmitted?ie(pe,new R):o(pe,G,Ie,!0);else if(G.ended)ie(pe,new L);else{if(G.destroyed)return!1;G.reading=!1,G.decoder&&!_e?(Ie=G.decoder.write(Ie),G.objectMode||0!==Ie.length?o(pe,G,Ie,!1):f(pe,G)):o(pe,G,Ie,!1)}else re||(G.reading=!1,f(pe,G));return!G.ended&&(G.lengthIe.highWaterMark&&(Ie.highWaterMark=function h(pe){return pe>=s?pe=s:(pe--,pe|=pe>>>1,pe|=pe>>>2,pe|=pe>>>4,pe|=pe>>>8,pe|=pe>>>16,pe++),pe}(pe)),pe<=Ie.length?pe:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}function d(pe){var Ie=pe._readableState;B("emitReadable",Ie.needReadable,Ie.emittedReadable),Ie.needReadable=!1,Ie.emittedReadable||(B("emitReadable",Ie.flowing),Ie.emittedReadable=!0,process.nextTick(r,pe))}function r(pe){var Ie=pe._readableState;B("emitReadable_",Ie.destroyed,Ie.length,Ie.ended),!Ie.destroyed&&(Ie.length||Ie.ended)&&(pe.emit("readable"),Ie.emittedReadable=!1),Ie.needReadable=!Ie.flowing&&!Ie.ended&&Ie.length<=Ie.highWaterMark,De(pe)}function f(pe,Ie){Ie.readingMore||(Ie.readingMore=!0,process.nextTick(k,pe,Ie))}function k(pe,Ie){for(;!Ie.reading&&!Ie.ended&&(Ie.length0,Ie.resumeScheduled&&!Ie.paused?Ie.flowing=!0:pe.listenerCount("data")>0&&pe.resume()}function J(pe){B("readable nexttick read 0"),pe.read(0)}function ve(pe,Ie){B("resume",Ie.reading),Ie.reading||pe.read(0),Ie.resumeScheduled=!1,pe.emit("resume"),De(pe),Ie.flowing&&!Ie.reading&&pe.read(0)}function De(pe){var Ie=pe._readableState;for(B("flow",Ie.flowing);Ie.flowing&&null!==pe.read(););}function Q(pe,Ie){return 0===Ie.length?null:(Ie.objectMode?_e=Ie.buffer.shift():!pe||pe>=Ie.length?(_e=Ie.decoder?Ie.buffer.join(""):1===Ie.buffer.length?Ie.buffer.first():Ie.buffer.concat(Ie.length),Ie.buffer.clear()):_e=Ie.buffer.consume(pe,Ie.decoder),_e);var _e}function ae(pe){var Ie=pe._readableState;B("endReadable",Ie.endEmitted),Ie.endEmitted||(Ie.ended=!0,process.nextTick(tt,Ie,pe))}function tt(pe,Ie){if(B("endReadableNT",pe.endEmitted,pe.length),!pe.endEmitted&&0===pe.length&&(pe.endEmitted=!0,Ie.readable=!1,Ie.emit("end"),pe.autoDestroy)){var _e=Ie._writableState;(!_e||_e.autoDestroy&&_e.finished)&&Ie.destroy()}}function ke(pe,Ie){for(var _e=0,re=pe.length;_e=Ie.highWaterMark:Ie.length>0)||Ie.ended))return B("read: emitReadable",Ie.length,Ie.ended),0===Ie.length&&Ie.ended?ae(this):d(this),null;if(0===(pe=v(pe,Ie))&&Ie.ended)return 0===Ie.length&&ae(this),null;var ne,re=Ie.needReadable;return B("need readable",re),(0===Ie.length||Ie.length-pe0?Q(pe,Ie):null)?(Ie.needReadable=Ie.length<=Ie.highWaterMark,pe=0):(Ie.length-=pe,Ie.awaitDrain=0),0===Ie.length&&(Ie.ended||(Ie.needReadable=!0),_e!==pe&&Ie.ended&&ae(this)),null!==ne&&this.emit("data",ne),ne},g.prototype._read=function(pe){ie(this,new M("_read()"))},g.prototype.pipe=function(pe,Ie){var _e=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=pe;break;case 1:re.pipes=[re.pipes,pe];break;default:re.pipes.push(pe)}re.pipesCount+=1,B("pipe count=%d opts=%j",re.pipesCount,Ie);var G=Ie&&!1===Ie.end||pe===process.stdout||pe===process.stderr?It:xt;function xt(){B("onend"),pe.end()}re.endEmitted?process.nextTick(G):_e.once("end",G),pe.on("unpipe",function ge(Cn,St){B("onunpipe"),Cn===_e&&St&&!1===St.hasUnpiped&&(St.hasUnpiped=!0,function rn(){B("cleanup"),pe.removeListener("close",un),pe.removeListener("finish",At),pe.removeListener("drain",Qe),pe.removeListener("error",ft),pe.removeListener("unpipe",ge),_e.removeListener("end",xt),_e.removeListener("end",It),_e.removeListener("data",mt),rt=!0,re.awaitDrain&&(!pe._writableState||pe._writableState.needDrain)&&Qe()}())});var Qe=function I(pe){return function(){var _e=pe._readableState;B("pipeOnDrain",_e.awaitDrain),_e.awaitDrain&&_e.awaitDrain--,0===_e.awaitDrain&&p(pe,"data")&&(_e.flowing=!0,De(pe))}}(_e);pe.on("drain",Qe);var rt=!1;function mt(Cn){B("ondata");var St=pe.write(Cn);B("dest.write",St),!1===St&&((1===re.pipesCount&&re.pipes===pe||re.pipesCount>1&&-1!==ke(re.pipes,pe))&&!rt&&(B("false write response, pause",re.awaitDrain),re.awaitDrain++),_e.pause())}function ft(Cn){B("onerror",Cn),It(),pe.removeListener("error",ft),0===p(pe,"error")&&ie(pe,Cn)}function un(){pe.removeListener("finish",At),It()}function At(){B("onfinish"),pe.removeListener("close",un),It()}function It(){B("unpipe"),_e.unpipe(pe)}return _e.on("data",mt),function te(pe,Ie,_e){if("function"==typeof pe.prependListener)return pe.prependListener(Ie,_e);pe._events&&pe._events[Ie]?Array.isArray(pe._events[Ie])?pe._events[Ie].unshift(_e):pe._events[Ie]=[_e,pe._events[Ie]]:pe.on(Ie,_e)}(pe,"error",ft),pe.once("close",un),pe.once("finish",At),pe.emit("pipe",_e),re.flowing||(B("pipe resume"),_e.resume()),pe},g.prototype.unpipe=function(pe){var Ie=this._readableState,_e={hasUnpiped:!1};if(0===Ie.pipesCount)return this;if(1===Ie.pipesCount)return pe&&pe!==Ie.pipes||(pe||(pe=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,pe&&pe.emit("unpipe",this,_e)),this;if(!pe){var re=Ie.pipes,ne=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var G=0;G0,!1!==re.flowing&&this.resume()):"readable"===pe&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,B("on readable",re.length,re.reading),re.length?d(this):re.reading||process.nextTick(J,this)),_e},g.prototype.removeListener=function(pe,Ie){var _e=O.prototype.removeListener.call(this,pe,Ie);return"readable"===pe&&process.nextTick(V,this),_e},g.prototype.removeAllListeners=function(pe){var Ie=O.prototype.removeAllListeners.apply(this,arguments);return("readable"===pe||void 0===pe)&&process.nextTick(V,this),Ie},g.prototype.resume=function(){var pe=this._readableState;return pe.flowing||(B("resume"),pe.flowing=!pe.readableListening,function oe(pe,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,process.nextTick(ve,pe,Ie))}(this,pe)),pe.paused=!1,this},g.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},g.prototype.wrap=function(pe){var Ie=this,_e=this._readableState,re=!1;for(var ne in pe.on("end",function(){if(B("wrapped end"),_e.decoder&&!_e.ended){var ge=_e.decoder.end();ge&&ge.length&&Ie.push(ge)}Ie.push(null)}),pe.on("data",function(ge){B("wrapped data"),_e.decoder&&(ge=_e.decoder.write(ge)),_e.objectMode&&null==ge||!(_e.objectMode||ge&&ge.length)||Ie.push(ge)||(re=!0,pe.pause())}),pe)void 0===this[ne]&&"function"==typeof pe[ne]&&(this[ne]=function(xt){return function(){return pe[xt].apply(pe,arguments)}}(ne));for(var G=0;G{"use strict";Ce.exports=_;var a=E(8083).F,S=a.ERR_METHOD_NOT_IMPLEMENTED,p=a.ERR_MULTIPLE_CALLBACK,O=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=a.ERR_TRANSFORM_WITH_LENGTH_0,D=E(1030);function C(m,T){var A=this._transformState;A.transforming=!1;var w=A.writecb;if(null===w)return this.emit("error",new p);A.writechunk=null,A.writecb=null,null!=T&&this.push(T),w(m);var P=this._readableState;P.reading=!1,(P.needReadable||P.length{"use strict";function S(De){var Q=this;this.next=null,this.entry=null,this.finish=function(){!function ve(De,Q,ae){var tt=De.entry;for(De.entry=null;tt;){var ke=tt.callback;Q.pendingcb--,ke(ae),tt=tt.next}Q.corkedRequestsFree.next=De}(Q,De)}}var p;Ce.exports=se,se.WritableState=me;var te,O={deprecate:E(3398)},c=E(2601),D=E(3838).Buffer,C=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},B=E(8152),T=E(2827).getHighWaterMark,A=E(8083).F,w=A.ERR_INVALID_ARG_TYPE,P=A.ERR_METHOD_NOT_IMPLEMENTED,$=A.ERR_MULTIPLE_CALLBACK,L=A.ERR_STREAM_CANNOT_PIPE,M=A.ERR_STREAM_DESTROYED,R=A.ERR_STREAM_NULL_VALUES,U=A.ERR_STREAM_WRITE_AFTER_END,j=A.ERR_UNKNOWN_ENCODING,W=B.errorOrDestroy;function ie(){}function me(De,Q,ae){p=p||E(1030),"boolean"!=typeof ae&&(ae=Q instanceof p),this.objectMode=!!(De=De||{}).objectMode,ae&&(this.objectMode=this.objectMode||!!De.writableObjectMode),this.highWaterMark=T(this,De,"writableHighWaterMark",ae),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===De.decodeStrings),this.defaultEncoding=De.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){!function y(De,Q){var ae=De._writableState,tt=ae.sync,ke=ae.writecb;if("function"!=typeof ke)throw new $;if(function v(De){De.writing=!1,De.writecb=null,De.length-=De.writelen,De.writelen=0}(ae),Q)!function h(De,Q,ae,tt,ke){--Q.pendingcb,ae?(process.nextTick(ke,tt),process.nextTick(J,De,Q),De._writableState.errorEmitted=!0,W(De,tt)):(ke(tt),De._writableState.errorEmitted=!0,W(De,tt),J(De,Q))}(De,ae,tt,Q,ke);else{var pe=k(ae)||De.destroyed;!pe&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&f(De,ae),tt?process.nextTick(d,De,ae,pe,ke):d(De,ae,pe,ke)}}(Q,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==De.emitClose,this.autoDestroy=!!De.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new S(this)}function se(De){var Q=this instanceof(p=p||E(1030));if(!Q&&!te.call(se,this))return new se(De);this._writableState=new me(De,this,Q),this.writable=!0,De&&("function"==typeof De.write&&(this._write=De.write),"function"==typeof De.writev&&(this._writev=De.writev),"function"==typeof De.destroy&&(this._destroy=De.destroy),"function"==typeof De.final&&(this._final=De.final)),c.call(this)}function s(De,Q,ae,tt,ke,pe,Ie){Q.writelen=tt,Q.writecb=Ie,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new M("write")):ae?De._writev(ke,Q.onwrite):De._write(ke,pe,Q.onwrite),Q.sync=!1}function d(De,Q,ae,tt){ae||function r(De,Q){0===Q.length&&Q.needDrain&&(Q.needDrain=!1,De.emit("drain"))}(De,Q),Q.pendingcb--,tt(),J(De,Q)}function f(De,Q){Q.bufferProcessing=!0;var ae=Q.bufferedRequest;if(De._writev&&ae&&ae.next){var ke=new Array(Q.bufferedRequestCount),pe=Q.corkedRequestsFree;pe.entry=ae;for(var Ie=0,_e=!0;ae;)ke[Ie]=ae,ae.isBuf||(_e=!1),ae=ae.next,Ie+=1;ke.allBuffers=_e,s(De,Q,!0,Q.length,ke,"",pe.finish),Q.pendingcb++,Q.lastBufferedRequest=null,pe.next?(Q.corkedRequestsFree=pe.next,pe.next=null):Q.corkedRequestsFree=new S(Q),Q.bufferedRequestCount=0}else{for(;ae;){var re=ae.chunk;if(s(De,Q,!1,Q.objectMode?1:re.length,re,ae.encoding,ae.callback),ae=ae.next,Q.bufferedRequestCount--,Q.writing)break}null===ae&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=ae,Q.bufferProcessing=!1}function k(De){return De.ending&&0===De.length&&null===De.bufferedRequest&&!De.finished&&!De.writing}function I(De,Q){De._final(function(ae){Q.pendingcb--,ae&&W(De,ae),Q.prefinished=!0,De.emit("prefinish"),J(De,Q)})}function J(De,Q){var ae=k(Q);if(ae&&(function V(De,Q){!Q.prefinished&&!Q.finalCalled&&("function"!=typeof De._final||Q.destroyed?(Q.prefinished=!0,De.emit("prefinish")):(Q.pendingcb++,Q.finalCalled=!0,process.nextTick(I,De,Q)))}(De,Q),0===Q.pendingcb&&(Q.finished=!0,De.emit("finish"),Q.autoDestroy))){var tt=De._readableState;(!tt||tt.autoDestroy&&tt.endEmitted)&&De.destroy()}return ae}E(1993)(se,c),me.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,ae=[];Q;)ae.push(Q),Q=Q.next;return ae},function(){try{Object.defineProperty(me.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(te=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(Q){return!!te.call(this,Q)||this===se&&Q&&Q._writableState instanceof me}})):te=function(Q){return Q instanceof this},se.prototype.pipe=function(){W(this,new L)},se.prototype.write=function(De,Q,ae){var tt=this._writableState,ke=!1,pe=!tt.objectMode&&function F(De){return D.isBuffer(De)||De instanceof C}(De);return pe&&!D.isBuffer(De)&&(De=function _(De){return D.from(De)}(De)),"function"==typeof Q&&(ae=Q,Q=null),pe?Q="buffer":Q||(Q=tt.defaultEncoding),"function"!=typeof ae&&(ae=ie),tt.ending?function g(De,Q){var ae=new U;W(De,ae),process.nextTick(Q,ae)}(this,ae):(pe||function n(De,Q,ae,tt){var ke;return null===ae?ke=new R:"string"!=typeof ae&&!Q.objectMode&&(ke=new w("chunk",["string","Buffer"],ae)),!ke||(W(De,ke),process.nextTick(tt,ke),!1)}(this,tt,De,ae))&&(tt.pendingcb++,ke=function l(De,Q,ae,tt,ke,pe){if(!ae){var Ie=function o(De,Q,ae){return!De.objectMode&&!1!==De.decodeStrings&&"string"==typeof Q&&(Q=D.from(Q,ae)),Q}(Q,tt,ke);tt!==Ie&&(ae=!0,ke="buffer",tt=Ie)}var _e=Q.objectMode?1:tt.length;Q.length+=_e;var re=Q.length-1))throw new j(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),se.prototype._write=function(De,Q,ae){ae(new P("_write()"))},se.prototype._writev=null,se.prototype.end=function(De,Q,ae){var tt=this._writableState;return"function"==typeof De?(ae=De,De=null,Q=null):"function"==typeof Q&&(ae=Q,Q=null),null!=De&&this.write(De,Q),tt.corked&&(tt.corked=1,this.uncork()),tt.ending||function oe(De,Q,ae){Q.ending=!0,J(De,Q),ae&&(Q.finished?process.nextTick(ae):De.once("finish",ae)),Q.ended=!0,De.writable=!1}(this,tt,ae),this},Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),se.prototype.destroy=B.destroy,se.prototype._undestroy=B.undestroy,se.prototype._destroy=function(De,Q){Q(De)}},2683:(Ce,ee,E)=>{"use strict";var a;function S(U,j,W){return j=function p(U){var j=function O(U,j){if("object"!=typeof U||null===U)return U;var W=U[Symbol.toPrimitive];if(void 0!==W){var ie=W.call(U,j||"default");if("object"!=typeof ie)return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===j?String:Number)(U)}(U,"string");return"symbol"==typeof j?j:String(j)}(j),j in U?Object.defineProperty(U,j,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[j]=W,U}var c=E(7854),D=Symbol("lastResolve"),C=Symbol("lastReject"),_=Symbol("error"),F=Symbol("ended"),B=Symbol("lastPromise"),m=Symbol("handlePromise"),T=Symbol("stream");function A(U,j){return{value:U,done:j}}function w(U){var j=U[D];if(null!==j){var W=U[T].read();null!==W&&(U[B]=null,U[D]=null,U[C]=null,j(A(W,!1)))}}function P(U){process.nextTick(w,U)}var L=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((S(a={get stream(){return this[T]},next:function(){var j=this,W=this[_];if(null!==W)return Promise.reject(W);if(this[F])return Promise.resolve(A(void 0,!0));if(this[T].destroyed)return new Promise(function(se,g){process.nextTick(function(){j[_]?g(j[_]):se(A(void 0,!0))})});var me,ie=this[B];if(ie)me=new Promise(function $(U,j){return function(W,ie){U.then(function(){j[F]?W(A(void 0,!0)):j[m](W,ie)},ie)}}(ie,this));else{var te=this[T].read();if(null!==te)return Promise.resolve(A(te,!1));me=new Promise(this[m])}return this[B]=me,me}},Symbol.asyncIterator,function(){return this}),S(a,"return",function(){var j=this;return new Promise(function(W,ie){j[T].destroy(null,function(me){me?ie(me):W(A(void 0,!0))})})}),a),L);Ce.exports=function(j){var W,ie=Object.create(M,(S(W={},T,{value:j,writable:!0}),S(W,D,{value:null,writable:!0}),S(W,C,{value:null,writable:!0}),S(W,_,{value:null,writable:!0}),S(W,F,{value:j._readableState.endEmitted,writable:!0}),S(W,m,{value:function(te,se){var g=ie[T].read();g?(ie[B]=null,ie[D]=null,ie[C]=null,te(A(g,!1))):(ie[D]=te,ie[C]=se)},writable:!0}),W));return ie[B]=null,c(j,function(me){if(me&&"ERR_STREAM_PREMATURE_CLOSE"!==me.code){var te=ie[C];return null!==te&&(ie[B]=null,ie[D]=null,ie[C]=null,te(me)),void(ie[_]=me)}var se=ie[D];null!==se&&(ie[B]=null,ie[D]=null,ie[C]=null,se(A(void 0,!0))),ie[F]=!0}),j.on("readable",P.bind(null,ie)),ie}},7606:(Ce,ee,E)=>{"use strict";function a(P,$){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(P);$&&(M=M.filter(function(R){return Object.getOwnPropertyDescriptor(P,R).enumerable})),L.push.apply(L,M)}return L}function S(P){for(var $=1;$0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(L){var M={data:L,next:this.head};0===this.length&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(0!==this.length){var L=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(0===this.length)return"";for(var M=this.head,R=""+M.data;M=M.next;)R+=L+M.data;return R}},{key:"concat",value:function(L){if(0===this.length)return B.alloc(0);for(var M=B.allocUnsafe(L>>>0),R=this.head,U=0;R;)w(R.data,M,U),U+=R.data.length,R=R.next;return M}},{key:"consume",value:function(L,M){var R;return Lj.length?j.length:L;if(U+=W===j.length?j:j.slice(0,L),0==(L-=W)){W===j.length?(++R,this.head=M.next?M.next:this.tail=null):(this.head=M,M.data=j.slice(W));break}++R}return this.length-=R,U}},{key:"_getBuffer",value:function(L){var M=B.allocUnsafe(L),R=this.head,U=1;for(R.data.copy(M),L-=R.data.length;R=R.next;){var j=R.data,W=L>j.length?j.length:L;if(j.copy(M,M.length-L,0,W),0==(L-=W)){W===j.length?(++U,this.head=R.next?R.next:this.tail=null):(this.head=R,R.data=j.slice(W));break}++U}return this.length-=U,M}},{key:A,value:function(L,M){return T(this,S(S({},M),{},{depth:0,customInspect:!1}))}}]),P}()},8152:Ce=>{"use strict";function E(c,D){p(c,D),a(c)}function a(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function p(c,D){c.emit("error",D)}Ce.exports={destroy:function ee(c,D){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(D?D(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,c)):process.nextTick(p,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(B){!D&&B?C._writableState?C._writableState.errorEmitted?process.nextTick(a,C):(C._writableState.errorEmitted=!0,process.nextTick(E,C,B)):process.nextTick(E,C,B):D?(process.nextTick(a,C),D(B)):process.nextTick(a,C)}),this)},undestroy:function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function O(c,D){var C=c._readableState,_=c._writableState;C&&C.autoDestroy||_&&_.autoDestroy?c.destroy(D):c.emit("error",D)}}},7854:(Ce,ee,E)=>{"use strict";var a=E(8083).F.ERR_STREAM_PREMATURE_CLOSE;function p(){}Ce.exports=function c(D,C,_){if("function"==typeof C)return c(D,null,C);C||(C={}),_=function S(D){var C=!1;return function(){if(!C){C=!0;for(var _=arguments.length,F=new Array(_),B=0;B<_;B++)F[B]=arguments[B];D.apply(this,F)}}}(_||p);var F=C.readable||!1!==C.readable&&D.readable,B=C.writable||!1!==C.writable&&D.writable,m=function(){D.writable||A()},T=D._writableState&&D._writableState.finished,A=function(){B=!1,T=!0,F||_.call(D)},w=D._readableState&&D._readableState.endEmitted,P=function(){F=!1,w=!0,B||_.call(D)},$=function(U){_.call(D,U)},L=function(){var U;return F&&!w?((!D._readableState||!D._readableState.ended)&&(U=new a),_.call(D,U)):B&&!T?((!D._writableState||!D._writableState.ended)&&(U=new a),_.call(D,U)):void 0},M=function(){D.req.on("finish",A)};return function O(D){return D.setHeader&&"function"==typeof D.abort}(D)?(D.on("complete",A),D.on("abort",L),D.req?M():D.on("request",M)):B&&!D._writableState&&(D.on("end",m),D.on("close",m)),D.on("end",P),D.on("finish",A),!1!==C.error&&D.on("error",$),D.on("close",L),function(){D.removeListener("complete",A),D.removeListener("abort",L),D.removeListener("request",M),D.req&&D.req.removeListener("finish",A),D.removeListener("end",m),D.removeListener("close",m),D.removeListener("finish",A),D.removeListener("end",P),D.removeListener("error",$),D.removeListener("close",L)}}},7765:Ce=>{Ce.exports=function(){throw new Error("Readable.from is not available in the browser")}},6846:(Ce,ee,E)=>{"use strict";var a,p=E(8083).F,O=p.ERR_MISSING_ARGS,c=p.ERR_STREAM_DESTROYED;function D(A){if(A)throw A}function F(A){A()}function B(A,w){return A.pipe(w)}Ce.exports=function T(){for(var A=arguments.length,w=new Array(A),P=0;P0,function(ie){L||(L=ie),ie&&M.forEach(F),!j&&(M.forEach(F),$(L))})});return w.reduce(B)}},2827:(Ce,ee,E)=>{"use strict";var a=E(8083).F.ERR_INVALID_OPT_VALUE;Ce.exports={getHighWaterMark:function p(O,c,D,C){var _=function S(O,c,D){return null!=O.highWaterMark?O.highWaterMark:c?O[D]:null}(c,C,D);if(null!=_){if(!isFinite(_)||Math.floor(_)!==_||_<0)throw new a(C?D:"highWaterMark",_);return Math.floor(_)}return O.objectMode?16:16384}}},2601:(Ce,ee,E)=>{Ce.exports=E(4356).EventEmitter},8454:(Ce,ee,E)=>{"use strict";var a=E(4272).Buffer,S=a.isEncoding||function(M){switch((M=""+M)&&M.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(M){var R;switch(this.encoding=function O(M){var R=function p(M){if(!M)return"utf8";for(var R;;)switch(M){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return M;default:if(R)return;M=(""+M).toLowerCase(),R=!0}}(M);if("string"!=typeof R&&(a.isEncoding===S||!S(M)))throw new Error("Unknown encoding: "+M);return R||M}(M),this.encoding){case"utf16le":this.text=T,this.end=A,R=4;break;case"utf8":this.fillLast=F,R=4;break;case"base64":this.text=w,this.end=P,R=3;break;default:return this.write=$,void(this.end=L)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(R)}function D(M){return M<=127?0:M>>5==6?2:M>>4==14?3:M>>3==30?4:M>>6==2?-1:-2}function F(M){var R=this.lastTotal-this.lastNeed,U=function _(M,R,U){if(128!=(192&R[0]))return M.lastNeed=0,"\ufffd";if(M.lastNeed>1&&R.length>1){if(128!=(192&R[1]))return M.lastNeed=1,"\ufffd";if(M.lastNeed>2&&R.length>2&&128!=(192&R[2]))return M.lastNeed=2,"\ufffd"}}(this,M);return void 0!==U?U:this.lastNeed<=M.length?(M.copy(this.lastChar,R,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(M.copy(this.lastChar,R,0,M.length),void(this.lastNeed-=M.length))}function T(M,R){if((M.length-R)%2==0){var U=M.toString("utf16le",R);if(U){var j=U.charCodeAt(U.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1],U.slice(0,-1)}return U}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=M[M.length-1],M.toString("utf16le",R,M.length-1)}function A(M){var R=M&&M.length?this.write(M):"";return this.lastNeed?R+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):R}function w(M,R){var U=(M.length-R)%3;return 0===U?M.toString("base64",R):(this.lastNeed=3-U,this.lastTotal=3,1===U?this.lastChar[0]=M[M.length-1]:(this.lastChar[0]=M[M.length-2],this.lastChar[1]=M[M.length-1]),M.toString("base64",R,M.length-U))}function P(M){var R=M&&M.length?this.write(M):"";return this.lastNeed?R+this.lastChar.toString("base64",0,3-this.lastNeed):R}function $(M){return M.toString(this.encoding)}function L(M){return M&&M.length?this.write(M):""}ee.I=c,c.prototype.write=function(M){if(0===M.length)return"";var R,U;if(this.lastNeed){if(void 0===(R=this.fillLast(M)))return"";U=this.lastNeed,this.lastNeed=0}else U=0;return U=0?(W>0&&(M.lastNeed=W-1),W):--j=0?(W>0&&(M.lastNeed=W-2),W):--j=0?(W>0&&(2===W?W=0:M.lastNeed=W-3),W):0}(this,M,R);if(!this.lastNeed)return M.toString("utf8",R);this.lastTotal=U;var j=M.length-(U-this.lastNeed);return M.copy(this.lastChar,0,j),M.toString("utf8",R,j)},c.prototype.fillLast=function(M){if(this.lastNeed<=M.length)return M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);M.copy(this.lastChar,this.lastTotal-this.lastNeed,0,M.length),this.lastNeed-=M.length}},4272:(Ce,ee,E)=>{var a=E(3838),S=a.Buffer;function p(c,D){for(var C in c)D[C]=c[C]}function O(c,D,C){return S(c,D,C)}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?Ce.exports=a:(p(a,ee),ee.Buffer=O),p(S,O),O.from=function(c,D,C){if("number"==typeof c)throw new TypeError("Argument must not be a number");return S(c,D,C)},O.alloc=function(c,D,C){if("number"!=typeof c)throw new TypeError("Argument must be a number");var _=S(c);return void 0!==D?"string"==typeof C?_.fill(D,C):_.fill(D):_.fill(0),_},O.allocUnsafe=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return S(c)},O.allocUnsafeSlow=function(c){if("number"!=typeof c)throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},3398:Ce=>{function E(a){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[a];return null!=S&&"true"===String(S).toLowerCase()}Ce.exports=function ee(a,S){if(E("noDeprecation"))return a;var p=!1;return function O(){if(!p){if(E("throwDeprecation"))throw new Error(S);E("traceDeprecation")?console.trace(S):console.warn(S),p=!0}return a.apply(this,arguments)}}},6421:(Ce,ee,E)=>{"use strict";E.d(ee,{A:()=>m});const S={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let p;const O=new Uint8Array(16);function c(){if(!p&&(p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(O)}const D=[];for(let T=0;T<256;++T)D.push((T+256).toString(16).slice(1));const m=function B(T,A,w){if(S.randomUUID&&!A&&!T)return S.randomUUID();const P=(T=T||{}).random||(T.rng||c)();if(P[6]=15&P[6]|64,P[8]=63&P[8]|128,A){w=w||0;for(let $=0;$<16;++$)A[w+$]=P[$];return A}return function C(T,A=0){return D[T[A+0]]+D[T[A+1]]+D[T[A+2]]+D[T[A+3]]+"-"+D[T[A+4]]+D[T[A+5]]+"-"+D[T[A+6]]+D[T[A+7]]+"-"+D[T[A+8]]+D[T[A+9]]+"-"+D[T[A+10]]+D[T[A+11]]+D[T[A+12]]+D[T[A+13]]+D[T[A+14]]+D[T[A+15]]}(P)}},8326:(__unused_webpack_module,exports)=>{var indexOf=function(Ce,ee){if(Ce.indexOf)return Ce.indexOf(ee);for(var E=0;E{var a={"./ion-accordion_2.entry.js":[4756,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[6972,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,2076,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,771,7428],"./ion-datetime_3.entry.js":[5266,771,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-internal.entry.js":[1433,2076,1433],"./ion-picker-internal.entry.js":[2628,2628],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return Promise.all(O.slice(1).map(E.e)).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=8996,Ce.exports=S},5235:(Ce,ee,E)=>{var a={"./pwa-action-sheet.entry.js":[6301,6301],"./pwa-camera-modal-instance.entry.js":[5640,5640],"./pwa-camera-modal.entry.js":[2982,2982],"./pwa-camera.entry.js":[6086,6086],"./pwa-toast.entry.js":[3574,3574]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return E.e(O[1]).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=5235,Ce.exports=S},7321:(Ce,ee,E)=>{var a={"./jeep-sqlite.entry.js":[477,477]};function S(p){if(!E.o(a,p))return Promise.resolve().then(()=>{var D=new Error("Cannot find module '"+p+"'");throw D.code="MODULE_NOT_FOUND",D});var O=a[p],c=O[0];return E.e(O[1]).then(()=>E(c))}S.keys=()=>Object.keys(a),S.id=7321,Ce.exports=S},8982:()=>{},7790:()=>{},7965:()=>{},6089:()=>{},9368:()=>{},4688:()=>{},1069:()=>{},5340:()=>{},9838:()=>{},3779:()=>{},7199:()=>{},177:(Ce,ee,E)=>{"use strict";E.d(ee,{AJ:()=>Ai,B3:()=>dt,MD:()=>Di,N0:()=>Bi,QT:()=>p,Sm:()=>$,Sq:()=>Tn,T3:()=>pt,UE:()=>Kr,VF:()=>c,Vw:()=>_,Vy:()=>wi,Xr:()=>mo,YU:()=>kt,ZD:()=>O,_b:()=>lt,aZ:()=>M,bT:()=>fr,fw:()=>L,hb:()=>w,hj:()=>F,qQ:()=>C});var a=E(4438);let S=null;function p(){return S}function O(Y){var xe;null!==(xe=S)&&void 0!==xe||(S=Y)}class c{}const C=new a.nKC("");let _=(()=>{var Y;class xe{historyGo(de){throw new Error("")}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>(0,a.WQX)(B),providedIn:"platform"}),xe})();const F=new a.nKC("");let B=(()=>{var Y;class xe extends _{constructor(){super(),this._doc=(0,a.WQX)(C),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return p().getBaseHref(this._doc)}onPopState(de){const We=p().getGlobalEventTarget(this._doc,"window");return We.addEventListener("popstate",de,!1),()=>We.removeEventListener("popstate",de)}onHashChange(de){const We=p().getGlobalEventTarget(this._doc,"window");return We.addEventListener("hashchange",de,!1),()=>We.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,We,ht){this._history.pushState(de,We,ht)}replaceState(de,We,ht){this._history.replaceState(de,We,ht)}forward(){this._history.forward()}back(){this._history.back()}historyGo(de=0){this._history.go(de)}getState(){return this._history.state}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>new Y,providedIn:"platform"}),xe})();function m(Y,xe){if(0==Y.length)return xe;if(0==xe.length)return Y;let at=0;return Y.endsWith("/")&&at++,xe.startsWith("/")&&at++,2==at?Y+xe.substring(1):1==at?Y+xe:Y+"/"+xe}function T(Y){const xe=Y.match(/#|\?|$/),at=xe&&xe.index||Y.length;return Y.slice(0,at-("/"===Y[at-1]?1:0))+Y.slice(at)}function A(Y){return Y&&"?"!==Y[0]?"?"+Y:Y}let w=(()=>{var Y;class xe{historyGo(de){throw new Error("")}}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275prov=a.jDH({token:Y,factory:()=>(0,a.WQX)($),providedIn:"root"}),xe})();const P=new a.nKC("");let $=(()=>{var Y;class xe extends w{constructor(de,We){var ht,Jt,mn;super(),this._platformLocation=de,this._removeListenerFns=[],this._baseHref=null!==(ht=null!==(Jt=null!=We?We:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Jt?Jt:null===(mn=(0,a.WQX)(C).location)||void 0===mn?void 0:mn.origin)&&void 0!==ht?ht:""}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}prepareExternalUrl(de){return m(this._baseHref,de)}path(de=!1){const We=this._platformLocation.pathname+A(this._platformLocation.search),ht=this._platformLocation.hash;return ht&&de?`${We}${ht}`:We}pushState(de,We,ht,Jt){const mn=this.prepareExternalUrl(ht+A(Jt));this._platformLocation.pushState(de,We,mn)}replaceState(de,We,ht,Jt){const mn=this.prepareExternalUrl(ht+A(Jt));this._platformLocation.replaceState(de,We,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){var We,ht;null===(We=(ht=this._platformLocation).historyGo)||void 0===We||We.call(ht,de)}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.KVO(_),a.KVO(P,8))},Y.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"}),xe})(),L=(()=>{var Y;class xe extends w{constructor(de,We){super(),this._platformLocation=de,this._baseHref="",this._removeListenerFns=[],null!=We&&(this._baseHref=We)}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){var We;const ht=null!==(We=this._platformLocation.hash)&&void 0!==We?We:"#";return ht.length>0?ht.substring(1):ht}prepareExternalUrl(de){const We=m(this._baseHref,de);return We.length>0?"#"+We:We}pushState(de,We,ht,Jt){let mn=this.prepareExternalUrl(ht+A(Jt));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.pushState(de,We,mn)}replaceState(de,We,ht,Jt){let mn=this.prepareExternalUrl(ht+A(Jt));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.replaceState(de,We,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){var We,ht;null===(We=(ht=this._platformLocation).historyGo)||void 0===We||We.call(ht,de)}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.KVO(_),a.KVO(P,8))},Y.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac}),xe})(),M=(()=>{var Y;class xe{constructor(de){this._subject=new a.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=de;const We=this._locationStrategy.getBaseHref();this._basePath=function W(Y){if(new RegExp("^(https?:)?//").test(Y)){const[,at]=Y.split(/\/\/[^\/]+/);return at}return Y}(T(j(We))),this._locationStrategy.onPopState(ht=>{this._subject.emit({url:this.path(!0),pop:!0,state:ht.state,type:ht.type})})}ngOnDestroy(){var de;null===(de=this._urlChangeSubscription)||void 0===de||de.unsubscribe(),this._urlChangeListeners=[]}path(de=!1){return this.normalize(this._locationStrategy.path(de))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(de,We=""){return this.path()==this.normalize(de+A(We))}normalize(de){return xe.stripTrailingSlash(function U(Y,xe){if(!Y||!xe.startsWith(Y))return xe;const at=xe.substring(Y.length);return""===at||["/",";","?","#"].includes(at[0])?at:xe}(this._basePath,j(de)))}prepareExternalUrl(de){return de&&"/"!==de[0]&&(de="/"+de),this._locationStrategy.prepareExternalUrl(de)}go(de,We="",ht=null){this._locationStrategy.pushState(ht,"",de,We),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+A(We)),ht)}replaceState(de,We="",ht=null){this._locationStrategy.replaceState(ht,"",de,We),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+A(We)),ht)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(de=0){var We,ht;null===(We=(ht=this._locationStrategy).historyGo)||void 0===We||We.call(ht,de)}onUrlChange(de){var We;return this._urlChangeListeners.push(de),null!==(We=this._urlChangeSubscription)&&void 0!==We||(this._urlChangeSubscription=this.subscribe(ht=>{this._notifyUrlChangeListeners(ht.url,ht.state)})),()=>{const ht=this._urlChangeListeners.indexOf(de);var Jt;this._urlChangeListeners.splice(ht,1),0===this._urlChangeListeners.length&&(null===(Jt=this._urlChangeSubscription)||void 0===Jt||Jt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(de="",We){this._urlChangeListeners.forEach(ht=>ht(de,We))}subscribe(de,We,ht){return this._subject.subscribe({next:de,error:We,complete:ht})}}return(Y=xe).normalizeQueryParams=A,Y.joinWithSlash=m,Y.stripTrailingSlash=T,Y.\u0275fac=function(de){return new(de||Y)(a.KVO(w))},Y.\u0275prov=a.jDH({token:Y,factory:()=>function R(){return new M((0,a.KVO)(w))}(),providedIn:"root"}),xe})();function j(Y){return Y.replace(/\/index.html$/,"")}function lt(Y,xe){xe=encodeURIComponent(xe);for(const at of Y.split(";")){const de=at.indexOf("="),[We,ht]=-1==de?[at,""]:[at.slice(0,de),at.slice(de+1)];if(We.trim()===xe)return decodeURIComponent(ht)}return null}const Tt=/\s+/,Mt=[];let kt=(()=>{var Y;class xe{constructor(de,We){this._ngEl=de,this._renderer=We,this.initialClasses=Mt,this.stateMap=new Map}set klass(de){this.initialClasses=null!=de?de.trim().split(Tt):Mt}set ngClass(de){this.rawClass="string"==typeof de?de.trim().split(Tt):de}ngDoCheck(){for(const We of this.initialClasses)this._updateState(We,!0);const de=this.rawClass;if(Array.isArray(de)||de instanceof Set)for(const We of de)this._updateState(We,!0);else if(null!=de)for(const We of Object.keys(de))this._updateState(We,!!de[We]);this._applyStateDiff()}_updateState(de,We){const ht=this.stateMap.get(de);void 0!==ht?(ht.enabled!==We&&(ht.changed=!0,ht.enabled=We),ht.touched=!0):this.stateMap.set(de,{enabled:We,changed:!0,touched:!0})}_applyStateDiff(){for(const de of this.stateMap){const We=de[0],ht=de[1];ht.changed?(this._toggleClass(We,ht.enabled),ht.changed=!1):ht.touched||(ht.enabled&&this._toggleClass(We,!1),this.stateMap.delete(We)),ht.touched=!1}}_toggleClass(de,We){(de=de.trim()).length>0&&de.split(Tt).forEach(ht=>{We?this._renderer.addClass(this._ngEl.nativeElement,ht):this._renderer.removeClass(this._ngEl.nativeElement,ht)})}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.aKT),a.rXU(a.sFG))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngClass",""]],inputs:{klass:[a.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0}),xe})();class Qt{constructor(xe,at,de,We){this.$implicit=xe,this.ngForOf=at,this.index=de,this.count=We}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 Tn=(()=>{var Y;class xe{set ngForOf(de){this._ngForOf=de,this._ngForOfDirty=!0}set ngForTrackBy(de){this._trackByFn=de}get ngForTrackBy(){return this._trackByFn}constructor(de,We,ht){this._viewContainer=de,this._template=We,this._differs=ht,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 We=this._viewContainer;de.forEachOperation((ht,Jt,mn)=>{if(null==ht.previousIndex)We.createEmbeddedView(this._template,new Qt(ht.item,this._ngForOf,-1,-1),null===mn?void 0:mn);else if(null==mn)We.remove(null===Jt?void 0:Jt);else if(null!==Jt){const Zn=We.get(Jt);We.move(Zn,mn),wn(Zn,ht)}});for(let ht=0,Jt=We.length;ht{wn(We.get(ht.currentIndex),ht)})}static ngTemplateContextGuard(de,We){return!0}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b),a.rXU(a.C4Q),a.rXU(a._q3))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),xe})();function wn(Y,xe){Y.context.$implicit=xe.item}let fr=(()=>{var Y;class xe{constructor(de,We){this._viewContainer=de,this._context=new Ge,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=We}set ngIf(de){this._context.$implicit=this._context.ngIf=de,this._updateView()}set ngIfThen(de){et("ngIfThen",de),this._thenTemplateRef=de,this._thenViewRef=null,this._updateView()}set ngIfElse(de){et("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,We){return!0}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b),a.rXU(a.C4Q))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),xe})();class Ge{constructor(){this.$implicit=null,this.ngIf=null}}function et(Y,xe){if(xe&&!xe.createEmbeddedView)throw new Error(`${Y} must be a TemplateRef, but received '${(0,a.Tbb)(xe)}'.`)}let dt=(()=>{var Y;class xe{constructor(de,We,ht){this._ngEl=de,this._differs=We,this._renderer=ht,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,We){const[ht,Jt]=de.split("."),mn=-1===ht.indexOf("-")?void 0:a.czy.DashCase;null!=We?this._renderer.setStyle(this._ngEl.nativeElement,ht,Jt?`${We}${Jt}`:We,mn):this._renderer.removeStyle(this._ngEl.nativeElement,ht,mn)}_applyChanges(de){de.forEachRemovedItem(We=>this._setStyle(We.key,null)),de.forEachAddedItem(We=>this._setStyle(We.key,We.currentValue)),de.forEachChangedItem(We=>this._setStyle(We.key,We.currentValue))}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.aKT),a.rXU(a.MKu),a.rXU(a.sFG))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),xe})(),pt=(()=>{var Y;class xe{constructor(de){this._viewContainerRef=de,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(de){if(this._shouldRecreateView(de)){var We;const ht=this._viewContainerRef;if(this._viewRef&&ht.remove(ht.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Jt=this._createContextForwardProxy();this._viewRef=ht.createEmbeddedView(this.ngTemplateOutlet,Jt,{injector:null!==(We=this.ngTemplateOutletInjector)&&void 0!==We?We:void 0})}}_shouldRecreateView(de){return!!de.ngTemplateOutlet||!!de.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(de,We,ht)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,We,ht),get:(de,We,ht)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,We,ht)}})}}return(Y=xe).\u0275fac=function(de){return new(de||Y)(a.rXU(a.c1b))},Y.\u0275dir=a.FsC({type:Y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.OA$]}),xe})(),Di=(()=>{var Y;class xe{}return(Y=xe).\u0275fac=function(de){return new(de||Y)},Y.\u0275mod=a.$C({type:Y}),Y.\u0275inj=a.G2t({}),xe})();const Ai="browser",ji="server";function Kr(Y){return Y===Ai}function wi(Y){return Y===ji}let mo=(()=>{var Y;class xe{}return(Y=xe).\u0275prov=(0,a.jDH)({token:Y,providedIn:"root",factory:()=>Kr((0,a.WQX)(a.Agw))?new Ir((0,a.WQX)(C),window):new Ni}),xe})();class Ir{constructor(xe,at){this.document=xe,this.window=at,this.offset=()=>[0,0]}setOffset(xe){this.offset=Array.isArray(xe)?()=>xe:xe}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(xe){this.window.scrollTo(xe[0],xe[1])}scrollToAnchor(xe){const at=function si(Y,xe){const at=Y.getElementById(xe)||Y.getElementsByName(xe)[0];if(at)return at;if("function"==typeof Y.createTreeWalker&&Y.body&&"function"==typeof Y.body.attachShadow){const de=Y.createTreeWalker(Y.body,NodeFilter.SHOW_ELEMENT);let We=de.currentNode;for(;We;){const ht=We.shadowRoot;if(ht){const Jt=ht.getElementById(xe)||ht.querySelector(`[name="${xe}"]`);if(Jt)return Jt}We=de.nextNode()}}return null}(this.document,xe);at&&(this.scrollToElement(at),at.focus())}setHistoryScrollRestoration(xe){this.window.history.scrollRestoration=xe}scrollToElement(xe){const at=xe.getBoundingClientRect(),de=at.left+this.window.pageXOffset,We=at.top+this.window.pageYOffset,ht=this.offset();this.window.scrollTo(de-ht[0],We-ht[1])}}class Ni{setOffset(xe){}getScrollPosition(){return[0,0]}scrollToPosition(xe){}scrollToAnchor(xe){}setHistoryScrollRestoration(xe){}}class Bi{}},1626:(Ce,ee,E)=>{"use strict";E.d(ee,{Lr:()=>w,Qq:()=>k,q1:()=>en}),E(467);var S=E(4438),p=E(7673),O=E(1985),c=E(6648),D=E(274),C=E(5964),_=E(6354),F=E(980),B=E(5558),m=E(177);class T{}class A{}class w{constructor(lt){this.normalizedNames=new Map,this.lazyUpdate=null,lt?"string"==typeof lt?this.lazyInit=()=>{this.headers=new Map,lt.split("\n").forEach(Tt=>{const Mt=Tt.indexOf(":");if(Mt>0){const kt=Tt.slice(0,Mt),Zt=kt.toLowerCase(),qt=Tt.slice(Mt+1).trim();this.maybeSetNormalizedName(kt,Zt),this.headers.has(Zt)?this.headers.get(Zt).push(qt):this.headers.set(Zt,[qt])}})}:typeof Headers<"u"&< instanceof Headers?(this.headers=new Map,lt.forEach((Tt,Mt)=>{this.setHeaderEntries(Mt,Tt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(lt).forEach(([Tt,Mt])=>{this.setHeaderEntries(Tt,Mt)})}:this.headers=new Map}has(lt){return this.init(),this.headers.has(lt.toLowerCase())}get(lt){this.init();const Tt=this.headers.get(lt.toLowerCase());return Tt&&Tt.length>0?Tt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(lt){return this.init(),this.headers.get(lt.toLowerCase())||null}append(lt,Tt){return this.clone({name:lt,value:Tt,op:"a"})}set(lt,Tt){return this.clone({name:lt,value:Tt,op:"s"})}delete(lt,Tt){return this.clone({name:lt,value:Tt,op:"d"})}maybeSetNormalizedName(lt,Tt){this.normalizedNames.has(Tt)||this.normalizedNames.set(Tt,lt)}init(){this.lazyInit&&(this.lazyInit instanceof w?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(lt=>this.applyUpdate(lt)),this.lazyUpdate=null))}copyFrom(lt){lt.init(),Array.from(lt.headers.keys()).forEach(Tt=>{this.headers.set(Tt,lt.headers.get(Tt)),this.normalizedNames.set(Tt,lt.normalizedNames.get(Tt))})}clone(lt){const Tt=new w;return Tt.lazyInit=this.lazyInit&&this.lazyInit instanceof w?this.lazyInit:this,Tt.lazyUpdate=(this.lazyUpdate||[]).concat([lt]),Tt}applyUpdate(lt){const Tt=lt.name.toLowerCase();switch(lt.op){case"a":case"s":let Mt=lt.value;if("string"==typeof Mt&&(Mt=[Mt]),0===Mt.length)return;this.maybeSetNormalizedName(lt.name,Tt);const kt=("a"===lt.op?this.headers.get(Tt):void 0)||[];kt.push(...Mt),this.headers.set(Tt,kt);break;case"d":const Zt=lt.value;if(Zt){let qt=this.headers.get(Tt);if(!qt)return;qt=qt.filter(Qt=>-1===Zt.indexOf(Qt)),0===qt.length?(this.headers.delete(Tt),this.normalizedNames.delete(Tt)):this.headers.set(Tt,qt)}else this.headers.delete(Tt),this.normalizedNames.delete(Tt)}}setHeaderEntries(lt,Tt){const Mt=(Array.isArray(Tt)?Tt:[Tt]).map(Zt=>Zt.toString()),kt=lt.toLowerCase();this.headers.set(kt,Mt),this.maybeSetNormalizedName(lt,kt)}forEach(lt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Tt=>lt(this.normalizedNames.get(Tt),this.headers.get(Tt)))}}class ${encodeKey(lt){return U(lt)}encodeValue(lt){return U(lt)}decodeKey(lt){return decodeURIComponent(lt)}decodeValue(lt){return decodeURIComponent(lt)}}const M=/%(\d[a-f0-9])/gi,R={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function U($e){return encodeURIComponent($e).replace(M,(lt,Tt)=>{var Mt;return null!==(Mt=R[Tt])&&void 0!==Mt?Mt:lt})}function j($e){return`${$e}`}class W{constructor(lt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=lt.encoder||new $,lt.fromString){if(lt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function L($e,lt){const Tt=new Map;return $e.length>0&&$e.replace(/^\?/,"").split("&").forEach(kt=>{const Zt=kt.indexOf("="),[qt,Qt]=-1==Zt?[lt.decodeKey(kt),""]:[lt.decodeKey(kt.slice(0,Zt)),lt.decodeValue(kt.slice(Zt+1))],Tn=Tt.get(qt)||[];Tn.push(Qt),Tt.set(qt,Tn)}),Tt}(lt.fromString,this.encoder)}else lt.fromObject?(this.map=new Map,Object.keys(lt.fromObject).forEach(Tt=>{const Mt=lt.fromObject[Tt],kt=Array.isArray(Mt)?Mt.map(j):[j(Mt)];this.map.set(Tt,kt)})):this.map=null}has(lt){return this.init(),this.map.has(lt)}get(lt){this.init();const Tt=this.map.get(lt);return Tt?Tt[0]:null}getAll(lt){return this.init(),this.map.get(lt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(lt,Tt){return this.clone({param:lt,value:Tt,op:"a"})}appendAll(lt){const Tt=[];return Object.keys(lt).forEach(Mt=>{const kt=lt[Mt];Array.isArray(kt)?kt.forEach(Zt=>{Tt.push({param:Mt,value:Zt,op:"a"})}):Tt.push({param:Mt,value:kt,op:"a"})}),this.clone(Tt)}set(lt,Tt){return this.clone({param:lt,value:Tt,op:"s"})}delete(lt,Tt){return this.clone({param:lt,value:Tt,op:"d"})}toString(){return this.init(),this.keys().map(lt=>{const Tt=this.encoder.encodeKey(lt);return this.map.get(lt).map(Mt=>Tt+"="+this.encoder.encodeValue(Mt)).join("&")}).filter(lt=>""!==lt).join("&")}clone(lt){const Tt=new W({encoder:this.encoder});return Tt.cloneFrom=this.cloneFrom||this,Tt.updates=(this.updates||[]).concat(lt),Tt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(lt=>this.map.set(lt,this.cloneFrom.map.get(lt))),this.updates.forEach(lt=>{switch(lt.op){case"a":case"s":const Tt=("a"===lt.op?this.map.get(lt.param):void 0)||[];Tt.push(j(lt.value)),this.map.set(lt.param,Tt);break;case"d":if(void 0===lt.value){this.map.delete(lt.param);break}{let Mt=this.map.get(lt.param)||[];const kt=Mt.indexOf(j(lt.value));-1!==kt&&Mt.splice(kt,1),Mt.length>0?this.map.set(lt.param,Mt):this.map.delete(lt.param)}}}),this.cloneFrom=this.updates=null)}}class me{constructor(){this.map=new Map}set(lt,Tt){return this.map.set(lt,Tt),this}get(lt){return this.map.has(lt)||this.map.set(lt,lt.defaultValue()),this.map.get(lt)}delete(lt){return this.map.delete(lt),this}has(lt){return this.map.has(lt)}keys(){return this.map.keys()}}function se($e){return typeof ArrayBuffer<"u"&&$e instanceof ArrayBuffer}function g($e){return typeof Blob<"u"&&$e instanceof Blob}function n($e){return typeof FormData<"u"&&$e instanceof FormData}class l{constructor(lt,Tt,Mt,kt){var Zt,qt;let Qt;if(this.url=Tt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=lt.toUpperCase(),function te($e){switch($e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||kt?(this.body=void 0!==Mt?Mt:null,Qt=kt):Qt=Mt,Qt&&(this.reportProgress=!!Qt.reportProgress,this.withCredentials=!!Qt.withCredentials,Qt.responseType&&(this.responseType=Qt.responseType),Qt.headers&&(this.headers=Qt.headers),Qt.context&&(this.context=Qt.context),Qt.params&&(this.params=Qt.params),this.transferCache=Qt.transferCache),null!==(Zt=this.headers)&&void 0!==Zt||(this.headers=new w),null!==(qt=this.context)&&void 0!==qt||(this.context=new me),this.params){const Tn=this.params.toString();if(0===Tn.length)this.urlWithParams=Tt;else{const wn=Tt.indexOf("?");this.urlWithParams=Tt+(-1===wn?"?":wnCt.set(Gt,lt.setHeaders[Gt]),et)),lt.setParams&&(Fe=Object.keys(lt.setParams).reduce((Ct,Gt)=>Ct.set(Gt,lt.setParams[Gt]),Fe)),new l(qt,Qt,Kn,{params:Fe,headers:et,context:qe,reportProgress:Ge,responseType:Tn,withCredentials:fr,transferCache:wn})}}var s=function($e){return $e[$e.Sent=0]="Sent",$e[$e.UploadProgress=1]="UploadProgress",$e[$e.ResponseHeader=2]="ResponseHeader",$e[$e.DownloadProgress=3]="DownloadProgress",$e[$e.Response=4]="Response",$e[$e.User=5]="User",$e}(s||{});class h{constructor(lt,Tt=r.Ok,Mt="OK"){this.headers=lt.headers||new w,this.status=void 0!==lt.status?lt.status:Tt,this.statusText=lt.statusText||Mt,this.url=lt.url||null,this.ok=this.status>=200&&this.status<300}}class v extends h{constructor(lt={}){super(lt),this.type=s.ResponseHeader}clone(lt={}){return new v({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class y extends h{constructor(lt={}){super(lt),this.type=s.Response,this.body=void 0!==lt.body?lt.body:null}clone(lt={}){return new y({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class d extends h{constructor(lt){super(lt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${lt.url||"(unknown url)"}`:`Http failure response for ${lt.url||"(unknown url)"}: ${lt.status} ${lt.statusText}`,this.error=lt.error||null}}var r=function($e){return $e[$e.Continue=100]="Continue",$e[$e.SwitchingProtocols=101]="SwitchingProtocols",$e[$e.Processing=102]="Processing",$e[$e.EarlyHints=103]="EarlyHints",$e[$e.Ok=200]="Ok",$e[$e.Created=201]="Created",$e[$e.Accepted=202]="Accepted",$e[$e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",$e[$e.NoContent=204]="NoContent",$e[$e.ResetContent=205]="ResetContent",$e[$e.PartialContent=206]="PartialContent",$e[$e.MultiStatus=207]="MultiStatus",$e[$e.AlreadyReported=208]="AlreadyReported",$e[$e.ImUsed=226]="ImUsed",$e[$e.MultipleChoices=300]="MultipleChoices",$e[$e.MovedPermanently=301]="MovedPermanently",$e[$e.Found=302]="Found",$e[$e.SeeOther=303]="SeeOther",$e[$e.NotModified=304]="NotModified",$e[$e.UseProxy=305]="UseProxy",$e[$e.Unused=306]="Unused",$e[$e.TemporaryRedirect=307]="TemporaryRedirect",$e[$e.PermanentRedirect=308]="PermanentRedirect",$e[$e.BadRequest=400]="BadRequest",$e[$e.Unauthorized=401]="Unauthorized",$e[$e.PaymentRequired=402]="PaymentRequired",$e[$e.Forbidden=403]="Forbidden",$e[$e.NotFound=404]="NotFound",$e[$e.MethodNotAllowed=405]="MethodNotAllowed",$e[$e.NotAcceptable=406]="NotAcceptable",$e[$e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",$e[$e.RequestTimeout=408]="RequestTimeout",$e[$e.Conflict=409]="Conflict",$e[$e.Gone=410]="Gone",$e[$e.LengthRequired=411]="LengthRequired",$e[$e.PreconditionFailed=412]="PreconditionFailed",$e[$e.PayloadTooLarge=413]="PayloadTooLarge",$e[$e.UriTooLong=414]="UriTooLong",$e[$e.UnsupportedMediaType=415]="UnsupportedMediaType",$e[$e.RangeNotSatisfiable=416]="RangeNotSatisfiable",$e[$e.ExpectationFailed=417]="ExpectationFailed",$e[$e.ImATeapot=418]="ImATeapot",$e[$e.MisdirectedRequest=421]="MisdirectedRequest",$e[$e.UnprocessableEntity=422]="UnprocessableEntity",$e[$e.Locked=423]="Locked",$e[$e.FailedDependency=424]="FailedDependency",$e[$e.TooEarly=425]="TooEarly",$e[$e.UpgradeRequired=426]="UpgradeRequired",$e[$e.PreconditionRequired=428]="PreconditionRequired",$e[$e.TooManyRequests=429]="TooManyRequests",$e[$e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",$e[$e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",$e[$e.InternalServerError=500]="InternalServerError",$e[$e.NotImplemented=501]="NotImplemented",$e[$e.BadGateway=502]="BadGateway",$e[$e.ServiceUnavailable=503]="ServiceUnavailable",$e[$e.GatewayTimeout=504]="GatewayTimeout",$e[$e.HttpVersionNotSupported=505]="HttpVersionNotSupported",$e[$e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",$e[$e.InsufficientStorage=507]="InsufficientStorage",$e[$e.LoopDetected=508]="LoopDetected",$e[$e.NotExtended=510]="NotExtended",$e[$e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",$e}(r||{});function f($e,lt){return{body:lt,headers:$e.headers,context:$e.context,observe:$e.observe,params:$e.params,reportProgress:$e.reportProgress,responseType:$e.responseType,withCredentials:$e.withCredentials,transferCache:$e.transferCache}}let k=(()=>{var $e;class lt{constructor(Mt){this.handler=Mt}request(Mt,kt,Zt={}){let qt;if(Mt instanceof l)qt=Mt;else{let wn,Kn;wn=Zt.headers instanceof w?Zt.headers:new w(Zt.headers),Zt.params&&(Kn=Zt.params instanceof W?Zt.params:new W({fromObject:Zt.params})),qt=new l(Mt,kt,void 0!==Zt.body?Zt.body:null,{headers:wn,context:Zt.context,params:Kn,reportProgress:Zt.reportProgress,responseType:Zt.responseType||"json",withCredentials:Zt.withCredentials,transferCache:Zt.transferCache})}const Qt=(0,p.of)(qt).pipe((0,D.H)(wn=>this.handler.handle(wn)));if(Mt instanceof l||"events"===Zt.observe)return Qt;const Tn=Qt.pipe((0,C.p)(wn=>wn instanceof y));switch(Zt.observe||"body"){case"body":switch(qt.responseType){case"arraybuffer":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&!(wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wn.body}));case"blob":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&!(wn.body instanceof Blob))throw new Error("Response is not a Blob.");return wn.body}));case"text":return Tn.pipe((0,_.T)(wn=>{if(null!==wn.body&&"string"!=typeof wn.body)throw new Error("Response is not a string.");return wn.body}));default:return Tn.pipe((0,_.T)(wn=>wn.body))}case"response":return Tn;default:throw new Error(`Unreachable: unhandled observe type ${Zt.observe}}`)}}delete(Mt,kt={}){return this.request("DELETE",Mt,kt)}get(Mt,kt={}){return this.request("GET",Mt,kt)}head(Mt,kt={}){return this.request("HEAD",Mt,kt)}jsonp(Mt,kt){return this.request("JSONP",Mt,{params:(new W).append(kt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Mt,kt={}){return this.request("OPTIONS",Mt,kt)}patch(Mt,kt,Zt={}){return this.request("PATCH",Mt,f(Zt,kt))}post(Mt,kt,Zt={}){return this.request("POST",Mt,f(Zt,kt))}put(Mt,kt,Zt={}){return this.request("PUT",Mt,f(Zt,kt))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(T))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();function ae($e,lt){return lt($e)}function tt($e,lt){return(Tt,Mt)=>lt.intercept(Tt,{handle:kt=>$e(kt,Mt)})}const pe=new S.nKC(""),Ie=new S.nKC(""),_e=new S.nKC(""),re=new S.nKC("");function ne(){let $e=null;return(lt,Tt)=>{var Mt;null===$e&&($e=(null!==(Mt=(0,S.WQX)(pe,{optional:!0}))&&void 0!==Mt?Mt:[]).reduceRight(tt,ae));const kt=(0,S.WQX)(S.TgB),Zt=kt.add();return $e(lt,Tt).pipe((0,F.j)(()=>kt.remove(Zt)))}}let xt=(()=>{var $e;class lt extends T{constructor(Mt,kt){super(),this.backend=Mt,this.injector=kt,this.chain=null,this.pendingTasks=(0,S.WQX)(S.TgB);const Zt=(0,S.WQX)(re,{optional:!0});this.backend=null!=Zt?Zt:Mt}handle(Mt){if(null===this.chain){const Zt=Array.from(new Set([...this.injector.get(Ie),...this.injector.get(_e,[])]));this.chain=Zt.reduceRight((qt,Qt)=>function ke($e,lt,Tt){return(Mt,kt)=>(0,S.N4e)(Tt,()=>lt(Mt,Zt=>$e(Zt,kt)))}(qt,Qt,this.injector),ae)}const kt=this.pendingTasks.add();return this.chain(Mt,Zt=>this.backend.handle(Zt)).pipe((0,F.j)(()=>this.pendingTasks.remove(kt)))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(A),S.KVO(S.uvJ))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();const bn=/^\)\]\}',?\n/;let wt=(()=>{var $e;class lt{constructor(Mt){this.xhrFactory=Mt}handle(Mt){if("JSONP"===Mt.method)throw new S.wOt(-2800,!1);const kt=this.xhrFactory;return(kt.\u0275loadImpl?(0,c.H)(kt.\u0275loadImpl()):(0,p.of)(null)).pipe((0,B.n)(()=>new O.c(qt=>{const Qt=kt.build();if(Qt.open(Mt.method,Mt.urlWithParams),Mt.withCredentials&&(Qt.withCredentials=!0),Mt.headers.forEach((Ct,Gt)=>Qt.setRequestHeader(Ct,Gt.join(","))),Mt.headers.has("Accept")||Qt.setRequestHeader("Accept","application/json, text/plain, */*"),!Mt.headers.has("Content-Type")){const Ct=Mt.detectContentTypeHeader();null!==Ct&&Qt.setRequestHeader("Content-Type",Ct)}if(Mt.responseType){const Ct=Mt.responseType.toLowerCase();Qt.responseType="json"!==Ct?Ct:"text"}const Tn=Mt.serializeBody();let wn=null;const Kn=()=>{if(null!==wn)return wn;const Ct=Qt.statusText||"OK",Gt=new w(Qt.getAllResponseHeaders()),vn=function bt($e){return"responseURL"in $e&&$e.responseURL?$e.responseURL:/^X-Request-URL:/m.test($e.getAllResponseHeaders())?$e.getResponseHeader("X-Request-URL"):null}(Qt)||Mt.url;return wn=new v({headers:Gt,status:Qt.status,statusText:Ct,url:vn}),wn},fr=()=>{let{headers:Ct,status:Gt,statusText:vn,url:gt}=Kn(),zt=null;Gt!==r.NoContent&&(zt=typeof Qt.response>"u"?Qt.responseText:Qt.response),0===Gt&&(Gt=zt?r.Ok:0);let ye=Gt>=200&&Gt<300;if("json"===Mt.responseType&&"string"==typeof zt){const Ke=zt;zt=zt.replace(bn,"");try{zt=""!==zt?JSON.parse(zt):null}catch(dt){zt=Ke,ye&&(ye=!1,zt={error:dt,text:zt})}}ye?(qt.next(new y({body:zt,headers:Ct,status:Gt,statusText:vn,url:gt||void 0})),qt.complete()):qt.error(new d({error:zt,headers:Ct,status:Gt,statusText:vn,url:gt||void 0}))},Ge=Ct=>{const{url:Gt}=Kn(),vn=new d({error:Ct,status:Qt.status||0,statusText:Qt.statusText||"Unknown Error",url:Gt||void 0});qt.error(vn)};let et=!1;const Fe=Ct=>{et||(qt.next(Kn()),et=!0);let Gt={type:s.DownloadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Gt.total=Ct.total),"text"===Mt.responseType&&Qt.responseText&&(Gt.partialText=Qt.responseText),qt.next(Gt)},qe=Ct=>{let Gt={type:s.UploadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Gt.total=Ct.total),qt.next(Gt)};return Qt.addEventListener("load",fr),Qt.addEventListener("error",Ge),Qt.addEventListener("timeout",Ge),Qt.addEventListener("abort",Ge),Mt.reportProgress&&(Qt.addEventListener("progress",Fe),null!==Tn&&Qt.upload&&Qt.upload.addEventListener("progress",qe)),Qt.send(Tn),qt.next({type:s.Sent}),()=>{Qt.removeEventListener("error",Ge),Qt.removeEventListener("abort",Ge),Qt.removeEventListener("load",fr),Qt.removeEventListener("timeout",Ge),Mt.reportProgress&&(Qt.removeEventListener("progress",Fe),null!==Tn&&Qt.upload&&Qt.upload.removeEventListener("progress",qe)),Qt.readyState!==Qt.DONE&&Qt.abort()}})))}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(m.N0))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();const Dn=new S.nKC(""),Lt=new S.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Nt=new S.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ot{}let zn=(()=>{var $e;class lt{constructor(Mt,kt,Zt){this.doc=Mt,this.platform=kt,this.cookieName=Zt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Mt=this.doc.cookie||"";return Mt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m._b)(Mt,this.cookieName),this.lastCookieString=Mt),this.lastToken}}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)(S.KVO(m.qQ),S.KVO(S.Agw),S.KVO(Lt))},$e.\u0275prov=S.jDH({token:$e,factory:$e.\u0275fac}),lt})();function Ut($e,lt){const Tt=$e.url.toLowerCase();if(!(0,S.WQX)(Dn)||"GET"===$e.method||"HEAD"===$e.method||Tt.startsWith("http://")||Tt.startsWith("https://"))return lt($e);const Mt=(0,S.WQX)(Ot).getToken(),kt=(0,S.WQX)(Nt);return null!=Mt&&!$e.headers.has(kt)&&($e=$e.clone({headers:$e.headers.set(kt,Mt)})),lt($e)}var Be=function($e){return $e[$e.Interceptors=0]="Interceptors",$e[$e.LegacyInterceptors=1]="LegacyInterceptors",$e[$e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",$e[$e.NoXsrfProtection=3]="NoXsrfProtection",$e[$e.JsonpSupport=4]="JsonpSupport",$e[$e.RequestsMadeViaParent=5]="RequestsMadeViaParent",$e[$e.Fetch=6]="Fetch",$e}(Be||{});function Ae($e,lt){return{\u0275kind:$e,\u0275providers:lt}}function Me(...$e){const lt=[k,wt,xt,{provide:T,useExisting:xt},{provide:A,useExisting:wt},{provide:Ie,useValue:Ut,multi:!0},{provide:Dn,useValue:!0},{provide:Ot,useClass:zn}];for(const Tt of $e)lt.push(...Tt.\u0275providers);return(0,S.EmA)(lt)}const je=new S.nKC("");let en=(()=>{var $e;class lt{}return($e=lt).\u0275fac=function(Mt){return new(Mt||$e)},$e.\u0275mod=S.$C({type:$e}),$e.\u0275inj=S.G2t({providers:[Me(Ae(Be.LegacyInterceptors,[{provide:je,useFactory:ne},{provide:Ie,useExisting:je,multi:!0}]))]}),lt})()},4438:(Ce,ee,E)=>{"use strict";E.d(ee,{iLQ:()=>vf,sZ2:()=>Lh,hnV:()=>Qg,Hbi:()=>MA,o8S:()=>Qo,BIS:()=>cy,gRc:()=>c1,Ql9:()=>QD,Ocv:()=>oA,Z63:()=>Un,aKT:()=>Za,uvJ:()=>fi,zcH:()=>So,bkB:()=>co,$GK:()=>nn,nKC:()=>kt,zZn:()=>Fi,_q3:()=>Af,MKu:()=>Mf,xe9:()=>gc,Co$:()=>Jx,Vns:()=>ys,SKi:()=>zr,Xx1:()=>Kr,Agw:()=>o0,PLl:()=>$h,sFG:()=>O9,_9s:()=>ax,czy:()=>Su,WPN:()=>ms,kdw:()=>_i,C4Q:()=>xl,NYb:()=>zD,giA:()=>Yg,RxE:()=>jg,c1b:()=>Xu,gXe:()=>ni,mal:()=>px,L39:()=>e3,a0P:()=>l3,Ol2:()=>md,w6W:()=>RC,oH4:()=>s1,SmG:()=>cA,Rfq:()=>Ut,WQX:()=>$n,QuC:()=>li,EmA:()=>Ro,fpN:()=>AA,HJs:()=>u3,N4e:()=>ro,O8t:()=>n3,H3F:()=>Hg,H8p:()=>No,KH2:()=>ba,TgB:()=>ra,wOt:()=>G,WHO:()=>Gg,e01:()=>Xg,lNU:()=>ne,h9k:()=>ip,$MX:()=>Mu,ZF7:()=>Ys,Kcf:()=>Iy,e5t:()=>Ry,UyX:()=>Fy,cWb:()=>Ty,osQ:()=>Py,H5H:()=>zd,Zy3:()=>ge,mq5:()=>tm,JZv:()=>bt,LfX:()=>kn,plB:()=>Go,jNT:()=>pf,zjR:()=>Zg,TL$:()=>ly,Tbb:()=>Wt,rcV:()=>Io,Vt3:()=>pd,Mj6:()=>gi,GFd:()=>Qx,OA$:()=>dr,Jv_:()=>pg,aNF:()=>xg,R7$:()=>Ip,BMQ:()=>Bd,ZvI:()=>Kv,AVh:()=>Rd,wni:()=>Hm,VBU:()=>Ba,FsC:()=>ns,jDH:()=>Mn,G2t:()=>Ln,$C:()=>ts,EJ8:()=>Co,rXU:()=>Js,nrm:()=>Ud,eu8:()=>Hd,k0s:()=>lc,j41:()=>ac,RV6:()=>Jv,xGo:()=>ah,KVO:()=>Dr,kS0:()=>du,QTQ:()=>Fp,bIt:()=>Gd,lsd:()=>Km,XpG:()=>Fm,nI1:()=>Mg,bMT:()=>wg,SdG:()=>Rm,NAR:()=>Pm,Y8G:()=>Fd,FS9:()=>Yd,lJ4:()=>mg,eq3:()=>gg,l_i:()=>Eg,mGM:()=>Wm,Njj:()=>Lf,tSv:()=>cp,eBV:()=>kf,npT:()=>op,f$h:()=>y0,B4B:()=>E0,n$t:()=>sp,muq:()=>Gm,DNE:()=>ia,EFF:()=>rg,JRh:()=>Qd,SpI:()=>hc,Lme:()=>Jd,DH7:()=>fg,mxI:()=>ef,R50:()=>qd,GBs:()=>zm}),E(467);let p=null,c=1;const D=Symbol("SIGNAL");function C(e){const t=p;return p=e,t}function w(e){if((!me(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==c)){if(!e.producerMustRecompute(e)&&!U(e))return e.dirty=!1,void(e.lastCleanEpoch=c);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=c}}function U(e){te(e);for(let t=0;t0}function te(e){var t,i,u;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(i=e.producerIndexOfThis)&&void 0!==i||(e.producerIndexOfThis=[]),null!==(u=e.producerLastReadVersion)&&void 0!==u||(e.producerLastReadVersion=[])}let v=null;var ke=E(1413),pe=E(8359),Ie=E(4412),_e=E(6354);const ne="https://g.co/ng/security#xss";class G extends Error{constructor(t,i){super(ge(t,i)),this.code=t}}function ge(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function ft(e){return{toString:e}.toString()}const At="__parameters__";function Ft(e,t,i){return ft(()=>{const u=function St(e){return function(...i){if(e){const u=e(...i);for(const x in u)this[x]=u[x]}}}(t);function x(...b){if(this instanceof x)return u.apply(this,b),this;const N=new x(...b);return H.annotation=N,H;function H(K,he,we){const Oe=K.hasOwnProperty(At)?K[At]:Object.defineProperty(K,At,{value:[]})[At];for(;Oe.length<=we;)Oe.push(null);return(Oe[we]=Oe[we]||[]).push(N),K}}return i&&(x.prototype=Object.create(i.prototype)),x.prototype.ngMetadataName=e,x.annotationCls=x,x})}const bt=globalThis;function Bt(e){for(let t in e)if(e[t]===Bt)return t;throw Error("Could not find renamed property on target object.")}function Lt(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function Wt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Wt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function Nt(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const zn=Bt({__forward_ref__:Bt});function Ut(e){return e.__forward_ref__=Ut,e.toString=function(){return Wt(this())},e}function He(e){return Be(e)?e():e}function Be(e){return"function"==typeof e&&e.hasOwnProperty(zn)&&e.__forward_ref__===Ut}function Mn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fn(e){return Gn(e,$e)||Gn(e,Tt)}function kn(e){return null!==Fn(e)}function Gn(e,t){return e.hasOwnProperty(t)?e[t]:null}function jn(e){return e&&(e.hasOwnProperty(lt)||e.hasOwnProperty(Mt))?e[lt]:null}const $e=Bt({\u0275prov:Bt}),lt=Bt({\u0275inj:Bt}),Tt=Bt({ngInjectableDef:Bt}),Mt=Bt({ngInjectorDef:Bt});class kt{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Mn({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function qe(e){return e&&!!e.\u0275providers}const Ct=Bt({\u0275cmp:Bt}),Gt=Bt({\u0275dir:Bt}),vn=Bt({\u0275pipe:Bt}),gt=Bt({\u0275mod:Bt}),zt=Bt({\u0275fac:Bt}),ye=Bt({__NG_ELEMENT_ID__:Bt}),Ke=Bt({__NG_ENV_ID__:Bt});function dt(e){return"string"==typeof e?e:null==e?"":String(e)}function cn(e,t){throw new G(-201,!1)}var nn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(nn||{});let _n;function Sn(){return _n}function Pn(e){const t=_n;return _n=e,t}function hr(e,t,i){const u=Fn(e);return u&&"root"==u.providedIn?void 0===u.value?u.value=u.factory():u.value:i&nn.Optional?null:void 0!==t?t:void cn()}const le={},Ye="__NG_DI_FLAG__",_t="ngTempTokenPath",pr=/\n/gm,qr="__source";let Wr;function jr(e){const t=Wr;return Wr=e,t}function Vi(e,t=nn.Default){if(void 0===Wr)throw new G(-203,!1);return null===Wr?hr(e,void 0,t):Wr.get(e,t&nn.Optional?null:void 0,t)}function Dr(e,t=nn.Default){return(Sn()||Vi)(He(e),t)}function $n(e,t=nn.Default){return Dr(e,mi(t))}function mi(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Oi(e){const t=[];for(let i=0;iArray.isArray(i)?si(i,t):t(i))}function Ni(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Re(e,t,i){let u=Te(e,t);return u>=0?e[1|u]=i:(u=~u,function qo(e,t,i,u){let x=e.length;if(x==t)e.push(i,u);else if(1===x)e.push(u,e[0]),e[0]=i;else{for(x--,e.push(e[x-1],e[x]);x>t;)e[x]=e[x-2],x--;e[t]=i,e[t+1]=u}}(e,u,t,i)),u}function Le(e,t){const i=Te(e,t);if(i>=0)return e[1|i]}function Te(e,t){return function Vt(e,t,i){let u=0,x=e.length>>i;for(;x!==u;){const b=u+(x-u>>1),N=e[b<t?x=b:u=b+1}return~(x<t){N=b-1;break}}}for(;b-1){let b;for(;++xb?"":x[we+1].toLowerCase(),2&u&&he!==Oe){if(Hr(u))return!1;N=!0}}}}else{if(!N&&!Hr(u)&&!Hr(K))return!1;if(N&&Hr(K))continue;N=!1,u=K|1&u}}return Hr(u)||N}function Hr(e){return!(1&e)}function Eo(e,t,i,u){if(null===t)return-1;let x=0;if(u||!i){let b=!1;for(;x-1)for(i++;i0?'="'+H+'"':"")+"]"}else 8&u?x+="."+N:4&u&&(x+=" "+N);else""!==x&&!Hr(N)&&(t+=_a(b,x),x=""),u=N,b=b||!Hr(u);i++}return""!==x&&(t+=_a(b,x)),t}function Ba(e){return ft(()=>{var t;const i=rs(e),u={...i,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Or.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ni.Emulated,styles:e.styles||fn,_:null,schemas:e.schemas||null,tView:null,id:""};is(u);const x=e.dependencies;return u.directiveDefs=Wi(x,!1),u.pipeDefs=Wi(x,!0),u.id=function Ta(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const x of i)t=Math.imul(31,t)+x.charCodeAt(0)|0;return t+=2147483648,"c"+t}(u),u})}function Xl(e){return er(e)||Nr(e)}function Sa(e){return null!==e}function ts(e){return ft(()=>({type:e.type,bootstrap:e.bootstrap||fn,declarations:e.declarations||fn,imports:e.imports||fn,exports:e.exports||fn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ia(e,t){if(null==e)return dn;const i={};for(const x in e)if(e.hasOwnProperty(x)){const b=e[x];let N,H,K=gi.None;var u;Array.isArray(b)?(K=b[0],N=b[1],H=null!==(u=b[2])&&void 0!==u?u:N):(N=b,H=b),t?(i[N]=K!==gi.None?[x,K]:x,t[N]=H):i[N]=x}return i}function ns(e){return ft(()=>{const t=rs(e);return is(t),t})}function Co(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function er(e){return e[Ct]||null}function Nr(e){return e[Gt]||null}function Pr(e){return e[vn]||null}function li(e){const t=er(e)||Nr(e)||Pr(e);return null!==t&&t.standalone}function Gr(e,t){const i=e[gt]||null;if(!i&&!0===t)throw new Error(`Type ${Wt(e)} does not have '\u0275mod' property.`);return i}function rs(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||dn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ia(e.inputs,t),outputs:Ia(e.outputs),debugInfo:null}}function is(e){var t;null===(t=e.features)||void 0===t||t.forEach(i=>i(e))}function Wi(e,t){if(!e)return null;const i=t?Pr:Xl;return()=>("function"==typeof e?e():e).map(u=>i(u)).filter(Sa)}function Ro(e){return{\u0275providers:e}}function Bs(...e){return{\u0275providers:Oo(0,e),\u0275fromNgModule:!0}}function Oo(e,...t){const i=[],u=new Set;let x;const b=N=>{i.push(N)};return si(t,N=>{const H=N;eo(H,b,[],u)&&(x||(x=[]),x.push(H))}),void 0!==x&&Ss(x,b),i}function Ss(e,t){for(let i=0;i{t(b,u)})}}function eo(e,t,i,u){if(!(e=He(e)))return!1;let x=null,b=jn(e);const N=!b&&er(e);if(b||N){if(N&&!N.standalone)return!1;x=e}else{const K=e.ngModule;if(b=jn(K),!b)return!1;x=K}const H=u.has(x);if(N){if(H)return!1;if(u.add(x),N.dependencies){const K="function"==typeof N.dependencies?N.dependencies():N.dependencies;for(const he of K)eo(he,t,i,u)}}else{if(!b)return!1;{if(null!=b.imports&&!H){let he;u.add(x);try{si(b.imports,we=>{eo(we,t,i,u)&&(he||(he=[]),he.push(we))})}finally{}void 0!==he&&Ss(he,t)}if(!H){const he=ti(x)||(()=>new x);t({provide:x,useFactory:he,deps:fn},x),t({provide:Vn,useValue:x,multi:!0},x),t({provide:Un,useValue:()=>Dr(x),multi:!0},x)}const K=b.providers;if(null!=K&&!H){const he=e;Is(K,we=>{t(we,he)})}}}return x!==e&&void 0!==e.providers}function Is(e,t){for(let i of e)qe(i)&&(i=i.\u0275providers),Array.isArray(i)?Is(i,t):t(i)}const Zl=Bt({provide:String,useValue:Bt});function Ts(e){return null!==e&&"object"==typeof e&&Zl in e}function Ki(e){return"function"==typeof e}const No=new kt(""),Fs={},Oa={};let Ps;function ko(){return void 0===Ps&&(Ps=new lr),Ps}class fi{}class to extends fi{get destroyed(){return this._destroyed}constructor(t,i,u,x){super(),this.parent=i,this.source=u,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Lo(t,N=>this.processProvider(N)),this.records.set(mr,no(void 0,this)),x.has("environment")&&this.records.set(fi,no(void 0,this));const b=this.records.get(No);null!=b&&"string"==typeof b.value&&this.scopes.add(b.value),this.injectorDefTypes=new Set(this.get(Vn,fn,nn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=C(null);try{for(const u of this._ngOnDestroyHooks)u.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const u of i)u()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=jr(this),u=Pn(void 0);try{return t()}finally{jr(i),Pn(u)}}get(t,i=le,u=nn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ke))return t[Ke](this);u=mi(u);const b=jr(this),N=Pn(void 0);try{if(!(u&nn.SkipSelf)){let K=this.records.get(t);if(void 0===K){const he=function Do(e){return"function"==typeof e||"object"==typeof e&&e instanceof kt}(t)&&Fn(t);K=he&&this.injectableDefInScope(he)?no(Rs(t),Fs):null,this.records.set(t,K)}if(null!=K)return this.hydrate(t,K)}return(u&nn.Self?ko():this.parent).get(t,i=u&nn.Optional&&i===le?null:i)}catch(H){if("NullInjectorError"===H.name){if((H[_t]=H[_t]||[]).unshift(Wt(t)),b)throw H;return function ji(e,t,i,u){const x=e[_t];throw t[qr]&&x.unshift(t[qr]),e.message=function Mi(e,t,i,u=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let x=Wt(t);if(Array.isArray(t))x=t.map(Wt).join(" -> ");else if("object"==typeof t){let b=[];for(let N in t)if(t.hasOwnProperty(N)){let H=t[N];b.push(N+":"+("string"==typeof H?JSON.stringify(H):Wt(H)))}x=`{${b.join(", ")}}`}return`${i}${u?"("+u+")":""}[${x}]: ${e.replace(pr,"\n ")}`}("\n"+e.message,x,i,u),e.ngTokenPath=x,e[_t]=null,e}(H,t,"R3InjectorError",this.source)}throw H}finally{Pn(N),jr(b)}}resolveInjectorInitializers(){const t=C(null),i=jr(this),u=Pn(void 0);try{const b=this.get(Un,fn,nn.Self);for(const N of b)N()}finally{jr(i),Pn(u),C(t)}}toString(){const t=[],i=this.records;for(const u of i.keys())t.push(Wt(u));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(t){let i=Ki(t=He(t))?t:He(t&&t.provide);const u=function Jl(e){return Ts(e)?no(void 0,e.useValue):no(os(e),Fs)}(t);if(!Ki(t)&&!0===t.multi){let x=this.records.get(i);x||(x=no(void 0,Fs,!0),x.factory=()=>Oi(x.multi),this.records.set(i,x)),i=t,x.multi.push(t)}this.records.set(i,u)}hydrate(t,i){const u=C(null);try{return i.value===Fs&&(i.value=Oa,i.value=i.factory()),"object"==typeof i.value&&i.value&&function bo(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{C(u)}}injectableDefInScope(t){if(!t.providedIn)return!1;const i=He(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Rs(e){const t=Fn(e),i=null!==t?t.factory:ti(e);if(null!==i)return i;if(e instanceof kt)throw new G(204,!1);if(e instanceof Function)return function Ql(e){if(e.length>0)throw new G(204,!1);const i=function Xn(e){return e&&(e[$e]||e[Tt])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new G(204,!1)}function os(e,t,i){let u;if(Ki(e)){const x=He(e);return ti(x)||Rs(x)}if(Ts(e))u=()=>He(e.useValue);else if(function Pa(e){return!(!e||!e.useFactory)}(e))u=()=>e.useFactory(...Oi(e.deps||[]));else if(function Fa(e){return!(!e||!e.useExisting)}(e))u=()=>Dr(He(e.useExisting));else{const x=He(e&&(e.useClass||e.provide));if(!function ql(e){return!!e.deps}(e))return ti(x)||Rs(x);u=()=>new x(...Oi(e.deps))}return u}function no(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Lo(e,t){for(const i of e)Array.isArray(i)?Lo(i,t):i&&qe(i)?Lo(i.\u0275providers,t):t(i)}function ro(e,t){e instanceof to&&e.assertNotDestroyed();const u=jr(e),x=Pn(void 0);try{return t()}finally{jr(u),Pn(x)}}function Na(){return void 0!==Sn()||null!=function ei(){return Wr}()}const xr=0,yn=1,Rn=2,ir=3,Lr=4,Ar=5,Sr=6,ki=7,Cr=8,Rr=9,Si=10,Qn=11,ss=12,Os=13,Ao=14,Tr=15,Uo=16,ri=17,Li=18,Ns=19,_c=20,Mo=21,Vo=22,io=23,Jn=25,ka=1,Gi=7,jo=9,kr=10;var eu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(eu||{});function ii(e){return Array.isArray(e)&&"object"==typeof e[ka]}function Jr(e){return Array.isArray(e)&&!0===e[ka]}function La(e){return!!(4&e.flags)}function Ho(e){return e.componentOffset>-1}function us(e){return!(1&~e.flags)}function Ii(e){return!!e.template}function $a(e){return!!(512&e[Rn])}class qn{constructor(t,i,u){this.previousValue=t,this.currentValue=i,this.firstChange=u}isFirstChange(){return this.firstChange}}function Mr(e,t,i,u){null!==t?t.applyValueToInputSignal(t,u):e[i]=u}function dr(){return Xr}function Xr(e){return e.type.prototype.ngOnChanges&&(e.setInput=cs),wo}function wo(){const e=Wo(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===dn)e.previous=t;else for(let u in t)i[u]=t[u];e.current=null,this.ngOnChanges(t)}}function cs(e,t,i,u,x){const b=this.declaredInputs[u],N=Wo(e)||function ds(e,t){return e[zo]=t}(e,{previous:dn,current:null}),H=N.current||(N.current={}),K=N.previous,he=K[b];H[b]=new qn(he&&he.currentValue,i,K===dn),Mr(e,t,x,i)}dr.ngInherit=!0;const zo="__ngSimpleChanges__";function Wo(e){return e[zo]||null}const oo=function(e,t,i){};let Ff=!1;function br(e){for(;Array.isArray(e);)e=e[xr];return e}function ja(e,t){return br(t[e])}function hi(e,t){return br(t[e.index])}function Ha(e,t){return e.data[t]}function Ti(e,t){const i=t[e];return ii(i)?i:i[xr]}function Fc(e){return!(128&~e[Rn])}function so(e,t){return null==t?null:e[t]}function Pf(e){e[ri]=0}function Q1(e){1024&e[Rn]||(e[Rn]|=1024,Fc(e)&&za(e))}function Pc(e){var t;return!!(9216&e[Rn]||null!==(t=e[io])&&void 0!==t&&t.dirty)}function Rc(e){var t;if(null===(t=e[Si].changeDetectionScheduler)||void 0===t||t.notify(1),Pc(e))za(e);else if(64&e[Rn])if(function G1(){return Ff}())e[Rn]|=1024,za(e);else{var i;null===(i=e[Si].changeDetectionScheduler)||void 0===i||i.notify()}}function za(e){var t;null===(t=e[Si].changeDetectionScheduler)||void 0===t||t.notify();let i=hs(e);for(;null!==i&&!(8192&i[Rn])&&(i[Rn]|=8192,Fc(i));)i=hs(i)}function nu(e,t){if(!(256&~e[Rn]))throw new G(911,!1);null===e[Mo]&&(e[Mo]=[]),e[Mo].push(t)}function hs(e){const t=e[ir];return Jr(t)?t[ir]:t}const tr={lFrame:Wf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Nf(){return tr.bindingsEnabled}function $s(){return null!==tr.skipHydrationRootTNode}function sn(){return tr.lFrame.lView}function ur(){return tr.lFrame.tView}function kf(e){return tr.lFrame.contextLView=e,e[Cr]}function Lf(e){return tr.lFrame.contextLView=null,e}function yr(){let e=$f();for(;null!==e&&64===e.type;)e=e.parent;return e}function $f(){return tr.lFrame.currentTNode}function ao(e,t){const i=tr.lFrame;i.currentTNode=e,i.isParent=t}function Nc(){return tr.lFrame.isParent}function kc(){tr.lFrame.isParent=!1}function pi(){const e=tr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xi(){return tr.lFrame.bindingIndex++}function Bo(e){const t=tr.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function lE(e,t){const i=tr.lFrame;i.bindingIndex=i.bindingRootIndex=e,Lc(t)}function Lc(e){tr.lFrame.currentDirectiveIndex=e}function Uc(){return tr.lFrame.currentQueryIndex}function ru(e){tr.lFrame.currentQueryIndex=e}function cE(e){const t=e[yn];return 2===t.type?t.declTNode:1===t.type?e[Ar]:null}function Hf(e,t,i){if(i&nn.SkipSelf){let x=t,b=e;for(;!(x=x.parent,null!==x||i&nn.Host||(x=cE(b),null===x||(b=b[Ao],10&x.type))););if(null===x)return!1;t=x,e=b}const u=tr.lFrame=zf();return u.currentTNode=t,u.lView=e,!0}function Vc(e){const t=zf(),i=e[yn];tr.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function zf(){const e=tr.lFrame,t=null===e?null:e.child;return null===t?Wf(e):t}function Wf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Kf(){const e=tr.lFrame;return tr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gf=Kf;function jc(){const e=Kf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ui(){return tr.lFrame.selectedIndex}function ps(e){tr.lFrame.selectedIndex=e}function Br(){const e=tr.lFrame;return Ha(e.tView,e.selectedIndex)}let Yf=!0;function Ka(){return Yf}function lo(e){Yf=e}function iu(e,t){for(let he=t.directiveStart,we=t.directiveEnd;he=u)break}else t[K]<0&&(e[ri]+=65536),(H>14>16&&(3&e[Rn])===t&&(e[Rn]+=16384,Qf(H,b)):Qf(H,b)}const Us=-1;class Ga{constructor(t,i,u){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=u}}function Wc(e){return e!==Us}function Xa(e){return 32767&e}function Ya(e,t){let i=function bE(e){return e>>16}(e),u=t;for(;i>0;)u=u[Ao],i--;return u}let Kc=!0;function au(e){const t=Kc;return Kc=e,t}const Jf=255,qf=5;let DE=0;const uo={};function lu(e,t){const i=eh(e,t);if(-1!==i)return i;const u=t[yn];u.firstCreatePass&&(e.injectorIndex=t.length,Gc(u.data,e),Gc(t,null),Gc(u.blueprint,null));const x=uu(e,t),b=e.injectorIndex;if(Wc(x)){const N=Xa(x),H=Ya(x,t),K=H[yn].data;for(let he=0;he<8;he++)t[b+he]=H[N+he]|K[N+he]}return t[b+8]=x,b}function Gc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function eh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function uu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,u=null,x=t;for(;null!==x;){if(u=lh(x),null===u)return Us;if(i++,x=x[Ao],-1!==u.injectorIndex)return u.injectorIndex|i<<16}return Us}function Xc(e,t,i){!function AE(e,t,i){let u;"string"==typeof i?u=i.charCodeAt(0)||0:i.hasOwnProperty(ye)&&(u=i[ye]),null==u&&(u=i[ye]=DE++);const x=u&Jf;t.data[e+(x>>qf)]|=1<=0?t&Jf:BE:t}(i);if("function"==typeof b){if(!Hf(t,e,u))return u&nn.Host?th(x,0,u):nh(t,i,u,x);try{let N;if(N=b(u),null!=N||u&nn.Optional)return N;cn()}finally{Gf()}}else if("number"==typeof b){let N=null,H=eh(e,t),K=Us,he=u&nn.Host?t[Tr][Ar]:null;for((-1===H||u&nn.SkipSelf)&&(K=-1===H?uu(e,t):t[H+8],K!==Us&&sh(u,!1)?(N=t[yn],H=Xa(K),t=Ya(K,t)):H=-1);-1!==H;){const we=t[yn];if(oh(b,H,we.data)){const Oe=wE(H,t,i,N,u,he);if(Oe!==uo)return Oe}K=t[H+8],K!==Us&&sh(u,t[yn].data[H+8]===he)&&oh(b,H,t)?(N=we,H=Xa(K),t=Ya(K,t)):H=-1}}return x}function wE(e,t,i,u,x,b){const N=t[yn],H=N.data[e+8],we=cu(H,N,i,null==u?Ho(H)&&Kc:u!=N&&!!(3&H.type),x&nn.Host&&b===H);return null!==we?xs(t,N,we,H):uo}function cu(e,t,i,u,x){const b=e.providerIndexes,N=t.data,H=1048575&b,K=e.directiveStart,we=b>>20,ct=x?H+we:e.directiveEnd;for(let Dt=u?H:H+we;Dt=K&&jt.type===i)return Dt}if(x){const Dt=N[K];if(Dt&&Ii(Dt)&&Dt.type===i)return K}return null}function xs(e,t,i,u){let x=e[i];const b=t.data;if(function gE(e){return e instanceof Ga}(x)){const N=x;N.resolving&&function an(e,t){throw t&&t.join(" > "),new G(-200,e)}(function pt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():dt(e)}(b[i]));const H=au(N.canSeeViewProviders);N.resolving=!0;const he=N.injectImpl?Pn(N.injectImpl):null;Hf(e,u,nn.Default);try{x=e[i]=N.factory(void 0,b,e,u),t.firstCreatePass&&i>=u.directiveStart&&function vE(e,t,i){const{ngOnChanges:u,ngOnInit:x,ngDoCheck:b}=t.type.prototype;if(u){var N,H;const Oe=Xr(t);(null!==(N=i.preOrderHooks)&&void 0!==N?N:i.preOrderHooks=[]).push(e,Oe),(null!==(H=i.preOrderCheckHooks)&&void 0!==H?H:i.preOrderCheckHooks=[]).push(e,Oe)}var K,he,we;x&&(null!==(K=i.preOrderHooks)&&void 0!==K?K:i.preOrderHooks=[]).push(0-e,x),b&&((null!==(he=i.preOrderHooks)&&void 0!==he?he:i.preOrderHooks=[]).push(e,b),(null!==(we=i.preOrderCheckHooks)&&void 0!==we?we:i.preOrderCheckHooks=[]).push(e,b))}(i,b[i],t)}finally{null!==he&&Pn(he),au(H),N.resolving=!1,Gf()}}return x}function oh(e,t,i){return!!(i[t+(e>>qf)]&1<{const t=e.prototype.constructor,i=t[zt]||Yc(t),u=Object.prototype;let x=Object.getPrototypeOf(e.prototype).constructor;for(;x&&x!==u;){const b=x[zt]||Yc(x);if(b&&b!==i)return b;x=Object.getPrototypeOf(x)}return b=>new b})}function Yc(e){return Be(e)?()=>{const t=Yc(He(e));return t&&t()}:ti(e)}function lh(e){const t=e[yn],i=t.type;return 2===i?t.declTNode:1===i?e[Ar]:null}function du(e){return function ME(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const u=i.length;let x=0;for(;x{var e;class t{static create(u,x){if(Array.isArray(u))return hh({name:""},x,u,"");{var b;const N=null!==(b=u.name)&&void 0!==b?b:"";return hh({name:N},u.parent,u.providers,N)}}}return(e=t).THROW_IF_NOT_FOUND=le,e.NULL=new lr,e.\u0275prov=Mn({token:e,providedIn:"any",factory:()=>Dr(mr)}),e.__NG_ELEMENT_ID__=-1,t})();function Qc(e){return e.ngOriginalError}class So{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&Qc(t);for(;i&&Qc(i);)i=Qc(i);return i||null}}const vh=new kt("",{providedIn:"root",factory:()=>$n(So).handleError.bind(void 0)});let Hs=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=LE,e.__NG_ENV_ID__=i=>i,t})();class kE extends Hs{constructor(t){super(),this._lView=t}onDestroy(t){return nu(this._lView,t),()=>function Oc(e,t){if(null===e[Mo])return;const i=e[Mo].indexOf(t);-1!==i&&e[Mo].splice(i,1)}(this._lView,t)}}function LE(){return new kE(sn())}function $E(){return zs(yr(),sn())}function zs(e,t){return new Za(hi(e,t))}let Za=(()=>{class t{constructor(u){this.nativeElement=u}}return t.__NG_ELEMENT_ID__=$E,t})();function gh(e){return e instanceof Za?e.nativeElement:e}function Jc(e){return t=>{setTimeout(e,void 0,t)}}const co=class UE extends ke.B{constructor(t=!1){var i;super(),this.destroyRef=void 0,this.__isAsync=t,Na()&&(this.destroyRef=null!==(i=$n(Hs,{optional:!0}))&&void 0!==i?i:void 0)}emit(t){const i=C(null);try{super.next(t)}finally{C(i)}}subscribe(t,i,u){let x=t,b=i||(()=>null),N=u;if(t&&"object"==typeof t){var H,K,he;const Oe=t;x=null===(H=Oe.next)||void 0===H?void 0:H.bind(Oe),b=null===(K=Oe.error)||void 0===K?void 0:K.bind(Oe),N=null===(he=Oe.complete)||void 0===he?void 0:he.bind(Oe)}this.__isAsync&&(b=Jc(b),x&&(x=Jc(x)),N&&(N=Jc(N)));const we=super.subscribe({next:x,error:b,complete:N});return t instanceof pe.yU&&t.add(we),we}};function VE(){return this._results[Symbol.iterator]()}class qc{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new co}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const i=qc.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=VE)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){this.dirty=!1;const u=function Ir(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function mo(e,t,i){if(e.length!==t.length)return!1;for(let u=0;uuy}),uy="ng",$h=new kt(""),o0=new kt("",{providedIn:"platform",factory:()=>"unknown"}),cy=new kt("",{providedIn:"root",factory:()=>{var e;return(null===(e=Ko().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Uh=()=>null;function c0(e,t,i=!1){return Uh(e,t,i)}const Wh=new kt("",{providedIn:"root",factory:()=>!1});let Du,Au;function Xs(e){var t;return(null===(t=function p0(){if(void 0===Du&&(Du=null,bt.trustedTypes))try{Du=bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Du}())||void 0===t?void 0:t.createHTML(e))||e}function x0(){if(void 0===Au&&(Au=null,bt.trustedTypes))try{Au=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Au}function Gh(e){var t;return(null===(t=x0())||void 0===t?void 0:t.createHTML(e))||e}function Yh(e){var t;return(null===(t=x0())||void 0===t?void 0:t.createScriptURL(e))||e}class vs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ne})`}}class Ay extends vs{getTypeName(){return"HTML"}}class My extends vs{getTypeName(){return"Style"}}class wy extends vs{getTypeName(){return"Script"}}class _y extends vs{getTypeName(){return"URL"}}class By extends vs{getTypeName(){return"ResourceURL"}}function Io(e){return e instanceof vs?e.changingThisBreaksApplicationSecurity:e}function Ys(e,t){const i=function Sy(e){return e instanceof vs&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${ne})`)}return i===t}function Iy(e){return new Ay(e)}function Ty(e){return new My(e)}function Fy(e){return new wy(e)}function Py(e){return new _y(e)}function Ry(e){return new By(e)}class Oy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const i=(new window.DOMParser).parseFromString(Xs(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class Ny{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=Xs(t),i}}const Ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mu(e){return(e=String(e)).match(Ly)?e:"unsafe:"+e}function To(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function il(...e){const t={};for(const i of e)for(const u in i)i.hasOwnProperty(u)&&(t[u]=!0);return t}const Qh=To("area,br,col,hr,img,wbr"),Jh=To("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qh=To("rp,rt"),v0=il(Qh,il(Jh,To("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")),il(qh,To("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")),il(qh,Jh)),m0=To("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ep=il(m0,To("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"),To("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")),$y=To("script,style,template");class Uy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,u=!0,x=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?u=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,u&&i.firstChild)x.push(i),i=Hy(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let b=jy(i);if(b){i=b;break}i=x.pop()}return this.buf.join("")}startElement(t){const i=tp(t).toLowerCase();if(!v0.hasOwnProperty(i))return this.sanitizedSomething=!0,!$y.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const u=t.attributes;for(let x=0;x"),!0}endElement(t){const i=tp(t).toLowerCase();v0.hasOwnProperty(i)&&!Qh.hasOwnProperty(i)&&(this.buf.push(""))}chars(t){this.buf.push(rp(t))}}function jy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw np(t);return t}function Hy(e){const t=e.firstChild;if(t&&function Vy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw np(t);return t}function tp(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function np(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wy=/([^\#-~ |!])/g;function rp(e){return e.replace(/&/g,"&").replace(zy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Wy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wu;function ip(e,t){let i=null;try{wu=wu||function Zh(e){const t=new Ny(e);return function ky(){try{return!!(new window.DOMParser).parseFromString(Xs(""),"text/html")}catch{return!1}}()?new Oy(t):t}(e);let u=t?String(t):"";i=wu.getInertBodyElement(u);let x=5,b=u;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,u=b,b=i.innerHTML,i=wu.getInertBodyElement(u)}while(u!==b);return Xs((new Uy).sanitizeChildren(g0(i)||i))}finally{if(i){const u=g0(i)||i;for(;u.firstChild;)u.removeChild(u.firstChild)}}}function g0(e){return"content"in e&&function Ky(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ms=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ms||{});function op(e){const t=ol();return t?Gh(t.sanitize(ms.HTML,e)||""):Ys(e,"HTML")?Gh(Io(e)):ip(Ko(),dt(e))}function E0(e){const t=ol();return t?t.sanitize(ms.URL,e)||"":Ys(e,"URL")?Io(e):Mu(dt(e))}function y0(e){const t=ol();if(t)return Yh(t.sanitize(ms.RESOURCE_URL,e)||"");if(Ys(e,"ResourceURL"))return Yh(Io(e));throw new G(904,!1)}function sp(e,t,i){return function Qy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?y0:E0}(t,i)(e)}function ol(){const e=sn();return e&&e[Si].sanitizer}const Jy=/^>|^->||--!>|)/g,e8="\u200b$1\u200b";function cp(e){return e.ownerDocument.defaultView}function Pi(e){return e instanceof Function?e():e}var Su=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Su||{});let A0;function M0(e,t){return A0(e,t)}function Qs(e,t,i,u,x){if(null!=u){let b,N=!1;Jr(u)?b=u:ii(u)&&(N=!0,u=u[xr]);const H=br(u);0===e&&null!==i?null==x?Ep(t,i,H):gs(t,i,H,x||null,!0):1===e&&null!==i?gs(t,i,H,x||null,!0):2===e?function ll(e,t,i){const u=Fu(e,t);u&&function g8(e,t,i,u){e.removeChild(t,i,u)}(e,u,t,i)}(t,H,N):3===e&&t.destroyNode(H),null!=b&&function C8(e,t,i,u,x){const b=i[Gi];b!==br(i)&&Qs(t,e,u,b,x);for(let H=kr;Ht.replace(qy,e8))}(t))}function Iu(e,t,i){return e.createElement(t,i)}function vp(e,t){var i;null===(i=t[Si].changeDetectionScheduler)||void 0===i||i.notify(1),Ru(e,t,t[Qn],2,null,null)}function mp(e,t){const i=e[jo],u=i.indexOf(t);i.splice(u,1)}function sl(e,t){if(e.length<=kr)return;const i=kr+t,u=e[i];if(u){const x=u[Uo];null!==x&&x!==e&&mp(x,u),t>0&&(e[i-1][Lr]=u[Lr]);const b=Bi(e,kr+t);!function d8(e,t){vp(e,t),t[xr]=null,t[Ar]=null}(u[yn],u);const N=b[Li];null!==N&&N.detachView(b[yn]),u[ir]=null,u[Lr]=null,u[Rn]&=-129}return u}function Tu(e,t){if(!(256&t[Rn])){const i=t[Qn];i.destroyNode&&Ru(e,t,i,3,null,null),function h8(e){let t=e[ss];if(!t)return B0(e[yn],e);for(;t;){let i=null;if(ii(t))i=t[ss];else{const u=t[kr];u&&(i=u)}if(!i){for(;t&&!t[Lr]&&t!==e;)ii(t)&&B0(t[yn],t),t=t[ir];null===t&&(t=e),ii(t)&&B0(t[yn],t),i=t&&t[Lr]}t=i}}(t)}}function B0(e,t){if(256&t[Rn])return;const i=C(null);try{t[Rn]&=-129,t[Rn]|=256,t[io]&&function j(e){if(te(e),me(e))for(let t=0;t=0?u[N]():u[-N].unsubscribe(),b+=2}else i[b].call(u[i[b+1]]);null!==u&&(t[ki]=null);const x=t[Mo];if(null!==x){t[Mo]=null;for(let b=0;b-1){const{encapsulation:b}=e.data[u.directiveStart+x];if(b===ni.None||b===ni.Emulated)return null}return hi(u,i)}}(e,t.parent,i)}function gs(e,t,i,u,x){e.insertBefore(t,i,u,x)}function Ep(e,t,i){e.appendChild(t,i)}function yp(e,t,i,u,x){null!==u?gs(e,t,i,u,x):Ep(e,t,i)}function Fu(e,t){return e.parentNode(t)}function Cp(e,t,i){return Dp(e,t,i)}let I0,Dp=function bp(e,t,i){return 40&e.type?hi(e,i):null};function Pu(e,t,i,u){const x=S0(e,u,t),b=t[Qn],H=Cp(u.parent||t[Ar],u,t);if(null!=x)if(Array.isArray(i))for(let K=0;KJn&&Tp(e,t,Jn,!1),oo(N?2:0,x),i(u,x)}finally{ps(b),oo(N?3:1,x)}}function R0(e,t,i){if(La(t)){const u=C(null);try{const b=t.directiveEnd;for(let N=t.directiveStart;Nnull;function kp(e,t,i,u,x){for(let N in t){var b;if(!t.hasOwnProperty(N))continue;const H=t[N];if(void 0===H)continue;null!==(b=u)&&void 0!==b||(u={});let K,he=gi.None;Array.isArray(H)?(K=H[0],he=H[1]):K=H;let we=N;if(null!==x){if(!x.hasOwnProperty(N))continue;we=x[N]}0===e?Lp(u,i,we,K,he):Lp(u,i,we,K)}return u}function Lp(e,t,i,u,x){let b;e.hasOwnProperty(i)?(b=e[i]).push(t,u):b=e[i]=[t,u],void 0!==x&&b.push(x)}function Ci(e,t,i,u,x,b,N,H){const K=hi(t,i);let we,he=t.inputs;!H&&null!=he&&(we=he[u])?(j0(e,i,we,u,x),Ho(t)&&function R8(e,t){const i=Ti(t,e);16&i[Rn]||(i[Rn]|=64)}(i,t.index)):3&t.type&&(u=function P8(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(u),x=null!=N?N(x,t.value||"",u):x,b.setProperty(K,u,x))}function L0(e,t,i,u){if(Nf()){const x=null===u?null:{"":-1},b=function U8(e,t){const i=e.directiveRegistry;let u=null,x=null;if(i)for(let N=0;N0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(N)!=H&&N.push(H),N.push(i,u,b)}}(e,t,u,ul(e,i,x.hostVars,rr),x)}function fo(e,t,i,u,x,b){const N=hi(e,t);!function U0(e,t,i,u,x,b,N){if(null==b)e.removeAttribute(t,x,i);else{const H=null==N?dt(b):N(b,u||"",x);e.setAttribute(t,x,H,i)}}(t[Qn],N,b,e.value,i,u,x)}function K8(e,t,i,u,x,b){const N=b[t];if(null!==N)for(let H=0;H0&&(i[x-1][Lr]=t),u!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{za(e.lView)},consumerOnSignalRead(){this.lView[io]=this}},Yp=100;function Lu(e,t=!0,i=0){const u=e[Si],x=u.rendererFactory;var N;null===(N=x.begin)||void 0===N||N.call(x);try{!function t9(e,t){W0(e,t);let i=0;for(;Pc(e);){if(i===Yp)throw new G(103,!1);i++,W0(e,1)}}(e,i)}catch(he){throw t&&ku(e,he),he}finally{var H,K;null===(H=x.end)||void 0===H||H.call(x),null===(K=u.inlineEffectRunner)||void 0===K||K.flush()}}function n9(e,t,i,u){var x;const b=t[Rn];if(!(256&~b))return;null===(x=t[Si].inlineEffectRunner)||void 0===x||x.flush(),Vc(t);let H=null,K=null;(function r9(e){return 2!==e.type})(e)&&(K=function Q8(e){var t;return null!==(t=e[io])&&void 0!==t?t:function J8(e){var t;const i=null!==(t=Xp.pop())&&void 0!==t?t:Object.create(e9);return i.lView=e,i}(e)}(t),H=function M(e){return e&&(e.nextProducerIndex=0),C(e)}(K));try{Pf(t),function Vf(e){return tr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&Rp(e,t,i,2,u);const he=!(3&~b);if(he){const ct=e.preOrderCheckHooks;null!==ct&&ou(t,ct,null)}else{const ct=e.preOrderHooks;null!==ct&&su(t,ct,0,null),Hc(t,0)}if(function i9(e){for(let t=Bh(e);null!==t;t=Sh(t)){if(!(t[Rn]&eu.HasTransplantedViews))continue;const i=t[jo];for(let u=0;ue.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(K,H),function q8(e){e.lView[io]!==e&&(e.lView=null,Xp.push(e))}(K)),jc()}}function Zp(e,t){for(let i=Bh(e);null!==i;i=Sh(i))for(let u=kr;u-1&&(sl(t,u),Bi(i,u))}this._attachedToViewContainer=!1}Tu(this._lView[yn],this._lView)}onDestroy(t){nu(this._lView,t)}markForCheck(){hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[Rn]&=-129}reattach(){Rc(this._lView),this._lView[Rn]|=128}detectChanges(){this._lView[Rn]|=1024,Lu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,vp(this._lView[yn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=t,Rc(this._lView)}}let xl=(()=>{class t{}return t.__NG_ELEMENT_ID__=l9,t})();const s9=xl,a9=class extends s9{constructor(t,i,u){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=u}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,u){const x=function cl(e,t,i,u){const x=C(null);try{var b,N,H;const K=t.tView,Oe=Ou(e,K,i,4096&e[Rn]?4096:16,null,t,null,null,null!==(b=null==u?void 0:u.injector)&&void 0!==b?b:null,null!==(N=null==u?void 0:u.embeddedViewInjector)&&void 0!==N?N:null,null!==(H=null==u?void 0:u.dehydratedView)&&void 0!==H?H:null);Oe[Uo]=e[t.index];const Dt=e[Li];return null!==Dt&&(Oe[Li]=Dt.createEmbeddedView(K)),H0(K,Oe,i),Oe}finally{C(x)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:i,dehydratedView:u});return new pl(x)}};function l9(){return $u(yr(),sn())}function $u(e,t){return 4&e.type?new a9(t,e,zs(e,t)):null}class Q0{}class F9{}class ox{}class R9{resolveComponentFactory(t){throw function P9(e){const t=Error(`No component factory found for ${Wt(e)}.`);return t.ngComponent=e,t}(t)}}let zu=(()=>{class t{}return t.NULL=new R9,t})();class ax{}let O9=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function N9(){const e=sn(),i=Ti(yr().index,e);return(ii(i)?i:e)[Qn]}(),t})(),k9=(()=>{var e;class t{}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:()=>null}),t})();const J0={},lx=new Set;function ho(e){var t,i;lx.has(e)||(lx.add(e),null===(t=performance)||void 0===t||null===(i=t.mark)||void 0===i||i.call(t,"mark_feature_usage",{detail:{feature:e}}))}function ux(...e){}class zr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:u=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!u&&i,x.shouldCoalesceRunChangeDetection=u,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function L9(){const e="function"==typeof bt.requestAnimationFrame;let t=bt[e?"requestAnimationFrame":"setTimeout"],i=bt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const u=t[Zone.__symbol__("OriginalDelegate")];u&&(t=u);const x=i[Zone.__symbol__("OriginalDelegate")];x&&(i=x)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function V9(e){const t=()=>{!function U9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ed(e),e.isCheckStableRunning=!0,q0(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ed(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,u,x,b,N,H)=>{if(function j9(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(H))return i.invokeTask(x,b,N,H);try{return cx(e),i.invokeTask(x,b,N,H)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===b.type||e.shouldCoalesceRunChangeDetection)&&t(),dx(e)}},onInvoke:(i,u,x,b,N,H,K)=>{try{return cx(e),i.invoke(x,b,N,H,K)}finally{e.shouldCoalesceRunChangeDetection&&t(),dx(e)}},onHasTask:(i,u,x,b)=>{i.hasTask(x,b),u===x&&("microTask"==b.change?(e._hasPendingMicrotasks=b.microTask,ed(e),q0(e)):"macroTask"==b.change&&(e.hasPendingMacrotasks=b.macroTask))},onHandleError:(i,u,x,b)=>(i.handleError(x,b),e.runOutsideAngular(()=>e.onError.emit(b)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zr.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(zr.isInAngularZone())throw new G(909,!1)}run(t,i,u){return this._inner.run(t,i,u)}runTask(t,i,u,x){const b=this._inner,N=b.scheduleEventTask("NgZoneEvent: "+x,t,$9,ux,ux);try{return b.runTask(N,i,u)}finally{b.cancelTask(N)}}runGuarded(t,i,u){return this._inner.runGuarded(t,i,u)}runOutsideAngular(t){return this._outer.run(t)}}const $9={};function q0(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ed(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cx(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dx(e){e._nesting--,q0(e)}class fx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,i,u){return t.apply(i,u)}runGuarded(t,i,u){return t.apply(i,u)}runOutsideAngular(t){return t()}runTask(t,i,u,x){return t.apply(i,u)}}var Es=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Es||{});const hx={destroy(){}};function px(e,t){var i,u,x;!t&&function $o(e){if(!Na())throw new G(-203,!1)}();const b=null!==(i=null==t?void 0:t.injector)&&void 0!==i?i:$n(Fi);if(!function Yi(e){return"browser"===(null!=e?e:$n(Fi)).get(o0)}(b))return hx;ho("NgAfterNextRender");const N=b.get(yl),H=null!==(u=N.handler)&&void 0!==u?u:N.handler=new vx,K=null!==(x=null==t?void 0:t.phase)&&void 0!==x?x:Es.MixedReadWrite,he=()=>{H.unregister(Oe),we()},we=b.get(Hs).onDestroy(he),Oe=ro(b,()=>new xx(K,()=>{he(),e()}));return H.register(Oe),{destroy:he}}class xx{constructor(t,i){var u;this.phase=t,this.callbackFn=i,this.zone=$n(zr),this.errorHandler=$n(So,{optional:!0}),null===(u=$n(Q0,{optional:!0}))||void 0===u||u.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(i)}}}class vx{constructor(){this.executingCallbacks=!1,this.buckets={[Es.EarlyRead]:new Set,[Es.Write]:new Set,[Es.MixedReadWrite]:new Set,[Es.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const i of t)i.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let yl=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var u;this.executeInternalCallbacks(),null===(u=this.handler)||void 0===u||u.execute()}executeInternalCallbacks(){const u=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const x of u)x()}ngOnDestroy(){var u;null===(u=this.handler)||void 0===u||u.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:()=>new e}),t})();function Go(e){return!!Gr(e)}function Ku(e,t,i){let u=i?e.styles:null,x=i?e.classes:null,b=0;if(null!==t)for(let N=0;N0&&Bp(e,i,b.join(" "))}}(tn,Ji,gn,u),void 0!==i&&function eC(e,t,i){const u=e.projection=[];for(let x=0;x{class t{}return t.__NG_ELEMENT_ID__=nC,t})();function nC(){return Dx(yr(),sn())}const rC=Xu,Cx=class extends rC{constructor(t,i,u){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=u}get element(){return zs(this._hostTNode,this._hostLView)}get injector(){return new Yr(this._hostTNode,this._hostLView)}get parentInjector(){const t=uu(this._hostTNode,this._hostLView);if(Wc(t)){const i=Ya(t,this._hostLView),u=Xa(t);return new Yr(i[yn].data[u+8],i)}return new Yr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=bx(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-kr}createEmbeddedView(t,i,u){let x,b;"number"==typeof u?x=u:null!=u&&(x=u.index,b=u.injector);const H=t.createEmbeddedViewImpl(i||{},b,null);return this.insertImpl(H,x,ea(this._hostTNode,null)),H}createComponent(t,i,u,x,b){var N,K;const he=t&&!function Jt(e){return"function"==typeof e}(t);let we;if(he)we=i;else{const gn=i||{};we=gn.index,u=gn.injector,x=gn.projectableNodes,b=gn.environmentInjector||gn.ngModuleRef}const Oe=he?t:new Dl(er(t)),ct=u||this.parentInjector;if(!b&&null==Oe.ngModule){const on=(he?ct:this.parentInjector).get(fi,null);on&&(b=on)}const Dt=er(null!==(N=Oe.componentType)&&void 0!==N?N:{}),jt=(null==Dt?void 0:Dt.id,null),tn=null!==(K=null==jt?void 0:jt.firstChild)&&void 0!==K?K:null,pn=Oe.create(ct,x,tn,b);return this.insertImpl(pn.hostView,we,ea(this._hostTNode,jt)),pn}insert(t,i){return this.insertImpl(t,i,!0)}insertImpl(t,i,u){const x=t._lView;if(function Z1(e){return Jr(e[ir])}(x)){const H=this.indexOf(t);if(-1!==H)this.detach(H);else{const K=x[ir],he=new Cx(K,K[Ar],K[ir]);he.detach(he.indexOf(t))}}const b=this._adjustIndex(i),N=this._lContainer;return dl(N,x,b,u),t.attachToViewContainerRef(),Ni(id(N),b,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=bx(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),u=sl(this._lContainer,i);u&&(Bi(id(this._lContainer),i),Tu(u[yn],u))}detach(t){const i=this._adjustIndex(t,-1),u=sl(this._lContainer,i);return u&&null!=Bi(id(this._lContainer),i)?new pl(u):null}_adjustIndex(t,i=0){return null==t?this.length+i:t}};function bx(e){return e[8]}function id(e){return e[8]||(e[8]=[])}function Dx(e,t){let i;const u=t[e.index];return Jr(u)?i=u:(i=Vp(u,t,null,e),t[e.index]=i,Nu(t,i)),Ax(i,t,e,u),new Cx(i,e,t)}let Ax=function wx(e,t,i,u){if(e[Gi])return;let x;x=8&i.type?br(u):function iC(e,t){const i=e[Qn],u=i.createComment(""),x=hi(t,e);return gs(i,Fu(i,x),u,function E8(e,t){return e.nextSibling(t)}(i,x),!1),u}(t,i),e[Gi]=x},od=()=>!1;class sd{constructor(t){this.queryList=t,this.matches=null}clone(){return new sd(this.queryList)}setDirty(){this.queryList.setDirty()}}class ad{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const u=null!==t.contentQueries?t.contentQueries[0]:i.length,x=[];for(let b=0;bt.trim())}(t):t}}class ld{constructor(t=[]){this.queries=t}elementStart(t,i){for(let u=0;u0)u.push(N[H/2]);else{const he=b[H+1],we=t[-K];for(let Oe=kr;Oe=0;u--){const x=e[u];x.hostVars=t+=x.hostVars,x.hostAttrs=Xe(x.hostAttrs,i=Xe(i,x.hostAttrs))}}(u)}function AC(e,t){for(const u in t.inputs){if(!t.inputs.hasOwnProperty(u)||e.inputs.hasOwnProperty(u))continue;const x=t.inputs[u];if(void 0!==x&&(e.inputs[u]=x,e.declaredInputs[u]=t.declaredInputs[u],null!==t.inputTransforms)){var i;const b=Array.isArray(x)?x[0]:x;if(!t.inputTransforms.hasOwnProperty(b))continue;null!==(i=e.inputTransforms)&&void 0!==i||(e.inputTransforms={}),e.inputTransforms[b]=t.inputTransforms[b]}}}function Zu(e){return e===dn?{}:e===fn?[]:e}function wC(e,t){const i=e.viewQuery;e.viewQuery=i?(u,x)=>{t(u,x),i(u,x)}:t}function _C(e,t){const i=e.contentQueries;e.contentQueries=i?(u,x,b)=>{t(u,x,b),i(u,x,b)}:t}function BC(e,t){const i=e.hostBindings;e.hostBindings=i?(u,x)=>{t(u,x),i(u,x)}:t}function Qx(e){const t=e.inputConfig,i={};for(const u in t)if(t.hasOwnProperty(u)){const x=t[u];Array.isArray(x)&&x[3]&&(i[u]=x[3])}e.inputTransforms=i}class ys{}class Jx{}function RC(e,t){return new xd(e,null!=t?t:null,[])}class xd extends ys{constructor(t,i,u){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ex(this);const x=Gr(t);this._bootstrapComponents=Pi(x.bootstrap),this._r3Injector=ph(t,i,[{provide:ys,useValue:this},{provide:zu,useValue:this.componentFactoryResolver},...u],Wt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class vd extends Jx{constructor(t){super(),this.moduleType=t}create(t){return new xd(this.moduleType,t,[])}}class qx extends ys{constructor(t){super(),this.componentFactoryResolver=new Ex(this),this.instance=null;const i=new to([...t.providers,{provide:ys,useValue:this},{provide:zu,useValue:this.componentFactoryResolver}],t.parent||ko(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function md(e,t,i=null){return new qx({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let ra=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ie.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const u=this.taskId++;return this.pendingTasks.add(u),u}remove(u){this.pendingTasks.delete(u),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ju(e){return!!gd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function gd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function po(e,t,i){return e[t]=i}function $r(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function Cs(e,t,i,u){const x=$r(e,t,i);return $r(e,t+1,u)||x}function ia(e,t,i,u,x,b,N,H){const K=sn(),he=ur(),we=e+Jn,Oe=he.firstCreatePass?function VC(e,t,i,u,x,b,N,H,K){const he=t.consts,we=qs(t,e,4,N||null,so(he,H));L0(t,i,we,so(he,K)),iu(t,we);const Oe=we.tView=k0(2,we,u,x,b,t.directiveRegistry,t.pipeRegistry,null,t.schemas,he,null);return null!==t.queries&&(t.queries.template(t,we),Oe.queries=t.queries.embeddedTView(we)),we}(we,he,K,t,i,u,x,b,N):he.data[we];ao(Oe,!1);const ct=ev(he,K,Oe,e);Ka()&&Pu(he,K,ct,Oe),ci(ct,K);const Dt=Vp(ct,K,ct,Oe);return K[we]=Dt,Nu(K,Dt),function Mx(e,t,i){return od(e,t,i)}(Dt,Oe,K),us(Oe)&&O0(he,K,Oe),null!=N&&N0(K,Oe,H),ia}let ev=function tv(e,t,i,u){return lo(!0),t[Qn].createComment("")};function Bd(e,t,i,u){const x=sn();return $r(x,Xi(),t)&&(ur(),fo(Br(),x,e,t,i,u)),Bd}function fa(e,t,i,u){return $r(e,Xi(),i)?t+dt(i)+u:rr}function ha(e,t,i,u,x,b){const H=Cs(e,function _o(){return tr.lFrame.bindingIndex}(),i,x);return Bo(2),H?t+dt(i)+u+dt(x)+b:rr}function oc(e,t){return e<<17|t<<2}function Zo(e){return e>>17&32767}function Sd(e){return 2|e}function Ds(e){return(131068&e)>>2}function Id(e,t){return-131069&e|t<<2}function Td(e){return 1|e}function Fv(e,t,i,u){const x=e[i+1],b=null===t;let N=u?Zo(x):Ds(x),H=!1;for(;0!==N&&(!1===H||b);){const he=e[N+1];_2(e[N],t)&&(H=!0,e[N+1]=u?Td(he):Sd(he)),N=u?Zo(he):Ds(he)}H&&(e[i+1]=u?Sd(x):Td(x))}function _2(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Te(e,t)>=0}const Zr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pv(e){return e.substring(Zr.key,Zr.keyEnd)}function B2(e){return e.substring(Zr.value,Zr.valueEnd)}function Rv(e,t){const i=Zr.textEnd;return i===t?-1:(t=Zr.keyEnd=function T2(e,t,i){for(;t32;)t++;return t}(e,Zr.key=t,i),ya(e,t,i))}function Ov(e,t){const i=Zr.textEnd;let u=Zr.key=ya(e,t,i);return i===u?-1:(u=Zr.keyEnd=function F2(e,t,i){let u;for(;t=65&&(-33&u)<=90||u>=48&&u<=57);)t++;return t}(e,u,i),u=kv(e,u,i),u=Zr.value=ya(e,u,i),u=Zr.valueEnd=function P2(e,t,i){let u=-1,x=-1,b=-1,N=t,H=N;for(;N32&&(H=N),b=x,x=u,u=-33&K}return H}(e,u,i),kv(e,u,i))}function Nv(e){Zr.key=0,Zr.keyEnd=0,Zr.value=0,Zr.valueEnd=0,Zr.textEnd=e.length}function ya(e,t,i){for(;t=0;i=Ov(t,i))jv(e,Pv(t),B2(t))}function vo(e,t){for(let i=function S2(e){return Nv(e),Rv(e,ya(e,0,Zr.textEnd))}(t);i>=0;i=Rv(t,i))Re(e,Pv(t),!0)}function Qi(e,t,i,u){const x=ur(),b=Bo(2);x.firstUpdatePass&&Vv(x,null,b,u);const N=sn();if(i!==rr&&$r(N,b,i)){const H=x.data[ui()];if(Wv(H,u)&&!Uv(x,b)){let K=u?H.classesWithoutHost:H.stylesWithoutHost;null!==K&&(i=Nt(K,i||"")),Pd(x,H,N,i,u)}else!function j2(e,t,i,u,x,b,N,H){x===rr&&(x=fn);let K=0,he=0,we=0=e.expandoStartIndex}function Vv(e,t,i,u){const x=e.data;if(null===x[i+1]){const b=x[ui()],N=Uv(e,i);Wv(b,u)&&null===t&&!N&&(t=!1),t=function N2(e,t,i,u){const x=function $c(e){const t=tr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let b=u?t.residualClasses:t.residualStyles;if(null===x)0===(u?t.classBindings:t.styleBindings)&&(i=Il(i=Od(null,e,t,i,u),t.attrs,u),b=null);else{const N=t.directiveStylingLast;if(-1===N||e[N]!==x)if(i=Od(x,e,t,i,u),null===b){let K=function k2(e,t,i){const u=i?t.classBindings:t.styleBindings;if(0!==Ds(u))return e[Zo(u)]}(e,t,u);void 0!==K&&Array.isArray(K)&&(K=Od(null,e,t,K[1],u),K=Il(K,t.attrs,u),function L2(e,t,i,u){e[Zo(i?t.classBindings:t.styleBindings)]=u}(e,t,u,K))}else b=function $2(e,t,i){let u;const x=t.directiveEnd;for(let b=1+t.directiveStylingLast;b0)&&(he=!0)):we=i,x)if(0!==K){const ct=Zo(e[H+1]);e[u+1]=oc(ct,H),0!==ct&&(e[ct+1]=Id(e[ct+1],u)),e[H+1]=function D2(e,t){return 131071&e|t<<17}(e[H+1],u)}else e[u+1]=oc(H,0),0!==H&&(e[H+1]=Id(e[H+1],u)),H=u;else e[u+1]=oc(K,0),0===H?H=u:e[K+1]=Id(e[K+1],u),K=u;he&&(e[u+1]=Sd(e[u+1])),Fv(e,we,u,!0),Fv(e,we,u,!1),function w2(e,t,i,u,x){const b=x?e.residualClasses:e.residualStyles;null!=b&&"string"==typeof t&&Te(b,t)>=0&&(i[u+1]=Td(i[u+1]))}(t,we,e,u,b),N=oc(H,K),b?t.classBindings=N:t.styleBindings=N}(x,b,t,i,N,u)}}function Od(e,t,i,u,x){let b=null;const N=i.directiveEnd;let H=i.directiveStylingLast;for(-1===H?H=i.directiveStart:H++;H0;){const K=e[x],he=Array.isArray(K),we=he?K[1]:K,Oe=null===we;let ct=i[x+1];ct===rr&&(ct=Oe?fn:void 0);let Dt=Oe?Le(ct,u):we===u?ct:void 0;if(he&&!sc(Dt)&&(Dt=Le(K,u)),sc(Dt)&&(H=Dt,N))return H;const jt=e[x+1];x=N?Zo(jt):Ds(jt)}if(null!==t){let K=b?t.residualClasses:t.residualStyles;null!=K&&(H=Le(K,u))}return H}function sc(e){return void 0!==e}function Wv(e,t){return!!(e.flags&(t?8:16))}function Kv(e,t,i){Qi(Re,vo,fa(sn(),e,t,i),!0)}function ac(e,t,i,u){const x=sn(),b=ur(),N=Jn+e,H=x[Qn],K=b.firstCreatePass?function db(e,t,i,u,x,b){const N=t.consts,K=qs(t,e,2,u,so(N,x));return L0(t,i,K,so(N,b)),null!==K.attrs&&Ku(K,K.attrs,!1),null!==K.mergedAttrs&&Ku(K,K.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,K),K}(N,b,x,t,i,u):b.data[N],he=Zv(b,x,K,H,t,e);x[N]=he;const we=us(K);return ao(K,!0),Sp(H,he,K),!function wl(e){return!(32&~e.flags)}(K)&&Ka()&&Pu(b,x,he,K),0===function J1(){return tr.lFrame.elementDepthCount}()&&ci(he,x),function q1(){tr.lFrame.elementDepthCount++}(),we&&(O0(b,x,K),R0(b,K,x)),null!==u&&N0(x,K),ac}function lc(){let e=yr();Nc()?kc():(e=e.parent,ao(e,!1));const t=e;(function tE(e){return tr.skipHydrationRootTNode===e})(t)&&function oE(){tr.skipHydrationRootTNode=null}(),function eE(){tr.lFrame.elementDepthCount--}();const i=ur();return i.firstCreatePass&&(iu(i,e),La(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function yE(e){return!!(8&e.flags)}(t)&&Pd(i,t,sn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function CE(e){return!!(16&e.flags)}(t)&&Pd(i,t,sn(),t.stylesWithoutHost,!1),lc}function Ud(e,t,i,u){return ac(e,t,i,u),lc(),Ud}let Zv=(e,t,i,u,x,b)=>(lo(!0),Iu(u,x,function Xf(){return tr.lFrame.currentNamespace}()));function Vd(e,t,i){const u=sn(),x=ur(),b=e+Jn,N=x.firstCreatePass?function pb(e,t,i,u,x){const b=t.consts,N=so(b,u),H=qs(t,e,8,"ng-container",N);return null!==N&&Ku(H,N,!0),L0(t,i,H,so(b,x)),null!==t.queries&&t.queries.elementStart(t,H),H}(b,x,u,t,i):x.data[b];ao(N,!0);const H=Qv(x,u,N,e);return u[b]=H,Ka()&&Pu(x,u,H,N),ci(H,u),us(N)&&(O0(x,u,N),R0(x,N,u)),null!=i&&N0(u,N),Vd}function jd(){let e=yr();const t=ur();return Nc()?kc():(e=e.parent,ao(e,!1)),t.firstCreatePass&&(iu(t,e),La(e)&&t.queries.elementEnd(e)),jd}function Hd(e,t,i){return Vd(e,t,i),jd(),Hd}let Qv=(e,t,i,u)=>(lo(!0),_0(t[Qn],""));function Jv(){return sn()}const As=void 0;var gb=["en",[["a","p"],["AM","PM"],As],[["AM","PM"],As,As],[["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"]],As,[["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"]],As,[["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}",As,"{1} 'at' {0}",As],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function mb(e){const i=Math.floor(Math.abs(e)),u=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===u?1:5}];let Ca={};function zd(e){const t=function Eb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=nm(t);if(i)return i;const u=t.split("-")[0];if(i=nm(u),i)return i;if("en"===u)return gb;throw new G(701,!1)}function tm(e){return zd(e)[ba.PluralCase]}function nm(e){return e in Ca||(Ca[e]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[e]),Ca[e]}var ba=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ba||{});const Da="en-US";let rm=Da;function Gd(e,t,i,u){const x=sn(),b=ur(),N=yr();return Xd(b,x,x[Qn],N,e,t,u),Gd}function Xd(e,t,i,u,x,b,N){const H=us(u),he=e.firstCreatePass&&zp(e),we=t[Cr],Oe=Hp(t);let ct=!0;if(3&u.type||N){const tn=hi(u,t),pn=N?N(tn):tn,gn=Oe.length,on=N?or=>N(br(or[u.index])):u.index;let Yn=null;if(!N&&H&&(Yn=function x6(e,t,i,u){const x=e.cleanup;if(null!=x)for(let b=0;bK?H[K]:null}"string"==typeof N&&(b+=2)}return null}(e,t,x,u.index)),null!==Yn)(Yn.__ngLastListenerFn__||Yn).__ngNextListenerFn__=b,Yn.__ngLastListenerFn__=b,ct=!1;else{b=Tm(u,t,we,b,!1);const or=i.listen(pn,x,b);Oe.push(b,or),he&&he.push(x,on,gn,gn+1)}}else b=Tm(u,t,we,b,!1);const Dt=u.outputs;let jt;if(ct&&null!==Dt&&(jt=Dt[x])){const tn=jt.length;if(tn)for(let pn=0;pn-1?Ti(e.index,t):t);let K=Im(t,i,u,N),he=b.__ngNextListenerFn__;for(;he;)K=Im(t,i,he,N)&&K,he=he.__ngNextListenerFn__;return x&&!1===K&&N.preventDefault(),K}}function Fm(e=1){return function dE(e){return(tr.lFrame.contextLView=function Rf(e,t){for(;e>0;)t=t[Ao],e--;return t}(e,tr.lFrame.contextLView))[Cr]}(e)}function v6(e,t){let i=null;const u=function yo(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let x=0;x(lo(!0),function w0(e,t){return e.createText(t)}(t[Qn],u));function Qd(e){return hc("",e,""),Qd}function hc(e,t,i){const u=sn(),x=fa(u,e,t,i);return x!==rr&&Fo(u,ui(),x),hc}function Jd(e,t,i,u,x){const b=sn(),N=ha(b,e,t,i,u,x);return N!==rr&&Fo(b,ui(),N),Jd}function qd(e,t,i){Nx(t)&&(t=t());const u=sn();return $r(u,Xi(),t)&&Ci(ur(),Br(),u,e,t,u[Qn],i,!1),qd}function fg(e,t){const i=Nx(e);return i&&e.set(t),i}function ef(e,t){const i=sn(),u=ur(),x=yr();return Xd(u,i,i[Qn],x,e,t),ef}function tf(e,t,i,u,x){if(e=He(e),Array.isArray(e))for(let b=0;b>20;if(Ki(e)||!e.multi){const Dt=new Ga(he,x,Js),jt=rf(K,t,x?we:we+ct,Oe);-1===jt?(Xc(lu(H,N),b,K),nf(b,e,t.length),t.push(K),H.directiveStart++,H.directiveEnd++,x&&(H.providerIndexes+=1048576),i.push(Dt),N.push(Dt)):(i[jt]=Dt,N[jt]=Dt)}else{const Dt=rf(K,t,we+ct,Oe),jt=rf(K,t,we,we+ct),pn=jt>=0&&i[jt];if(x&&!pn||!x&&!(Dt>=0&&i[Dt])){Xc(lu(H,N),b,K);const gn=function O6(e,t,i,u,x){const b=new Ga(e,i,Js);return b.multi=[],b.index=t,b.componentProviders=0,hg(b,x,u&&!i),b}(x?R6:P6,i.length,x,u,he);!x&&pn&&(i[jt].providerFactory=gn),nf(b,e,t.length,0),t.push(K),H.directiveStart++,H.directiveEnd++,x&&(H.providerIndexes+=1048576),i.push(gn),N.push(gn)}else nf(b,e,Dt>-1?Dt:jt,hg(i[x?jt:Dt],he,!x&&u));!x&&u&&pn&&i[jt].componentProviders++}}}function nf(e,t,i,u){const x=Ki(t),b=function Ra(e){return!!e.useClass}(t);if(x||b){const K=(b?He(t.useClass):t).prototype.ngOnDestroy;if(K){const he=e.destroyHooks||(e.destroyHooks=[]);if(!x&&t.multi){const we=he.indexOf(i);-1===we?he.push(i,[u,K]):he[we+1].push(u,K)}else he.push(i,K)}}}function hg(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function rf(e,t,i,u){for(let x=i;x{i.providersResolver=(u,x)=>function F6(e,t,i){const u=ur();if(u.firstCreatePass){const x=Ii(e);tf(i,u.data,u.blueprint,x,!0),tf(t,u.data,u.blueprint,x,!1)}}(u,x?x(e):e,t)}}let N6=(()=>{var e;class t{constructor(u){this._injector=u,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(u){if(!u.standalone)return null;if(!this.cachedInjectors.has(u)){const x=Oo(0,u.type),b=x.length>0?md([x],this._injector,`Standalone[${u.type.name}]`):null;this.cachedInjectors.set(u,b)}return this.cachedInjectors.get(u)}ngOnDestroy(){try{for(const u of this.cachedInjectors.values())null!==u&&u.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Mn({token:e,providedIn:"environment",factory:()=>new e(Dr(fi))}),t})();function xg(e){ho("NgStandalone"),e.getStandaloneInjector=t=>t.get(N6).getOrCreateStandaloneInjector(e)}function mg(e,t,i){const u=pi()+e,x=sn();return x[u]===rr?po(x,u,i?t.call(i):t()):function Ml(e,t){return e[t]}(x,u)}function gg(e,t,i,u){return yg(sn(),pi(),e,t,i,u)}function Eg(e,t,i,u,x){return function Cg(e,t,i,u,x,b,N){const H=t+i;return Cs(e,H,x,b)?po(e,H+2,N?u.call(N,x,b):u(x,b)):kl(e,H+2)}(sn(),pi(),e,t,i,u,x)}function kl(e,t){const i=e[t];return i===rr?void 0:i}function yg(e,t,i,u,x,b){const N=t+i;return $r(e,N,x)?po(e,N+1,b?u.call(b,x):u(x)):kl(e,N+1)}function Mg(e,t){const i=ur();let u;const x=e+Jn;var b;i.firstCreatePass?(u=function K6(e,t){if(t)for(let i=t.length-1;i>=0;i--){const u=t[i];if(e===u.name)return u}}(t,i.pipeRegistry),i.data[x]=u,u.onDestroy&&(null!==(b=i.destroyHooks)&&void 0!==b?b:i.destroyHooks=[]).push(x,u.onDestroy)):u=i.data[x];const N=u.factory||(u.factory=ti(u.type)),K=Pn(Js);try{const he=au(!1),we=N();return au(he),function y6(e,t,i,u){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=u}(i,sn(),x,we),we}finally{Pn(K)}}function wg(e,t,i){const u=e+Jn,x=sn(),b=function Ls(e,t){return e[t]}(x,u);return function Ll(e,t){return e[yn].data[t].pure}(x,u)?yg(x,pi(),t,b.transform,i,b):b.transform(i)}class jg{constructor(t){this.full=t;const i=t.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}let Hg=(()=>{var e;class t{log(u){console.log(u)}warn(u){console.warn(u)}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Gg=new kt(""),Xg=new kt("");let hf,zD=(()=>{var e;class t{constructor(u,x,b){this._ngZone=u,this.registry=x,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,hf||(function WD(e){hf=e}(b),b.addToWindow(x)),this._watchAngularEvents(),u.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let u=this._callbacks.pop();clearTimeout(u.timeoutId),u.doneCb()}});else{let u=this.getPendingTasks();this._callbacks=this._callbacks.filter(x=>!x.updateCb||!x.updateCb(u)||(clearTimeout(x.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(u=>({source:u.source,creationLocation:u.creationLocation,data:u.data})):[]}addCallback(u,x,b){let N=-1;x&&x>0&&(N=setTimeout(()=>{this._callbacks=this._callbacks.filter(H=>H.timeoutId!==N),u()},x)),this._callbacks.push({doneCb:u,timeoutId:N,updateCb:b})}whenStable(u,x,b){if(b&&!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(u,x,b),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(u){this.registry.registerApplication(u,this)}unregisterApplication(u){this.registry.unregisterApplication(u)}findProviders(u,x,b){return[]}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(zr),Dr(Yg),Dr(Xg))},e.\u0275prov=Mn({token:e,factory:e.\u0275fac}),t})(),Yg=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(u,x){this._applications.set(u,x)}unregisterApplication(u){this._applications.delete(u)}unregisterAllApplications(){this._applications.clear()}getTestability(u){return this._applications.get(u)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(u,x=!0){var b,N;return null!==(b=null===(N=hf)||void 0===N?void 0:N.findTestabilityInTree(this,u,x))&&void 0!==b?b:null}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function pf(e){return!!e&&"function"==typeof e.then}function Zg(e){return!!e&&"function"==typeof e.subscribe}const Qg=new kt("");let xf=(()=>{var e;class t{constructor(){var u;this.initialized=!1,this.done=!1,this.donePromise=new Promise((x,b)=>{this.resolve=x,this.reject=b}),this.appInits=null!==(u=$n(Qg,{optional:!0}))&&void 0!==u?u:[]}runInitializers(){if(this.initialized)return;const u=[];for(const b of this.appInits){const N=b();if(pf(N))u.push(N);else if(Zg(N)){const H=new Promise((K,he)=>{N.subscribe({complete:K,error:he})});u.push(H)}}const x=()=>{this.done=!0,this.resolve()};Promise.all(u).then(()=>{x()}).catch(b=>{this.reject(b)}),0===u.length&&x(),this.initialized=!0}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const vf=new kt("");function e1(e,t){return Array.isArray(t)?t.reduce(e1,e):{...e,...t}}let Qo=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=$n(vh),this.afterRenderEffectManager=$n(yl),this.externalTestViews=new Set,this.beforeRender=new ke.B,this.afterTick=new ke.B,this.componentTypes=[],this.components=[],this.isStable=$n(ra).hasPendingTasks.pipe((0,_e.T)(u=>!u)),this._injector=$n(fi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(u,x){const b=u instanceof ox;if(!this._injector.get(xf).done)throw!b&&li(u),new G(405,!1);let H;H=b?u:this._injector.get(zu).resolveComponentFactory(u),this.componentTypes.push(H.componentType);const K=function KD(e){return e.isBoundToModule}(H)?void 0:this._injector.get(ys),we=H.create(Fi.NULL,[],x||H.selector,K),Oe=we.location.nativeElement,ct=we.injector.get(Gg,null);return null==ct||ct.registerApplication(Oe),we.onDestroy(()=>{this.detachView(we.hostView),mc(this.components,we),null==ct||ct.unregisterApplication(Oe)}),this._loadComponent(we),we}tick(){this._tick(!0)}_tick(u){if(this._runningTick)throw new G(101,!1);const x=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(u)}catch(b){this.internalErrorHandler(b)}finally{this.afterTick.next(),this._runningTick=!1,C(x)}}detectChangesInAttachedViews(u){let x=0;const b=this.afterRenderEffectManager;for(;;){if(x===Yp)throw new G(103,!1);if(u){const N=0===x;this.beforeRender.next(N);for(let{_lView:H,notifyErrorHandler:K}of this._views)XD(H,N,K)}if(x++,b.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:N})=>mf(N))&&(b.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:N})=>mf(N))))break}}attachView(u){const x=u;this._views.push(x),x.attachToAppRef(this)}detachView(u){const x=u;mc(this._views,x),x.detachFromAppRef()}_loadComponent(u){this.attachView(u.hostView),this.tick(),this.components.push(u);const x=this._injector.get(vf,[]);[...this._bootstrapListeners,...x].forEach(b=>b(u))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(u=>u()),this._views.slice().forEach(u=>u.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(u){return this._destroyListeners.push(u),()=>mc(this._destroyListeners,u)}destroy(){if(this._destroyed)throw new G(406,!1);const u=this._injector;u.destroy&&!u.destroyed&&u.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function mc(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function XD(e,t,i){!t&&!mf(e)||function YD(e,t,i){let u;i?(u=0,e[Rn]|=1024):u=64&e[Rn]?0:1,Lu(e,t,u)}(e,i,t)}function mf(e){return Pc(e)}class ZD{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let QD=(()=>{var e;class t{compileModuleSync(u){return new vd(u)}compileModuleAsync(u){return Promise.resolve(this.compileModuleSync(u))}compileModuleAndAllComponentsSync(u){const x=this.compileModuleSync(u),N=Pi(Gr(u).declarations).reduce((H,K)=>{const he=er(K);return he&&H.push(new Dl(he)),H},[]);return new ZD(x,N)}compileModuleAndAllComponentsAsync(u){return Promise.resolve(this.compileModuleAndAllComponentsSync(u))}clearCache(){}clearCacheFor(u){}getModuleId(u){}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),eA=(()=>{var e;class t{constructor(){this.zone=$n(zr),this.applicationRef=$n(Qo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var u;null===(u=this._onMicrotaskEmptySubscription)||void 0===u||u.unsubscribe()}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function tA(){const e=$n(zr),t=$n(So);return i=>e.runOutsideAngular(()=>t.handleError(i))}let rA=(()=>{var e;class t{constructor(){this.subscription=new pe.yU,this.initialized=!1,this.zone=$n(zr),this.pendingTasks=$n(ra)}initialize(){if(this.initialized)return;this.initialized=!0;let u=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(u=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{zr.assertNotInAngularZone(),queueMicrotask(()=>{null!==u&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(u),u=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var x;zr.assertInAngularZone(),null!==(x=u)&&void 0!==x||(u=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(u){return new(u||e)},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const gc=new kt("",{providedIn:"root",factory:()=>$n(gc,nn.Optional|nn.SkipSelf)||function iA(){return typeof $localize<"u"&&$localize.locale||Da}()}),oA=new kt("",{providedIn:"root",factory:()=>"USD"}),gf=new kt("");let i1=(()=>{var e;class t{constructor(u){this._injector=u,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(u,x){const b=function H9(e="zone.js",t){return"noop"===e?new fx:"zone.js"===e?new zr(t):e}(null==x?void 0:x.ngZone,function r1(e){var t,i;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(i=null==e?void 0:e.runCoalescing)&&void 0!==i&&i}}({eventCoalescing:null==x?void 0:x.ngZoneEventCoalescing,runCoalescing:null==x?void 0:x.ngZoneRunCoalescing}));return b.run(()=>{const N=function OC(e,t,i){return new xd(e,t,i)}(u.moduleType,this.injector,function n1(e){return[{provide:zr,useFactory:e},{provide:Un,multi:!0,useFactory:()=>{const t=$n(eA,{optional:!0});return()=>t.initialize()}},{provide:Un,multi:!0,useFactory:()=>{const t=$n(rA);return()=>{t.initialize()}}},{provide:vh,useFactory:tA}]}(()=>b)),H=N.injector.get(So,null);return b.runOutsideAngular(()=>{const K=b.onError.subscribe({next:he=>{H.handleError(he)}});N.onDestroy(()=>{mc(this._modules,N),K.unsubscribe()})}),function qg(e,t,i){try{const u=i();return pf(u)?u.catch(x=>{throw t.runOutsideAngular(()=>e.handleError(x)),x}):u}catch(u){throw t.runOutsideAngular(()=>e.handleError(u)),u}}(H,b,()=>{const K=N.injector.get(xf);return K.runInitializers(),K.donePromise.then(()=>(function im(e){"string"==typeof e&&(rm=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(gc,Da)||Da),this._moduleDoBootstrap(N),N))})})}bootstrapModule(u,x=[]){const b=e1({},x);return function qD(e,t,i){const u=new vd(i);return Promise.resolve(u)}(0,0,u).then(N=>this.bootstrapModuleFactory(N,b))}_moduleDoBootstrap(u){const x=u.injector.get(Qo);if(u._bootstrapComponents.length>0)u._bootstrapComponents.forEach(b=>x.bootstrap(b));else{if(!u.instance.ngDoBootstrap)throw new G(-403,!1);u.instance.ngDoBootstrap(x)}this._modules.push(u)}onDestroy(u){this._destroyListeners.push(u)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(x=>x.destroy()),this._destroyListeners.forEach(x=>x());const u=this._injector.get(gf,null);u&&(u.forEach(x=>x()),u.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(Fi))},e.\u0275prov=Mn({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Jo=null;const o1=new kt("");function s1(e,t,i=[]){const u=`Platform: ${t}`,x=new kt(u);return(b=[])=>{let N=Ef();if(!N||N.injector.get(o1,!1)){const H=[...i,...b,{provide:x,useValue:!0}];e?e(H):function aA(e){if(Jo&&!Jo.get(o1,!1))throw new G(400,!1);(function Jg(){!function d(e){v=e}(()=>{throw new G(600,!1)})})(),Jo=e;const t=e.get(i1);(function l1(e){const t=e.get($h,null);null==t||t.forEach(i=>i())})(e)}(function a1(e=[],t){return Fi.create({name:t,providers:[{provide:No,useValue:"platform"},{provide:gf,useValue:new Set([()=>Jo=null])},...e]})}(H,u))}return function lA(e){const t=Ef();if(!t)throw new G(401,!1);return t}()}}function Ef(){var e,t;return null!==(e=null===(t=Jo)||void 0===t?void 0:t.get(i1))&&void 0!==e?e:null}function cA(){}let c1=(()=>{class t{}return t.__NG_ELEMENT_ID__=dA,t})();function dA(e){return function fA(e,t,i){if(Ho(e)&&!i){const u=Ti(e.index,t);return new pl(u,u)}return 47&e.type?new pl(t[Tr],t):null}(yr(),sn(),!(16&~e))}class p1{constructor(){}supports(t){return Ju(t)}create(t){return new mA(t)}}const vA=(e,t)=>t;class mA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||vA}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,u=this._removalsHead,x=0,b=null;for(;i||u;){const N=!u||i&&i.currentIndex{N=this._trackByFn(x,H),null!==i&&Object.is(i.trackById,N)?(u&&(i=this._verifyReinsertion(i,H,N,x)),Object.is(i.item,H)||this._addIdentityChange(i,H)):(i=this._mismatch(i,H,N,x),u=!0),i=i._next,x++}),this.length=x;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,u,x){let b;return null===t?b=this._itTail:(b=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,b,x)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(u,x))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,b,x)):t=this._addAfter(new gA(i,u),b,x),t}_verifyReinsertion(t,i,u,x){let b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null);return null!==b?t=this._reinsertAfter(b,t._prev,x):t.currentIndex!=x&&(t.currentIndex=x,this._addToMoves(t,x)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,u){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const x=t._prevRemoved,b=t._nextRemoved;return null===x?this._removalsHead=b:x._nextRemoved=b,null===b?this._removalsTail=x:b._prevRemoved=x,this._insertAfter(t,i,u),this._addToMoves(t,u),t}_moveAfter(t,i,u){return this._unlink(t),this._insertAfter(t,i,u),this._addToMoves(t,u),t}_addAfter(t,i,u){return this._insertAfter(t,i,u),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,u){const x=null===i?this._itHead:i._next;return t._next=x,t._prev=i,null===x?this._itTail=t:x._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new x1),this._linkedRecords.put(t),t.currentIndex=u,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,u=t._next;return null===i?this._itHead=u:i._next=u,null===u?this._itTail=i:u._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new x1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class gA{constructor(t,i){this.item=t,this.trackById=i,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 EA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let u;for(u=this._head;null!==u;u=u._nextDup)if((null===i||i<=u.currentIndex)&&Object.is(u.trackById,t))return u;return null}remove(t){const i=t._prevDup,u=t._nextDup;return null===i?this._head=u:i._nextDup=u,null===u?this._tail=i:u._prevDup=i,null===this._head}}class x1{constructor(){this.map=new Map}put(t){const i=t.trackById;let u=this.map.get(i);u||(u=new EA,this.map.set(i,u)),u.add(t)}get(t,i){const x=this.map.get(t);return x?x.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function v1(e,t,i){const u=e.previousIndex;if(null===u)return u;let x=0;return i&&u{if(i&&i.key===x)this._maybeAddToChanges(i,u),this._appendAfter=i,i=i._next;else{const b=this._getOrCreateRecordForKey(x,u);i=this._insertBeforeOrAppend(i,b)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let u=i;null!==u;u=u._nextRemoved)u===this._mapHead&&(this._mapHead=null),this._records.delete(u.key),u._nextRemoved=u._next,u.previousValue=u.currentValue,u.currentValue=null,u._prev=null,u._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const u=t._prev;return i._next=t,i._prev=u,t._prev=i,u&&(u._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const x=this._records.get(t);this._maybeAddToChanges(x,i);const b=x._prev,N=x._next;return b&&(b._next=N),N&&(N._prev=b),x._next=null,x._prev=null,x}const u=new CA(t);return this._records.set(t,u),u.currentValue=i,this._addToAdditions(u),u}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(u=>i(t[u],u))}}class CA{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function g1(){return new Af([new p1])}let Af=(()=>{var e;class t{constructor(u){this.factories=u}static create(u,x){if(null!=x){const b=x.factories.slice();u=u.concat(b)}return new t(u)}static extend(u){return{provide:t,useFactory:x=>t.create(u,x||g1()),deps:[[t,new _i,new Kr]]}}find(u){const x=this.factories.find(b=>b.supports(u));if(null!=x)return x;throw new G(901,!1)}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:g1}),t})();function E1(){return new Mf([new m1])}let Mf=(()=>{var e;class t{constructor(u){this.factories=u}static create(u,x){if(x){const b=x.factories.slice();u=u.concat(b)}return new t(u)}static extend(u){return{provide:t,useFactory:x=>t.create(u,x||E1()),deps:[[t,new _i,new Kr]]}}find(u){const x=this.factories.find(b=>b.supports(u));if(x)return x;throw new G(901,!1)}}return(e=t).\u0275prov=Mn({token:e,providedIn:"root",factory:E1}),t})();const AA=s1(null,"core",[]);let MA=(()=>{var e;class t{constructor(u){}}return(e=t).\u0275fac=function(u){return new(u||e)(Dr(Qo))},e.\u0275mod=ts({type:e}),e.\u0275inj=Ln({}),t})();function e3(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function n3(e){const t=C(null);try{return e()}finally{C(t)}}function l3(e,t){const i=er(e),u=t.elementInjector||ko();return new Dl(i).create(u,t.projectableNodes,t.hostElement,t.environmentInjector)}function u3(e){const t=er(e);if(!t)return null;const i=new Dl(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(Ce,ee,E)=>{"use strict";E.d(ee,{BC:()=>ne,VZ:()=>ti,X1:()=>Ei,YN:()=>es,cz:()=>L,kq:()=>_,vO:()=>pe,vS:()=>pt,zX:()=>_i});var a=E(4438),S=E(177),p=E(6648),O=E(7468),c=E(6354);let D=(()=>{var be;class ce{constructor(Ee,ot){this._renderer=Ee,this._elementRef=ot,this.onChange=En=>{},this.onTouched=()=>{}}setProperty(Ee,ot){this._renderer.setProperty(this._elementRef.nativeElement,Ee,ot)}registerOnTouched(Ee){this.onTouched=Ee}registerOnChange(Ee){this.onChange=Ee}setDisabledState(Ee){this.setProperty("disabled",Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(a.sFG),a.rXU(a.aKT))},be.\u0275dir=a.FsC({type:be}),ce})(),C=(()=>{var be;class ce extends D{}return(be=ce).\u0275fac=(()=>{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,features:[a.Vt3]}),ce})();const _=new a.nKC(""),m={provide:_,useExisting:(0,a.Rfq)(()=>w),multi:!0},A=new a.nKC("");let w=(()=>{var be;class ce extends D{constructor(Ee,ot,En){super(Ee,ot),this._compositionMode=En,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const be=(0,S.QT)()?(0,S.QT)().getUserAgent():"";return/android (\d+)/.test(be.toLowerCase())}())}writeValue(Ee){this.setProperty("value",null==Ee?"":Ee)}_handleInput(Ee){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ee)}_compositionStart(){this._composing=!0}_compositionEnd(Ee){this._composing=!1,this._compositionMode&&this.onChange(Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(a.sFG),a.rXU(a.aKT),a.rXU(A,8))},be.\u0275dir=a.FsC({type:be,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(Ee,ot){1&Ee&&a.bIt("input",function(Hn){return ot._handleInput(Hn.target.value)})("blur",function(){return ot.onTouched()})("compositionstart",function(){return ot._compositionStart()})("compositionend",function(Hn){return ot._compositionEnd(Hn.target.value)})},features:[a.Jv_([m]),a.Vt3]}),ce})();function P(be){return null==be||("string"==typeof be||Array.isArray(be))&&0===be.length}const L=new a.nKC(""),M=new a.nKC("");function o(be){return null}function l(be){return null!=be}function s(be){return(0,a.jNT)(be)?(0,p.H)(be):be}function h(be){let ce={};return be.forEach(Xe=>{ce=null!=Xe?{...ce,...Xe}:ce}),0===Object.keys(ce).length?null:ce}function v(be,ce){return ce.map(Xe=>Xe(be))}function d(be){return be.map(ce=>function y(be){return!be.validate}(ce)?ce:Xe=>ce.validate(Xe))}function f(be){return null!=be?function r(be){if(!be)return null;const ce=be.filter(l);return 0==ce.length?null:function(Xe){return h(v(Xe,ce))}}(d(be)):null}function I(be){return null!=be?function k(be){if(!be)return null;const ce=be.filter(l);return 0==ce.length?null:function(Xe){const Ee=v(Xe,ce).map(s);return(0,O.p)(Ee).pipe((0,c.T)(h))}}(d(be)):null}function V(be,ce){return null===be?[ce]:Array.isArray(be)?[...be,ce]:[be,ce]}function ve(be){return be?Array.isArray(be)?be:[be]:[]}function De(be,ce){return Array.isArray(be)?be.includes(ce):be===ce}function Q(be,ce){const Xe=ve(ce);return ve(be).forEach(ot=>{De(Xe,ot)||Xe.push(ot)}),Xe}function ae(be,ce){return ve(ce).filter(Xe=>!De(be,Xe))}class tt{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(ce){this._rawValidators=ce||[],this._composedValidatorFn=f(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=I(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,Xe){return!!this.control&&this.control.hasError(ce,Xe)}getError(ce,Xe){return this.control?this.control.getError(ce,Xe):null}}class ke extends tt{get formDirective(){return null}get path(){return null}}class pe extends tt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ie{constructor(ce){this._cd=ce}get isTouched(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.touched)}get isUntouched(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.untouched)}get isPristine(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.pristine)}get isDirty(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.dirty)}get isValid(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.valid)}get isInvalid(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.invalid)}get isPending(){var ce;return!(null===(ce=this._cd)||void 0===ce||null===(ce=ce.control)||void 0===ce||!ce.pending)}get isSubmitted(){var ce;return!(null===(ce=this._cd)||void 0===ce||!ce.submitted)}}let ne=(()=>{var be;class ce extends Ie{constructor(Ee){super(Ee)}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(pe,2))},be.\u0275dir=a.FsC({type:be,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ee,ot){2&Ee&&a.AVh("ng-untouched",ot.isUntouched)("ng-touched",ot.isTouched)("ng-pristine",ot.isPristine)("ng-dirty",ot.isDirty)("ng-valid",ot.isValid)("ng-invalid",ot.isInvalid)("ng-pending",ot.isPending)},features:[a.Vt3]}),ce})();const Bt="VALID",Lt="INVALID",Wt="PENDING",Nt="DISABLED";function Be(be){return null!=be&&!Array.isArray(be)&&"object"==typeof be}class Ze{constructor(ce,Xe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ce),this._assignAsyncValidators(Xe)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get valid(){return this.status===Bt}get invalid(){return this.status===Lt}get pending(){return this.status==Wt}get disabled(){return this.status===Nt}get enabled(){return this.status!==Nt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(Q(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(Q(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(ae(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(ae(ce,this._rawAsyncValidators))}hasValidator(ce){return De(this._rawValidators,ce)}hasAsyncValidator(ce){return De(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){this.touched=!0,this._parent&&!ce.onlySelf&&this._parent.markAsTouched(ce)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ce=>ce.markAllAsTouched())}markAsUntouched(ce={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Xe=>{Xe.markAsUntouched({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}markAsDirty(ce={}){this.pristine=!1,this._parent&&!ce.onlySelf&&this._parent.markAsDirty(ce)}markAsPristine(ce={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Xe=>{Xe.markAsPristine({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}markAsPending(ce={}){this.status=Wt,!1!==ce.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ce.onlySelf&&this._parent.markAsPending(ce)}disable(ce={}){const Xe=this._parentMarkedDirty(ce.onlySelf);this.status=Nt,this.errors=null,this._forEachChild(Ee=>{Ee.disable({...ce,onlySelf:!0})}),this._updateValue(),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Xe}),this._onDisabledChange.forEach(Ee=>Ee(!0))}enable(ce={}){const Xe=this._parentMarkedDirty(ce.onlySelf);this.status=Bt,this._forEachChild(Ee=>{Ee.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Xe}),this._onDisabledChange.forEach(Ee=>Ee(!1))}_updateAncestors(ce){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bt||this.status===Wt)&&this._runAsyncValidator(ce.emitEvent)),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity(ce)}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(Xe=>Xe._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nt:Bt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce){if(this.asyncValidator){this.status=Wt,this._hasOwnPendingAsyncValidator=!0;const Xe=s(this.asyncValidator(this));this._asyncValidationSubscription=Xe.subscribe(Ee=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ee,{emitEvent:ce})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ce,Xe={}){this.errors=ce,this._updateControlsErrors(!1!==Xe.emitEvent)}get(ce){let Xe=ce;return null==Xe||(Array.isArray(Xe)||(Xe=Xe.split(".")),0===Xe.length)?null:Xe.reduce((Ee,ot)=>Ee&&Ee._find(ot),this)}getError(ce,Xe){const Ee=Xe?this.get(Xe):this;return Ee&&Ee.errors?Ee.errors[ce]:null}hasError(ce,Xe){return!!this.getError(ce,Xe)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ce)}_initObservables(){this.valueChanges=new a.bkB,this.statusChanges=new a.bkB}_calculateStatus(){return this._allControlsDisabled()?Nt:this.errors?Lt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wt)?Wt:this._anyControlsHaveStatus(Lt)?Lt:Bt}_anyControlsHaveStatus(ce){return this._anyControls(Xe=>Xe.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}_updateTouched(ce={}){this.touched=this._anyControlsTouched(),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){Be(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function zn(be){return Array.isArray(be)?f(be):be||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function He(be){return Array.isArray(be)?I(be):be||null}(this._rawAsyncValidators)}}const Je=new a.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>st}),st="always";function yt(be,ce,Xe=st){var Ee,ot;(function Rt(be,ce){const Xe=function J(be){return be._rawValidators}(be);null!==ce.validator?be.setValidators(V(Xe,ce.validator)):"function"==typeof Xe&&be.setValidators([Xe]);const Ee=function oe(be){return be._rawAsyncValidators}(be);null!==ce.asyncValidator?be.setAsyncValidators(V(Ee,ce.asyncValidator)):"function"==typeof Ee&&be.setAsyncValidators([Ee]);const ot=()=>be.updateValueAndValidity();Kt(ce._rawValidators,ot),Kt(ce._rawAsyncValidators,ot)})(be,ce),ce.valueAccessor.writeValue(be.value),(be.disabled||"always"===Xe)&&(null===(Ee=(ot=ce.valueAccessor).setDisabledState)||void 0===Ee||Ee.call(ot,be.disabled)),function An(be,ce){ce.valueAccessor.registerOnChange(Xe=>{be._pendingValue=Xe,be._pendingChange=!0,be._pendingDirty=!0,"change"===be.updateOn&&Mn(be,ce)})}(be,ce),function Wn(be,ce){const Xe=(Ee,ot)=>{ce.valueAccessor.writeValue(Ee),ot&&ce.viewToModelUpdate(Ee)};be.registerOnChange(Xe),ce._registerOnDestroy(()=>{be._unregisterOnChange(Xe)})}(be,ce),function Bn(be,ce){ce.valueAccessor.registerOnTouched(()=>{be._pendingTouched=!0,"blur"===be.updateOn&&be._pendingChange&&Mn(be,ce),"submit"!==be.updateOn&&be.markAsTouched()})}(be,ce),function Pt(be,ce){if(ce.valueAccessor.setDisabledState){const Xe=Ee=>{ce.valueAccessor.setDisabledState(Ee)};be.registerOnDisabledChange(Xe),ce._registerOnDestroy(()=>{be._unregisterOnDisabledChange(Xe)})}}(be,ce)}function Kt(be,ce){be.forEach(Xe=>{Xe.registerOnValidatorChange&&Xe.registerOnValidatorChange(ce)})}function Mn(be,ce){be._pendingDirty&&be.markAsDirty(),be.setValue(be._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(be._pendingValue),be._pendingChange=!1}function Kn(be,ce){const Xe=be.indexOf(ce);Xe>-1&&be.splice(Xe,1)}function fr(be){return"object"==typeof be&&null!==be&&2===Object.keys(be).length&&"value"in be&&"disabled"in be}Promise.resolve();const Ge=class extends Ze{constructor(ce=null,Xe,Ee){super(function Ot(be){return(Be(be)?be.validators:be)||null}(Xe),function Ut(be,ce){return(Be(ce)?ce.asyncValidators:be)||null}(Ee,Xe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ce),this._setUpdateStrategy(Xe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Be(Xe)&&(Xe.nonNullable||Xe.initialValueIsDefault)&&(this.defaultValue=fr(ce)?ce.value:ce)}setValue(ce,Xe={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==Xe.emitModelToViewChange&&this._onChange.forEach(Ee=>Ee(this.value,!1!==Xe.emitViewToModelChange)),this.updateValueAndValidity(Xe)}patchValue(ce,Xe={}){this.setValue(ce,Xe)}reset(ce=this.defaultValue,Xe={}){this._applyFormState(ce),this.markAsPristine(Xe),this.markAsUntouched(Xe),this.setValue(this.value,Xe),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){Kn(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){Kn(this._onDisabledChange,ce)}_forEachChild(ce){}_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(ce){fr(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},Ke={provide:pe,useExisting:(0,a.Rfq)(()=>pt)},dt=Promise.resolve();let pt=(()=>{var be;class ce extends pe{constructor(Ee,ot,En,Hn,Fr,di){super(),this._changeDetectorRef=Fr,this.callSetDisabledState=di,this.control=new Ge,this._registered=!1,this.name="",this.update=new a.bkB,this._parent=Ee,this._setValidators(ot),this._setAsyncValidators(En),this.valueAccessor=function kt(be,ce){if(!ce)return null;let Xe,Ee,ot;return Array.isArray(ce),ce.forEach(En=>{En.constructor===w?Xe=En:function Tt(be){return Object.getPrototypeOf(be.constructor)===C}(En)?Ee=En:ot=En}),ot||Ee||Xe||null}(0,Hn)}ngOnChanges(Ee){if(this._checkForErrors(),!this._registered||"name"in Ee){if(this._registered&&(this._checkName(),this.formDirective)){const ot=Ee.name.previousValue;this.formDirective.removeControl({name:ot,path:this._getPath(ot)})}this._setUpControl()}"isDisabled"in Ee&&this._updateDisabled(Ee),function lt(be,ce){if(!be.hasOwnProperty("model"))return!1;const Xe=be.model;return!!Xe.isFirstChange()||!Object.is(ce,Xe.currentValue)}(Ee,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(Ee){this.viewModel=Ee,this.update.emit(Ee)}_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(){yt(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(Ee){dt.then(()=>{var ot;this.control.setValue(Ee,{emitViewToModelChange:!1}),null===(ot=this._changeDetectorRef)||void 0===ot||ot.markForCheck()})}_updateDisabled(Ee){const ot=Ee.isDisabled.currentValue,En=0!==ot&&(0,a.L39)(ot);dt.then(()=>{var Hn;En&&!this.control.disabled?this.control.disable():!En&&this.control.disabled&&this.control.enable(),null===(Hn=this._changeDetectorRef)||void 0===Hn||Hn.markForCheck()})}_getPath(Ee){return this._parent?function en(be,ce){return[...ce.path,be]}(Ee,this._parent):[Ee]}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)(a.rXU(ke,9),a.rXU(L,10),a.rXU(M,10),a.rXU(_,10),a.rXU(a.gRc,8),a.rXU(Je,8))},be.\u0275dir=a.FsC({type:be,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[a.Mj6.None,"disabled","isDisabled"],model:[a.Mj6.None,"ngModel","model"],options:[a.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.Jv_([Ke]),a.Vt3,a.OA$]}),ce})();const Pn=new a.nKC("");function Hi(be){return"number"==typeof be?be:parseFloat(be)}let Kr=(()=>{var be;class ce{constructor(){this._validator=o}ngOnChanges(Ee){if(this.inputName in Ee){const ot=this.normalizeInput(Ee[this.inputName].currentValue);this._enabled=this.enabled(ot),this._validator=this._enabled?this.createValidator(ot):o,this._onChange&&this._onChange()}}validate(Ee){return this._validator(Ee)}registerOnValidatorChange(Ee){this._onChange=Ee}enabled(Ee){return null!=Ee}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275dir=a.FsC({type:be,features:[a.OA$]}),ce})();const wi={provide:L,useExisting:(0,a.Rfq)(()=>_i),multi:!0};let _i=(()=>{var be;class ce extends Kr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ee=>Hi(Ee),this.createValidator=Ee=>function W(be){return ce=>{if(P(ce.value)||P(be))return null;const Xe=parseFloat(ce.value);return!isNaN(Xe)&&Xe>be?{max:{max:be,actual:ce.value}}:null}}(Ee)}}return(be=ce).\u0275fac=(()=>{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ot){2&Ee&&a.BMQ("max",ot._enabled?ot.max:null)},inputs:{max:"max"},features:[a.Jv_([wi]),a.Vt3]}),ce})();const Po={provide:L,useExisting:(0,a.Rfq)(()=>ti),multi:!0};let ti=(()=>{var be;class ce extends Kr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ee=>Hi(Ee),this.createValidator=Ee=>function j(be){return ce=>{if(P(ce.value)||P(be))return null;const Xe=parseFloat(ce.value);return!isNaN(Xe)&&Xe{let Xe;return function(ot){return(Xe||(Xe=a.xGo(be)))(ot||be)}})(),be.\u0275dir=a.FsC({type:be,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ot){2&Ee&&a.BMQ("min",ot._enabled?ot.min:null)},inputs:{min:"min"},features:[a.Jv_([Po]),a.Vt3]}),ce})(),dn=(()=>{var be;class ce{}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({}),ce})(),es=(()=>{var be;class ce{static withConfig(Ee){var ot;return{ngModule:ce,providers:[{provide:Je,useValue:null!==(ot=Ee.callSetDisabledState)&&void 0!==ot?ot:st}]}}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({imports:[dn]}),ce})(),Ei=(()=>{var be;class ce{static withConfig(Ee){var ot,En;return{ngModule:ce,providers:[{provide:Pn,useValue:null!==(ot=Ee.warnOnNgModelWithFormControl)&&void 0!==ot?ot:"always"},{provide:Je,useValue:null!==(En=Ee.callSetDisabledState)&&void 0!==En?En:st}]}}}return(be=ce).\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=a.$C({type:be}),be.\u0275inj=a.G2t({imports:[dn]}),ce})()},345:(Ce,ee,E)=>{"use strict";E.d(ee,{Bb:()=>Ie,hE:()=>ne,sG:()=>ae,up:()=>bn});var a=E(4438),S=E(177);class p extends S.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends p{static makeCurrent(){(0,S.ZD)(new O)}onAndCancel(Be,Ae,Me){return Be.addEventListener(Ae,Me),()=>{Be.removeEventListener(Ae,Me)}}dispatchEvent(Be,Ae){Be.dispatchEvent(Ae)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,Ae){return(Ae=Ae||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,Ae){return"window"===Ae?window:"document"===Ae?Be:"body"===Ae?Be.body:null}getBaseHref(Be){const Ae=function D(){return c=c||document.querySelector("base"),c?c.getAttribute("href"):null}();return null==Ae?null:function C(He){return new URL(He,document.baseURI).pathname}(Ae)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,S._b)(document.cookie,Be)}}let c=null,F=(()=>{var He;class Be{build(){return new XMLHttpRequest}}return(He=Be).\u0275fac=function(Me){return new(Me||He)},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const B=new a.nKC("");let m=(()=>{var He;class Be{constructor(Me,Ze){this._zone=Ze,this._eventNameToPlugin=new Map,Me.forEach(je=>{je.manager=this}),this._plugins=Me.slice().reverse()}addEventListener(Me,Ze,je){return this._findPluginFor(Ze).addEventListener(Me,Ze,je)}getZone(){return this._zone}_findPluginFor(Me){let Ze=this._eventNameToPlugin.get(Me);if(Ze)return Ze;if(Ze=this._plugins.find(it=>it.supports(Me)),!Ze)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(Me,Ze),Ze}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(B),a.KVO(a.SKi))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();class T{constructor(Be){this._doc=Be}}const A="ng-app-id";let w=(()=>{var He;class Be{constructor(Me,Ze,je,it={}){this.doc=Me,this.appId=Ze,this.nonce=je,this.platformId=it,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,S.Vy)(it),this.resetHostNodes()}addStyles(Me){for(const Ze of Me)1===this.changeUsageCount(Ze,1)&&this.onStyleAdded(Ze)}removeStyles(Me){for(const Ze of Me)this.changeUsageCount(Ze,-1)<=0&&this.onStyleRemoved(Ze)}ngOnDestroy(){const Me=this.styleNodesInDOM;Me&&(Me.forEach(Ze=>Ze.remove()),Me.clear());for(const Ze of this.getAllStyles())this.onStyleRemoved(Ze);this.resetHostNodes()}addHost(Me){this.hostNodes.add(Me);for(const Ze of this.getAllStyles())this.addStyleToHost(Me,Ze)}removeHost(Me){this.hostNodes.delete(Me)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Me){for(const Ze of this.hostNodes)this.addStyleToHost(Ze,Me)}onStyleRemoved(Me){var Ze;const je=this.styleRef;null===(Ze=je.get(Me))||void 0===Ze||null===(Ze=Ze.elements)||void 0===Ze||Ze.forEach(it=>it.remove()),je.delete(Me)}collectServerRenderedStyles(){var Me;const Ze=null===(Me=this.doc.head)||void 0===Me?void 0:Me.querySelectorAll(`style[${A}="${this.appId}"]`);if(null!=Ze&&Ze.length){const je=new Map;return Ze.forEach(it=>{null!=it.textContent&&je.set(it.textContent,it)}),je}return null}changeUsageCount(Me,Ze){const je=this.styleRef;if(je.has(Me)){const it=je.get(Me);return it.usage+=Ze,it.usage}return je.set(Me,{usage:Ze,elements:[]}),Ze}getStyleElement(Me,Ze){const je=this.styleNodesInDOM,it=null==je?void 0:je.get(Ze);if((null==it?void 0:it.parentNode)===Me)return je.delete(Ze),it.removeAttribute(A),it;{const Pe=this.doc.createElement("style");return this.nonce&&Pe.setAttribute("nonce",this.nonce),Pe.textContent=Ze,this.platformIsServer&&Pe.setAttribute(A,this.appId),Me.appendChild(Pe),Pe}}addStyleToHost(Me,Ze){var je;const it=this.getStyleElement(Me,Ze),Pe=this.styleRef,Se=null===(je=Pe.get(Ze))||void 0===je?void 0:je.elements;Se?Se.push(it):Pe.set(Ze,{elements:[it],usage:1})}resetHostNodes(){const Me=this.hostNodes;Me.clear(),Me.add(this.doc.head)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const P={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/"},$=/%COMP%/g,L="%COMP%",M=`_nghost-${L}`,R=`_ngcontent-${L}`,j=new a.nKC("",{providedIn:"root",factory:()=>!0});function me(He,Be){return Be.map(Ae=>Ae.replace($,He))}let te=(()=>{var He;class Be{constructor(Me,Ze,je,it,Pe,Se,ze,Et=null){this.eventManager=Me,this.sharedStylesHost=Ze,this.appId=je,this.removeStylesOnCompDestroy=it,this.doc=Pe,this.platformId=Se,this.ngZone=ze,this.nonce=Et,this.rendererByCompId=new Map,this.platformIsServer=(0,S.Vy)(Se),this.defaultRenderer=new se(Me,Pe,ze,this.platformIsServer)}createRenderer(Me,Ze){if(!Me||!Ze)return this.defaultRenderer;this.platformIsServer&&Ze.encapsulation===a.gXe.ShadowDom&&(Ze={...Ze,encapsulation:a.gXe.Emulated});const je=this.getOrCreateRenderer(Me,Ze);return je instanceof h?je.applyToHost(Me):je instanceof s&&je.applyStyles(),je}getOrCreateRenderer(Me,Ze){const je=this.rendererByCompId;let it=je.get(Ze.id);if(!it){const Pe=this.doc,Se=this.ngZone,ze=this.eventManager,Et=this.sharedStylesHost,Je=this.removeStylesOnCompDestroy,st=this.platformIsServer;switch(Ze.encapsulation){case a.gXe.Emulated:it=new h(ze,Et,Ze,this.appId,Je,Pe,Se,st);break;case a.gXe.ShadowDom:return new l(ze,Et,Me,Ze,Pe,Se,this.nonce,st);default:it=new s(ze,Et,Ze,Je,Pe,Se,st)}je.set(Ze.id,it)}return it}ngOnDestroy(){this.rendererByCompId.clear()}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(m),a.KVO(w),a.KVO(a.sZ2),a.KVO(j),a.KVO(S.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();class se{constructor(Be,Ae,Me,Ze){this.eventManager=Be,this.doc=Ae,this.ngZone=Me,this.platformIsServer=Ze,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,Ae){return Ae?this.doc.createElementNS(P[Ae]||Ae,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,Ae){(o(Be)?Be.content:Be).appendChild(Ae)}insertBefore(Be,Ae,Me){Be&&(o(Be)?Be.content:Be).insertBefore(Ae,Me)}removeChild(Be,Ae){Be&&Be.removeChild(Ae)}selectRootElement(Be,Ae){let Me="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Me)throw new a.wOt(-5104,!1);return Ae||(Me.textContent=""),Me}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,Ae,Me,Ze){if(Ze){Ae=Ze+":"+Ae;const je=P[Ze];je?Be.setAttributeNS(je,Ae,Me):Be.setAttribute(Ae,Me)}else Be.setAttribute(Ae,Me)}removeAttribute(Be,Ae,Me){if(Me){const Ze=P[Me];Ze?Be.removeAttributeNS(Ze,Ae):Be.removeAttribute(`${Me}:${Ae}`)}else Be.removeAttribute(Ae)}addClass(Be,Ae){Be.classList.add(Ae)}removeClass(Be,Ae){Be.classList.remove(Ae)}setStyle(Be,Ae,Me,Ze){Ze&(a.czy.DashCase|a.czy.Important)?Be.style.setProperty(Ae,Me,Ze&a.czy.Important?"important":""):Be.style[Ae]=Me}removeStyle(Be,Ae,Me){Me&a.czy.DashCase?Be.style.removeProperty(Ae):Be.style[Ae]=""}setProperty(Be,Ae,Me){null!=Be&&(Be[Ae]=Me)}setValue(Be,Ae){Be.nodeValue=Ae}listen(Be,Ae,Me){if("string"==typeof Be&&!(Be=(0,S.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${Ae}`);return this.eventManager.addEventListener(Be,Ae,this.decoratePreventDefault(Me))}decoratePreventDefault(Be){return Ae=>{if("__ngUnwrap__"===Ae)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(Ae)):Be(Ae))&&Ae.preventDefault()}}}function o(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class l extends se{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){super(Be,je,it,Se),this.sharedStylesHost=Ae,this.hostEl=Me,this.shadowRoot=Me.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ze=me(Ze.id,Ze.styles);for(const Et of ze){const Je=document.createElement("style");Pe&&Je.setAttribute("nonce",Pe),Je.textContent=Et,this.shadowRoot.appendChild(Je)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,Ae){return super.appendChild(this.nodeOrShadowRoot(Be),Ae)}insertBefore(Be,Ae,Me){return super.insertBefore(this.nodeOrShadowRoot(Be),Ae,Me)}removeChild(Be,Ae){return super.removeChild(this.nodeOrShadowRoot(Be),Ae)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class s extends se{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){super(Be,je,it,Pe),this.sharedStylesHost=Ae,this.removeStylesOnCompDestroy=Ze,this.styles=Se?me(Se,Me.styles):Me.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class h extends s{constructor(Be,Ae,Me,Ze,je,it,Pe,Se){const ze=Ze+"-"+Me.id;super(Be,Ae,Me,je,it,Pe,Se,ze),this.contentAttr=function W(He){return R.replace($,He)}(ze),this.hostAttr=function ie(He){return M.replace($,He)}(ze)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,Ae){const Me=super.createElement(Be,Ae);return super.setAttribute(Me,this.contentAttr,""),Me}}let v=(()=>{var He;class Be extends T{constructor(Me){super(Me)}supports(Me){return!0}addEventListener(Me,Ze,je){return Me.addEventListener(Ze,je,!1),()=>this.removeEventListener(Me,Ze,je)}removeEventListener(Me,Ze,je){return Me.removeEventListener(Ze,je)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const y=["alt","control","meta","shift"],d={"\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"},r={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let f=(()=>{var He;class Be extends T{constructor(Me){super(Me)}supports(Me){return null!=Be.parseEventName(Me)}addEventListener(Me,Ze,je){const it=Be.parseEventName(Ze),Pe=Be.eventCallback(it.fullKey,je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,S.QT)().onAndCancel(Me,it.domEventName,Pe))}static parseEventName(Me){const Ze=Me.toLowerCase().split("."),je=Ze.shift();if(0===Ze.length||"keydown"!==je&&"keyup"!==je)return null;const it=Be._normalizeKey(Ze.pop());let Pe="",Se=Ze.indexOf("code");if(Se>-1&&(Ze.splice(Se,1),Pe="code."),y.forEach(Et=>{const Je=Ze.indexOf(Et);Je>-1&&(Ze.splice(Je,1),Pe+=Et+".")}),Pe+=it,0!=Ze.length||0===it.length)return null;const ze={};return ze.domEventName=je,ze.fullKey=Pe,ze}static matchEventFullKeyCode(Me,Ze){let je=d[Me.key]||Me.key,it="";return Ze.indexOf("code.")>-1&&(je=Me.code,it="code."),!(null==je||!je)&&(je=je.toLowerCase()," "===je?je="space":"."===je&&(je="dot"),y.forEach(Pe=>{Pe!==je&&(0,r[Pe])(Me)&&(it+=Pe+".")}),it+=je,it===Ze)}static eventCallback(Me,Ze,je){return it=>{Be.matchEventFullKeyCode(it,Me)&&je.runGuarded(()=>Ze(it))}}static _normalizeKey(Me){return"esc"===Me?"escape":Me}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac}),Be})();const ae=(0,a.oH4)(a.fpN,"browser",[{provide:a.Agw,useValue:S.AJ},{provide:a.PLl,useValue:function oe(){O.makeCurrent()},multi:!0},{provide:S.qQ,useFactory:function De(){return(0,a.TL$)(document),document},deps:[]}]),tt=new a.nKC(""),ke=[{provide:a.e01,useClass:class _{addToWindow(Be){a.JZv.getAngularTestability=(Me,Ze=!0)=>{const je=Be.findTestabilityInTree(Me,Ze);if(null==je)throw new a.wOt(5103,!1);return je},a.JZv.getAllAngularTestabilities=()=>Be.getAllTestabilities(),a.JZv.getAllAngularRootElements=()=>Be.getAllRootElements(),a.JZv.frameworkStabilizers||(a.JZv.frameworkStabilizers=[]),a.JZv.frameworkStabilizers.push(Me=>{const Ze=a.JZv.getAllAngularTestabilities();let je=Ze.length;const it=function(){je--,0==je&&Me()};Ze.forEach(Pe=>{Pe.whenStable(it)})})}findTestabilityInTree(Be,Ae,Me){if(null==Ae)return null;const Ze=Be.getTestability(Ae);return null!=Ze?Ze:Me?(0,S.QT)().isShadowRoot(Ae)?this.findTestabilityInTree(Be,Ae.host,!0):this.findTestabilityInTree(Be,Ae.parentElement,!0):null}},deps:[]},{provide:a.WHO,useClass:a.NYb,deps:[a.SKi,a.giA,a.e01]},{provide:a.NYb,useClass:a.NYb,deps:[a.SKi,a.giA,a.e01]}],pe=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function ve(){return new a.zcH},deps:[]},{provide:B,useClass:v,multi:!0,deps:[S.qQ,a.SKi,a.Agw]},{provide:B,useClass:f,multi:!0,deps:[S.qQ]},te,w,m,{provide:a._9s,useExisting:te},{provide:S.N0,useClass:F,deps:[]},[]];let Ie=(()=>{var He;class Be{constructor(Me){}static withServerTransition(Me){return{ngModule:Be,providers:[{provide:a.sZ2,useValue:Me.appId}]}}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(tt,12))},He.\u0275mod=a.$C({type:He}),He.\u0275inj=a.G2t({providers:[...pe,...ke],imports:[S.MD,a.Hbi]}),Be})(),ne=(()=>{var He;class Be{constructor(Me){this._doc=Me}getTitle(){return this._doc.title}setTitle(Me){this._doc.title=Me||""}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Be})(),bn=(()=>{var He;class Be{}return(He=Be).\u0275fac=function(Me){return new(Me||He)},He.\u0275prov=a.jDH({token:He,factory:function(Me){let Ze=null;return Ze=Me?new(Me||He):a.KVO(bt),Ze},providedIn:"root"}),Be})(),bt=(()=>{var He;class Be extends bn{constructor(Me){super(),this._doc=Me}sanitize(Me,Ze){if(null==Ze)return null;switch(Me){case a.WPN.NONE:return Ze;case a.WPN.HTML:return(0,a.ZF7)(Ze,"HTML")?(0,a.rcV)(Ze):(0,a.h9k)(this._doc,String(Ze)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Ze,"Style")?(0,a.rcV)(Ze):Ze;case a.WPN.SCRIPT:if((0,a.ZF7)(Ze,"Script"))return(0,a.rcV)(Ze);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Ze,"URL")?(0,a.rcV)(Ze):(0,a.$MX)(String(Ze));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Ze,"ResourceURL"))return(0,a.rcV)(Ze);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(Me){return(0,a.Kcf)(Me)}bypassSecurityTrustStyle(Me){return(0,a.cWb)(Me)}bypassSecurityTrustScript(Me){return(0,a.UyX)(Me)}bypassSecurityTrustUrl(Me){return(0,a.osQ)(Me)}bypassSecurityTrustResourceUrl(Me){return(0,a.e5t)(Me)}}return(He=Be).\u0275fac=function(Me){return new(Me||He)(a.KVO(S.qQ))},He.\u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Be})()},3021:(Ce,ee,E)=>{"use strict";E.d(ee,{nX:()=>ei,Zp:()=>Ue,Z:()=>Fe,Xk:()=>tt,Kp:()=>Si,b:()=>Zn,Ix:()=>ir,Wk:()=>Sr,iI:()=>$a,Sd:()=>Lt});var a=E(467),S=E(4438),p=E(4402),O=E(6648),c=E(7673),D=E(4412),C=E(4572),_=E(9350),F=E(8793),B=E(9030),m=E(1203),T=E(8810),A=E(983),w=E(17),P=E(1413),$=E(8359),L=E(177),M=E(6354),R=E(5558),U=E(6697),j=E(9326),W=E(9974),me=E(5964),te=E(3028),se=E(4360);function g(z){return(0,W.N)((q,ue)=>{let Z=!1;q.subscribe((0,se._)(ue,fe=>{Z=!0,ue.next(fe)},()=>{Z||ue.next(z),ue.complete()}))})}function n(z=o){return(0,W.N)((q,ue)=>{let Z=!1;q.subscribe((0,se._)(ue,fe=>{Z=!0,ue.next(fe)},()=>Z?ue.complete():ue.error(z())))})}function o(){return new _.G}var l=E(3669);function s(z,q){const ue=arguments.length>=2;return Z=>Z.pipe(z?(0,me.p)((fe,Ne)=>z(fe,Ne,Z)):l.D,(0,U.s)(1),ue?g(q):n(()=>new _.G))}var h=E(274),v=E(8141),y=E(9437),d=E(6649);function f(z){return z<=0?()=>A.w:(0,W.N)((q,ue)=>{let Z=[];q.subscribe((0,se._)(ue,fe=>{Z.push(fe),z{for(const fe of Z)ue.next(fe);ue.complete()},void 0,()=>{Z=null}))})}var I=E(3703),V=E(980),J=E(9898),oe=E(8750),ve=E(5343),Q=E(6365),ae=E(345);const tt="primary",ke=Symbol("RouteTitle");class pe{constructor(q){this.params=q||{}}has(q){return Object.prototype.hasOwnProperty.call(this.params,q)}get(q){if(this.has(q)){const ue=this.params[q];return Array.isArray(ue)?ue[0]:ue}return null}getAll(q){if(this.has(q)){const ue=this.params[q];return Array.isArray(ue)?ue:[ue]}return[]}get keys(){return Object.keys(this.params)}}function Ie(z){return new pe(z)}function _e(z,q,ue){const Z=ue.path.split("/");if(Z.length>z.length||"full"===ue.pathMatch&&(q.hasChildren()||Z.lengthZ[Ne]===fe)}return z===q}function xt(z){return z.length>0?z[z.length-1]:null}function Qe(z){return(0,p.A)(z)?z:(0,S.jNT)(z)?(0,O.H)(Promise.resolve(z)):(0,c.of)(z)}const rt={exact:function un(z,q,ue){if(!Dn(z.segments,q.segments)||!St(z.segments,q.segments,ue)||z.numberOfChildren!==q.numberOfChildren)return!1;for(const Z in q.children)if(!z.children[Z]||!un(z.children[Z],q.children[Z],ue))return!1;return!0},subset:It},rn={exact:function ft(z,q){return ne(z,q)},subset:function At(z,q){return Object.keys(q).length<=Object.keys(z).length&&Object.keys(q).every(ue=>ge(z[ue],q[ue]))},ignored:()=>!0};function mt(z,q,ue){return rt[ue.paths](z.root,q.root,ue.matrixParams)&&rn[ue.queryParams](z.queryParams,q.queryParams)&&!("exact"===ue.fragment&&z.fragment!==q.fragment)}function It(z,q,ue){return Cn(z,q,q.segments,ue)}function Cn(z,q,ue,Z){if(z.segments.length>ue.length){const fe=z.segments.slice(0,ue.length);return!(!Dn(fe,ue)||q.hasChildren()||!St(fe,ue,Z))}if(z.segments.length===ue.length){if(!Dn(z.segments,ue)||!St(z.segments,ue,Z))return!1;for(const fe in q.children)if(!z.children[fe]||!It(z.children[fe],q.children[fe],Z))return!1;return!0}{const fe=ue.slice(0,z.segments.length),Ne=ue.slice(z.segments.length);return!!(Dn(z.segments,fe)&&St(z.segments,fe,Z)&&z.children[tt])&&Cn(z.children[tt],q,Ne,Z)}}function St(z,q,ue){return q.every((Z,fe)=>rn[ue](z[fe].parameters,Z.parameters))}class Ft{constructor(q=new bn([],{}),ue={},Z=null){this.root=q,this.queryParams=ue,this.fragment=Z}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class bn{constructor(q,ue){this.segments=q,this.children=ue,this.parent=null,Object.values(ue).forEach(Z=>Z.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ot(this)}}class bt{constructor(q,ue){this.path=q,this.parameters=ue}get parameterMap(){var q;return null!==(q=this._parameterMap)&&void 0!==q||(this._parameterMap=Ie(this.parameters)),this._parameterMap}toString(){return je(this)}}function Dn(z,q){return z.length===q.length&&z.every((ue,Z)=>ue.path===q[Z].path)}let Lt=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>new Wt,providedIn:"root"}),q})();class Wt{parse(q){const ue=new Kt(q);return new Ft(ue.parseRootSegment(),ue.parseQueryParams(),ue.parseFragment())}serialize(q){const ue=`/${zn(q.root,!0)}`,Z=function Pe(z){const q=Object.entries(z).map(([ue,Z])=>Array.isArray(Z)?Z.map(fe=>`${He(ue)}=${He(fe)}`).join("&"):`${He(ue)}=${He(Z)}`).filter(ue=>ue);return q.length?`?${q.join("&")}`:""}(q.queryParams);return`${ue}${Z}${"string"==typeof q.fragment?`#${function Be(z){return encodeURI(z)}(q.fragment)}`:""}`}}const Nt=new Wt;function Ot(z){return z.segments.map(q=>je(q)).join("/")}function zn(z,q){if(!z.hasChildren())return Ot(z);if(q){const ue=z.children[tt]?zn(z.children[tt],!1):"",Z=[];return Object.entries(z.children).forEach(([fe,Ne])=>{fe!==tt&&Z.push(`${fe}:${zn(Ne,!1)}`)}),Z.length>0?`${ue}(${Z.join("//")})`:ue}{const ue=function Bt(z,q){let ue=[];return Object.entries(z.children).forEach(([Z,fe])=>{Z===tt&&(ue=ue.concat(q(fe,Z)))}),Object.entries(z.children).forEach(([Z,fe])=>{Z!==tt&&(ue=ue.concat(q(fe,Z)))}),ue}(z,(Z,fe)=>fe===tt?[zn(z.children[tt],!1)]:[`${fe}:${zn(Z,!1)}`]);return 1===Object.keys(z.children).length&&null!=z.children[tt]?`${Ot(z)}/${ue[0]}`:`${Ot(z)}/(${ue.join("//")})`}}function Ut(z){return encodeURIComponent(z).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function He(z){return Ut(z).replace(/%3B/gi,";")}function Ae(z){return Ut(z).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Me(z){return decodeURIComponent(z)}function Ze(z){return Me(z.replace(/\+/g,"%20"))}function je(z){return`${Ae(z.path)}${function it(z){return Object.entries(z).map(([q,ue])=>`;${Ae(q)}=${Ae(ue)}`).join("")}(z.parameters)}`}const Se=/^[^\/()?;#]+/;function ze(z){const q=z.match(Se);return q?q[0]:""}const Et=/^[^\/()?;=#]+/,st=/^[^=?&#]+/,yt=/^[^&#]+/;class Kt{constructor(q){this.url=q,this.remaining=q}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bn([],{}):new bn([],this.parseChildren())}parseQueryParams(){const q={};if(this.consumeOptional("?"))do{this.parseQueryParam(q)}while(this.consumeOptional("&"));return q}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const q=[];for(this.peekStartsWith("(")||q.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),q.push(this.parseSegment());let ue={};this.peekStartsWith("/(")&&(this.capture("/"),ue=this.parseParens(!0));let Z={};return this.peekStartsWith("(")&&(Z=this.parseParens(!1)),(q.length>0||Object.keys(ue).length>0)&&(Z[tt]=new bn(q,ue)),Z}parseSegment(){const q=ze(this.remaining);if(""===q&&this.peekStartsWith(";"))throw new S.wOt(4009,!1);return this.capture(q),new bt(Me(q),this.parseMatrixParams())}parseMatrixParams(){const q={};for(;this.consumeOptional(";");)this.parseParam(q);return q}parseParam(q){const ue=function Je(z){const q=z.match(Et);return q?q[0]:""}(this.remaining);if(!ue)return;this.capture(ue);let Z="";if(this.consumeOptional("=")){const fe=ze(this.remaining);fe&&(Z=fe,this.capture(Z))}q[Me(ue)]=Me(Z)}parseQueryParam(q){const ue=function en(z){const q=z.match(st);return q?q[0]:""}(this.remaining);if(!ue)return;this.capture(ue);let Z="";if(this.consumeOptional("=")){const nt=function vt(z){const q=z.match(yt);return q?q[0]:""}(this.remaining);nt&&(Z=nt,this.capture(Z))}const fe=Ze(ue),Ne=Ze(Z);if(q.hasOwnProperty(fe)){let nt=q[fe];Array.isArray(nt)||(nt=[nt],q[fe]=nt),nt.push(Ne)}else q[fe]=Ne}parseParens(q){const ue={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Z=ze(this.remaining),fe=this.remaining[Z.length];if("/"!==fe&&")"!==fe&&";"!==fe)throw new S.wOt(4010,!1);let Ne;Z.indexOf(":")>-1?(Ne=Z.slice(0,Z.indexOf(":")),this.capture(Ne),this.capture(":")):q&&(Ne=tt);const nt=this.parseChildren();ue[Ne]=1===Object.keys(nt).length?nt[tt]:new bn([],nt),this.consumeOptional("//")}return ue}peekStartsWith(q){return this.remaining.startsWith(q)}consumeOptional(q){return!!this.peekStartsWith(q)&&(this.remaining=this.remaining.substring(q.length),!0)}capture(q){if(!this.consumeOptional(q))throw new S.wOt(4011,!1)}}function Pt(z){return z.segments.length>0?new bn([],{[tt]:z}):z}function Rt(z){const q={};for(const[Z,fe]of Object.entries(z.children)){const Ne=Rt(fe);if(Z===tt&&0===Ne.segments.length&&Ne.hasChildren())for(const[nt,Ht]of Object.entries(Ne.children))q[nt]=Ht;else(Ne.segments.length>0||Ne.hasChildren())&&(q[Z]=Ne)}return function On(z){if(1===z.numberOfChildren&&z.children[tt]){const q=z.children[tt];return new bn(z.segments.concat(q.segments),q.children)}return z}(new bn(z.segments,q))}function An(z){return z instanceof Ft}function Mn(z){var q;let ue;const Ne=Pt(function Z(nt){const Ht={};for(const Xt of nt.children){const In=Z(Xt);Ht[Xt.outlet]=In}const hn=new bn(nt.url,Ht);return nt===z&&(ue=hn),hn}(z.root));return null!==(q=ue)&&void 0!==q?q:Ne}function Wn(z,q,ue,Z){let fe=z;for(;fe.parent;)fe=fe.parent;if(0===q.length)return kn(fe,fe,fe,ue,Z);const Ne=function jn(z){if("string"==typeof z[0]&&1===z.length&&"/"===z[0])return new Xn(!0,0,z);let q=0,ue=!1;const Z=z.reduce((fe,Ne,nt)=>{if("object"==typeof Ne&&null!=Ne){if(Ne.outlets){const Ht={};return Object.entries(Ne.outlets).forEach(([hn,Xt])=>{Ht[hn]="string"==typeof Xt?Xt.split("/"):Xt}),[...fe,{outlets:Ht}]}if(Ne.segmentPath)return[...fe,Ne.segmentPath]}return"string"!=typeof Ne?[...fe,Ne]:0===nt?(Ne.split("/").forEach((Ht,hn)=>{0==hn&&"."===Ht||(0==hn&&""===Ht?ue=!0:".."===Ht?q++:""!=Ht&&fe.push(Ht))}),fe):[...fe,Ne]},[]);return new Xn(ue,q,Z)}(q);if(Ne.toRoot())return kn(fe,fe,new bn([],{}),ue,Z);const nt=function lt(z,q,ue){if(z.isAbsolute)return new $e(q,!0,0);if(!ue)return new $e(q,!1,NaN);if(null===ue.parent)return new $e(ue,!0,0);const Z=Ln(z.commands[0])?0:1;return function Tt(z,q,ue){let Z=z,fe=q,Ne=ue;for(;Ne>fe;){if(Ne-=fe,Z=Z.parent,!Z)throw new S.wOt(4005,!1);fe=Z.segments.length}return new $e(Z,!1,fe-Ne)}(ue,ue.segments.length-1+Z,z.numberOfDoubleDots)}(Ne,fe,z),Ht=nt.processChildren?Zt(nt.segmentGroup,nt.index,Ne.commands):kt(nt.segmentGroup,nt.index,Ne.commands);return kn(fe,nt.segmentGroup,Ht,ue,Z)}function Ln(z){return"object"==typeof z&&null!=z&&!z.outlets&&!z.segmentPath}function Fn(z){return"object"==typeof z&&null!=z&&z.outlets}function kn(z,q,ue,Z,fe){let nt,Ne={};Z&&Object.entries(Z).forEach(([hn,Xt])=>{Ne[hn]=Array.isArray(Xt)?Xt.map(In=>`${In}`):`${Xt}`}),nt=z===q?ue:Gn(z,q,ue);const Ht=Pt(Rt(nt));return new Ft(Ht,Ne,fe)}function Gn(z,q,ue){const Z={};return Object.entries(z.children).forEach(([fe,Ne])=>{Z[fe]=Ne===q?ue:Gn(Ne,q,ue)}),new bn(z.segments,Z)}class Xn{constructor(q,ue,Z){if(this.isAbsolute=q,this.numberOfDoubleDots=ue,this.commands=Z,q&&Z.length>0&&Ln(Z[0]))throw new S.wOt(4003,!1);const fe=Z.find(Fn);if(fe&&fe!==xt(Z))throw new S.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $e{constructor(q,ue,Z){this.segmentGroup=q,this.processChildren=ue,this.index=Z}}function kt(z,q,ue){var Z;if(null!==(Z=z)&&void 0!==Z||(z=new bn([],{})),0===z.segments.length&&z.hasChildren())return Zt(z,q,ue);const fe=function qt(z,q,ue){let Z=0,fe=q;const Ne={match:!1,pathIndex:0,commandIndex:0};for(;fe=ue.length)return Ne;const nt=z.segments[fe],Ht=ue[Z];if(Fn(Ht))break;const hn=`${Ht}`,Xt=Z0&&void 0===hn)break;if(hn&&Xt&&"object"==typeof Xt&&void 0===Xt.outlets){if(!Kn(hn,Xt,nt))return Ne;Z+=2}else{if(!Kn(hn,{},nt))return Ne;Z++}fe++}return{match:!0,pathIndex:fe,commandIndex:Z}}(z,q,ue),Ne=ue.slice(fe.commandIndex);if(fe.match&&fe.pathIndexNe!==tt)&&z.children[tt]&&1===z.numberOfChildren&&0===z.children[tt].segments.length){const Ne=Zt(z.children[tt],q,ue);return new bn(z.segments,Ne.children)}return Object.entries(Z).forEach(([Ne,nt])=>{"string"==typeof nt&&(nt=[nt]),null!==nt&&(fe[Ne]=kt(z.children[Ne],q,nt))}),Object.entries(z.children).forEach(([Ne,nt])=>{void 0===Z[Ne]&&(fe[Ne]=nt)}),new bn(z.segments,fe)}}function Qt(z,q,ue){const Z=z.segments.slice(0,q);let fe=0;for(;fe{"string"==typeof Z&&(Z=[Z]),null!==Z&&(q[ue]=Qt(new bn([],{}),0,Z))}),q}function wn(z){const q={};return Object.entries(z).forEach(([ue,Z])=>q[ue]=`${Z}`),q}function Kn(z,q,ue){return z==ue.path&&ne(q,ue.parameters)}const fr="imperative";var Ge=function(z){return z[z.NavigationStart=0]="NavigationStart",z[z.NavigationEnd=1]="NavigationEnd",z[z.NavigationCancel=2]="NavigationCancel",z[z.NavigationError=3]="NavigationError",z[z.RoutesRecognized=4]="RoutesRecognized",z[z.ResolveStart=5]="ResolveStart",z[z.ResolveEnd=6]="ResolveEnd",z[z.GuardsCheckStart=7]="GuardsCheckStart",z[z.GuardsCheckEnd=8]="GuardsCheckEnd",z[z.RouteConfigLoadStart=9]="RouteConfigLoadStart",z[z.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",z[z.ChildActivationStart=11]="ChildActivationStart",z[z.ChildActivationEnd=12]="ChildActivationEnd",z[z.ActivationStart=13]="ActivationStart",z[z.ActivationEnd=14]="ActivationEnd",z[z.Scroll=15]="Scroll",z[z.NavigationSkipped=16]="NavigationSkipped",z}(Ge||{});class et{constructor(q,ue){this.id=q,this.url=ue}}class Fe extends et{constructor(q,ue,Z="imperative",fe=null){super(q,ue),this.type=Ge.NavigationStart,this.navigationTrigger=Z,this.restoredState=fe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qe extends et{constructor(q,ue,Z){super(q,ue),this.urlAfterRedirects=Z,this.type=Ge.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Ct=function(z){return z[z.Redirect=0]="Redirect",z[z.SupersededByNewNavigation=1]="SupersededByNewNavigation",z[z.NoDataFromResolver=2]="NoDataFromResolver",z[z.GuardRejected=3]="GuardRejected",z}(Ct||{}),Gt=function(z){return z[z.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",z[z.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",z}(Gt||{});class vn extends et{constructor(q,ue,Z,fe){super(q,ue),this.reason=Z,this.code=fe,this.type=Ge.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gt extends et{constructor(q,ue,Z,fe){super(q,ue),this.reason=Z,this.code=fe,this.type=Ge.NavigationSkipped}}class zt extends et{constructor(q,ue,Z,fe){super(q,ue),this.error=Z,this.target=fe,this.type=Ge.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ye extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ke extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dt extends et{constructor(q,ue,Z,fe,Ne){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.shouldActivate=Ne,this.type=Ge.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pt extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yt extends et{constructor(q,ue,Z,fe){super(q,ue),this.urlAfterRedirects=Z,this.state=fe,this.type=Ge.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t{constructor(q){this.route=q,this.type=Ge.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class an{constructor(q){this.route=q,this.type=Ge.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ln{constructor(q){this.snapshot=q,this.type=Ge.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xn{constructor(q){this.snapshot=q,this.type=Ge.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cn{constructor(q){this.snapshot=q,this.type=Ge.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nn{constructor(q){this.snapshot=q,this.type=Ge.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _n{constructor(q,ue,Z){this.routerEvent=q,this.position=ue,this.anchor=Z,this.type=Ge.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sn{}class Pn{constructor(q){this.url=q}}class X{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ue,this.attachRef=null}}let Ue=(()=>{var z;class q{constructor(){this.contexts=new Map}onChildOutletCreated(Z,fe){const Ne=this.getOrCreateContext(Z);Ne.outlet=fe,this.contexts.set(Z,Ne)}onChildOutletDestroyed(Z){const fe=this.getContext(Z);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const Z=this.contexts;return this.contexts=new Map,Z}onOutletReAttached(Z){this.contexts=Z}getOrCreateContext(Z){let fe=this.getContext(Z);return fe||(fe=new X,this.contexts.set(Z,fe)),fe}getContext(Z){return this.contexts.get(Z)||null}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();class le{constructor(q){this._root=q}get root(){return this._root.value}parent(q){const ue=this.pathFromRoot(q);return ue.length>1?ue[ue.length-2]:null}children(q){const ue=Ye(q,this._root);return ue?ue.children.map(Z=>Z.value):[]}firstChild(q){const ue=Ye(q,this._root);return ue&&ue.children.length>0?ue.children[0].value:null}siblings(q){const ue=_t(q,this._root);return ue.length<2?[]:ue[ue.length-2].children.map(fe=>fe.value).filter(fe=>fe!==q)}pathFromRoot(q){return _t(q,this._root).map(ue=>ue.value)}}function Ye(z,q){if(z===q.value)return q;for(const ue of q.children){const Z=Ye(z,ue);if(Z)return Z}return null}function _t(z,q){if(z===q.value)return[q];for(const ue of q.children){const Z=_t(z,ue);if(Z.length)return Z.unshift(q),Z}return[]}class Nn{constructor(q,ue){this.value=q,this.children=ue}toString(){return`TreeNode(${this.value})`}}function pr(z){const q={};return z&&z.children.forEach(ue=>q[ue.value.outlet]=ue),q}class wr extends le{constructor(q,ue){super(q),this.snapshot=ue,vi(this,q)}toString(){return this.snapshot.toString()}}function qr(z){const q=function Wr(z){const Ne=new Vi([],{},{},"",{},tt,z,null,{});return new Dr("",new Nn(Ne,[]))}(z),ue=new D.t([new bt("",{})]),Z=new D.t({}),fe=new D.t({}),Ne=new D.t({}),nt=new D.t(""),Ht=new ei(ue,Z,Ne,nt,fe,tt,z,q.root);return Ht.snapshot=q.root,new wr(new Nn(Ht,[]),q)}class ei{constructor(q,ue,Z,fe,Ne,nt,Ht,hn){var Xt,In;this.urlSubject=q,this.paramsSubject=ue,this.queryParamsSubject=Z,this.fragmentSubject=fe,this.dataSubject=Ne,this.outlet=nt,this.component=Ht,this._futureSnapshot=hn,this.title=null!==(Xt=null===(In=this.dataSubject)||void 0===In?void 0:In.pipe((0,M.T)(qn=>qn[ke])))&&void 0!==Xt?Xt:(0,c.of)(void 0),this.url=q,this.params=ue,this.queryParams=Z,this.fragment=fe,this.data=Ne}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(){var q;return null!==(q=this._paramMap)&&void 0!==q||(this._paramMap=this.params.pipe((0,M.T)(ue=>Ie(ue)))),this._paramMap}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=this.queryParams.pipe((0,M.T)(ue=>Ie(ue)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jr(z,q,ue="emptyOnly"){var Z;let fe;const{routeConfig:Ne}=z;var nt;return fe=null===q||"always"!==ue&&""!==(null==Ne?void 0:Ne.path)&&(q.component||null!==(Z=q.routeConfig)&&void 0!==Z&&Z.loadComponent)?{params:{...z.params},data:{...z.data},resolve:{...z.data,...null!==(nt=z._resolvedData)&&void 0!==nt?nt:{}}}:{params:{...q.params,...z.params},data:{...q.data,...z.data},resolve:{...z.data,...q.data,...null==Ne?void 0:Ne.data,...z._resolvedData}},Ne&&Di(Ne)&&(fe.resolve[ke]=Ne.title),fe}class Vi{get title(){var q;return null===(q=this.data)||void 0===q?void 0:q[ke]}constructor(q,ue,Z,fe,Ne,nt,Ht,hn,Xt){this.url=q,this.params=ue,this.queryParams=Z,this.fragment=fe,this.data=Ne,this.outlet=nt,this.component=Ht,this.routeConfig=hn,this._resolve=Xt}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(){var q;return null!==(q=this._paramMap)&&void 0!==q||(this._paramMap=Ie(this.params)),this._paramMap}get queryParamMap(){var q;return null!==(q=this._queryParamMap)&&void 0!==q||(this._queryParamMap=Ie(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Z=>Z.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Dr extends le{constructor(q,ue){super(ue),this.url=q,vi(this,ue)}toString(){return $n(this._root)}}function vi(z,q){q.value._routerState=z,q.children.forEach(ue=>vi(z,ue))}function $n(z){const q=z.children.length>0?` { ${z.children.map($n).join(", ")} } `:"";return`${z.value}${q}`}function mi(z){if(z.snapshot){const q=z.snapshot,ue=z._futureSnapshot;z.snapshot=ue,ne(q.queryParams,ue.queryParams)||z.queryParamsSubject.next(ue.queryParams),q.fragment!==ue.fragment&&z.fragmentSubject.next(ue.fragment),ne(q.params,ue.params)||z.paramsSubject.next(ue.params),function re(z,q){if(z.length!==q.length)return!1;for(let ue=0;uene(ue.parameters,q[Z].parameters))}(z.url,q.url);return ue&&!(!z.parent!=!q.parent)&&(!z.parent||Oi(z.parent,q.parent))}function Di(z){return"string"==typeof z.title||null===z.title}let Ai=(()=>{var z;class q{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new S.bkB,this.deactivateEvents=new S.bkB,this.attachEvents=new S.bkB,this.detachEvents=new S.bkB,this.parentContexts=(0,S.WQX)(Ue),this.location=(0,S.WQX)(S.c1b),this.changeDetector=(0,S.WQX)(S.gRc),this.environmentInjector=(0,S.WQX)(S.uvJ),this.inputBinder=(0,S.WQX)(Mi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(Z){if(Z.name){const{firstChange:fe,previousValue:Ne}=Z.name;if(fe)return;this.isTrackedInParentContexts(Ne)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ne)),this.initializeOutletWithName()}}ngOnDestroy(){var Z;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(Z=this.inputBinder)||void 0===Z||Z.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Z){var fe;return(null===(fe=this.parentContexts.getContext(Z))||void 0===fe?void 0:fe.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Z=this.parentContexts.getContext(this.name);null!=Z&&Z.route&&(Z.attachRef?this.attach(Z.attachRef,Z.route):this.activateWith(Z.route,Z.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S.wOt(4012,!1);this.location.detach();const Z=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Z.instance),Z}attach(Z,fe){var Ne;this.activated=Z,this._activatedRoute=fe,this.location.insert(Z.hostView),null===(Ne=this.inputBinder)||void 0===Ne||Ne.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Z.instance)}deactivate(){if(this.activated){const Z=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Z)}}activateWith(Z,fe){var Ne;if(this.isActivated)throw new S.wOt(4013,!1);this._activatedRoute=Z;const nt=this.location,hn=Z.snapshot.component,Xt=this.parentContexts.getOrCreateContext(this.name).children,In=new ji(Z,Xt,nt.injector);this.activated=nt.createComponent(hn,{index:nt.length,injector:In,environmentInjector:null!=fe?fe:this.environmentInjector}),this.changeDetector.markForCheck(),null===(Ne=this.inputBinder)||void 0===Ne||Ne.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275dir=S.FsC({type:z,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[S.OA$]}),q})();class ji{__ngOutletInjector(q){return new ji(this.route,this.childContexts,q)}constructor(q,ue,Z){this.route=q,this.childContexts=ue,this.parent=Z}get(q,ue){return q===ei?this.route:q===Ue?this.childContexts:this.parent.get(q,ue)}}const Mi=new S.nKC("");let Hi=(()=>{var z;class q{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Z){this.unsubscribeFromRouteData(Z),this.subscribeToRouteData(Z)}unsubscribeFromRouteData(Z){var fe;null===(fe=this.outletDataSubscriptions.get(Z))||void 0===fe||fe.unsubscribe(),this.outletDataSubscriptions.delete(Z)}subscribeToRouteData(Z){const{activatedRoute:fe}=Z,Ne=(0,C.z)([fe.queryParams,fe.params,fe.data]).pipe((0,R.n)(([nt,Ht,hn],Xt)=>(hn={...nt,...Ht,...hn},0===Xt?(0,c.of)(hn):Promise.resolve(hn)))).subscribe(nt=>{if(!Z.isActivated||!Z.activatedComponentRef||Z.activatedRoute!==fe||null===fe.component)return void this.unsubscribeFromRouteData(Z);const Ht=(0,S.HJs)(fe.component);if(Ht)for(const{templateName:hn}of Ht.inputs)Z.activatedComponentRef.setInput(hn,nt[hn]);else this.unsubscribeFromRouteData(Z)});this.outletDataSubscriptions.set(Z,Ne)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac}),q})();function wi(z,q,ue){if(ue&&z.shouldReuseRoute(q.value,ue.value.snapshot)){const Z=ue.value;Z._futureSnapshot=q.value;const fe=function _i(z,q,ue){return q.children.map(Z=>{for(const fe of ue.children)if(z.shouldReuseRoute(Z.value,fe.value.snapshot))return wi(z,Z,fe);return wi(z,Z)})}(z,q,ue);return new Nn(Z,fe)}{if(z.shouldAttach(q.value)){const Ne=z.retrieve(q.value);if(null!==Ne){const nt=Ne.route;return nt.value._futureSnapshot=q.value,nt.children=q.children.map(Ht=>wi(z,Ht)),nt}}const Z=function Po(z){return new ei(new D.t(z.url),new D.t(z.params),new D.t(z.queryParams),new D.t(z.fragment),new D.t(z.data),z.outlet,z.component,z)}(q.value),fe=q.children.map(Ne=>wi(z,Ne));return new Nn(Z,fe)}}const ti="ngNavigationCancelingError";function mo(z,q){const{redirectTo:ue,navigationBehaviorOptions:Z}=An(q)?{redirectTo:q,navigationBehaviorOptions:void 0}:q,fe=Ir(!1,Ct.Redirect);return fe.url=ue,fe.navigationBehaviorOptions=Z,fe}function Ir(z,q){const ue=new Error(`NavigationCancelingError: ${z||""}`);return ue[ti]=!0,ue.cancellationCode=q,ue}function Ni(z){return!!z&&z[ti]}let Bi=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275cmp=S.VBU({type:z,selectors:[["ng-component"]],standalone:!0,features:[S.aNF],decls:1,vars:0,template:function(Z,fe){1&Z&&S.nrm(0,"router-outlet")},dependencies:[Ai],encapsulation:2}),q})();function Vt(z){const q=z.children&&z.children.map(Vt),ue=q?{...z,children:q}:{...z};return!ue.component&&!ue.loadComponent&&(q||ue.loadChildren)&&ue.outlet&&ue.outlet!==tt&&(ue.component=Bi),ue}function dn(z){return z.outlet||tt}function Un(z){var q;if(!z)return null;if(null!==(q=z.routeConfig)&&void 0!==q&&q._injector)return z.routeConfig._injector;for(let ue=z.parent;ue;ue=ue.parent){const Z=ue.routeConfig;if(null!=Z&&Z._loadedInjector)return Z._loadedInjector;if(null!=Z&&Z._injector)return Z._injector}return null}class lr{constructor(q,ue,Z,fe,Ne){this.routeReuseStrategy=q,this.futureState=ue,this.currState=Z,this.forwardEvent=fe,this.inputBindingEnabled=Ne}activate(q){const ue=this.futureState._root,Z=this.currState?this.currState._root:null;this.deactivateChildRoutes(ue,Z,q),mi(this.futureState.root),this.activateChildRoutes(ue,Z,q)}deactivateChildRoutes(q,ue,Z){const fe=pr(ue);q.children.forEach(Ne=>{const nt=Ne.value.outlet;this.deactivateRoutes(Ne,fe[nt],Z),delete fe[nt]}),Object.values(fe).forEach(Ne=>{this.deactivateRouteAndItsChildren(Ne,Z)})}deactivateRoutes(q,ue,Z){const fe=q.value,Ne=ue?ue.value:null;if(fe===Ne)if(fe.component){const nt=Z.getContext(fe.outlet);nt&&this.deactivateChildRoutes(q,ue,nt.children)}else this.deactivateChildRoutes(q,ue,Z);else Ne&&this.deactivateRouteAndItsChildren(ue,Z)}deactivateRouteAndItsChildren(q,ue){q.value.component&&this.routeReuseStrategy.shouldDetach(q.value.snapshot)?this.detachAndStoreRouteSubtree(q,ue):this.deactivateRouteAndOutlet(q,ue)}detachAndStoreRouteSubtree(q,ue){const Z=ue.getContext(q.value.outlet),fe=Z&&q.value.component?Z.children:ue,Ne=pr(q);for(const nt of Object.values(Ne))this.deactivateRouteAndItsChildren(nt,fe);if(Z&&Z.outlet){const nt=Z.outlet.detach(),Ht=Z.children.onOutletDeactivated();this.routeReuseStrategy.store(q.value.snapshot,{componentRef:nt,route:q,contexts:Ht})}}deactivateRouteAndOutlet(q,ue){const Z=ue.getContext(q.value.outlet),fe=Z&&q.value.component?Z.children:ue,Ne=pr(q);for(const nt of Object.values(Ne))this.deactivateRouteAndItsChildren(nt,fe);Z&&(Z.outlet&&(Z.outlet.deactivate(),Z.children.onOutletDeactivated()),Z.attachRef=null,Z.route=null)}activateChildRoutes(q,ue,Z){const fe=pr(ue);q.children.forEach(Ne=>{this.activateRoutes(Ne,fe[Ne.value.outlet],Z),this.forwardEvent(new nn(Ne.value.snapshot))}),q.children.length&&this.forwardEvent(new xn(q.value.snapshot))}activateRoutes(q,ue,Z){const fe=q.value,Ne=ue?ue.value:null;if(mi(fe),fe===Ne)if(fe.component){const nt=Z.getOrCreateContext(fe.outlet);this.activateChildRoutes(q,ue,nt.children)}else this.activateChildRoutes(q,ue,Z);else if(fe.component){const nt=Z.getOrCreateContext(fe.outlet);if(this.routeReuseStrategy.shouldAttach(fe.snapshot)){const Ht=this.routeReuseStrategy.retrieve(fe.snapshot);this.routeReuseStrategy.store(fe.snapshot,null),nt.children.onOutletReAttached(Ht.contexts),nt.attachRef=Ht.componentRef,nt.route=Ht.route.value,nt.outlet&&nt.outlet.attach(Ht.componentRef,Ht.route.value),mi(Ht.route.value),this.activateChildRoutes(q,null,nt.children)}else{const Ht=Un(fe.snapshot);nt.attachRef=null,nt.route=fe,nt.injector=Ht,nt.outlet&&nt.outlet.activateWith(fe,nt.injector),this.activateChildRoutes(q,null,nt.children)}}else this.activateChildRoutes(q,null,Z)}}class Or{constructor(q){this.path=q,this.route=this.path[this.path.length-1]}}class ni{constructor(q,ue){this.component=q,this.route=ue}}function gi(z,q,ue){const Z=z._root;return be(Z,q?q._root:null,ue,[Z.value])}function Ei(z,q){const ue=Symbol(),Z=q.get(z,ue);return Z===ue?"function"!=typeof z||(0,S.LfX)(z)?q.get(z):z:Z}function be(z,q,ue,Z,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=pr(q);return z.children.forEach(nt=>{(function ce(z,q,ue,Z,fe={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=z.value,nt=q?q.value:null,Ht=ue?ue.getContext(z.value.outlet):null;if(nt&&Ne.routeConfig===nt.routeConfig){const hn=function Xe(z,q,ue){if("function"==typeof ue)return ue(z,q);switch(ue){case"pathParamsChange":return!Dn(z.url,q.url);case"pathParamsOrQueryParamsChange":return!Dn(z.url,q.url)||!ne(z.queryParams,q.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oi(z,q)||!ne(z.queryParams,q.queryParams);default:return!Oi(z,q)}}(nt,Ne,Ne.routeConfig.runGuardsAndResolvers);hn?fe.canActivateChecks.push(new Or(Z)):(Ne.data=nt.data,Ne._resolvedData=nt._resolvedData),be(z,q,Ne.component?Ht?Ht.children:null:ue,Z,fe),hn&&Ht&&Ht.outlet&&Ht.outlet.isActivated&&fe.canDeactivateChecks.push(new ni(Ht.outlet.component,nt))}else nt&&Ee(q,Ht,fe),fe.canActivateChecks.push(new Or(Z)),be(z,null,Ne.component?Ht?Ht.children:null:ue,Z,fe)})(nt,Ne[nt.value.outlet],ue,Z.concat([nt.value]),fe),delete Ne[nt.value.outlet]}),Object.entries(Ne).forEach(([nt,Ht])=>Ee(Ht,ue.getContext(nt),fe)),fe}function Ee(z,q,ue){const Z=pr(z),fe=z.value;Object.entries(Z).forEach(([Ne,nt])=>{Ee(nt,fe.component?q?q.children.getContext(Ne):null:q,ue)}),ue.canDeactivateChecks.push(new ni(fe.component&&q&&q.outlet&&q.outlet.isActivated?q.outlet.component:null,fe))}function ot(z){return"function"==typeof z}function _s(z){return z instanceof _.G||"EmptyError"===(null==z?void 0:z.name)}const yo=Symbol("INITIAL_VALUE");function qi(){return(0,R.n)(z=>(0,C.z)(z.map(q=>q.pipe((0,U.s)(1),function ie(...z){const q=(0,j.lI)(z);return(0,W.N)((ue,Z)=>{(q?(0,F.x)(z,ue,q):(0,F.x)(z,ue)).subscribe(Z)})}(yo)))).pipe((0,M.T)(q=>{for(const ue of q)if(!0!==ue){if(ue===yo)return yo;if(!1===ue||ue instanceof Ft)return ue}return!0}),(0,me.p)(q=>q!==yo),(0,U.s)(1)))}function ts(z){return(0,m.F)((0,v.M)(q=>{if(An(q))throw mo(0,q)}),(0,M.T)(q=>!0===q))}class ns{constructor(q){this.segmentGroup=q||null}}class Co extends Error{constructor(q){super(),this.urlTree=q}}function er(z){return(0,T.$)(new ns(z))}class Gr{constructor(q,ue){this.urlSerializer=q,this.urlTree=ue}lineralizeSegments(q,ue){let Z=[],fe=ue.root;for(;;){if(Z=Z.concat(fe.segments),0===fe.numberOfChildren)return(0,c.of)(Z);if(fe.numberOfChildren>1||!fe.children[tt])return(0,T.$)(new S.wOt(4e3,!1));fe=fe.children[tt]}}applyRedirectCommands(q,ue,Z){const fe=this.applyRedirectCreateUrlTree(ue,this.urlSerializer.parse(ue),q,Z);if(ue.startsWith("/"))throw new Co(fe);return fe}applyRedirectCreateUrlTree(q,ue,Z,fe){const Ne=this.createSegmentGroup(q,ue.root,Z,fe);return new Ft(Ne,this.createQueryParams(ue.queryParams,this.urlTree.queryParams),ue.fragment)}createQueryParams(q,ue){const Z={};return Object.entries(q).forEach(([fe,Ne])=>{if("string"==typeof Ne&&Ne.startsWith(":")){const Ht=Ne.substring(1);Z[fe]=ue[Ht]}else Z[fe]=Ne}),Z}createSegmentGroup(q,ue,Z,fe){const Ne=this.createSegments(q,ue.segments,Z,fe);let nt={};return Object.entries(ue.children).forEach(([Ht,hn])=>{nt[Ht]=this.createSegmentGroup(q,hn,Z,fe)}),new bn(Ne,nt)}createSegments(q,ue,Z,fe){return ue.map(Ne=>Ne.path.startsWith(":")?this.findPosParam(q,Ne,fe):this.findOrReturn(Ne,Z))}findPosParam(q,ue,Z){const fe=Z[ue.path.substring(1)];if(!fe)throw new S.wOt(4001,!1);return fe}findOrReturn(q,ue){let Z=0;for(const fe of ue){if(fe.path===q.path)return ue.splice(Z),fe;Z++}return q}}const rs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function is(z,q,ue,Z,fe){const Ne=Wi(z,q,ue);return Ne.matched?(Z=function ai(z,q){var ue;return z.providers&&!z._injector&&(z._injector=(0,S.Ol2)(z.providers,q,`Route: ${z.path}`)),null!==(ue=z._injector)&&void 0!==ue?ue:q}(q,Z),function Ia(z,q,ue,Z){const fe=q.canMatch;if(!fe||0===fe.length)return(0,c.of)(!0);const Ne=fe.map(nt=>{const Ht=Ei(nt,z);return Qe(function Eo(z){return z&&ot(z.canMatch)}(Ht)?Ht.canMatch(q,ue):(0,S.N4e)(z,()=>Ht(q,ue)))});return(0,c.of)(Ne).pipe(qi(),ts())}(Z,q,ue).pipe((0,M.T)(nt=>!0===nt?Ne:{...rs}))):(0,c.of)(Ne)}function Wi(z,q,ue){var Z,fe;if("**"===q.path)return function Yl(z){return{matched:!0,parameters:z.length>0?xt(z).parameters:{},consumedSegments:z,remainingSegments:[],positionalParamSegments:{}}}(ue);if(""===q.path)return"full"===q.pathMatch&&(z.hasChildren()||ue.length>0)?{...rs}:{matched:!0,consumedSegments:[],remainingSegments:ue,parameters:{},positionalParamSegments:{}};const nt=(q.matcher||_e)(ue,z,q);if(!nt)return{...rs};const Ht={};Object.entries(null!==(Z=nt.posParams)&&void 0!==Z?Z:{}).forEach(([Xt,In])=>{Ht[Xt]=In.path});const hn=nt.consumed.length>0?{...Ht,...nt.consumed[nt.consumed.length-1].parameters}:Ht;return{matched:!0,consumedSegments:nt.consumed,remainingSegments:ue.slice(nt.consumed.length),parameters:hn,positionalParamSegments:null!==(fe=nt.posParams)&&void 0!==fe?fe:{}}}function Ta(z,q,ue,Z){return ue.length>0&&function Oo(z,q,ue){return ue.some(Z=>eo(z,q,Z)&&dn(Z)!==tt)}(z,ue,Z)?{segmentGroup:new bn(q,Bs(Z,new bn(ue,z.children))),slicedSegments:[]}:0===ue.length&&function Ss(z,q,ue){return ue.some(Z=>eo(z,q,Z))}(z,ue,Z)?{segmentGroup:new bn(z.segments,Ro(z,ue,Z,z.children)),slicedSegments:ue}:{segmentGroup:new bn(z.segments,z.children),slicedSegments:ue}}function Ro(z,q,ue,Z){const fe={};for(const Ne of ue)if(eo(z,q,Ne)&&!Z[dn(Ne)]){const nt=new bn([],{});fe[dn(Ne)]=nt}return{...Z,...fe}}function Bs(z,q){const ue={};ue[tt]=q;for(const Z of z)if(""===Z.path&&dn(Z)!==tt){const fe=new bn([],{});ue[dn(Z)]=fe}return ue}function eo(z,q,ue){return(!(z.hasChildren()||q.length>0)||"full"!==ue.pathMatch)&&""===ue.path}class Zl{}class Pa{constructor(q,ue,Z,fe,Ne,nt,Ht){this.injector=q,this.configLoader=ue,this.rootComponentType=Z,this.config=fe,this.urlTree=Ne,this.paramsInheritanceStrategy=nt,this.urlSerializer=Ht,this.applyRedirects=new Gr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(q){return new S.wOt(4002,`'${q.segmentGroup}'`)}recognize(){const q=Ta(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(q).pipe((0,M.T)(ue=>{const Z=new Vi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,{}),fe=new Nn(Z,ue),Ne=new Dr("",fe),nt=function Bn(z,q,ue=null,Z=null){return Wn(Mn(z),q,ue,Z)}(Z,[],this.urlTree.queryParams,this.urlTree.fragment);return nt.queryParams=this.urlTree.queryParams,Ne.url=this.urlSerializer.serialize(nt),this.inheritParamsAndData(Ne._root,null),{state:Ne,tree:nt}}))}match(q){return this.processSegmentGroup(this.injector,this.config,q,tt).pipe((0,y.W)(Z=>{if(Z instanceof Co)return this.urlTree=Z.urlTree,this.match(Z.urlTree.root);throw Z instanceof ns?this.noMatchError(Z):Z}))}inheritParamsAndData(q,ue){const Z=q.value,fe=jr(Z,ue,this.paramsInheritanceStrategy);Z.params=Object.freeze(fe.params),Z.data=Object.freeze(fe.data),q.children.forEach(Ne=>this.inheritParamsAndData(Ne,Z))}processSegmentGroup(q,ue,Z,fe){return 0===Z.segments.length&&Z.hasChildren()?this.processChildren(q,ue,Z):this.processSegment(q,ue,Z,Z.segments,fe,!0).pipe((0,M.T)(Ne=>Ne instanceof Nn?[Ne]:[]))}processChildren(q,ue,Z){const fe=[];for(const Ne of Object.keys(Z.children))"primary"===Ne?fe.unshift(Ne):fe.push(Ne);return(0,O.H)(fe).pipe((0,h.H)(Ne=>{const nt=Z.children[Ne],Ht=function fn(z,q){const ue=z.filter(Z=>dn(Z)===q);return ue.push(...z.filter(Z=>dn(Z)!==q)),ue}(ue,Ne);return this.processSegmentGroup(q,Ht,nt,Ne)}),function r(z,q){return(0,W.N)((0,d.S)(z,q,arguments.length>=2,!0))}((Ne,nt)=>(Ne.push(...nt),Ne)),g(null),function k(z,q){const ue=arguments.length>=2;return Z=>Z.pipe(z?(0,me.p)((fe,Ne)=>z(fe,Ne,Z)):l.D,f(1),ue?g(q):n(()=>new _.G))}(),(0,te.Z)(Ne=>{if(null===Ne)return er(Z);const nt=No(Ne);return function Ki(z){z.sort((q,ue)=>q.value.outlet===tt?-1:ue.value.outlet===tt?1:q.value.outlet.localeCompare(ue.value.outlet))}(nt),(0,c.of)(nt)}))}processSegment(q,ue,Z,fe,Ne,nt){return(0,O.H)(ue).pipe((0,h.H)(Ht=>{var hn;return this.processSegmentAgainstRoute(null!==(hn=Ht._injector)&&void 0!==hn?hn:q,ue,Ht,Z,fe,Ne,nt).pipe((0,y.W)(Xt=>{if(Xt instanceof ns)return(0,c.of)(null);throw Xt}))}),s(Ht=>!!Ht),(0,y.W)(Ht=>{if(_s(Ht))return function Is(z,q,ue){return 0===q.length&&!z.children[ue]}(Z,fe,Ne)?(0,c.of)(new Zl):er(Z);throw Ht}))}processSegmentAgainstRoute(q,ue,Z,fe,Ne,nt,Ht){return function wc(z,q,ue,Z){return!!(dn(z)===Z||Z!==tt&&eo(q,ue,z))&&Wi(q,z,ue).matched}(Z,fe,Ne,nt)?void 0===Z.redirectTo?this.matchSegmentAgainstRoute(q,fe,Z,Ne,nt):this.allowRedirects&&Ht?this.expandSegmentAgainstRouteUsingRedirect(q,fe,ue,Z,Ne,nt):er(fe):er(fe)}expandSegmentAgainstRouteUsingRedirect(q,ue,Z,fe,Ne,nt){const{matched:Ht,consumedSegments:hn,positionalParamSegments:Xt,remainingSegments:In}=Wi(ue,fe,Ne);if(!Ht)return er(ue);fe.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const qn=this.applyRedirects.applyRedirectCommands(hn,fe.redirectTo,Xt);return this.applyRedirects.lineralizeSegments(fe,qn).pipe((0,te.Z)(Mr=>this.processSegment(q,Z,ue,Mr.concat(In),nt,!1)))}matchSegmentAgainstRoute(q,ue,Z,fe,Ne){const nt=is(ue,Z,fe,q);return"**"===Z.path&&(ue.children={}),nt.pipe((0,R.n)(Ht=>{var hn;return Ht.matched?(q=null!==(hn=Z._injector)&&void 0!==hn?hn:q,this.getChildConfig(q,Z,fe).pipe((0,R.n)(({routes:Xt})=>{var In,qn,Mr;const dr=null!==(In=Z._loadedInjector)&&void 0!==In?In:q,{consumedSegments:Xr,remainingSegments:wo,parameters:cs}=Ht,zo=new Vi(Xr,cs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Oa(z){return z.data||{}}(Z),dn(Z),null!==(qn=null!==(Mr=Z.component)&&void 0!==Mr?Mr:Z._loadedComponent)&&void 0!==qn?qn:null,Z,function Ps(z){return z.resolve||{}}(Z)),{segmentGroup:Wo,slicedSegments:ds}=Ta(ue,Xr,wo,Xt);if(0===ds.length&&Wo.hasChildren())return this.processChildren(dr,Xt,Wo).pipe((0,M.T)(fs=>null===fs?null:new Nn(zo,fs)));if(0===Xt.length&&0===ds.length)return(0,c.of)(new Nn(zo,[]));const Va=dn(Z)===Ne;return this.processSegment(dr,Xt,Wo,ds,Va?tt:Ne,!0).pipe((0,M.T)(fs=>new Nn(zo,fs instanceof Nn?[fs]:[])))}))):er(ue)}))}getChildConfig(q,ue,Z){return ue.children?(0,c.of)({routes:ue.children,injector:q}):ue.loadChildren?void 0!==ue._loadedRoutes?(0,c.of)({routes:ue._loadedRoutes,injector:ue._loadedInjector}):function Sa(z,q,ue,Z){const fe=q.canLoad;if(void 0===fe||0===fe.length)return(0,c.of)(!0);const Ne=fe.map(nt=>{const Ht=Ei(nt,z);return Qe(function Hn(z){return z&&ot(z.canLoad)}(Ht)?Ht.canLoad(q,ue):(0,S.N4e)(z,()=>Ht(q,ue)))});return(0,c.of)(Ne).pipe(qi(),ts())}(q,ue,Z).pipe((0,te.Z)(fe=>fe?this.configLoader.loadChildren(q,ue).pipe((0,v.M)(Ne=>{ue._loadedRoutes=Ne.routes,ue._loadedInjector=Ne.injector})):function li(z){return(0,T.$)(Ir(!1,Ct.GuardRejected))}())):(0,c.of)({routes:[],injector:q})}}function Ra(z){const q=z.value.routeConfig;return q&&""===q.path}function No(z){const q=[],ue=new Set;for(const Z of z){if(!Ra(Z)){q.push(Z);continue}const fe=q.find(Ne=>Z.value.routeConfig===Ne.value.routeConfig);void 0!==fe?(fe.children.push(...Z.children),ue.add(fe)):q.push(Z)}for(const Z of ue){const fe=No(Z.children);q.push(new Nn(Z.value,fe))}return q.filter(Z=>!ue.has(Z))}function to(z){const q=z.children.map(ue=>to(ue)).flat();return[z,...q]}function os(z){return(0,R.n)(q=>{const ue=z(q);return ue?(0,O.H)(ue).pipe((0,M.T)(()=>q)):(0,c.of)(q)})}let no=(()=>{var z;class q{buildTitle(Z){let fe,Ne=Z.root;for(;void 0!==Ne;){var nt;fe=null!==(nt=this.getResolvedTitleForRoute(Ne))&&void 0!==nt?nt:fe,Ne=Ne.children.find(Ht=>Ht.outlet===tt)}return fe}getResolvedTitleForRoute(Z){return Z.data[ke]}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(ql),providedIn:"root"}),q})(),ql=(()=>{var z;class q extends no{constructor(Z){super(),this.title=Z}updateTitle(Z){const fe=this.buildTitle(Z);void 0!==fe&&this.title.setTitle(fe)}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(ae.hE))},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const bo=new S.nKC("",{providedIn:"root",factory:()=>({})}),Do=new S.nKC("");let Lo=(()=>{var z;class q{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,S.WQX)(S.Ql9)}loadComponent(Z){if(this.componentLoaders.get(Z))return this.componentLoaders.get(Z);if(Z._loadedComponent)return(0,c.of)(Z._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Z);const fe=Qe(Z.loadComponent()).pipe((0,M.T)($o),(0,v.M)(nt=>{this.onLoadEndListener&&this.onLoadEndListener(Z),Z._loadedComponent=nt}),(0,V.j)(()=>{this.componentLoaders.delete(Z)})),Ne=new w.G(fe,()=>new P.B).pipe((0,J.B)());return this.componentLoaders.set(Z,Ne),Ne}loadChildren(Z,fe){if(this.childrenLoaders.get(fe))return this.childrenLoaders.get(fe);if(fe._loadedRoutes)return(0,c.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(fe);const nt=function ro(z,q,ue,Z){return Qe(z.loadChildren()).pipe((0,M.T)($o),(0,te.Z)(fe=>fe instanceof S.Co$||Array.isArray(fe)?(0,c.of)(fe):(0,O.H)(q.compileModuleAsync(fe))),(0,M.T)(fe=>{Z&&Z(z);let Ne,nt,Ht=!1;return Array.isArray(fe)?(nt=fe,!0):(Ne=fe.create(ue).injector,nt=Ne.get(Do,[],{optional:!0,self:!0}).flat()),{routes:nt.map(Vt),injector:Ne}}))}(fe,this.compiler,Z,this.onLoadEndListener).pipe((0,V.j)(()=>{this.childrenLoaders.delete(fe)})),Ht=new w.G(nt,()=>new P.B).pipe((0,J.B)());return this.childrenLoaders.set(fe,Ht),Ht}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();function $o(z){return function Na(z){return z&&"object"==typeof z&&"default"in z}(z)?z.default:z}let Y=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(xe),providedIn:"root"}),q})(),xe=(()=>{var z;class q{shouldProcessUrl(Z){return!0}extract(Z){return Z}merge(Z,fe){return Z}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const at=new S.nKC(""),de=new S.nKC("");function We(z,q,ue){const Z=z.get(de),fe=z.get(L.qQ);return z.get(S.SKi).runOutsideAngular(()=>{if(!fe.startViewTransition||Z.skipNextTransition)return Z.skipNextTransition=!1,new Promise(Xt=>setTimeout(Xt));let Ne;const nt=new Promise(Xt=>{Ne=Xt}),Ht=fe.startViewTransition(()=>(Ne(),function ht(z){return new Promise(q=>{(0,S.mal)(q,{injector:z})})}(z))),{onViewTransitionCreated:hn}=Z;return hn&&(0,S.N4e)(z,()=>hn({transition:Ht,from:q,to:ue})),nt})}let Jt=(()=>{var z;class q{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new P.B,this.transitionAbortSubject=new P.B,this.configLoader=(0,S.WQX)(Lo),this.environmentInjector=(0,S.WQX)(S.uvJ),this.urlSerializer=(0,S.WQX)(Lt),this.rootContexts=(0,S.WQX)(Ue),this.location=(0,S.WQX)(L.aZ),this.inputBindingEnabled=null!==(0,S.WQX)(Mi,{optional:!0}),this.titleStrategy=(0,S.WQX)(no),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,S.WQX)(Y),this.createViewTransition=(0,S.WQX)(at,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,c.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ne=>this.events.next(new an(Ne)),this.configLoader.onLoadStartListener=Ne=>this.events.next(new $t(Ne))}complete(){var Z;null===(Z=this.transitions)||void 0===Z||Z.complete()}handleNavigationRequest(Z){var fe;const Ne=++this.navigationId;null===(fe=this.transitions)||void 0===fe||fe.next({...this.transitions.value,...Z,id:Ne})}setupNavigations(Z,fe,Ne){return this.transitions=new D.t({id:0,currentUrlTree:fe,currentRawUrl:fe,extractedUrl:this.urlHandlingStrategy.extract(fe),urlAfterRedirects:this.urlHandlingStrategy.extract(fe),rawUrl:fe,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fr,restoredState:null,currentSnapshot:Ne.snapshot,targetSnapshot:null,currentRouterState:Ne,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,me.p)(nt=>0!==nt.id),(0,M.T)(nt=>({...nt,extractedUrl:this.urlHandlingStrategy.extract(nt.rawUrl)})),(0,R.n)(nt=>{let Ht=!1,hn=!1;return(0,c.of)(nt).pipe((0,R.n)(Xt=>{var In;if(this.navigationId>nt.id)return this.cancelNavigationTransition(nt,"",Ct.SupersededByNewNavigation),A.w;this.currentTransition=nt,this.currentNavigation={id:Xt.id,initialUrl:Xt.rawUrl,extractedUrl:Xt.extractedUrl,trigger:Xt.source,extras:Xt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const qn=!Z.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Mr=null!==(In=Xt.extras.onSameUrlNavigation)&&void 0!==In?In:Z.onSameUrlNavigation;if(!qn&&"reload"!==Mr){const dr="";return this.events.next(new gt(Xt.id,this.urlSerializer.serialize(Xt.rawUrl),dr,Gt.IgnoredSameUrlNavigation)),Xt.resolve(null),A.w}if(this.urlHandlingStrategy.shouldProcessUrl(Xt.rawUrl))return(0,c.of)(Xt).pipe((0,R.n)(dr=>{var Xr,wo;const cs=null===(Xr=this.transitions)||void 0===Xr?void 0:Xr.getValue();return this.events.next(new Fe(dr.id,this.urlSerializer.serialize(dr.extractedUrl),dr.source,dr.restoredState)),cs!==(null===(wo=this.transitions)||void 0===wo?void 0:wo.getValue())?A.w:Promise.resolve(dr)}),function ko(z,q,ue,Z,fe,Ne){return(0,te.Z)(nt=>function Ts(z,q,ue,Z,fe,Ne,nt="emptyOnly"){return new Pa(z,q,ue,Z,fe,nt,Ne).recognize()}(z,q,ue,Z,nt.extractedUrl,fe,Ne).pipe((0,M.T)(({state:Ht,tree:hn})=>({...nt,targetSnapshot:Ht,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Z.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,v.M)(dr=>{nt.targetSnapshot=dr.targetSnapshot,nt.urlAfterRedirects=dr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:dr.urlAfterRedirects};const Xr=new ye(dr.id,this.urlSerializer.serialize(dr.extractedUrl),this.urlSerializer.serialize(dr.urlAfterRedirects),dr.targetSnapshot);this.events.next(Xr)}));if(qn&&this.urlHandlingStrategy.shouldProcessUrl(Xt.currentRawUrl)){const{id:dr,extractedUrl:Xr,source:wo,restoredState:cs,extras:zo}=Xt,Wo=new Fe(dr,this.urlSerializer.serialize(Xr),wo,cs);this.events.next(Wo);const ds=qr(this.rootComponentType).snapshot;return this.currentTransition=nt={...Xt,targetSnapshot:ds,urlAfterRedirects:Xr,extras:{...zo,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Xr,(0,c.of)(nt)}{const dr="";return this.events.next(new gt(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),dr,Gt.IgnoredByUrlHandlingStrategy)),Xt.resolve(null),A.w}}),(0,v.M)(Xt=>{const In=new Ke(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects),Xt.targetSnapshot);this.events.next(In)}),(0,M.T)(Xt=>(this.currentTransition=nt={...Xt,guards:gi(Xt.targetSnapshot,Xt.currentSnapshot,this.rootContexts)},nt)),function Er(z,q){return(0,te.Z)(ue=>{const{targetSnapshot:Z,currentSnapshot:fe,guards:{canActivateChecks:Ne,canDeactivateChecks:nt}}=ue;return 0===nt.length&&0===Ne.length?(0,c.of)({...ue,guardsResult:!0}):function zl(z,q,ue,Z){return(0,O.H)(z).pipe((0,te.Z)(fe=>function Xl(z,q,ue,Z,fe){const Ne=q&&q.routeConfig?q.routeConfig.canDeactivate:null;if(!Ne||0===Ne.length)return(0,c.of)(!0);const nt=Ne.map(Ht=>{var hn;const Xt=null!==(hn=Un(q))&&void 0!==hn?hn:fe,In=Ei(Ht,Xt);return Qe(function Hr(z){return z&&ot(z.canDeactivate)}(In)?In.canDeactivate(z,q,ue,Z):(0,S.N4e)(Xt,()=>In(z,q,ue,Z))).pipe(s())});return(0,c.of)(nt).pipe(qi())}(fe.component,fe.route,ue,q,Z)),s(fe=>!0!==fe,!0))}(nt,Z,fe,z).pipe((0,te.Z)(Ht=>Ht&&function En(z){return"boolean"==typeof z}(Ht)?function _a(z,q,ue,Z){return(0,O.H)(q).pipe((0,h.H)(fe=>(0,F.x)(function Kl(z,q){return null!==z&&q&&q(new ln(z)),(0,c.of)(!0)}(fe.route.parent,Z),function Wl(z,q){return null!==z&&q&&q(new cn(z)),(0,c.of)(!0)}(fe.route,Z),function Ba(z,q,ue){const Z=q[q.length-1],Ne=q.slice(0,q.length-1).reverse().map(nt=>function es(z){const q=z.routeConfig?z.routeConfig.canActivateChild:null;return q&&0!==q.length?{node:z,guards:q}:null}(nt)).filter(nt=>null!==nt).map(nt=>(0,B.v)(()=>{const Ht=nt.guards.map(hn=>{var Xt;const In=null!==(Xt=Un(nt.node))&&void 0!==Xt?Xt:ue,qn=Ei(hn,In);return Qe(function di(z){return z&&ot(z.canActivateChild)}(qn)?qn.canActivateChild(Z,z):(0,S.N4e)(In,()=>qn(Z,z))).pipe(s())});return(0,c.of)(Ht).pipe(qi())}));return(0,c.of)(Ne).pipe(qi())}(z,fe.path,ue),function Gl(z,q,ue){const Z=q.routeConfig?q.routeConfig.canActivate:null;if(!Z||0===Z.length)return(0,c.of)(!0);const fe=Z.map(Ne=>(0,B.v)(()=>{var nt;const Ht=null!==(nt=Un(q))&&void 0!==nt?nt:ue,hn=Ei(Ne,Ht);return Qe(function Fr(z){return z&&ot(z.canActivate)}(hn)?hn.canActivate(q,z):(0,S.N4e)(Ht,()=>hn(q,z))).pipe(s())}));return(0,c.of)(fe).pipe(qi())}(z,fe.route,ue))),s(fe=>!0!==fe,!0))}(Z,Ne,z,q):(0,c.of)(Ht)),(0,M.T)(Ht=>({...ue,guardsResult:Ht})))})}(this.environmentInjector,Xt=>this.events.next(Xt)),(0,v.M)(Xt=>{if(nt.guardsResult=Xt.guardsResult,An(Xt.guardsResult))throw mo(0,Xt.guardsResult);const In=new dt(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects),Xt.targetSnapshot,!!Xt.guardsResult);this.events.next(In)}),(0,me.p)(Xt=>!!Xt.guardsResult||(this.cancelNavigationTransition(Xt,"",Ct.GuardRejected),!1)),os(Xt=>{if(Xt.guards.canActivateChecks.length)return(0,c.of)(Xt).pipe((0,v.M)(In=>{const qn=new pt(In.id,this.urlSerializer.serialize(In.extractedUrl),this.urlSerializer.serialize(In.urlAfterRedirects),In.targetSnapshot);this.events.next(qn)}),(0,R.n)(In=>{let qn=!1;return(0,c.of)(In).pipe(function fi(z,q){return(0,te.Z)(ue=>{const{targetSnapshot:Z,guards:{canActivateChecks:fe}}=ue;if(!fe.length)return(0,c.of)(ue);const Ne=new Set(fe.map(hn=>hn.route)),nt=new Set;for(const hn of Ne)if(!nt.has(hn))for(const Xt of to(hn))nt.add(Xt);let Ht=0;return(0,O.H)(nt).pipe((0,h.H)(hn=>Ne.has(hn)?function Rs(z,q,ue,Z){const fe=z.routeConfig,Ne=z._resolve;return void 0!==(null==fe?void 0:fe.title)&&!Di(fe)&&(Ne[ke]=fe.title),function Ql(z,q,ue,Z){const fe=G(z);if(0===fe.length)return(0,c.of)({});const Ne={};return(0,O.H)(fe).pipe((0,te.Z)(nt=>function Jl(z,q,ue,Z){var fe;const Ne=null!==(fe=Un(q))&&void 0!==fe?fe:Z,nt=Ei(z,Ne);return Qe(nt.resolve?nt.resolve(q,ue):(0,S.N4e)(Ne,()=>nt(q,ue)))}(z[nt],q,ue,Z).pipe(s(),(0,v.M)(Ht=>{Ne[nt]=Ht}))),f(1),(0,I.u)(Ne),(0,y.W)(nt=>_s(nt)?A.w:(0,T.$)(nt)))}(Ne,z,q,Z).pipe((0,M.T)(nt=>(z._resolvedData=nt,z.data=jr(z,z.parent,ue).resolve,null)))}(hn,Z,z,q):(hn.data=jr(hn,hn.parent,z).resolve,(0,c.of)(void 0))),(0,v.M)(()=>Ht++),f(1),(0,te.Z)(hn=>Ht===nt.size?(0,c.of)(ue):A.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,v.M)({next:()=>qn=!0,complete:()=>{qn||this.cancelNavigationTransition(In,"",Ct.NoDataFromResolver)}}))}),(0,v.M)(In=>{const qn=new Yt(In.id,this.urlSerializer.serialize(In.extractedUrl),this.urlSerializer.serialize(In.urlAfterRedirects),In.targetSnapshot);this.events.next(qn)}))}),os(Xt=>{const In=qn=>{var Mr;const dr=[];null!==(Mr=qn.routeConfig)&&void 0!==Mr&&Mr.loadComponent&&!qn.routeConfig._loadedComponent&&dr.push(this.configLoader.loadComponent(qn.routeConfig).pipe((0,v.M)(Xr=>{qn.component=Xr}),(0,M.T)(()=>{})));for(const Xr of qn.children)dr.push(...In(Xr));return dr};return(0,C.z)(In(Xt.targetSnapshot.root)).pipe(g(null),(0,U.s)(1))}),os(()=>this.afterPreactivation()),(0,R.n)(()=>{var Xt;const{currentSnapshot:In,targetSnapshot:qn}=nt,Mr=null===(Xt=this.createViewTransition)||void 0===Xt?void 0:Xt.call(this,this.environmentInjector,In.root,qn.root);return Mr?(0,O.H)(Mr).pipe((0,M.T)(()=>nt)):(0,c.of)(nt)}),(0,M.T)(Xt=>{const In=function Kr(z,q,ue){const Z=wi(z,q._root,ue?ue._root:void 0);return new wr(Z,q)}(Z.routeReuseStrategy,Xt.targetSnapshot,Xt.currentRouterState);return this.currentTransition=nt={...Xt,targetRouterState:In},this.currentNavigation.targetRouterState=In,nt}),(0,v.M)(()=>{this.events.next(new Sn)}),((z,q,ue,Z)=>(0,M.T)(fe=>(new lr(q,fe.targetRouterState,fe.currentRouterState,ue,Z).activate(z),fe)))(this.rootContexts,Z.routeReuseStrategy,Xt=>this.events.next(Xt),this.inputBindingEnabled),(0,U.s)(1),(0,v.M)({next:Xt=>{var In;Ht=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new qe(Xt.id,this.urlSerializer.serialize(Xt.extractedUrl),this.urlSerializer.serialize(Xt.urlAfterRedirects))),null===(In=this.titleStrategy)||void 0===In||In.updateTitle(Xt.targetRouterState.snapshot),Xt.resolve(!0)},complete:()=>{Ht=!0}}),function De(z){return(0,W.N)((q,ue)=>{(0,oe.Tg)(z).subscribe((0,se._)(ue,()=>ue.complete(),ve.l)),!ue.closed&&q.subscribe(ue)})}(this.transitionAbortSubject.pipe((0,v.M)(Xt=>{throw Xt}))),(0,V.j)(()=>{var Xt;!Ht&&!hn&&this.cancelNavigationTransition(nt,"",Ct.SupersededByNewNavigation),(null===(Xt=this.currentTransition)||void 0===Xt?void 0:Xt.id)===nt.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,y.W)(Xt=>{if(hn=!0,Ni(Xt))this.events.next(new vn(nt.id,this.urlSerializer.serialize(nt.extractedUrl),Xt.message,Xt.cancellationCode)),function si(z){return Ni(z)&&An(z.url)}(Xt)?this.events.next(new Pn(Xt.url)):nt.resolve(!1);else{var In;this.events.next(new zt(nt.id,this.urlSerializer.serialize(nt.extractedUrl),Xt,null!==(In=nt.targetSnapshot)&&void 0!==In?In:void 0));try{nt.resolve(Z.errorHandler(Xt))}catch(qn){this.options.resolveNavigationPromiseOnError?nt.resolve(!1):nt.reject(qn)}}return A.w}))}))}cancelNavigationTransition(Z,fe,Ne){const nt=new vn(Z.id,this.urlSerializer.serialize(Z.extractedUrl),fe,Ne);this.events.next(nt),Z.resolve(!1)}isUpdatingInternalState(){var Z,fe;return(null===(Z=this.currentTransition)||void 0===Z?void 0:Z.extractedUrl.toString())!==(null===(fe=this.currentTransition)||void 0===fe?void 0:fe.currentUrlTree.toString())}isUpdatedBrowserUrl(){var Z,fe;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(Z=this.currentTransition)||void 0===Z?void 0:Z.extractedUrl.toString())&&!(null!==(fe=this.currentTransition)&&void 0!==fe&&fe.extras.skipLocationChange)}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();function mn(z){return z!==fr}let Zn=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(cr),providedIn:"root"}),q})();class sr{shouldDetach(q){return!1}store(q,ue){}shouldAttach(q){return!1}retrieve(q){return null}shouldReuseRoute(q,ue){return q.routeConfig===ue.routeConfig}}let cr=(()=>{var z;class q extends sr{}return(z=q).\u0275fac=(()=>{let ue;return function(fe){return(ue||(ue=S.xGo(z)))(fe||z)}})(),z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),nr=(()=>{var z;class q{}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:()=>(0,S.WQX)(gr),providedIn:"root"}),q})(),gr=(()=>{var z;class q extends nr{constructor(){super(...arguments),this.location=(0,S.WQX)(L.aZ),this.urlSerializer=(0,S.WQX)(Lt),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,S.WQX)(Y),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=qr(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var Z,fe;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(Z=null===(fe=this.restoredState())||void 0===fe?void 0:fe.\u0275routerPageId)&&void 0!==Z?Z:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(Z){return this.location.subscribe(fe=>{"popstate"===fe.type&&Z(fe.url,fe.state)})}handleRouterEvent(Z,fe){if(Z instanceof Fe)this.stateMemento=this.createStateMemento();else if(Z instanceof gt)this.rawUrlTree=fe.initialUrl;else if(Z instanceof ye){if("eager"===this.urlUpdateStrategy&&!fe.extras.skipLocationChange){const Ne=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl);this.setBrowserUrl(Ne,fe)}}else Z instanceof Sn?(this.currentUrlTree=fe.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(fe.finalUrl,fe.initialUrl),this.routerState=fe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(fe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,fe))):Z instanceof vn&&(Z.code===Ct.GuardRejected||Z.code===Ct.NoDataFromResolver)?this.restoreHistory(fe):Z instanceof zt?this.restoreHistory(fe,!0):Z instanceof qe&&(this.lastSuccessfulId=Z.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Z,fe){const Ne=this.urlSerializer.serialize(Z);if(this.location.isCurrentPathEqualTo(Ne)||fe.extras.replaceUrl){const Ht={...fe.extras.state,...this.generateNgRouterState(fe.id,this.browserPageId)};this.location.replaceState(Ne,"",Ht)}else{const nt={...fe.extras.state,...this.generateNgRouterState(fe.id,this.browserPageId+1)};this.location.go(Ne,"",nt)}}restoreHistory(Z,fe=!1){if("computed"===this.canceledNavigationResolution){const nt=this.currentPageId-this.browserPageId;0!==nt?this.location.historyGo(nt):this.currentUrlTree===Z.finalUrl&&0===nt&&(this.resetState(Z),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(fe&&this.resetState(Z),this.resetUrlToCurrentUrlTree())}resetState(Z){var fe;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(fe=Z.finalUrl)&&void 0!==fe?fe:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Z,fe){return"computed"===this.canceledNavigationResolution?{navigationId:Z,\u0275routerPageId:fe}:{navigationId:Z}}}return(z=q).\u0275fac=(()=>{let ue;return function(fe){return(ue||(ue=S.xGo(z)))(fe||z)}})(),z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();var ar=function(z){return z[z.COMPLETE=0]="COMPLETE",z[z.FAILED=1]="FAILED",z[z.REDIRECTING=2]="REDIRECTING",z}(ar||{});function _r(z,q){z.events.pipe((0,me.p)(ue=>ue instanceof qe||ue instanceof vn||ue instanceof zt||ue instanceof gt),(0,M.T)(ue=>ue instanceof qe||ue instanceof gt?ar.COMPLETE:ue instanceof vn&&(ue.code===Ct.Redirect||ue.code===Ct.SupersededByNewNavigation)?ar.REDIRECTING:ar.FAILED),(0,me.p)(ue=>ue!==ar.REDIRECTING),(0,U.s)(1)).subscribe(()=>{q()})}function xr(z){throw z}const yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ir=(()=>{var z;class q{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var Z,fe;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,S.WQX)(S.H3F),this.stateManager=(0,S.WQX)(nr),this.options=(0,S.WQX)(bo,{optional:!0})||{},this.pendingTasks=(0,S.WQX)(S.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,S.WQX)(Jt),this.urlSerializer=(0,S.WQX)(Lt),this.location=(0,S.WQX)(L.aZ),this.urlHandlingStrategy=(0,S.WQX)(Y),this._events=new P.B,this.errorHandler=this.options.errorHandler||xr,this.navigated=!1,this.routeReuseStrategy=(0,S.WQX)(Zn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(Z=null===(fe=(0,S.WQX)(Do,{optional:!0}))||void 0===fe?void 0:fe.flat())&&void 0!==Z?Z:[],this.componentInputBindingEnabled=!!(0,S.WQX)(Mi,{optional:!0}),this.eventsSubscription=new $.yU,this.isNgZoneEnabled=(0,S.WQX)(S.SKi)instanceof S.SKi&&S.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Ne=>{this.console.warn(Ne)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const Z=this.navigationTransitions.events.subscribe(fe=>{try{const Ne=this.navigationTransitions.currentTransition,nt=this.navigationTransitions.currentNavigation;if(null!==Ne&&null!==nt)if(this.stateManager.handleRouterEvent(fe,nt),fe instanceof vn&&fe.code!==Ct.Redirect&&fe.code!==Ct.SupersededByNewNavigation)this.navigated=!0;else if(fe instanceof qe)this.navigated=!0;else if(fe instanceof Pn){const Ht=this.urlHandlingStrategy.merge(fe.url,Ne.currentRawUrl),hn={info:Ne.extras.info,skipLocationChange:Ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mn(Ne.source)};this.scheduleNavigation(Ht,fr,null,hn,{resolve:Ne.resolve,reject:Ne.reject,promise:Ne.promise})}(function Ar(z){return!(z instanceof Sn||z instanceof Pn)})(fe)&&this._events.next(fe)}catch(Ne){this.navigationTransitions.transitionAbortSubject.next(Ne)}});this.eventsSubscription.add(Z)}resetRootComponentType(Z){this.routerState.root.component=Z,this.navigationTransitions.rootComponentType=Z}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fr,this.stateManager.restoredState())}setUpLocationChangeListener(){var Z;null!==(Z=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==Z||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((fe,Ne)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(fe,"popstate",Ne)},0)}))}navigateToSyncWithBrowser(Z,fe,Ne){const nt={replaceUrl:!0},Ht=null!=Ne&&Ne.navigationId?Ne:null;if(Ne){const Xt={...Ne};delete Xt.navigationId,delete Xt.\u0275routerPageId,0!==Object.keys(Xt).length&&(nt.state=Xt)}const hn=this.parseUrl(Z);this.scheduleNavigation(hn,fe,Ht,nt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Z){this.config=Z.map(Vt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Z,fe={}){const{relativeTo:Ne,queryParams:nt,fragment:Ht,queryParamsHandling:hn,preserveFragment:Xt}=fe,In=Xt?this.currentUrlTree.fragment:Ht;let Mr,qn=null;switch(hn){case"merge":qn={...this.currentUrlTree.queryParams,...nt};break;case"preserve":qn=this.currentUrlTree.queryParams;break;default:qn=nt||null}null!==qn&&(qn=this.removeEmptyProps(qn));try{Mr=Mn(Ne?Ne.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Z[0]||!Z[0].startsWith("/"))&&(Z=[]),Mr=this.currentUrlTree.root}return Wn(Mr,Z,qn,null!=In?In:null)}navigateByUrl(Z,fe={skipLocationChange:!1}){const Ne=An(Z)?Z:this.parseUrl(Z),nt=this.urlHandlingStrategy.merge(Ne,this.rawUrlTree);return this.scheduleNavigation(nt,fr,null,fe)}navigate(Z,fe={skipLocationChange:!1}){return function Lr(z){for(let q=0;q(null!=nt&&(fe[Ne]=nt),fe),{})}scheduleNavigation(Z,fe,Ne,nt,Ht){if(this.disposed)return Promise.resolve(!1);let hn,Xt,In;Ht?(hn=Ht.resolve,Xt=Ht.reject,In=Ht.promise):In=new Promise((Mr,dr)=>{hn=Mr,Xt=dr});const qn=this.pendingTasks.add();return _r(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(qn))}),this.navigationTransitions.handleNavigationRequest({source:fe,restoredState:Ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Z,extras:nt,resolve:hn,reject:Xt,promise:In,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),In.catch(Mr=>Promise.reject(Mr))}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),Sr=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht,hn){var Xt;this.router=Z,this.route=fe,this.tabIndexAttribute=Ne,this.renderer=nt,this.el=Ht,this.locationStrategy=hn,this.href=null,this.commands=null,this.onChanges=new P.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const In=null===(Xt=Ht.nativeElement.tagName)||void 0===Xt?void 0:Xt.toLowerCase();this.isAnchorElement="a"===In||"area"===In,this.isAnchorElement?this.subscription=Z.events.subscribe(qn=>{qn instanceof qe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Z){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Z)}ngOnChanges(Z){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(Z){null!=Z?(this.commands=Array.isArray(Z)?Z:[Z],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(Z,fe,Ne,nt,Ht){const hn=this.urlTree;return!!(null===hn||this.isAnchorElement&&(0!==Z||fe||Ne||nt||Ht||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(hn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var Z;null===(Z=this.subscription)||void 0===Z||Z.unsubscribe()}updateHref(){var Z;const fe=this.urlTree;this.href=null!==fe&&this.locationStrategy?null===(Z=this.locationStrategy)||void 0===Z?void 0:Z.prepareExternalUrl(this.router.serializeUrl(fe)):null;const Ne=null===this.href?null:(0,S.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",Ne)}applyAttributeValue(Z,fe){const Ne=this.renderer,nt=this.el.nativeElement;null!==fe?Ne.setAttribute(nt,Z,fe):Ne.removeAttribute(nt,Z)}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(z=q).\u0275fac=function(Z){return new(Z||z)(S.rXU(ir),S.rXU(ei),S.kS0("tabindex"),S.rXU(S.sFG),S.rXU(S.aKT),S.rXU(L.hb))},z.\u0275dir=S.FsC({type:z,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Z,fe){1&Z&&S.bIt("click",function(nt){return fe.onClick(nt.button,nt.ctrlKey,nt.shiftKey,nt.altKey,nt.metaKey)}),2&Z&&S.BMQ("target",fe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[S.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",S.L39],skipLocationChange:[S.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",S.L39],replaceUrl:[S.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",S.L39],routerLink:"routerLink"},standalone:!0,features:[S.GFd,S.OA$]}),q})();class Rr{}let Si=(()=>{var z;class q{preload(Z,fe){return fe().pipe((0,y.W)(()=>(0,c.of)(null)))}}return(z=q).\u0275fac=function(Z){return new(Z||z)},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})(),ss=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht){this.router=Z,this.injector=Ne,this.preloadingStrategy=nt,this.loader=Ht}setUpPreloading(){this.subscription=this.router.events.pipe((0,me.p)(Z=>Z instanceof qe),(0,h.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Z,fe){const Ne=[];for(const Xt of fe){var nt,Ht;Xt.providers&&!Xt._injector&&(Xt._injector=(0,S.Ol2)(Xt.providers,Z,`Route: ${Xt.path}`));const In=null!==(nt=Xt._injector)&&void 0!==nt?nt:Z,qn=null!==(Ht=Xt._loadedInjector)&&void 0!==Ht?Ht:In;var hn;(Xt.loadChildren&&!Xt._loadedRoutes&&void 0===Xt.canLoad||Xt.loadComponent&&!Xt._loadedComponent)&&Ne.push(this.preloadConfig(In,Xt)),(Xt.children||Xt._loadedRoutes)&&Ne.push(this.processRoutes(qn,null!==(hn=Xt.children)&&void 0!==hn?hn:Xt._loadedRoutes))}return(0,O.H)(Ne).pipe((0,Q.U)())}preloadConfig(Z,fe){return this.preloadingStrategy.preload(fe,()=>{let Ne;Ne=fe.loadChildren&&void 0===fe.canLoad?this.loader.loadChildren(Z,fe):(0,c.of)(null);const nt=Ne.pipe((0,te.Z)(Ht=>{var hn;return null===Ht?(0,c.of)(void 0):(fe._loadedRoutes=Ht.routes,fe._loadedInjector=Ht.injector,this.processRoutes(null!==(hn=Ht.injector)&&void 0!==hn?hn:Z,Ht.routes))}));if(fe.loadComponent&&!fe._loadedComponent){const Ht=this.loader.loadComponent(fe);return(0,O.H)([nt,Ht]).pipe((0,Q.U)())}return nt})}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(ir),S.KVO(S.Ql9),S.KVO(S.uvJ),S.KVO(Rr),S.KVO(Lo))},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),q})();const Os=new S.nKC("");let Ao=(()=>{var z;class q{constructor(Z,fe,Ne,nt,Ht={}){this.urlSerializer=Z,this.transitions=fe,this.viewportScroller=Ne,this.zone=nt,this.options=Ht,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,S.WQX)(S.uvJ),Ht.scrollPositionRestoration||(Ht.scrollPositionRestoration="disabled"),Ht.anchorScrolling||(Ht.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(Z=>{Z instanceof Fe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Z.navigationTrigger,this.restoredId=Z.restoredState?Z.restoredState.navigationId:0):Z instanceof qe?(this.lastId=Z.id,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.urlAfterRedirects).fragment)):Z instanceof gt&&Z.code===Gt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Z=>{Z instanceof _n&&(Z.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Z.position):Z.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Z.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Z,fe){var Ne=this;this.zone.runOutsideAngular((0,a.A)(function*(){yield new Promise(nt=>{setTimeout(()=>{nt()}),(0,S.mal)(()=>{nt()},{injector:Ne.environmentInjector})}),Ne.zone.run(()=>{Ne.transitions.events.next(new _n(Z,"popstate"===Ne.lastSource?Ne.store[Ne.restoredId]:null,fe))})}))}ngOnDestroy(){var Z,fe;null===(Z=this.routerEventsSubscription)||void 0===Z||Z.unsubscribe(),null===(fe=this.scrollEventsSubscription)||void 0===fe||fe.unsubscribe()}}return(z=q).\u0275fac=function(Z){S.QTQ()},z.\u0275prov=S.jDH({token:z,factory:z.\u0275fac}),q})();function ri(z,q){return{\u0275kind:z,\u0275providers:q}}function Vo(){const z=(0,S.WQX)(S.zZn);return q=>{var ue,Z;const fe=z.get(S.o8S);if(q!==fe.components[0])return;const Ne=z.get(ir),nt=z.get(io);1===z.get(Jn)&&Ne.initialNavigation(),null===(ue=z.get(ls,null,S.$GK.Optional))||void 0===ue||ue.setUpPreloading(),null===(Z=z.get(Os,null,S.$GK.Optional))||void 0===Z||Z.init(),Ne.resetRootComponentType(fe.componentTypes[0]),nt.closed||(nt.next(),nt.complete(),nt.unsubscribe())}}const io=new S.nKC("",{factory:()=>new P.B}),Jn=new S.nKC("",{providedIn:"root",factory:()=>1}),ls=new S.nKC("");function jo(z){return ri(0,[{provide:ls,useExisting:ss},{provide:Rr,useExisting:z}])}function La(z){return ri(9,[{provide:at,useValue:We},{provide:de,useValue:{skipNextTransition:!(null==z||!z.skipInitialTransition),...z}}])}const us=new S.nKC("ROUTER_FORROOT_GUARD"),Ii=[L.aZ,{provide:Lt,useClass:Wt},ir,Ue,{provide:ei,useFactory:function Uo(z){return z.routerState.root},deps:[ir]},Lo,[]];let $a=(()=>{var z;class q{constructor(Z){}static forRoot(Z,fe){return{ngModule:q,providers:[Ii,[],{provide:Do,multi:!0,useValue:Z},{provide:us,useFactory:tu,deps:[[ir,new S.Xx1,new S.kdw]]},{provide:bo,useValue:fe||{}},null!=fe&&fe.useHash?{provide:L.hb,useClass:L.fw}:{provide:L.hb,useClass:L.Sm},{provide:Os,useFactory:()=>{const z=(0,S.WQX)(L.Xr),q=(0,S.WQX)(S.SKi),ue=(0,S.WQX)(bo),Z=(0,S.WQX)(Jt),fe=(0,S.WQX)(Lt);return ue.scrollOffset&&z.setOffset(ue.scrollOffset),new Ao(fe,Z,z,q,ue)}},null!=fe&&fe.preloadingStrategy?jo(fe.preloadingStrategy).\u0275providers:[],null!=fe&&fe.initialNavigation?Ic(fe):[],null!=fe&&fe.bindToComponentInputs?ri(8,[Hi,{provide:Mi,useExisting:Hi}]).\u0275providers:[],null!=fe&&fe.enableViewTransitions?La().\u0275providers:[],[{provide:ks,useFactory:Vo},{provide:S.iLQ,multi:!0,useExisting:ks}]]}}static forChild(Z){return{ngModule:q,providers:[{provide:Do,multi:!0,useValue:Z}]}}}return(z=q).\u0275fac=function(Z){return new(Z||z)(S.KVO(us,8))},z.\u0275mod=S.$C({type:z}),z.\u0275inj=S.G2t({}),q})();function tu(z){return"guarded"}function Ic(z){return["disabled"===z.initialNavigation?ri(3,[{provide:S.hnV,multi:!0,useFactory:()=>{const q=(0,S.WQX)(ir);return()=>{q.setUpLocationChangeListener()}}},{provide:Jn,useValue:2}]).\u0275providers:[],"enabledBlocking"===z.initialNavigation?ri(2,[{provide:Jn,useValue:0},{provide:S.hnV,multi:!0,deps:[S.zZn],useFactory:q=>{const ue=q.get(L.hj,Promise.resolve());return()=>ue.then(()=>new Promise(Z=>{const fe=q.get(ir),Ne=q.get(io);_r(fe,()=>{Z(!0)}),q.get(Jt).afterPreactivation=()=>(Z(!0),Ne.closed?(0,c.of)(void 0):Ne),fe.initialNavigation()}))}}]).\u0275providers:[]]}const ks=new S.nKC("")},4517:(Ce,ee,E)=>{"use strict";E.d(ee,{Yq:()=>bt,TS:()=>Cn,sR:()=>St,el:()=>Gn,Sb:()=>Pe,QE:()=>Tt,CF:()=>Ze,Rg:()=>An,p4:()=>Mt,jM:()=>Kn,_t:()=>ge,q9:()=>ft,y8:()=>bn,Kb:()=>fr,OD:()=>rt,CE:()=>Xn,pF:()=>jn,fL:()=>Zt,YV:()=>Ln,er:()=>kt,z3:()=>qt});var a=E(467),S=E(4438),p=E(3021),O=E(177);class c{constructor(){this.m=new Map}reset(et){this.m=new Map(Object.entries(et))}get(et,Fe){const qe=this.m.get(et);return void 0!==qe?qe:Fe}getBoolean(et,Fe=!1){const qe=this.m.get(et);return void 0===qe?Fe:"string"==typeof qe?"true"===qe:!!qe}getNumber(et,Fe){const qe=parseFloat(this.m.get(et));return isNaN(qe)?void 0!==Fe?Fe:NaN:qe}set(et,Fe){this.m.set(et,Fe)}}const D=new c,A=Ge=>P(Ge),P=(Ge=window)=>{if(typeof Ge>"u")return[];Ge.Ionic=Ge.Ionic||{};let et=Ge.Ionic.platforms;return null==et&&(et=Ge.Ionic.platforms=$(Ge),et.forEach(Fe=>Ge.document.documentElement.classList.add(`plt-${Fe}`))),et},$=Ge=>{const et=D.get("platform");return Object.keys(y).filter(Fe=>{const qe=null==et?void 0:et[Fe];return"function"==typeof qe?qe(Ge):y[Fe](Ge)})},M=Ge=>!!(h(Ge,/iPad/i)||h(Ge,/Macintosh/i)&&te(Ge)),j=Ge=>h(Ge,/android|sink/i),te=Ge=>v(Ge,"(any-pointer:coarse)"),g=Ge=>n(Ge)||o(Ge),n=Ge=>!!(Ge.cordova||Ge.phonegap||Ge.PhoneGap),o=Ge=>{const et=Ge.Capacitor;return!(null==et||!et.isNative)},h=(Ge,et)=>et.test(Ge.navigator.userAgent),v=(Ge,et)=>{var Fe;return null===(Fe=Ge.matchMedia)||void 0===Fe?void 0:Fe.call(Ge,et).matches},y={ipad:M,iphone:Ge=>h(Ge,/iPhone/i),ios:Ge=>h(Ge,/iPhone|iPod/i)||M(Ge),android:j,phablet:Ge=>{const et=Ge.innerWidth,Fe=Ge.innerHeight,qe=Math.min(et,Fe),Ct=Math.max(et,Fe);return qe>390&&qe<520&&Ct>620&&Ct<800},tablet:Ge=>{const et=Ge.innerWidth,Fe=Ge.innerHeight,qe=Math.min(et,Fe),Ct=Math.max(et,Fe);return M(Ge)||(Ge=>j(Ge)&&!h(Ge,/mobile/i))(Ge)||qe>460&&qe<820&&Ct>780&&Ct<1400},cordova:n,capacitor:o,electron:Ge=>h(Ge,/electron/i),pwa:Ge=>{var et;return!!(null!==(et=Ge.matchMedia)&&void 0!==et&&et.call(Ge,"(display-mode: standalone)").matches||Ge.navigator.standalone)},mobile:te,mobileweb:Ge=>te(Ge)&&!g(Ge),desktop:Ge=>!te(Ge),hybrid:g};var k=E(6031),I=E(1656),V=E(1413),J=E(3726),oe=E(4412),ve=E(4572),De=E(7673),Q=E(1635),ae=E(5964),tt=E(5558),ke=E(3669),pe=E(9974),Ie=E(4360);function re(Ge,et){return Ge===et}var ne=E(9417);const G=["tabsInner"];class ge{constructor(et){this.menuController=et}open(et){return this.menuController.open(et)}close(et){return this.menuController.close(et)}toggle(et){return this.menuController.toggle(et)}enable(et,Fe){return this.menuController.enable(et,Fe)}swipeGesture(et,Fe){return this.menuController.swipeGesture(et,Fe)}isOpen(et){return this.menuController.isOpen(et)}isEnabled(et){return this.menuController.isEnabled(et)}get(et){return this.menuController.get(et)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(et,Fe){return this.menuController.registerAnimation(et,Fe)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(et,Fe){return this.menuController._createAnimation(et,Fe)}_register(et){return this.menuController._register(et)}_unregister(et){return this.menuController._unregister(et)}_setOpen(et,Fe,qe){return this.menuController._setOpen(et,Fe,qe)}}let rt=(()=>{class Ge{constructor(Fe,qe){this.doc=Fe,this.backButton=new V.B,this.keyboardDidShow=new V.B,this.keyboardDidHide=new V.B,this.pause=new V.B,this.resume=new V.B,this.resize=new V.B,qe.run(()=>{var Ct;let Gt;this.win=Fe.defaultView,this.backButton.subscribeWithPriority=function(vn,gt){return this.subscribe(zt=>zt.register(vn,ye=>qe.run(()=>gt(ye))))},mt(this.pause,Fe,"pause",qe),mt(this.resume,Fe,"resume",qe),mt(this.backButton,Fe,"ionBackButton",qe),mt(this.resize,this.win,"resize",qe),mt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",qe),mt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",qe),this._readyPromise=new Promise(vn=>{Gt=vn}),null!==(Ct=this.win)&&void 0!==Ct&&Ct.cordova?Fe.addEventListener("deviceready",()=>{Gt("cordova")},{once:!0}):Gt("dom")})}is(Fe){return((Ge,et)=>("string"==typeof Ge&&(et=Ge,Ge=void 0),A(Ge).includes(et)))(this.win,Fe)}platforms(){return A(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Fe){return rn(this.win.location.href,Fe)}isLandscape(){return!this.isPortrait()}isPortrait(){var Fe,qe;return null===(Fe=(qe=this.win).matchMedia)||void 0===Fe?void 0:Fe.call(qe,"(orientation: portrait)").matches}testUserAgent(Fe){const qe=this.win.navigator;return!!(null!=qe&&qe.userAgent&&qe.userAgent.indexOf(Fe)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.KVO(O.qQ),S.KVO(S.SKi))},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const rn=(Ge,et)=>{et=et.replace(/[[\]\\]/g,"\\$&");const qe=new RegExp("[\\?&]"+et+"=([^&#]*)").exec(Ge);return qe?decodeURIComponent(qe[1].replace(/\+/g," ")):null},mt=(Ge,et,Fe,qe)=>{et&&et.addEventListener(Fe,Ct=>{qe.run(()=>{Ge.next(null!=Ct?Ct.detail:void 0)})})};let ft=(()=>{class Ge{constructor(Fe,qe,Ct,Gt){this.location=qe,this.serializer=Ct,this.router=Gt,this.direction=At,this.animated=It,this.guessDirection="forward",this.lastNavId=-1,Gt&&Gt.events.subscribe(vn=>{if(vn instanceof p.Z){const gt=vn.restoredState?vn.restoredState.navigationId:vn.id;this.guessDirection=gt{this.pop(),vn()})}navigateForward(Fe,qe={}){return this.setDirection("forward",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}navigateBack(Fe,qe={}){return this.setDirection("back",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}navigateRoot(Fe,qe={}){return this.setDirection("root",qe.animated,qe.animationDirection,qe.animation),this.navigate(Fe,qe)}back(Fe={animated:!0,animationDirection:"back"}){return this.setDirection("back",Fe.animated,Fe.animationDirection,Fe.animation),this.location.back()}pop(){var Fe=this;return(0,a.A)(function*(){let qe=Fe.topOutlet;for(;qe;){if(yield qe.pop())return!0;qe=qe.parentOutlet}return!1})()}setDirection(Fe,qe,Ct,Gt){this.direction=Fe,this.animated=un(Fe,qe,Ct),this.animationBuilder=Gt}setTopOutlet(Fe){this.topOutlet=Fe}consumeTransition(){let qe,Fe="root";const Ct=this.animationBuilder;return"auto"===this.direction?(Fe=this.guessDirection,qe=this.guessAnimation):(qe=this.animated,Fe=this.direction),this.direction=At,this.animated=It,this.animationBuilder=void 0,{direction:Fe,animation:qe,animationBuilder:Ct}}navigate(Fe,qe){if(Array.isArray(Fe))return this.router.navigate(Fe,qe);{const Ct=this.serializer.parse(Fe.toString());return void 0!==qe.queryParams&&(Ct.queryParams={...qe.queryParams}),void 0!==qe.fragment&&(Ct.fragment=qe.fragment),this.router.navigateByUrl(Ct,qe)}}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.KVO(rt),S.KVO(O.aZ),S.KVO(p.Sd),S.KVO(p.Ix,8))},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const un=(Ge,et,Fe)=>{if(!1!==et){if(void 0!==Fe)return Fe;if("forward"===Ge||"back"===Ge)return Ge;if("root"===Ge&&!0===et)return"forward"}},At="auto",It=void 0;let Cn=(()=>{class Ge{get(Fe,qe){const Ct=Ft();return Ct?Ct.get(Fe,qe):null}getBoolean(Fe,qe){const Ct=Ft();return!!Ct&&Ct.getBoolean(Fe,qe)}getNumber(Fe,qe){const Ct=Ft();return Ct?Ct.getNumber(Fe,qe):0}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const St=new S.nKC("USERCONFIG"),Ft=()=>{if(typeof window<"u"){const Ge=window.Ionic;if(null!=Ge&&Ge.config)return Ge.config}return null};class bn{constructor(et={}){this.data=et}get(et){return this.data[et]}}let bt=(()=>{class Ge{constructor(){this.zone=(0,S.WQX)(S.SKi),this.applicationRef=(0,S.WQX)(S.o8S)}create(Fe,qe,Ct){return new wt(Fe,qe,this.applicationRef,this.zone,Ct)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac}),Ge})();class wt{constructor(et,Fe,qe,Ct,Gt){this.environmentInjector=et,this.injector=Fe,this.applicationRef=qe,this.zone=Ct,this.elementReferenceKey=Gt,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(et,Fe,qe,Ct){return this.zone.run(()=>new Promise(Gt=>{const vn={...qe};void 0!==this.elementReferenceKey&&(vn[this.elementReferenceKey]=et),Gt(Dn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,et,Fe,vn,Ct,this.elementReferenceKey))}))}removeViewFromDom(et,Fe){return this.zone.run(()=>new Promise(qe=>{const Ct=this.elRefMap.get(Fe);if(Ct){Ct.destroy(),this.elRefMap.delete(Fe);const Gt=this.elEventsMap.get(Fe);Gt&&(Gt(),this.elEventsMap.delete(Fe))}qe()}))}}const Dn=(Ge,et,Fe,qe,Ct,Gt,vn,gt,zt,ye,Ke)=>{const dt=S.zZn.create({providers:Nt(zt),parent:Fe}),pt=(0,S.a0P)(gt,{environmentInjector:et,elementInjector:dt}),Yt=pt.instance,$t=pt.location.nativeElement;if(zt&&(Ke&&void 0!==Yt[Ke]&&console.error(`[Ionic Error]: ${Ke} is a reserved property when using ${vn.tagName.toLowerCase()}. Rename or remove the "${Ke}" property from ${gt.name}.`),Object.assign(Yt,zt)),ye)for(const ln of ye)$t.classList.add(ln);const an=Lt(Ge,Yt,$t);return vn.appendChild($t),qe.attachView(pt.hostView),Ct.set($t,pt),Gt.set($t,an),$t},Bt=[k.L,k.a,k.b,k.c,k.d],Lt=(Ge,et,Fe)=>Ge.run(()=>{const qe=Bt.filter(Ct=>"function"==typeof et[Ct]).map(Ct=>{const Gt=vn=>et[Ct](vn.detail);return Fe.addEventListener(Ct,Gt),()=>Fe.removeEventListener(Ct,Gt)});return()=>qe.forEach(Ct=>Ct())}),Wt=new S.nKC("NavParamsToken"),Nt=Ge=>[{provide:Wt,useValue:Ge},{provide:bn,useFactory:Ot,deps:[Wt]}],Ot=Ge=>new bn(Ge),zn=(Ge,et)=>{const Fe=Ge.prototype;et.forEach(qe=>{Object.defineProperty(Fe,qe,{get(){return this.el[qe]},set(Ct){this.z.runOutsideAngular(()=>this.el[qe]=Ct)}})})},Ut=(Ge,et)=>{const Fe=Ge.prototype;et.forEach(qe=>{Fe[qe]=function(){const Ct=arguments;return this.z.runOutsideAngular(()=>this.el[qe].apply(this.el,Ct))}})},He=(Ge,et,Fe)=>{Fe.forEach(qe=>Ge[qe]=(0,J.R)(et,qe))};function Be(Ge){return function(Fe){const{defineCustomElementFn:qe,inputs:Ct,methods:Gt}=Ge;return void 0!==qe&&qe(),Ct&&zn(Fe,Ct),Gt&&Ut(Fe,Gt),Fe}}const Ae=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Me=["present","dismiss","onDidDismiss","onWillDismiss"];let Ze=(()=>{let Ge=class{constructor(Fe,qe,Ct){this.z=Ct,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Fe.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Fe.detectChanges()}),He(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.SKi))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-popover"]],contentQueries:function(Fe,qe,Ct){if(1&Fe&&S.wni(Ct,S.C4Q,5),2&Fe){let Gt;S.mGM(Gt=S.lsd())&&(qe.template=Gt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}}),Ge=(0,Q.Cg)([Be({inputs:Ae,methods:Me})],Ge),Ge})();const je=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],it=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Pe=(()=>{let Ge=class{constructor(Fe,qe,Ct){this.z=Ct,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Fe.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Fe.detectChanges()}),He(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.gRc),S.rXU(S.aKT),S.rXU(S.SKi))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-modal"]],contentQueries:function(Fe,qe,Ct){if(1&Fe&&S.wni(Ct,S.C4Q,5),2&Fe){let Gt;S.mGM(Gt=S.lsd())&&(qe.template=Gt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}}),Ge=(0,Q.Cg)([Be({inputs:je,methods:it})],Ge),Ge})();const ze=(Ge,et)=>((Ge=Ge.filter(Fe=>Fe.stackId!==et.stackId)).push(et),Ge),st=(Ge,et)=>{const Fe=Ge.createUrlTree(["."],{relativeTo:et});return Ge.serializeUrl(Fe)},en=(Ge,et)=>!et||Ge.stackId!==et.stackId,yt=(Ge,et)=>{if(!Ge)return;const Fe=vt(et);for(let qe=0;qe=Ge.length)return Fe[qe];if(Fe[qe]!==Ge[qe])return}},vt=Ge=>Ge.split("/").map(et=>et.trim()).filter(et=>""!==et),Kt=Ge=>{Ge&&(Ge.ref.destroy(),Ge.unlistenEvents())};class Pt{constructor(et,Fe,qe,Ct,Gt,vn){this.containerEl=Fe,this.router=qe,this.navCtrl=Ct,this.zone=Gt,this.location=vn,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==et?vt(et):void 0}createView(et,Fe){var qe;const Ct=st(this.router,Fe),Gt=null==et||null===(qe=et.location)||void 0===qe?void 0:qe.nativeElement,vn=Lt(this.zone,et.instance,Gt);return{id:this.nextId++,stackId:yt(this.tabsPrefix,Ct),unlistenEvents:vn,element:Gt,ref:et,url:Ct}}getExistingView(et){const Fe=st(this.router,et),qe=this.views.find(Ct=>Ct.url===Fe);return qe&&qe.ref.changeDetectorRef.reattach(),qe}setActive(et){var Fe,qe;const Ct=this.navCtrl.consumeTransition();let{direction:Gt,animation:vn,animationBuilder:gt}=Ct;const zt=this.activeView,ye=en(et,zt);ye&&(Gt="back",vn=void 0);const Ke=this.views.slice();let dt;const pt=this.router;pt.getCurrentNavigation?dt=pt.getCurrentNavigation():null!==(Fe=pt.navigations)&&void 0!==Fe&&Fe.value&&(dt=pt.navigations.value),null!==(qe=dt)&&void 0!==qe&&null!==(qe=qe.extras)&&void 0!==qe&&qe.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Yt=this.views.includes(et),$t=this.insertView(et,Gt);Yt||et.ref.changeDetectorRef.detectChanges();const an=et.animationBuilder;return void 0===gt&&"back"===Gt&&!ye&&void 0!==an&&(gt=an),zt&&(zt.animationBuilder=gt),this.zone.runOutsideAngular(()=>this.wait(()=>(zt&&zt.ref.changeDetectorRef.detach(),et.ref.changeDetectorRef.reattach(),this.transition(et,zt,vn,this.canGoBack(1),!1,gt).then(()=>Rt(et,$t,Ke,this.location,this.zone)).then(()=>({enteringView:et,direction:Gt,animation:vn,tabSwitch:ye})))))}canGoBack(et,Fe=this.getActiveStackId()){return this.getStack(Fe).length>et}pop(et,Fe=this.getActiveStackId()){return this.zone.run(()=>{const qe=this.getStack(Fe);if(qe.length<=et)return Promise.resolve(!1);const Ct=qe[qe.length-et-1];let Gt=Ct.url;const vn=Ct.savedData;if(vn){var gt;const ye=vn.get("primary");null!=ye&&null!==(gt=ye.route)&&void 0!==gt&&null!==(gt=gt._routerState)&&void 0!==gt&>.snapshot.url&&(Gt=ye.route._routerState.snapshot.url)}const{animationBuilder:zt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Gt,{...Ct.savedExtras,animation:zt}).then(()=>!0)})}startBackTransition(){const et=this.activeView;if(et){const Fe=this.getStack(et.stackId),qe=Fe[Fe.length-2],Ct=qe.animationBuilder;return this.wait(()=>this.transition(qe,et,"back",this.canGoBack(2),!0,Ct))}return Promise.resolve()}endBackTransition(et){et?(this.skipTransition=!0,this.pop(1)):this.activeView&&On(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(et){const Fe=this.getStack(et);return Fe.length>0?Fe[Fe.length-1]:void 0}getRootUrl(et){const Fe=this.getStack(et);return Fe.length>0?Fe[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Kt),this.activeView=void 0,this.views=[]}getStack(et){return this.views.filter(Fe=>Fe.stackId===et)}insertView(et,Fe){return this.activeView=et,this.views=((Ge,et,Fe)=>"root"===Fe?ze(Ge,et):"forward"===Fe?((Ge,et)=>(Ge.indexOf(et)>=0?Ge=Ge.filter(qe=>qe.stackId!==et.stackId||qe.id<=et.id):Ge.push(et),Ge))(Ge,et):((Ge,et)=>Ge.indexOf(et)>=0?Ge.filter(qe=>qe.stackId!==et.stackId||qe.id<=et.id):ze(Ge,et))(Ge,et))(this.views,et,Fe),this.views.slice()}transition(et,Fe,qe,Ct,Gt,vn){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Fe===et)return Promise.resolve(!1);const gt=et?et.element:void 0,zt=Fe?Fe.element:void 0,ye=this.containerEl;return gt&>!==zt&&(gt.classList.add("ion-page"),gt.classList.add("ion-page-invisible"),gt.parentElement!==ye&&ye.appendChild(gt),ye.commit)?ye.commit(gt,zt,{duration:void 0===qe?0:void 0,direction:qe,showGoBack:Ct,progressAnimation:Gt,animationBuilder:vn}):Promise.resolve(!1)}wait(et){var Fe=this;return(0,a.A)(function*(){void 0!==Fe.runningTask&&(yield Fe.runningTask,Fe.runningTask=void 0);const qe=Fe.runningTask=et();return qe.finally(()=>Fe.runningTask=void 0),qe})()}}const Rt=(Ge,et,Fe,qe,Ct)=>"function"==typeof requestAnimationFrame?new Promise(Gt=>{requestAnimationFrame(()=>{On(Ge,et,Fe,qe,Ct),Gt()})}):Promise.resolve(),On=(Ge,et,Fe,qe,Ct)=>{Ct.run(()=>Fe.filter(Gt=>!et.includes(Gt)).forEach(Kt)),et.forEach(Gt=>{const gt=qe.path().split("?")[0].split("#")[0];if(Gt!==Ge&&Gt.url!==gt){const zt=Gt.element;zt.setAttribute("aria-hidden","true"),zt.classList.add("ion-page-hidden"),Gt.ref.changeDetectorRef.detach()}})};let An=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn,gt,zt,ye){this.parentOutlet=ye,this.activatedView=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new oe.t(null),this.activated=null,this._activatedRoute=null,this.name=p.Xk,this.stackWillChange=new S.bkB,this.stackDidChange=new S.bkB,this.activateEvents=new S.bkB,this.deactivateEvents=new S.bkB,this.parentContexts=(0,S.WQX)(p.Zp),this.location=(0,S.WQX)(S.c1b),this.environmentInjector=(0,S.WQX)(S.uvJ),this.inputBinder=(0,S.WQX)(Mn,{optional:!0}),this.supportsBindingToComponentInputs=!0,this.config=(0,S.WQX)(Cn),this.navCtrl=(0,S.WQX)(ft),this.nativeEl=Gt.nativeElement,this.name=Fe||p.Xk,this.tabsPrefix="true"===qe?st(vn,zt):void 0,this.stackCtrl=new Pt(this.tabsPrefix,this.nativeEl,vn,this.navCtrl,gt,Ct),this.parentContexts.onChildOutletCreated(this.name,this)}get activatedComponentRef(){return this.activated}set animation(Fe){this.nativeEl.animation=Fe}set animated(Fe){this.nativeEl.animated=Fe}set swipeGesture(Fe){this._swipeGesture=Fe,this.nativeEl.swipeHandler=Fe?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:qe=>this.stackCtrl.endBackTransition(qe)}:void 0}ngOnDestroy(){var Fe;this.stackCtrl.destroy(),null===(Fe=this.inputBinder)||void 0===Fe||Fe.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Fe=this.getContext();null!=Fe&&Fe.route&&this.activateWith(Fe.route,Fe.injector)}new Promise(Fe=>(0,I.c)(this.nativeEl,Fe)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(Fe,qe){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const qe=this.getContext();this.activatedView.savedData=new Map(qe.children.contexts);const Ct=this.activatedView.savedData.get("primary");if(Ct&&qe.route&&(Ct.route={...qe.route}),this.activatedView.savedExtras={},qe.route){const Gt=qe.route.snapshot;this.activatedView.savedExtras.queryParams=Gt.queryParams,this.activatedView.savedExtras.fragment=Gt.fragment}}const Fe=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Fe)}}activateWith(Fe,qe){var Ct;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Fe;let Gt,vn=this.stackCtrl.getExistingView(Fe);if(vn){Gt=this.activated=vn.ref;const ye=vn.savedData;ye&&(this.getContext().children.contexts=ye),this.updateActivatedRouteProxy(Gt.instance,Fe)}else{var gt;const ye=Fe._futureSnapshot,Ke=this.parentContexts.getOrCreateContext(this.name).children,dt=new oe.t(null),pt=this.createActivatedRouteProxy(dt,Fe),Yt=new Bn(pt,Ke,this.location.injector),$t=null!==(gt=ye.routeConfig.component)&&void 0!==gt?gt:ye.component;Gt=this.activated=this.location.createComponent($t,{index:this.location.length,injector:Yt,environmentInjector:null!=qe?qe:this.environmentInjector}),dt.next(Gt.instance),vn=this.stackCtrl.createView(this.activated,Fe),this.proxyMap.set(Gt.instance,pt),this.currentActivatedRoute$.next({component:Gt.instance,activatedRoute:Fe})}null===(Ct=this.inputBinder)||void 0===Ct||Ct.bindActivatedRouteToOutletComponent(this),this.activatedView=vn,this.navCtrl.setTopOutlet(this);const zt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:vn,tabSwitch:en(vn,zt)}),this.stackCtrl.setActive(vn).then(ye=>{this.activateEvents.emit(Gt.instance),this.stackDidChange.emit(ye)})}canGoBack(Fe=1,qe){return this.stackCtrl.canGoBack(Fe,qe)}pop(Fe=1,qe){return this.stackCtrl.pop(Fe,qe)}getLastUrl(Fe){const qe=this.stackCtrl.getLastUrl(Fe);return qe?qe.url:void 0}getLastRouteView(Fe){return this.stackCtrl.getLastUrl(Fe)}getRootView(Fe){return this.stackCtrl.getRootUrl(Fe)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Fe,qe){const Ct=new p.nX;return Ct._futureSnapshot=qe._futureSnapshot,Ct._routerState=qe._routerState,Ct.snapshot=qe.snapshot,Ct.outlet=qe.outlet,Ct.component=qe.component,Ct._paramMap=this.proxyObservable(Fe,"paramMap"),Ct._queryParamMap=this.proxyObservable(Fe,"queryParamMap"),Ct.url=this.proxyObservable(Fe,"url"),Ct.params=this.proxyObservable(Fe,"params"),Ct.queryParams=this.proxyObservable(Fe,"queryParams"),Ct.fragment=this.proxyObservable(Fe,"fragment"),Ct.data=this.proxyObservable(Fe,"data"),Ct}proxyObservable(Fe,qe){return Fe.pipe((0,ae.p)(Ct=>!!Ct),(0,tt.n)(Ct=>this.currentActivatedRoute$.pipe((0,ae.p)(Gt=>null!==Gt&&Gt.component===Ct),(0,tt.n)(Gt=>Gt&&Gt.activatedRoute[qe]),function _e(Ge,et=ke.D){return Ge=null!=Ge?Ge:re,(0,pe.N)((Fe,qe)=>{let Ct,Gt=!0;Fe.subscribe((0,Ie._)(qe,vn=>{const gt=et(vn);(Gt||!Ge(Ct,gt))&&(Gt=!1,Ct=gt,qe.next(vn))}))})}())))}updateActivatedRouteProxy(Fe,qe){const Ct=this.proxyMap.get(Fe);if(!Ct)throw new Error("Could not find activated route proxy for view");Ct._futureSnapshot=qe._futureSnapshot,Ct._routerState=qe._routerState,Ct.snapshot=qe.snapshot,Ct.outlet=qe.outlet,Ct.component=qe.component,this.currentActivatedRoute$.next({component:Fe,activatedRoute:qe})}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.kS0("name"),S.kS0("tabs"),S.rXU(O.aZ),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(S.SKi),S.rXU(p.nX),S.rXU(Ge,12))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Ge})();class Bn{constructor(et,Fe,qe){this.route=et,this.childContexts=Fe,this.parent=qe}get(et,Fe){return et===p.nX?this.route:et===p.Zp?this.childContexts:this.parent.get(et,Fe)}}const Mn=new S.nKC("");let Wn=(()=>{class Ge{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(Fe){this.unsubscribeFromRouteData(Fe),this.subscribeToRouteData(Fe)}unsubscribeFromRouteData(Fe){var qe;null===(qe=this.outletDataSubscriptions.get(Fe))||void 0===qe||qe.unsubscribe(),this.outletDataSubscriptions.delete(Fe)}subscribeToRouteData(Fe){const{activatedRoute:qe}=Fe,Ct=(0,ve.z)([qe.queryParams,qe.params,qe.data]).pipe((0,tt.n)(([Gt,vn,gt],zt)=>(gt={...Gt,...vn,...gt},0===zt?(0,De.of)(gt):Promise.resolve(gt)))).subscribe(Gt=>{if(!Fe.isActivated||!Fe.activatedComponentRef||Fe.activatedRoute!==qe||null===qe.component)return void this.unsubscribeFromRouteData(Fe);const vn=(0,S.HJs)(qe.component);if(vn)for(const{templateName:gt}of vn.inputs)Fe.activatedComponentRef.setInput(gt,Gt[gt]);else this.unsubscribeFromRouteData(Fe)});this.outletDataSubscriptions.set(Fe,Ct)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275prov=S.jDH({token:Ge,factory:Ge.\u0275fac}),Ge})();const Ln=()=>({provide:Mn,useFactory:Fn,deps:[p.Ix]});function Fn(Ge){return null!=Ge&&Ge.componentInputBindingEnabled?new Wn:null}const kn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Gn=(()=>{let Ge=class{constructor(Fe,qe,Ct,Gt,vn,gt){this.routerOutlet=Fe,this.navCtrl=qe,this.config=Ct,this.r=Gt,this.z=vn,gt.detach(),this.el=this.r.nativeElement}onClick(Fe){var qe;const Ct=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(qe=this.routerOutlet)&&void 0!==qe&&qe.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Fe.preventDefault()):null!=Ct&&(this.navCtrl.navigateBack(Ct,{animation:this.routerAnimation}),Fe.preventDefault())}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(An,8),S.rXU(ft),S.rXU(Cn),S.rXU(S.aKT),S.rXU(S.SKi),S.rXU(S.gRc))},Ge.\u0275dir=S.FsC({type:Ge,hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(Gt){return qe.onClick(Gt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}}),Ge=(0,Q.Cg)([Be({inputs:kn})],Ge),Ge})(),Xn=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn){this.locationStrategy=Fe,this.navCtrl=qe,this.elementRef=Ct,this.router=Gt,this.routerLink=vn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Fe;if(null!==(Fe=this.routerLink)&&void 0!==Fe&&Fe.urlTree){const qe=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=qe}}onClick(Fe){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Fe.preventDefault()}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(O.hb),S.rXU(ft),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(p.Wk,8))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(Gt){return qe.onClick(Gt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[S.OA$]}),Ge})(),jn=(()=>{class Ge{constructor(Fe,qe,Ct,Gt,vn){this.locationStrategy=Fe,this.navCtrl=qe,this.elementRef=Ct,this.router=Gt,this.routerLink=vn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Fe;if(null!==(Fe=this.routerLink)&&void 0!==Fe&&Fe.urlTree){const qe=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=qe}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(O.hb),S.rXU(ft),S.rXU(S.aKT),S.rXU(p.Ix),S.rXU(p.Wk,8))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Fe,qe){1&Fe&&S.bIt("click",function(){return qe.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[S.OA$]}),Ge})();const $e=["animated","animation","root","rootParams","swipeGesture"],lt=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Tt=(()=>{let Ge=class{constructor(Fe,qe,Ct,Gt,vn,gt){this.z=vn,gt.detach(),this.el=Fe.nativeElement,Fe.nativeElement.delegate=Gt.create(qe,Ct),He(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.aKT),S.rXU(S.uvJ),S.rXU(S.zZn),S.rXU(bt),S.rXU(S.SKi),S.rXU(S.gRc))},Ge.\u0275dir=S.FsC({type:Ge,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}}),Ge=(0,Q.Cg)([Be({inputs:$e,methods:lt})],Ge),Ge})(),Mt=(()=>{class Ge{constructor(Fe){this.navCtrl=Fe,this.ionTabsWillChange=new S.bkB,this.ionTabsDidChange=new S.bkB,this.tabBarSlot="bottom"}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Fe,tabSwitch:qe}){const Ct=Fe.stackId;qe&&void 0!==Ct&&this.ionTabsWillChange.emit({tab:Ct})}onStackDidChange({enteringView:Fe,tabSwitch:qe}){const Ct=Fe.stackId;qe&&void 0!==Ct&&(this.tabBar&&(this.tabBar.selectedTab=Ct),this.ionTabsDidChange.emit({tab:Ct}))}select(Fe){const qe="string"==typeof Fe,Ct=qe?Fe:Fe.detail.tab,Gt=this.outlet.getActiveStackId()===Ct,vn=`${this.outlet.tabsPrefix}/${Ct}`;if(qe||Fe.stopPropagation(),Gt){const gt=this.outlet.getActiveStackId(),zt=this.outlet.getLastRouteView(gt);if((null==zt?void 0:zt.url)===vn)return;const ye=this.outlet.getRootView(Ct);return this.navCtrl.navigateRoot(vn,{...ye&&vn===ye.url&&ye.savedExtras,animated:!0,animationDirection:"back"})}{const gt=this.outlet.getLastRouteView(Ct);return this.navCtrl.navigateRoot((null==gt?void 0:gt.url)||vn,{...null==gt?void 0:gt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Fe=>{const qe=Fe.el.getAttribute("slot");qe!==this.tabBarSlot&&(this.tabBarSlot=qe,this.relocateTabBar())})}relocateTabBar(){const Fe=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Fe):this.tabsInner.nativeElement.after(Fe)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(ft))},Ge.\u0275dir=S.FsC({type:Ge,selectors:[["ion-tabs"]],viewQuery:function(Fe,qe){if(1&Fe&&S.GBs(G,7,S.aKT),2&Fe){let Ct;S.mGM(Ct=S.lsd())&&(qe.tabsInner=Ct.first)}},hostBindings:function(Fe,qe){1&Fe&&S.bIt("ionTabButtonClick",function(Gt){return qe.select(Gt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}}),Ge})();const kt=Ge=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ge):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ge):setTimeout(Ge);let Zt=(()=>{class Ge{constructor(Fe,qe){this.injector=Fe,this.elementRef=qe,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(Fe){this.elementRef.nativeElement.value=this.lastValue=Fe,qt(this.elementRef)}handleValueChange(Fe,qe){Fe===this.elementRef.nativeElement&&(qe!==this.lastValue&&(this.lastValue=qe,this.onChange(qe)),qt(this.elementRef))}_handleBlurEvent(Fe){Fe===this.elementRef.nativeElement&&(this.onTouched(),qt(this.elementRef))}registerOnChange(Fe){this.onChange=Fe}registerOnTouched(Fe){this.onTouched=Fe}setDisabledState(Fe){this.elementRef.nativeElement.disabled=Fe}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Fe;try{Fe=this.injector.get(ne.vO)}catch{}if(!Fe)return;Fe.statusChanges&&(this.statusChanges=Fe.statusChanges.subscribe(()=>qt(this.elementRef)));const qe=Fe.control;qe&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Gt=>{if(typeof qe[Gt]<"u"){const vn=qe[Gt].bind(qe);qe[Gt]=(...gt)=>{vn(...gt),qt(this.elementRef)}}})}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(S.rXU(S.zZn),S.rXU(S.aKT))},Ge.\u0275dir=S.FsC({type:Ge,hostBindings:function(Fe,qe){1&Fe&&S.bIt("ionBlur",function(Gt){return qe._handleBlurEvent(Gt.target)})}}),Ge})();const qt=Ge=>{kt(()=>{const et=Ge.nativeElement,Fe=null!=et.value&&et.value.toString().length>0,qe=Qt(et);Tn(et,qe);const Ct=et.closest("ion-item");Ct&&Tn(Ct,Fe?[...qe,"item-has-value"]:qe)})},Qt=Ge=>{const et=Ge.classList,Fe=[];for(let qe=0;qe{const Fe=Ge.classList;Fe.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Fe.add(...et)},wn=(Ge,et)=>Ge.substring(0,et.length)===et;class Kn{shouldDetach(et){return!1}shouldAttach(et){return!1}store(et,Fe){}retrieve(et){return null}shouldReuseRoute(et,Fe){if(et.routeConfig!==Fe.routeConfig)return!1;const qe=et.params,Ct=Fe.params,Gt=Object.keys(qe),vn=Object.keys(Ct);if(Gt.length!==vn.length)return!1;for(const gt of Gt)if(Ct[gt]!==qe[gt])return!1;return!0}}class fr{constructor(et){this.ctrl=et}create(et){return this.ctrl.create(et||{})}dismiss(et,Fe,qe){return this.ctrl.dismiss(et,Fe,qe)}getTop(){return this.ctrl.getTop()}}},8974:(Ce,ee,E)=>{"use strict";E.d(ee,{hG:()=>Ke,hB:()=>h,wH:()=>Yt,U1:()=>ae,Jm:()=>re,QW:()=>ne,b_:()=>G,I9:()=>ge,ME:()=>xt,tN:()=>rt,eY:()=>rn,ZB:()=>mt,hU:()=>ft,W9:()=>un,Q8:()=>Cn,YW:()=>St,M0:()=>bn,eU:()=>wt,iq:()=>Dn,Ax:()=>Lt,Hp:()=>Wt,$w:()=>Nt,uz:()=>Ot,he:()=>Me,nf:()=>Ze,oS:()=>Pe,Sb:()=>Ct,KO:()=>yt,f0:()=>vt,To:()=>Pt,Ki:()=>Rt,Rg:()=>Kn,ln:()=>Mn,w2:()=>jn,HP:()=>$e,Jq:()=>lt,qW:()=>Tt,p4:()=>fr,IO:()=>Mt,BC:()=>qt,ai:()=>wn,bv:()=>hr,Xi:()=>$t,_t:()=>an,W3:()=>ln,IE:()=>cn,uR:()=>y,Je:()=>d,Gw:()=>r,K_:()=>nn});var a=E(4438),S=E(9417),p=E(4517),O=E(1635),c=E(3726),D=E(177),C=E(3021),T=(E(3503),E(7555),E(4569),E(2942),E(405)),A=E(611),w=E(464),P=E(5384),$=E(5516),M=(E(8476),E(4363));E(8221),E(3113);var ie=E(467);const me=A.i,te=function(){var X=(0,ie.A)(function*(Ue,le){if(!(typeof window>"u"))return yield me(),(0,M.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"legacy":[4],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"],"counterFormatter":["counterFormatterChanged"]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[33,"ion-note",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"],"checked":["styleChanged"],"color":["styleChanged"],"disabled":["styleChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"disabled":[4],"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]},null,{"value":["valueChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"legacy":[4]},null,{"checked":["styleChanged"],"disabled":["styleChanged"]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]]]'),le)});return function(le,Ye){return X.apply(this,arguments)}}(),se=["*"],g=["outlet"],n=[[["","slot","top"]],"*"],o=["[slot=top]","*"];function l(X,Ue){if(1&X&&(a.j41(0,"div",1),a.eu8(1,2),a.k0s()),2&X){const le=a.XpG();a.R7$(),a.Y8G("ngTemplateOutlet",le.template)}}let h=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}writeValue(le){this.elementRef.nativeElement.checked=this.lastValue=le,(0,p.z3)(this.elementRef)}_handleIonChange(le){this.handleValueChange(le,le.checked)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionChange",function(Nn){return Ye._handleIonChange(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),y=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleIonSelect(le){this.handleValueChange(le,le.checked)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-radio"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionSelect",function(Nn){return Ye._handleIonSelect(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),d=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleChangeEvent(le){this.handleValueChange(le,le.value)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionChange",function(Nn){return Ye._handleChangeEvent(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})(),r=(()=>{class X extends p.fL{constructor(le,Ye){super(le,Ye)}_handleInputEvent(le){this.handleValueChange(le,le.value)}}return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.zZn),a.rXU(a.aKT))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"],["ion-range"]],hostBindings:function(le,Ye){1&le&&a.bIt("ionInput",function(Nn){return Ye._handleInputEvent(Nn.target)})},features:[a.Jv_([{provide:S.kq,useExisting:X,multi:!0}]),a.Vt3]}),X})();const f=(X,Ue)=>{const le=X.prototype;Ue.forEach(Ye=>{Object.defineProperty(le,Ye,{get(){return this.el[Ye]},set(_t){this.z.runOutsideAngular(()=>this.el[Ye]=_t)},configurable:!0})})},k=(X,Ue)=>{const le=X.prototype;Ue.forEach(Ye=>{le[Ye]=function(){const _t=arguments;return this.z.runOutsideAngular(()=>this.el[Ye].apply(this.el,_t))}})},I=(X,Ue,le)=>{le.forEach(Ye=>X[Ye]=(0,c.R)(Ue,Ye))};function J(X){return function(le){const{defineCustomElementFn:Ye,inputs:_t,methods:Nn}=X;return void 0!==Ye&&Ye(),_t&&f(le,_t),Nn&&k(le,Nn),le}}let ae=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-app"]],ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({})],X),X})(),re=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],X),X})(),ne=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse"]})],X),X})(),G=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],X),X})(),ge=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["mode"]})],X),X})(),xt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","translucent"]})],X),X})(),rt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),rn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionChange","ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","legacy","mode","name","value"]})],X),X})(),mt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","disabled","mode","outline"]})],X),X})(),ft=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],X),X})(),un=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],X),X})(),Cn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],X),X})(),St=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],X),X})(),bn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse","mode","translucent"]})],X),X})(),wt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["collapse","mode","translucent"]})],X),X})(),Dn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],X),X})(),Lt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionInfinite"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["disabled","position","threshold"],methods:["complete"]})],X),X})(),Wt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["loadingSpinner","loadingText"]})],X),X})(),Nt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],X),X})(),Ot=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],X),X})(),Me=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","position"]})],X),X})(),Ze=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],X),X})(),Pe=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],X),X})(),yt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionFocus","ionBlur"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-radio"]],inputs:{alignment:"alignment",color:"color",disabled:"disabled",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["alignment","color","disabled","justify","labelPlacement","legacy","mode","name","value"]})],X),X})(),vt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionChange"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",compareWith:"compareWith",name:"name",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["allowEmptySelection","compareWith","name","value"]})],X),X})(),Pt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionRefresh","ionPull","ionStart"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],X),X})(),Rt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],X),X})(),Mn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-row"]],ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({})],X),X})(),jn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","duration","name","paused"]})],X),X})(),$e=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement,I(this,this.el,["ionSplitPaneVisible"])}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["contentId","disabled","when"]})],X),X})(),lt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode","selectedTab","translucent"]})],X),X})(),Tt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],X),X})(),Mt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),qt=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","size"]})],X),X})(),wn=(()=>{let X=class{constructor(le,Ye,_t){this.z=_t,le.detach(),this.el=Ye.nativeElement}};return X.\u0275fac=function(le){return new(le||X)(a.rXU(a.gRc),a.rXU(a.aKT),a.rXU(a.SKi))},X.\u0275cmp=a.VBU({type:X,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(le,Ye){1&le&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0}),X=(0,O.Cg)([J({inputs:["color","mode"]})],X),X})(),Kn=(()=>{class X extends p.Rg{constructor(le,Ye,_t,Nn,pr,wr,qr,Wr){super(le,Ye,_t,Nn,pr,wr,qr,Wr),this.parentOutlet=Wr}}return X.\u0275fac=function(le){return new(le||X)(a.kS0("name"),a.kS0("tabs"),a.rXU(D.aZ),a.rXU(a.aKT),a.rXU(C.Ix),a.rXU(a.SKi),a.rXU(C.nX),a.rXU(X,12))},X.\u0275dir=a.FsC({type:X,selectors:[["ion-router-outlet"]],features:[a.Vt3]}),X})(),fr=(()=>{class X extends p.p4{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275cmp=a.VBU({type:X,selectors:[["ion-tabs"]],contentQueries:function(le,Ye,_t){if(1&le&&(a.wni(_t,lt,5),a.wni(_t,lt,4)),2&le){let Nn;a.mGM(Nn=a.lsd())&&(Ye.tabBar=Nn.first),a.mGM(Nn=a.lsd())&&(Ye.tabBars=Nn)}},viewQuery:function(le,Ye){if(1&le&&a.GBs(g,5,Kn),2&le){let _t;a.mGM(_t=a.lsd())&&(Ye.outlet=_t.first)}},features:[a.Vt3],ngContentSelectors:o,decls:6,vars:0,consts:[["tabsInner",""],["outlet",""],[1,"tabs-inner"],["tabs","true",3,"stackWillChange","stackDidChange"]],template:function(le,Ye){if(1&le){const _t=a.RV6();a.NAR(n),a.SdG(0),a.j41(1,"div",2,0)(3,"ion-router-outlet",3,1),a.bIt("stackWillChange",function(pr){return a.eBV(_t),a.Njj(Ye.onStackWillChange(pr))})("stackDidChange",function(pr){return a.eBV(_t),a.Njj(Ye.onStackDidChange(pr))}),a.k0s()(),a.SdG(5,1)}},dependencies:[Kn],styles:["[_nghost-%COMP%]{display:flex;position:absolute;inset:0;flex-direction:column;width:100%;height:100%;contain:layout size style}.tabs-inner[_ngcontent-%COMP%]{position:relative;flex:1;contain:layout size style}"]}),X})(),Ct=(()=>{class X extends p.Sb{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275cmp=a.VBU({type:X,selectors:[["ion-modal"]],features:[a.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(le,Ye){1&le&&a.DNE(0,l,2,1,"div",0),2&le&&a.Y8G("ngIf",Ye.isCmpOpen||Ye.keepContentsMounted)},dependencies:[D.bT,D.T3],encapsulation:2,changeDetection:0}),X})();const vn={provide:S.cz,useExisting:(0,a.Rfq)(()=>gt),multi:!0};let gt=(()=>{class X extends S.zX{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275dir=a.FsC({type:X,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(le,Ye){2&le&&a.BMQ("max",Ye._enabled?Ye.max:null)},features:[a.Jv_([vn]),a.Vt3]}),X})();const zt={provide:S.cz,useExisting:(0,a.Rfq)(()=>ye),multi:!0};let ye=(()=>{class X extends S.VZ{}return X.\u0275fac=(()=>{let Ue;return function(Ye){return(Ue||(Ue=a.xGo(X)))(Ye||X)}})(),X.\u0275dir=a.FsC({type:X,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(le,Ye){2&le&&a.BMQ("min",Ye._enabled?Ye.min:null)},features:[a.Jv_([zt]),a.Vt3]}),X})(),Ke=(()=>{class X extends p.Kb{constructor(){super($.a)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Yt=(()=>{class X{constructor(le){this.zone=le}create(le,Ye=!1){return Ye&&Object.getOwnPropertyNames(le).forEach(_t=>{if("function"==typeof le[_t]){const Nn=le[_t];le[_t]=(...pr)=>this.zone.run(()=>Nn(...pr))}}),(0,T.createGesture)(le)}}return X.\u0275fac=function(le){return new(le||X)(a.KVO(a.SKi))},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),$t=(()=>{class X extends p.Kb{constructor(){super($.l)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),an=(()=>{class X extends p._t{constructor(){super(P.m)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),ln=(()=>{class X extends p.Kb{constructor(){super($.m),this.angularDelegate=(0,a.WQX)(p.Yq),this.injector=(0,a.WQX)(a.zZn),this.environmentInjector=(0,a.WQX)(a.uvJ)}create(le){return super.create({...le,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac}),X})();class cn extends p.Kb{constructor(){super($.c),this.angularDelegate=(0,a.WQX)(p.Yq),this.injector=(0,a.WQX)(a.zZn),this.environmentInjector=(0,a.WQX)(a.uvJ)}create(Ue){return super.create({...Ue,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}let nn=(()=>{class X extends p.Kb{constructor(){super($.t)}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=a.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const _n=(X,Ue,le)=>()=>{const Ye=Ue.defaultView;if(Ye&&typeof window<"u"){(0,w.s)({...X,_zoneGate:Nn=>le.run(Nn)});const _t="__zone_symbol__addEventListener"in Ue.body?"__zone_symbol__addEventListener":"addEventListener";return function W(){var X=[];if(typeof window<"u"){var Ue=window;(!Ue.customElements||Ue.Element&&(!Ue.Element.prototype.closest||!Ue.Element.prototype.matches||!Ue.Element.prototype.remove||!Ue.Element.prototype.getRootNode))&&X.push(E.e(7278).then(E.t.bind(E,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||Ue.NodeList&&!Ue.NodeList.prototype.forEach||!Ue.fetch||!function(){try{var Ye=new URL("b","http://a");return Ye.pathname="c%20d","http://a/c%20d"===Ye.href&&Ye.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&X.push(E.e(9329).then(E.t.bind(E,7783,23)))}return Promise.all(X)}().then(()=>te(Ye,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:p.er,jmp:Nn=>le.runOutsideAngular(Nn),ael(Nn,pr,wr,qr){Nn[_t](pr,wr,qr)},rel(Nn,pr,wr,qr){Nn.removeEventListener(pr,wr,qr)}}))}};let hr=(()=>{class X{static forRoot(le){return{ngModule:X,providers:[{provide:p.sR,useValue:le},{provide:a.hnV,useFactory:_n,multi:!0,deps:[p.sR,D.qQ,a.SKi]},(0,p.YV)()]}}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275mod=a.$C({type:X}),X.\u0275inj=a.G2t({providers:[p.Yq,ln,cn],imports:[D.MD]}),X})()},5402:(Ce,ee,E)=>{"use strict";E.d(ee,{Wr:()=>R,h:()=>I,D9:()=>k,c$:()=>r});var a=E(4438),S=E(7673),p=E(4402),O=E(7468),c=E(8793),D=E(9030),C=E(6697),_=E(2771),F=E(8750),B=E(1413),m=E(7707),T=E(9974);function w(V,J,...oe){if(!0===J)return void V();if(!1===J)return;const ve=new m.Ms({next:()=>{ve.unsubscribe(),V()}});return(0,F.Tg)(J(...oe)).subscribe(ve)}function P(V,J,oe){let ve,De=!1;return V&&"object"==typeof V?({bufferSize:ve=1/0,windowTime:J=1/0,refCount:De=!1,scheduler:oe}=V):ve=null!=V?V:1/0,function A(V={}){const{connector:J=(()=>new B.B),resetOnError:oe=!0,resetOnComplete:ve=!0,resetOnRefCountZero:De=!0}=V;return Q=>{let ae,tt,ke,pe=0,Ie=!1,_e=!1;const re=()=>{null==tt||tt.unsubscribe(),tt=void 0},ne=()=>{re(),ae=ke=void 0,Ie=_e=!1},G=()=>{const ge=ae;ne(),null==ge||ge.unsubscribe()};return(0,T.N)((ge,xt)=>{pe++,!_e&&!Ie&&re();const Qe=ke=null!=ke?ke:J();xt.add(()=>{pe--,0===pe&&!_e&&!Ie&&(tt=w(G,De))}),Qe.subscribe(xt),!ae&&pe>0&&(ae=new m.Ms({next:rt=>Qe.next(rt),error:rt=>{_e=!0,re(),tt=w(ne,oe,rt),Qe.error(rt)},complete:()=>{Ie=!0,re(),tt=w(ne,ve),Qe.complete()}}),(0,F.Tg)(ge).subscribe(ae))})(Q)}}({connector:()=>new _.m(ve,J,oe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:De})}var $=E(6354),L=E(274),M=E(5558);class R{}let U=(()=>{class V extends R{getTranslation(oe){return(0,S.of)({})}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class j{}let W=(()=>{class V{handle(oe){return oe.key}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();function ie(V,J){if(V===J)return!0;if(null===V||null===J)return!1;if(V!=V&&J!=J)return!0;let De,Q,ae,oe=typeof V;if(oe==typeof J&&"object"==oe){if(!Array.isArray(V)){if(Array.isArray(J))return!1;for(Q in ae=Object.create(null),V){if(!ie(V[Q],J[Q]))return!1;ae[Q]=!0}for(Q in J)if(!(Q in ae)&&typeof J[Q]<"u")return!1;return!0}if(!Array.isArray(J))return!1;if((De=V.length)==J.length){for(Q=0;Q{te(J[ve])?ve in V?oe[ve]=se(V[ve],J[ve]):Object.assign(oe,{[ve]:J[ve]}):Object.assign(oe,{[ve]:J[ve]})}),oe}class g{}let n=(()=>{class V extends g{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(oe,ve){let De;return De="string"==typeof oe?this.interpolateString(oe,ve):"function"==typeof oe?this.interpolateFunction(oe,ve):oe,De}getValue(oe,ve){let De="string"==typeof ve?ve.split("."):[ve];ve="";do{ve+=De.shift(),!me(oe)||!me(oe[ve])||"object"!=typeof oe[ve]&&De.length?De.length?ve+=".":oe=void 0:(oe=oe[ve],ve="")}while(De.length);return oe}interpolateFunction(oe,ve){return oe(ve)}interpolateString(oe,ve){return ve?oe.replace(this.templateMatcher,(De,Q)=>{let ae=this.getValue(ve,Q);return me(ae)?ae:De}):oe}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class o{}let l=(()=>{class V extends o{compile(oe,ve){return oe}compileTranslations(oe,ve){return oe}}return V.\u0275fac=(()=>{let J;return function(ve){return(J||(J=a.xGo(V)))(ve||V)}})(),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})();class s{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new a.bkB,this.onLangChange=new a.bkB,this.onDefaultLangChange=new a.bkB}}const h=new a.nKC("USE_STORE"),v=new a.nKC("USE_DEFAULT_LANG"),y=new a.nKC("DEFAULT_LANGUAGE"),d=new a.nKC("USE_EXTEND");let r=(()=>{class V{constructor(oe,ve,De,Q,ae,tt=!0,ke=!1,pe=!1,Ie){this.store=oe,this.currentLoader=ve,this.compiler=De,this.parser=Q,this.missingTranslationHandler=ae,this.useDefaultLang=tt,this.isolate=ke,this.extend=pe,this.pending=!1,this._onTranslationChange=new a.bkB,this._onLangChange=new a.bkB,this._onDefaultLangChange=new a.bkB,this._langs=[],this._translations={},this._translationRequests={},Ie&&this.setDefaultLang(Ie)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(oe){this.isolate?this._defaultLang=oe:this.store.defaultLang=oe}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(oe){this.isolate?this._currentLang=oe:this.store.currentLang=oe}get langs(){return this.isolate?this._langs:this.store.langs}set langs(oe){this.isolate?this._langs=oe:this.store.langs=oe}get translations(){return this.isolate?this._translations:this.store.translations}set translations(oe){this.isolate?this._translations=oe:this.store.translations=oe}setDefaultLang(oe){if(oe===this.defaultLang)return;let ve=this.retrieveTranslations(oe);typeof ve<"u"?(null==this.defaultLang&&(this.defaultLang=oe),ve.pipe((0,C.s)(1)).subscribe(De=>{this.changeDefaultLang(oe)})):this.changeDefaultLang(oe)}getDefaultLang(){return this.defaultLang}use(oe){if(oe===this.currentLang)return(0,S.of)(this.translations[oe]);let ve=this.retrieveTranslations(oe);return typeof ve<"u"?(this.currentLang||(this.currentLang=oe),ve.pipe((0,C.s)(1)).subscribe(De=>{this.changeLang(oe)}),ve):(this.changeLang(oe),(0,S.of)(this.translations[oe]))}retrieveTranslations(oe){let ve;return(typeof this.translations[oe]>"u"||this.extend)&&(this._translationRequests[oe]=this._translationRequests[oe]||this.getTranslation(oe),ve=this._translationRequests[oe]),ve}getTranslation(oe){this.pending=!0;const ve=this.currentLoader.getTranslation(oe).pipe(P(1),(0,C.s)(1));return this.loadingTranslations=ve.pipe((0,$.T)(De=>this.compiler.compileTranslations(De,oe)),P(1),(0,C.s)(1)),this.loadingTranslations.subscribe({next:De=>{this.translations[oe]=this.extend&&this.translations[oe]?{...De,...this.translations[oe]}:De,this.updateLangs(),this.pending=!1},error:De=>{this.pending=!1}}),ve}setTranslation(oe,ve,De=!1){ve=this.compiler.compileTranslations(ve,oe),this.translations[oe]=(De||this.extend)&&this.translations[oe]?se(this.translations[oe],ve):ve,this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}getLangs(){return this.langs}addLangs(oe){oe.forEach(ve=>{-1===this.langs.indexOf(ve)&&this.langs.push(ve)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(oe,ve,De){let Q;if(ve instanceof Array){let ae={},tt=!1;for(let ke of ve)ae[ke]=this.getParsedResult(oe,ke,De),(0,p.A)(ae[ke])&&(tt=!0);if(tt){const ke=ve.map(pe=>(0,p.A)(ae[pe])?ae[pe]:(0,S.of)(ae[pe]));return(0,O.p)(ke).pipe((0,$.T)(pe=>{let Ie={};return pe.forEach((_e,re)=>{Ie[ve[re]]=_e}),Ie}))}return ae}if(oe&&(Q=this.parser.interpolate(this.parser.getValue(oe,ve),De)),typeof Q>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Q=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],ve),De)),typeof Q>"u"){let ae={key:ve,translateService:this};typeof De<"u"&&(ae.interpolateParams=De),Q=this.missingTranslationHandler.handle(ae)}return typeof Q<"u"?Q:ve}get(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,L.H)(De=>(De=this.getParsedResult(De,oe,ve),(0,p.A)(De)?De:(0,S.of)(De))));{let De=this.getParsedResult(this.translations[this.currentLang],oe,ve);return(0,p.A)(De)?De:(0,S.of)(De)}}getStreamOnTranslationChange(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');return(0,c.x)((0,D.v)(()=>this.get(oe,ve)),this.onTranslationChange.pipe((0,M.n)(De=>{const Q=this.getParsedResult(De.translations,oe,ve);return"function"==typeof Q.subscribe?Q:(0,S.of)(Q)})))}stream(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');return(0,c.x)((0,D.v)(()=>this.get(oe,ve)),this.onLangChange.pipe((0,M.n)(De=>{const Q=this.getParsedResult(De.translations,oe,ve);return(0,p.A)(Q)?Q:(0,S.of)(Q)})))}instant(oe,ve){if(!me(oe)||!oe.length)throw new Error('Parameter "key" required');let De=this.getParsedResult(this.translations[this.currentLang],oe,ve);if((0,p.A)(De)){if(oe instanceof Array){let Q={};return oe.forEach((ae,tt)=>{Q[oe[tt]]=oe[tt]}),Q}return oe}return De}set(oe,ve,De=this.currentLang){this.translations[De][oe]=this.compiler.compile(ve,De),this.updateLangs(),this.onTranslationChange.emit({lang:De,translations:this.translations[De]})}changeLang(oe){this.currentLang=oe,this.onLangChange.emit({lang:oe,translations:this.translations[oe]}),null==this.defaultLang&&this.changeDefaultLang(oe)}changeDefaultLang(oe){this.defaultLang=oe,this.onDefaultLangChange.emit({lang:oe,translations:this.translations[oe]})}reloadLang(oe){return this.resetLang(oe),this.getTranslation(oe)}resetLang(oe){this._translationRequests[oe]=void 0,this.translations[oe]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let oe=window.navigator.languages?window.navigator.languages[0]:null;return oe=oe||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof oe>"u"?void 0:(-1!==oe.indexOf("-")&&(oe=oe.split("-")[0]),-1!==oe.indexOf("_")&&(oe=oe.split("_")[0]),oe)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let oe=window.navigator.languages?window.navigator.languages[0]:null;return oe=oe||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,oe}}return V.\u0275fac=function(oe){return new(oe||V)(a.KVO(s),a.KVO(R),a.KVO(o),a.KVO(g),a.KVO(j),a.KVO(v),a.KVO(h),a.KVO(d),a.KVO(y))},V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})(),k=(()=>{class V{constructor(oe,ve){this.translate=oe,this._ref=ve,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(oe,ve,De){let Q=ae=>{this.value=void 0!==ae?ae:oe,this.lastKey=oe,this._ref.markForCheck()};if(De){let ae=this.translate.getParsedResult(De,oe,ve);(0,p.A)(ae.subscribe)?ae.subscribe(Q):Q(ae)}this.translate.get(oe,ve).subscribe(Q)}transform(oe,...ve){if(!oe||!oe.length)return oe;if(ie(oe,this.lastKey)&&ie(ve,this.lastParams))return this.value;let De;if(me(ve[0])&&ve.length)if("string"==typeof ve[0]&&ve[0].length){let Q=ve[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{De=JSON.parse(Q)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${ve[0]}`)}}else"object"==typeof ve[0]&&!Array.isArray(ve[0])&&(De=ve[0]);return this.lastKey=oe,this.lastParams=ve,this.updateValue(oe,De),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Q=>{this.lastKey&&Q.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(oe,De,Q.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Q=>{this.lastKey&&(this.lastKey=null,this.updateValue(oe,De,Q.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(oe,De))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return V.\u0275fac=function(oe){return new(oe||V)(a.rXU(r,16),a.rXU(a.gRc,16))},V.\u0275pipe=a.EJ8({name:"translate",type:V,pure:!1}),V.\u0275prov=a.jDH({token:V,factory:V.\u0275fac}),V})(),I=(()=>{class V{static forRoot(oe={}){return{ngModule:V,providers:[oe.loader||{provide:R,useClass:U},oe.compiler||{provide:o,useClass:l},oe.parser||{provide:g,useClass:n},oe.missingTranslationHandler||{provide:j,useClass:W},s,{provide:h,useValue:oe.isolate},{provide:v,useValue:oe.useDefaultLang},{provide:d,useValue:oe.extend},{provide:y,useValue:oe.defaultLanguage},r]}}static forChild(oe={}){return{ngModule:V,providers:[oe.loader||{provide:R,useClass:U},oe.compiler||{provide:o,useClass:l},oe.parser||{provide:g,useClass:n},oe.missingTranslationHandler||{provide:j,useClass:W},{provide:h,useValue:oe.isolate},{provide:v,useValue:oe.useDefaultLang},{provide:d,useValue:oe.extend},{provide:y,useValue:oe.defaultLanguage},r]}}}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=a.$C({type:V}),V.\u0275inj=a.G2t({}),V})()},467:(Ce,ee,E)=>{"use strict";function a(p,O,c,D,C,_,F){try{var B=p[_](F),m=B.value}catch(T){return void c(T)}B.done?O(m):Promise.resolve(m).then(D,C)}function S(p){return function(){var O=this,c=arguments;return new Promise(function(D,C){var _=p.apply(O,c);function F(m){a(_,D,C,F,B,"next",m)}function B(m){a(_,D,C,F,B,"throw",m)}F(void 0)})}}E.d(ee,{A:()=>S})},1635:(Ce,ee,E)=>{"use strict";E.d(ee,{AQ:()=>W,C6:()=>S,Cg:()=>c,N3:()=>j,sH:()=>T,xN:()=>me});var a=function(r,f){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,I){k.__proto__=I}||function(k,I){for(var V in I)Object.prototype.hasOwnProperty.call(I,V)&&(k[V]=I[V])})(r,f)};function S(r,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function k(){this.constructor=r}a(r,f),r.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}function c(r,f,k,I){var oe,V=arguments.length,J=V<3?f:null===I?I=Object.getOwnPropertyDescriptor(f,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(r,f,k,I);else for(var ve=r.length-1;ve>=0;ve--)(oe=r[ve])&&(J=(V<3?oe(J):V>3?oe(f,k,J):oe(f,k))||J);return V>3&&J&&Object.defineProperty(f,k,J),J}function T(r,f,k,I){return new(k||(k=Promise))(function(J,oe){function ve(ae){try{Q(I.next(ae))}catch(tt){oe(tt)}}function De(ae){try{Q(I.throw(ae))}catch(tt){oe(tt)}}function Q(ae){ae.done?J(ae.value):function V(J){return J instanceof k?J:new k(function(oe){oe(J)})}(ae.value).then(ve,De)}Q((I=I.apply(r,f||[])).next())})}function j(r){return this instanceof j?(this.v=r,this):new j(r)}function W(r,f,k){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,I=k.apply(r,f||[]),J=[];return V={},ve("next"),ve("throw"),ve("return",function oe(pe){return function(Ie){return Promise.resolve(Ie).then(pe,tt)}}),V[Symbol.asyncIterator]=function(){return this},V;function ve(pe,Ie){I[pe]&&(V[pe]=function(_e){return new Promise(function(re,ne){J.push([pe,_e,re,ne])>1||De(pe,_e)})},Ie&&(V[pe]=Ie(V[pe])))}function De(pe,Ie){try{!function Q(pe){pe.value instanceof j?Promise.resolve(pe.value.v).then(ae,tt):ke(J[0][2],pe)}(I[pe](Ie))}catch(_e){ke(J[0][3],_e)}}function ae(pe){De("next",pe)}function tt(pe){De("throw",pe)}function ke(pe,Ie){pe(Ie),J.shift(),J.length&&De(J[0][0],J[0][1])}}function me(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k,f=r[Symbol.asyncIterator];return f?f.call(r):(r=function $(r){var f="function"==typeof Symbol&&Symbol.iterator,k=f&&r[f],I=0;if(k)return k.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&I>=r.length&&(r=void 0),{value:r&&r[I++],done:!r}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),k={},I("next"),I("throw"),I("return"),k[Symbol.asyncIterator]=function(){return this},k);function I(J){k[J]=r[J]&&function(oe){return new Promise(function(ve,De){!function V(J,oe,ve,De){Promise.resolve(De).then(function(Q){J({value:Q,done:ve})},oe)}(ve,De,(oe=r[J](oe)).done,oe.value)})}}}"function"==typeof SuppressedError&&SuppressedError},3219:Ce=>{"use strict";Ce.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2951:Ce=>{"use strict";Ce.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},4589:Ce=>{"use strict";Ce.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},3241:Ce=>{"use strict";Ce.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636:Ce=>{"use strict";Ce.exports={rE:"6.5.6"}},5579:Ce=>{"use strict";Ce.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},Ce=>{Ce(Ce.s=6313)}]); \ No newline at end of file diff --git a/www/ngsw.json b/www/ngsw.json index 3e916bd..a45a553 100644 --- a/www/ngsw.json +++ b/www/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1724912496644, + "timestamp": 1725533744990, "index": "/index.html", "assetGroups": [ { @@ -49,7 +49,7 @@ "/4406.05cf0d9efef8a3fa.js", "/441.6bf62409b0c7ec80.js", "/4463.d0c3d78068fad310.js", - "/4503.b2250dc8ab065fe0.js", + "/4503.5b8c6e9bf02d0b2a.js", "/4567.ba4618208021696b.js", "/4591.5a704fe20b25bedb.js", "/4612.14fce41da64da6ce.js", @@ -61,7 +61,7 @@ "/5197.71bc23e14aa679b8.js", "/5222.b079f56b84d2efe7.js", "/5640.5fb29d1a6c294532.js", - "/5695.8872c0aaa0ff593e.js", + "/5695.82ef23372439ff45.js", "/5712.0da3ec4ee3dda8e0.js", "/5887.f196a8a929562fc0.js", "/5949.b1263d576573143d.js", @@ -80,8 +80,8 @@ "/7428.0b77923d1b49f325.js", "/771.6f7786a2fbaee211.js", "/7720.3c5e9b090f4dfae6.js", - "/786.00a4f06b53d7d2e2.js", - "/7916.058371c1c22bebce.js", + "/786.844b70ed6b69d85d.js", + "/7916.f15bebeedebb8cc8.js", "/8066.29601e0daf33894d.js", "/8193.4c78d428e5728e4a.js", "/8314.d2efe1c98743f1bb.js", @@ -89,7 +89,7 @@ "/8584.d26666fed62ca671.js", "/8622.7e4bc02a093577ee.js", "/8729.efce8b0d4256f469.js", - "/8761.783f7b6e1b8d63de.js", + "/8761.89535521ee240b3a.js", "/8805.bb5cc294530fb5ff.js", "/8814.4e75f0ca36c773cc.js", "/8970.c907411d52730c50.js", @@ -101,12 +101,12 @@ "/9977.dfb6af23e31fcb21.js", "/common.6fb368d54d6a7f3d.js", "/index.html", - "/main.9c6300c068f01818.js", + "/main.7b4c0c867c94f61e.js", "/manifest.webmanifest", "/polyfills-core-js.c76198334f717402.js", "/polyfills-dom.bf542500b6fca113.js", "/polyfills.bd294e9c6a01f281.js", - "/runtime.4ff990fdec9e87bb.js", + "/runtime.afe2573a36349f58.js", "/scripts.f969b614b9decf68.js", "/styles.31ee935e78782ce3.css" ], @@ -532,7 +532,7 @@ "/4406.05cf0d9efef8a3fa.js": "914bc989e167052b797e58fdb8dff38c86c06b66", "/441.6bf62409b0c7ec80.js": "aba9b8343deb1caf5f0c70230441a5b5499c103c", "/4463.d0c3d78068fad310.js": "b65fbf8cbdcd6285d14fb49f5833d8470e783dc5", - "/4503.b2250dc8ab065fe0.js": "d98387479f058c7bf1aaed3a58e155dbbf5d3816", + "/4503.5b8c6e9bf02d0b2a.js": "871fe7004c1cfbad461e89af5b82000cc664b9b8", "/4567.ba4618208021696b.js": "c87e54db5254336f0fe3c46f534590566c54467d", "/4591.5a704fe20b25bedb.js": "0169b2c1e44dcde1a1ea0b7c7c6f6331a8640cca", "/4612.14fce41da64da6ce.js": "4e014eaae2157ec00b17ecc29b1b24112eb9920f", @@ -544,7 +544,7 @@ "/5197.71bc23e14aa679b8.js": "1fe571df32e091a820bd910f55bbaf84f9ccb22e", "/5222.b079f56b84d2efe7.js": "5f50d3be368e49df76839a73d6485465192bf41a", "/5640.5fb29d1a6c294532.js": "f48d205b4183d8829bedc0f7c1cbdfd2240db517", - "/5695.8872c0aaa0ff593e.js": "5f8fdcb546a709dc3fd51eb06367576c13edd8f5", + "/5695.82ef23372439ff45.js": "40cc3aaafd606b07fda6b68d8768b2c43f0b881e", "/5712.0da3ec4ee3dda8e0.js": "71b0c6dd45954506017e24e619e03c97b42e689d", "/5887.f196a8a929562fc0.js": "a5ea956f59ae041c25fe1052e6b2aa197c4612ca", "/5949.b1263d576573143d.js": "ffacd01747276920df31328f24e5fbf666a27886", @@ -563,8 +563,8 @@ "/7428.0b77923d1b49f325.js": "c03e2f056ff8949d971a561c5e2412989b429974", "/771.6f7786a2fbaee211.js": "d945347665caab03e1392d2e4521ea9c8a38ba58", "/7720.3c5e9b090f4dfae6.js": "8eafb488c91e058d420d29b72ccb0b716b3cf192", - "/786.00a4f06b53d7d2e2.js": "da5e1c8a80b8a6612e07b55586dd13f966e7cd6d", - "/7916.058371c1c22bebce.js": "054b5d6fb74cfb004fdafcab7c1b098448dc29e6", + "/786.844b70ed6b69d85d.js": "e1d921122cf8cb1b2490d0b35ea86c8877d54908", + "/7916.f15bebeedebb8cc8.js": "60e02550aed5df3846059bddcce1f23e826b57ec", "/8066.29601e0daf33894d.js": "24fcc3d071e20cba7b78f563cdb44d0f4d1f4e4a", "/8193.4c78d428e5728e4a.js": "ac37ad79c71b4cdf07acf29c1d572676f8415356", "/8314.d2efe1c98743f1bb.js": "fc18ae0a8f070c678808dbdb4d2b90ee7ad598bd", @@ -572,7 +572,7 @@ "/8584.d26666fed62ca671.js": "0cd08c5ba365867ea6d54e3104569f11e6df3cc8", "/8622.7e4bc02a093577ee.js": "20768dc397d564f84d67fe606f730cc7184b25f4", "/8729.efce8b0d4256f469.js": "65df89f8f801addca4a3fdec0bd49b2cfe70eee5", - "/8761.783f7b6e1b8d63de.js": "712cab11529249665af48a0bb489cb18b49b7432", + "/8761.89535521ee240b3a.js": "d7f7a3aec859f5a53476f08a98aa49f24b89ba72", "/8805.bb5cc294530fb5ff.js": "62ae962d1c54e18169a6e50084608e9a5e719fd0", "/8814.4e75f0ca36c773cc.js": "08f02f602d9ad5f4b935ac05772ad9be93c061ea", "/8970.c907411d52730c50.js": "5c570d0943d721a94881712f8e34e50e28a7c983", @@ -591,9 +591,9 @@ "/assets/appConfig/gem-school.json": "87398ab79c8216fc0627c7d86bc12eeb45268388", "/assets/appConfig/hummingbird.json": "825faf6872c89dc426e66e2e72b93c21613dadb4", "/assets/appConfig/imamiya-mission.json": "76660cd74833d59164accf49fa7f1c6140e2230e", - "/assets/appConfig/inclued.json": "01bf2b5ea8b66c660111539ea184edabfd8719fb", + "/assets/appConfig/inclued.json": "4e2d0dddf7d301403a9fabe79808cc64f6878e2c", "/assets/appConfig/learningresources.json": "c853ee7474212243fded4af5f9d546e88eecc3ab", - "/assets/appConfig/localhost.json": "f5c1742fc3c8790d4857f5235b4b99cdad1ab054", + "/assets/appConfig/localhost.json": "87398ab79c8216fc0627c7d86bc12eeb45268388", "/assets/appConfig/turtuk-valley.json": "26aaca3708ce23634fed9877bef6597408a960f8", "/assets/arrow-right.svg": "bb67048eb7cd7987f8e2e43511f11a7d962f5af3", "/assets/badge-2.svg": "fb752f1cd110fc328f39e25632e85fb830ffa324", @@ -951,13 +951,13 @@ "/assets/timer.svg": "57b27e5d93af2aabd1077ecd4c70bcab678f4472", "/assets/user.svg": "2dc572771661b2ccd3ea4ae06bf768778144cbec", "/common.6fb368d54d6a7f3d.js": "be07a45ebe95bc3a1fc57cc6d28f471f0505c026", - "/index.html": "32b03472ff5c035671474fd37d5ee2fdbe632454", - "/main.9c6300c068f01818.js": "c119842b819daa98af068c55882be69b27e39192", + "/index.html": "2ae4918655a60ed8748a6e1322e36b2e24b94088", + "/main.7b4c0c867c94f61e.js": "18ec31ad65fe02ce4c5508757f46f2ac27c38562", "/manifest.webmanifest": "5a927f2c991153c4e1fb8dd9fd7845bbe00ba537", "/polyfills-core-js.c76198334f717402.js": "d6e270a2944b6a95a9b97dafd25599ba825e8d7f", "/polyfills-dom.bf542500b6fca113.js": "3fa333db66c8050f12e99d977f5098a6de8dd593", "/polyfills.bd294e9c6a01f281.js": "23b8d991df9f329be21888e9c445ce411f6fc678", - "/runtime.4ff990fdec9e87bb.js": "417b38c4d1e7dd53e475383b4ba4f4e280fbad67", + "/runtime.afe2573a36349f58.js": "908075b144ed5d9cb2b3674f6806536832a7c6de", "/scripts.f969b614b9decf68.js": "467091cacab9e36440117d8c26effba07c491af9", "/styles.31ee935e78782ce3.css": "70b012057dbff3cec42eff7de81a4ef851316e86" }, diff --git a/www/runtime.4ff990fdec9e87bb.js b/www/runtime.afe2573a36349f58.js similarity index 93% rename from www/runtime.4ff990fdec9e87bb.js rename to www/runtime.afe2573a36349f58.js index bc4ea4f..5654bdd 100644 --- a/www/runtime.4ff990fdec9e87bb.js +++ b/www/runtime.afe2573a36349f58.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var b=g[e];if(void 0!==b)return b.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,f),a.loaded=!0,a.exports}f.m=v,e=[],f.O=(b,a,c,d)=>{if(!a){var t=1/0;for(r=0;r=d)&&Object.keys(f.O).every(u=>f.O[u](a[n]))?a.splice(n--,1):(l=!1,d0&&e[r-1][2]>d;r--)e[r]=e[r-1];e[r]=[a,c,d]},f.n=e=>{var b=e&&e.__esModule?()=>e.default:()=>e;return f.d(b,{a:b}),b},(()=>{var b,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var d=Object.create(null);f.r(d);var r={};b=b||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~b.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(d,r),d}})(),f.d=(e,b)=>{for(var a in b)f.o(b,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:b[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((b,a)=>(f.f[a](e,b),b),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{101:"b61200e5155d34ee",441:"6bf62409b0c7ec80",477:"6970e4e748167630",604:"89444eb5c1646d42",771:"6f7786a2fbaee211",786:"00a4f06b53d7d2e2",964:"f46f1b6994d62851",1049:"2033e7796242a464",1102:"56d892f823cb514e",1177:"7ba9e57140ca43d5",1227:"1f503bb315a17284",1433:"2c059f00cb042b4f",1577:"e38109e3217876c6",1983:"76c9c761d810d293",2075:"38104f9bbc11ac8d",2076:"6fb368d54d6a7f3d",2113:"0c87c15ab9a91af5",2144:"1466920522110c0f",2348:"20a86cac51a9a09a",2375:"c99808ef4524e87d",2415:"b6a0844e2654f32a",2560:"98314a8bf2dfc944",2628:"b5b3b9d76e09f1e2",2648:"2ccda6362de2145a",2885:"6cc30bddac52cb25",2924:"2de4519281856991",2937:"aa2ee25b0084be07",2982:"d9b8bf08c5279ede",3066:"61d9de49bebed90a",3119:"bbf7c32983cab8d6",3162:"19a280fc95ec7e6a",3506:"86b999332181c7f4",3511:"771aa130a120a49e",3558:"7582aa5359a71327",3574:"edec9cbaff66e512",3780:"bd8da0556bbf53cc",3814:"d8088b0346ef3a2e",4171:"dd5cbba7fa50b21a",4183:"fbaeacea2b0845b7",4224:"70311ea3fdbf63a3",4294:"7a9a0605eb308817",4392:"b4fe58b088879926",4406:"05cf0d9efef8a3fa",4463:"d0c3d78068fad310",4503:"b2250dc8ab065fe0",4567:"ba4618208021696b",4591:"5a704fe20b25bedb",4612:"14fce41da64da6ce",4699:"d99e88eabd09d4e3",5006:"c22c706daadfa9d0",5100:"839badd2e9761886",5120:"c66fdf70d6f3bb34",5197:"71bc23e14aa679b8",5222:"b079f56b84d2efe7",5640:"5fb29d1a6c294532",5695:"8872c0aaa0ff593e",5712:"0da3ec4ee3dda8e0",5887:"f196a8a929562fc0",5949:"b1263d576573143d",5959:"bf2d61772e40c8f7",6024:"a6ad499e392797ff",6086:"c23f096118ac938c",6301:"2400da12269d8d6e",6433:"f32821d0cecd1e89",6674:"b40df406d0c6197f",7030:"af96796389bae4ca",7076:"478b1290b94533a6",7179:"d8123c1b865a5ee2",7240:"098e19418e173771",7278:"bf542500b6fca113",7372:"58c6fac0f8f5323d",7428:"0b77923d1b49f325",7720:"3c5e9b090f4dfae6",7916:"058371c1c22bebce",8066:"29601e0daf33894d",8193:"4c78d428e5728e4a",8314:"d2efe1c98743f1bb",8477:"2f6638add66daabb",8584:"d26666fed62ca671",8622:"7e4bc02a093577ee",8729:"efce8b0d4256f469",8761:"783f7b6e1b8d63de",8805:"bb5cc294530fb5ff",8814:"4e75f0ca36c773cc",8970:"c907411d52730c50",9061:"bee89fae6a61b4da",9132:"7a4e12bf87e29707",9303:"fc71a97226681960",9329:"c76198334f717402",9344:"1199e2b672cf8124",9977:"dfb6af23e31fcb21"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,b)=>Object.prototype.hasOwnProperty.call(e,b),(()=>{var e={},b="app:";f.l=(a,c,d,r)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(p);var _=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),_&&_.forEach(h=>h(u)),y)return y(u)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:b=>b},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(c,d)=>{var r=f.o(e,c)?e[c]:void 0;if(0!==r)if(r)d.push(r[2]);else if(9121!=c){var t=new Promise((o,s)=>r=e[c]=[o,s]);d.push(r[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(r=e[c])&&(e[c]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),p=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+p+")",n.name="ChunkLoadError",n.type=s,n.request=p,r[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var b=(c,d)=>{var n,i,[r,t,l]=d,o=0;if(r.some(p=>0!==e[p])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(c&&c(d);o{"use strict";var e,v={},g={};function f(e){var b=g[e];if(void 0!==b)return b.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,f),a.loaded=!0,a.exports}f.m=v,e=[],f.O=(b,a,c,d)=>{if(!a){var t=1/0;for(r=0;r=d)&&Object.keys(f.O).every(u=>f.O[u](a[n]))?a.splice(n--,1):(l=!1,d0&&e[r-1][2]>d;r--)e[r]=e[r-1];e[r]=[a,c,d]},f.n=e=>{var b=e&&e.__esModule?()=>e.default:()=>e;return f.d(b,{a:b}),b},(()=>{var b,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var d=Object.create(null);f.r(d);var r={};b=b||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~b.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(d,r),d}})(),f.d=(e,b)=>{for(var a in b)f.o(b,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:b[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((b,a)=>(f.f[a](e,b),b),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{101:"b61200e5155d34ee",441:"6bf62409b0c7ec80",477:"6970e4e748167630",604:"89444eb5c1646d42",771:"6f7786a2fbaee211",786:"844b70ed6b69d85d",964:"f46f1b6994d62851",1049:"2033e7796242a464",1102:"56d892f823cb514e",1177:"7ba9e57140ca43d5",1227:"1f503bb315a17284",1433:"2c059f00cb042b4f",1577:"e38109e3217876c6",1983:"76c9c761d810d293",2075:"38104f9bbc11ac8d",2076:"6fb368d54d6a7f3d",2113:"0c87c15ab9a91af5",2144:"1466920522110c0f",2348:"20a86cac51a9a09a",2375:"c99808ef4524e87d",2415:"b6a0844e2654f32a",2560:"98314a8bf2dfc944",2628:"b5b3b9d76e09f1e2",2648:"2ccda6362de2145a",2885:"6cc30bddac52cb25",2924:"2de4519281856991",2937:"aa2ee25b0084be07",2982:"d9b8bf08c5279ede",3066:"61d9de49bebed90a",3119:"bbf7c32983cab8d6",3162:"19a280fc95ec7e6a",3506:"86b999332181c7f4",3511:"771aa130a120a49e",3558:"7582aa5359a71327",3574:"edec9cbaff66e512",3780:"bd8da0556bbf53cc",3814:"d8088b0346ef3a2e",4171:"dd5cbba7fa50b21a",4183:"fbaeacea2b0845b7",4224:"70311ea3fdbf63a3",4294:"7a9a0605eb308817",4392:"b4fe58b088879926",4406:"05cf0d9efef8a3fa",4463:"d0c3d78068fad310",4503:"5b8c6e9bf02d0b2a",4567:"ba4618208021696b",4591:"5a704fe20b25bedb",4612:"14fce41da64da6ce",4699:"d99e88eabd09d4e3",5006:"c22c706daadfa9d0",5100:"839badd2e9761886",5120:"c66fdf70d6f3bb34",5197:"71bc23e14aa679b8",5222:"b079f56b84d2efe7",5640:"5fb29d1a6c294532",5695:"82ef23372439ff45",5712:"0da3ec4ee3dda8e0",5887:"f196a8a929562fc0",5949:"b1263d576573143d",5959:"bf2d61772e40c8f7",6024:"a6ad499e392797ff",6086:"c23f096118ac938c",6301:"2400da12269d8d6e",6433:"f32821d0cecd1e89",6674:"b40df406d0c6197f",7030:"af96796389bae4ca",7076:"478b1290b94533a6",7179:"d8123c1b865a5ee2",7240:"098e19418e173771",7278:"bf542500b6fca113",7372:"58c6fac0f8f5323d",7428:"0b77923d1b49f325",7720:"3c5e9b090f4dfae6",7916:"f15bebeedebb8cc8",8066:"29601e0daf33894d",8193:"4c78d428e5728e4a",8314:"d2efe1c98743f1bb",8477:"2f6638add66daabb",8584:"d26666fed62ca671",8622:"7e4bc02a093577ee",8729:"efce8b0d4256f469",8761:"89535521ee240b3a",8805:"bb5cc294530fb5ff",8814:"4e75f0ca36c773cc",8970:"c907411d52730c50",9061:"bee89fae6a61b4da",9132:"7a4e12bf87e29707",9303:"fc71a97226681960",9329:"c76198334f717402",9344:"1199e2b672cf8124",9977:"dfb6af23e31fcb21"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,b)=>Object.prototype.hasOwnProperty.call(e,b),(()=>{var e={},b="app:";f.l=(a,c,d,r)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(p);var _=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),_&&_.forEach(h=>h(u)),y)return y(u)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:b=>b},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(c,d)=>{var r=f.o(e,c)?e[c]:void 0;if(0!==r)if(r)d.push(r[2]);else if(9121!=c){var t=new Promise((o,s)=>r=e[c]=[o,s]);d.push(r[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(r=e[c])&&(e[c]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),p=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+p+")",n.name="ChunkLoadError",n.type=s,n.request=p,r[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var b=(c,d)=>{var n,i,[r,t,l]=d,o=0;if(r.some(p=>0!==e[p])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(c&&c(d);o