From 49cb75589894b481c2be9cedd4a36375a00b698c Mon Sep 17 00:00:00 2001 From: dgadelha Date: Thu, 25 Jul 2024 02:07:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20442fc?= =?UTF-8?q?e494caf27eccc0e06194f37b26a6cd03072=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- main-QEVTXVBU.js => main-VR6OYD6Z.js | 220 +++++++++++++-------------- ngsw.json | 8 +- 3 files changed, 115 insertions(+), 115 deletions(-) rename main-QEVTXVBU.js => main-VR6OYD6Z.js (98%) diff --git a/index.html b/index.html index cf1171c6..c8363d2e 100644 --- a/index.html +++ b/index.html @@ -20,5 +20,5 @@ - + diff --git a/main-QEVTXVBU.js b/main-VR6OYD6Z.js similarity index 98% rename from main-QEVTXVBU.js rename to main-VR6OYD6Z.js index 511058b8..012c2bc5 100644 --- a/main-QEVTXVBU.js +++ b/main-VR6OYD6Z.js @@ -4,7 +4,7 @@ ${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `);return i===-1?e:e.substring(0,i)}function Wv(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var _$=Zt({__forward_ref__:Zt});function vs(t){return t.__forward_ref__=vs,t.toString=function(){return ui(this())},t}function Yt(t){return r9(t)?t():t}function r9(t){return typeof t=="function"&&t.hasOwnProperty(_$)&&t.__forward_ref__===vs}function v$(t,e,i){t!=e&&b$(i,t,e,"==")}function b$(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function we(t){return{providers:t.providers||[],imports:t.imports||[]}}function my(t){return dA(t,wD)||dA(t,xD)}function dA(t,e){return t.hasOwnProperty(e)?t[e]:null}function y$(t){let e=t&&(t[wD]||t[xD]);return e||null}function hA(t){return t&&(t.hasOwnProperty(fA)||t.hasOwnProperty(E$))?t[fA]:null}var wD=Zt({\u0275prov:Zt}),fA=Zt({\u0275inj:Zt}),xD=Zt({ngInjectableDef:Zt}),E$=Zt({ngInjectorDef:Zt}),Z=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=q({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function AD(t){return t&&!!t.\u0275providers}var s9=Zt({\u0275cmp:Zt}),gy=Zt({\u0275dir:Zt}),DD=Zt({\u0275pipe:Zt}),C$=Zt({\u0275mod:Zt}),T5=Zt({\u0275fac:Zt}),_5=Zt({__NG_ELEMENT_ID__:Zt}),pA=Zt({__NG_ENV_ID__:Zt});function lt(t){return typeof t=="string"?t:t==null?"":String(t)}function ro(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():lt(t)}function I$(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new se(-200,t)}function _y(t,e){throw new se(-201,!1)}var Ct=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ct||{}),qv;function OD(){return qv}function Yi(t){let e=qv;return qv=t,e}function RD(t,e,i){let n=my(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&Ct.Optional)return null;if(e!==void 0)return e;_y(t,"Injector")}var T$={},S5=T$,Kv="__NG_DI_FLAG__",R8="ngTempTokenPath",S$="ngTokenPath",w$=/\n/gm,x$="\u0275",mA="__source",ic;function A$(){return ic}function aa(t){let e=ic;return ic=t,e}function D$(t,e=Ct.Default){if(ic===void 0)throw new se(-203,!1);return ic===null?RD(t,void 0,e):ic.get(t,e&Ct.Optional?null:void 0,e)}function x(t,e=Ct.Default){return(OD()||D$)(Yt(t),e)}function O$(t){throw new se(202,!1)}function Y(t,e=Ct.Default){return x(t,o9(e))}function o9(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Yv(t){let e=[];for(let i=0;i ");else if(typeof e=="object"){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let l=e[o];s.push(o+":"+(typeof l=="string"?JSON.stringify(l):ui(l)))}r=`{${s.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(w$,` - `)}`}var N$=j5(pc("Inject",t=>({token:t})),-1),Xi=j5(pc("Optional"),8),P$=j5(pc("Self"),2),H5=j5(pc("SkipSelf"),4),L$=j5(pc("Host"),1);function Hu(t,e){let i=t.hasOwnProperty(T5);return i?t[T5]:null}function F$(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?vy(i,e):e(i))}function MD(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function M8(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function C8(t,e){let i=[];for(let n=0;ne;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function mr(t,e,i){let n=$5(t,e);return n>=0?t[n|1]=i:(n=~n,kD(t,n,e,i)),n}function Iv(t,e){let i=$5(t,e);if(i>=0)return t[i|1]}function $5(t,e){return V$(t,e,1)}function V$(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<e){o=s-1;break}}}for(;s-1){let s;for(;++rs?d="":d=r[c+1].toLowerCase(),n&2&&u!==d){if(fs(n))return!1;o=!0}}}}return fs(n)||o}function fs(t){return(t&1)===0}function $$(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+l+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!fs(o)&&(e+=vA(s,r),r=""),n=o,s=s||!fs(n);i++}return r!==""&&(e+=vA(s,r)),e}function Z$(t){return t.map(Y$).join(",")}function X$(t){let e=[],i=[],n=1,r=2;for(;n{let e=BD(t),i=ee(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===by.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ms.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""});UD(i);let n=t.dependencies;return i.directiveDefs=P8(n,!1),i.pipeDefs=P8(n,!0),i.id=eG(i),i})}function Q$(t){return Cn(t)||hr(t)}function J$(t){return t!==null}function xe(t){return t2(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function bA(t,e){if(t==null)return lo;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s,o,l=fa.None;Array.isArray(r)?(l=r[0],s=r[1],o=r[2]??s):(s=r,o=r),e?(i[s]=l!==fa.None?[n,l]:n,e[s]=o):i[s]=n}return i}function Ce(t){return t2(()=>{let e=BD(t);return UD(e),e})}function Ey(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Cn(t){return t[s9]||null}function hr(t){return t[gy]||null}function fr(t){return t[DD]||null}function N8(t){let e=Cn(t)||hr(t)||fr(t);return e!==null?e.standalone:!1}function ao(t,e){let i=t[C$]||null;if(!i&&e===!0)throw new Error(`Type ${ui(t)} does not have '\u0275mod' property.`);return i}function BD(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||lo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bA(t.inputs,e),outputs:bA(t.outputs),debugInfo:null}}function UD(t){t.features?.forEach(e=>e(t))}function P8(t,e){if(!t)return null;let i=e?fr:Q$;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(J$)}function eG(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Pr(t){return{\u0275providers:t}}function tG(...t){return{\u0275providers:Cy(!0,t),\u0275fromNgModule:!0}}function Cy(t,...e){let i=[],n=new Set,r,s=o=>{i.push(o)};return vy(e,o=>{let l=o;Xv(l,s,[],n)&&(r||=[],r.push(l))}),r!==void 0&&jD(r,s),i}function jD(t,e){for(let i=0;i{e(s,n)})}}function Xv(t,e,i,n){if(t=Yt(t),!t)return!1;let r=null,s=hA(t),o=!s&&Cn(t);if(!s&&!o){let a=t.ngModule;if(s=hA(a),s)r=a;else return!1}else{if(o&&!o.standalone)return!1;r=t}let l=n.has(r);if(o){if(l)return!1;if(n.add(r),o.dependencies){let a=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of a)Xv(u,e,i,n)}}else if(s){if(s.imports!=null&&!l){n.add(r);let u;try{vy(s.imports,c=>{Xv(c,e,i,n)&&(u||=[],u.push(c))})}finally{}u!==void 0&&jD(u,e)}if(!l){let u=Hu(r)||(()=>new r);e({provide:r,useFactory:u,deps:vn},r),e({provide:PD,useValue:r,multi:!0},r),e({provide:w5,useValue:()=>x(r),multi:!0},r)}let a=s.providers;if(a!=null&&!l){let u=t;Iy(a,c=>{e(c,u)})}}else return!1;return r!==t&&t.providers!==void 0}function Iy(t,e){for(let i of t)AD(i)&&(i=i.\u0275providers),Array.isArray(i)?Iy(i,e):e(i)}var nG=Zt({provide:String,useValue:Zt});function HD(t){return t!==null&&typeof t=="object"&&nG in t}function iG(t){return!!(t&&t.useExisting)}function rG(t){return!!(t&&t.useFactory)}function lc(t){return typeof t=="function"}function sG(t){return!!t.useClass}var l9=new Z(""),I8={},oG={},Tv;function a9(){return Tv===void 0&&(Tv=new k8),Tv}var Oi=class{},A5=class extends Oi{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jv(e,o=>this.processProvider(o)),this.records.set(ND,ec(void 0,this)),r.has("environment")&&this.records.set(Oi,ec(void 0,this));let s=this.records.get(l9);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(PD,vn,Ct.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=dt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),dt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=aa(this),n=Yi(void 0),r;try{return e()}finally{aa(i),Yi(n)}}get(e,i=S5,n=Ct.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(pA))return e[pA](this);n=o9(n);let r,s=aa(this),o=Yi(void 0);try{if(!(n&Ct.SkipSelf)){let a=this.records.get(e);if(a===void 0){let u=dG(e)&&my(e);u&&this.injectableDefInScope(u)?a=ec(Qv(e),I8):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let l=n&Ct.Self?a9():this.parent;return i=n&Ct.Optional&&i===S5?null:i,l.get(e,i)}catch(l){if(l.name==="NullInjectorError"){if((l[R8]=l[R8]||[]).unshift(ui(e)),s)throw l;return M$(l,e,"R3InjectorError",this.source)}else throw l}finally{Yi(o),aa(s)}}resolveInjectorInitializers(){let e=dt(null),i=aa(this),n=Yi(void 0),r;try{let s=this.get(w5,vn,Ct.Self);for(let o of s)o()}finally{aa(i),Yi(n),dt(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(ui(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new se(205,!1)}processProvider(e){e=Yt(e);let i=lc(e)?e:Yt(e&&e.provide),n=aG(e);if(!lc(e)&&e.multi===!0){let r=this.records.get(i);r||(r=ec(void 0,I8,!0),r.factory=()=>Yv(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=dt(null);try{return i.value===I8&&(i.value=oG,i.value=i.factory()),typeof i.value=="object"&&i.value&&cG(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{dt(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Yt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Qv(t){let e=my(t),i=e!==null?e.factory:Hu(t);if(i!==null)return i;if(t instanceof Z)throw new se(204,!1);if(t instanceof Function)return lG(t);throw new se(204,!1)}function lG(t){if(t.length>0)throw new se(204,!1);let i=y$(t);return i!==null?()=>i.factory(t):()=>new t}function aG(t){if(HD(t))return ec(void 0,t.useValue);{let e=zD(t);return ec(e,I8)}}function zD(t,e,i){let n;if(lc(t)){let r=Yt(t);return Hu(r)||Qv(r)}else if(HD(t))n=()=>Yt(t.useValue);else if(rG(t))n=()=>t.useFactory(...Yv(t.deps||[]));else if(iG(t))n=()=>x(Yt(t.useExisting));else{let r=Yt(t&&(t.useClass||t.provide));if(uG(t))n=()=>new r(...Yv(t.deps));else return Hu(r)||Qv(r)}return n}function ec(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function uG(t){return!!t.deps}function cG(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function dG(t){return typeof t=="function"||typeof t=="object"&&t instanceof Z}function Jv(t,e){for(let i of t)Array.isArray(i)?Jv(i,e):i&&AD(i)?Jv(i.\u0275providers,e):e(i)}function Ty(t,e){t instanceof A5&&t.assertNotDestroyed();let i,n=aa(t),r=Yi(void 0);try{return e()}finally{aa(n),Yi(r)}}function $D(){return OD()!==void 0||A$()!=null}function Sy(t){if(!$D())throw new se(-203,!1)}function G5(t){let e=Nn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var hG=Function;function p5(t){return typeof t=="function"}var fG=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,pG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,mG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,gG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function _G(t){return fG.test(t)||gG.test(t)||pG.test(t)&&!mG.test(t)}var eb=class{constructor(e){this._reflect=e||Nn.Reflect}factory(e){return(...i)=>new e(...i)}_zipTypesAndAnnotations(e,i){let n;typeof e>"u"?n=C8(i.length):n=C8(e.length);for(let r=0;r"u"?n[r]=[]:e[r]&&e[r]!=Object?n[r]=[e[r]]:n[r]=[],i&&i[r]!=null&&(n[r]=n[r].concat(i[r]));return n}_ownParameters(e,i){let n=e.toString();if(_G(n))return null;if(e.parameters&&e.parameters!==i.parameters)return e.parameters;let r=e.ctorParameters;if(r&&r!==i.ctorParameters){let l=typeof r=="function"?r():r,a=l.map(c=>c&&c.type),u=l.map(c=>c&&Sv(c.decorators));return this._zipTypesAndAnnotations(a,u)}let s=e.hasOwnProperty(J3)&&e[J3],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||s?this._zipTypesAndAnnotations(o,s):C8(e.length)}parameters(e){if(!p5(e))return[];let i=f8(e),n=this._ownParameters(e,i);return!n&&i!==Object&&(n=this.parameters(i)),n||[]}_ownAnnotations(e,i){if(e.annotations&&e.annotations!==i.annotations){let n=e.annotations;return typeof n=="function"&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==i.decorators?Sv(e.decorators):e.hasOwnProperty(Q3)?e[Q3]:null}annotations(e){if(!p5(e))return[];let i=f8(e),n=this._ownAnnotations(e,i)||[];return(i!==Object?this.annotations(i):[]).concat(n)}_ownPropMetadata(e,i){if(e.propMetadata&&e.propMetadata!==i.propMetadata){let n=e.propMetadata;return typeof n=="function"&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==i.propDecorators){let n=e.propDecorators,r={};return Object.keys(n).forEach(s=>{r[s]=Sv(n[s])}),r}return e.hasOwnProperty(cA)?e[cA]:null}propMetadata(e){if(!p5(e))return{};let i=f8(e),n={};if(i!==Object){let s=this.propMetadata(i);Object.keys(s).forEach(o=>{n[o]=s[o]})}let r=this._ownPropMetadata(e,i);return r&&Object.keys(r).forEach(s=>{let o=[];n.hasOwnProperty(s)&&o.push(...n[s]),o.push(...r[s]),n[s]=o}),n}ownPropMetadata(e){return p5(e)?this._ownPropMetadata(e,f8(e))||{}:{}}hasLifecycleHook(e,i){return e instanceof hG&&i in e.prototype}};function Sv(t){return t?t.map(e=>{let n=e.type.annotationCls,r=e.args?e.args:[];return new n(...r)}):[]}function f8(t){let e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}var fo=0,De=1,Xe=2,hi=3,ps=4,Mi=5,ac=6,L8=7,ci=8,Qn=9,uo=10,ht=11,D5=12,yA=13,mc=14,Ri=15,zu=16,tc=17,ol=18,u9=19,GD=20,da=21,T8=22,Rr=23,Pt=25,wy=1;var $u=7,F8=8,uc=9,di=10,V8=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(V8||{});function ha(t){return Array.isArray(t)&&typeof t[wy]=="object"}function ul(t){return Array.isArray(t)&&t[wy]===!0}function xy(t){return(t.flags&4)!==0}function c9(t){return t.componentOffset>-1}function d9(t){return(t.flags&1)===1}function gs(t){return!!t.template}function tb(t){return(t[Xe]&512)!==0}function nb(t){return(t[Xe]&256)===256}var ib=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function WD(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function In(){return qD}function qD(t){return t.type.prototype.ngOnChanges&&(t.setInput=bG),vG}In.ngInherit=!0;function vG(){let t=YD(this),e=t?.current;if(e){let i=t.previous;if(i===lo)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function bG(t,e,i,n,r){let s=this.declaredInputs[n],o=YD(t)||yG(t,{previous:lo,current:null}),l=o.current||(o.current={}),a=o.previous,u=a[s];l[s]=new ib(u&&u.currentValue,i,a===lo),WD(t,e,r,i)}var KD="__ngSimpleChanges__";function YD(t){return t[KD]||null}function yG(t,e){return t[KD]=e}var EA=null;var so=function(t,e,i){EA?.(t,e,i)},ZD="svg",XD="math";function Mr(t){for(;Array.isArray(t);)t=t[fo];return t}function EG(t){for(;Array.isArray(t);){if(typeof t[wy]=="object")return t;t=t[fo]}return null}function W5(t,e){return Mr(e[t])}function gr(t,e){return Mr(e[t.index])}function q5(t,e){return t.data[e]}function n2(t,e){return t[e]}function _a(t,e){let i=e[t];return ha(i)?i:i[fo]}function CG(t){return(t[Xe]&4)===4}function Ay(t){return(t[Xe]&128)===128}function IG(t){return ul(t[hi])}function kr(t,e){return e==null?null:t[e]}function QD(t){t[tc]=0}function JD(t){t[Xe]&1024||(t[Xe]|=1024,Ay(t)&&h9(t))}function eO(t,e){for(;t>0;)e=e[mc],t--;return e}function O5(t){return!!(t[Xe]&9216||t[Rr]?.dirty)}function rb(t){t[uo].changeDetectionScheduler?.notify(7),t[Xe]&64&&(t[Xe]|=1024),O5(t)&&h9(t)}function h9(t){t[uo].changeDetectionScheduler?.notify(0);let e=Gu(t);for(;e!==null&&!(e[Xe]&8192||(e[Xe]|=8192,!Ay(e)));)e=Gu(e)}function f9(t,e){if((t[Xe]&256)===256)throw new se(911,!1);t[da]===null&&(t[da]=[]),t[da].push(e)}function Dy(t,e){if(t[da]===null)return;let i=t[da].indexOf(e);i!==-1&&t[da].splice(i,1)}function Gu(t){let e=t[hi];return ul(e)?e[hi]:e}var et={lFrame:dO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tO=!1;function TG(){return et.lFrame.elementDepthCount}function SG(){et.lFrame.elementDepthCount++}function wG(){et.lFrame.elementDepthCount--}function nO(){return et.bindingsEnabled}function iO(){return et.skipHydrationRootTNode!==null}function xG(t){return et.skipHydrationRootTNode===t}function AG(){et.bindingsEnabled=!0}function DG(){et.bindingsEnabled=!1}function OG(){et.skipHydrationRootTNode=null}function $(){return et.lFrame.lView}function pt(){return et.lFrame.tView}function ae(t){return et.lFrame.contextLView=t,t[ci]}function ue(t){return et.lFrame.contextLView=null,t}function zt(){let t=rO();for(;t!==null&&t.type===64;)t=t.parent;return t}function rO(){return et.lFrame.currentTNode}function R5(){let t=et.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function _s(t,e){let i=et.lFrame;i.currentTNode=t,i.isParent=e}function Oy(){return et.lFrame.isParent}function Ry(){et.lFrame.isParent=!1}function sO(){return et.lFrame.contextLView}function oO(){return tO}function CA(t){tO=t}function ki(){let t=et.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cl(){return et.lFrame.bindingIndex}function lO(t){return et.lFrame.bindingIndex=t}function bs(){return et.lFrame.bindingIndex++}function dl(t){let e=et.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function RG(){return et.lFrame.inI18n}function aO(t){et.lFrame.inI18n=t}function MG(t,e){let i=et.lFrame;i.bindingIndex=i.bindingRootIndex=t,sb(e)}function kG(){return et.lFrame.currentDirectiveIndex}function sb(t){et.lFrame.currentDirectiveIndex=t}function My(t){let e=et.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function ky(){return et.lFrame.currentQueryIndex}function p9(t){et.lFrame.currentQueryIndex=t}function NG(t){let e=t[De];return e.type===2?e.declTNode:e.type===1?t[Mi]:null}function uO(t,e,i){if(i&Ct.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&Ct.Host);)if(r=NG(s),r===null||(s=s[mc],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=et.lFrame=cO();return n.currentTNode=e,n.lView=t,!0}function Ny(t){let e=cO(),i=t[De];et.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function cO(){let t=et.lFrame,e=t===null?null:t.child;return e===null?dO(t):e}function dO(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function hO(){let t=et.lFrame;return et.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var fO=hO;function Py(){let t=hO();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function PG(t){return(et.lFrame.contextLView=eO(t,et.lFrame.contextLView))[ci]}function fi(){return et.lFrame.selectedIndex}function Wu(t){et.lFrame.selectedIndex=t}function tn(){let t=et.lFrame;return q5(t.tView,t.selectedIndex)}function m9(){et.lFrame.currentNamespace=ZD}function LG(){et.lFrame.currentNamespace=XD}function Ly(){FG()}function FG(){et.lFrame.currentNamespace=null}function VG(){return et.lFrame.currentNamespace}var pO=!0;function K5(){return pO}function Y5(t){pO=t}function BG(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=qD(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function g9(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[tc]+=65536),(l>14>16&&(t[Xe]&3)===e&&(t[Xe]+=16384,IA(l,s)):IA(l,s)}var rc=-1,qu=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function jG(t){return t instanceof qu}function HG(t){return(t.flags&8)!==0}function zG(t){return(t.flags&16)!==0}var xv={},sc=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=o9(n);let r=this.injector.get(e,xv,n);return r!==xv||i===xv?r:this.parentInjector.get(e,i,n)}};function gO(t){return t!==rc}function B8(t){return t&32767}function $G(t){return t>>16}function U8(t,e){let i=$G(t),n=e;for(;i>0;)n=n[mc],i--;return n}var ob=!0;function j8(t){let e=ob;return ob=t,e}var GG=256,_O=GG-1,vO=5,WG=0,oo={};function qG(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(_5)&&(n=i[_5]),n==null&&(n=i[_5]=WG++);let r=n&_O,s=1<>vO)]|=s}function H8(t,e){let i=bO(t,e);if(i!==-1)return i;let n=e[De];n.firstCreatePass&&(t.injectorIndex=e.length,Av(n.data,t),Av(e,null),Av(n.blueprint,null));let r=Fy(t,e),s=t.injectorIndex;if(gO(r)){let o=B8(r),l=U8(r,e),a=l[De].data;for(let u=0;u<8;u++)e[s+u]=l[o+u]|a[o+u]}return e[s+8]=r,s}function Av(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bO(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fy(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=TO(r),n===null)return rc;if(i++,r=r[mc],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return rc}function lb(t,e,i){qG(t,e,i)}function KG(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,d=n?l:l+c,h=r?l+c:u;for(let f=d;f=a&&p.type===i)return f}if(r){let f=o[a];if(f&&gs(f)&&f.type===i)return a}return null}function Ku(t,e,i,n){let r=t[i],s=e.data;if(jG(r)){let o=r;o.resolving&&I$(ro(s[i]));let l=j8(o.canSeeViewProviders);o.resolving=!0;let a,u=o.injectImpl?Yi(o.injectImpl):null,c=uO(t,n,Ct.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&BG(i,s[i],e)}finally{u!==null&&Yi(u),j8(l),o.resolving=!1,fO()}}return r}function ZG(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(_5)?t[_5]:void 0;return typeof e=="number"?e>=0?e&_O:XG:e}function TA(t,e,i){let n=1<>vO)]&n)}function SA(t,e){return!(t&Ct.Self)&&!(t&Ct.Host&&e)}var ju=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return CO(this._tNode,this._lView,e,o9(n),i)}};function XG(){return new ju(zt(),$())}function po(t){return t2(()=>{let e=t.prototype.constructor,i=e[T5]||ab(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[T5]||ab(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function ab(t){return r9(t)?()=>{let e=ab(Yt(t));return e&&e()}:Hu(t)}function QG(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[Xe]&2048&&!(o[Xe]&512);){let l=IO(s,o,i,n|Ct.Self,oo);if(l!==oo)return l;let a=s.parent;if(!a){let u=o[GD];if(u){let c=u.get(i,oo,n);if(c!==oo)return c}a=TO(o),o=o[mc]}s=a}return r}function TO(t){let e=t[De],i=e.type;return i===2?e.declTNode:i===1?t[Mi]:null}function va(t){return KG(zt(),t)}var JG=pc("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>va(t)})),wA=null;function Vy(){return wA=wA||new eb}function eW(t){return tW(Vy().parameters(t))}function tW(t){return t.map(e=>nW(e))}function nW(t){let e={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let i=0;ix(ND)}),Uu.__NG_ELEMENT_ID__=-1;var ze=Uu;var iW=new Z("");iW.__NG_ELEMENT_ID__=t=>{let e=zt();if(e===null)throw new se(204,!1);if(e.type&2)return e.value;if(t&Ct.Optional)return null;throw new se(204,!1)};var rW="ngOriginalError";function Dv(t){return t[rW]}var Zi=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Dv(e);for(;i&&Dv(i);)i=Dv(i);return i||null}},wO=new Z("",{providedIn:"root",factory:()=>Y(Zi).handleError.bind(void 0)}),_9=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sW,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),ub=class extends _9{constructor(e){super(),this._lView=e}onDestroy(e){return f9(this._lView,e),()=>Dy(this._lView,e)}};function sW(){return new ub($())}function AA(t,e){return ID(t,e)}function oW(t){return ID(CD,t)}var mo=(AA.required=oW,AA);function lW(){return gc(zt(),$())}function gc(t,e){return new Te(gr(t,e))}var Te=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=lW;let t=e;return t})();function aW(t){return t instanceof Te?t.nativeElement:t}var hl=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var cb=class extends te{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,$D()&&(this.destroyRef=Y(_9,{optional:!0})??void 0,this.pendingTasks=Y(hl,{optional:!0})??void 0)}emit(e){let i=dt(null);try{super.next(e)}finally{dt(i)}}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),s=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(s=this.wrapInTimeout(s),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let l=super.subscribe({next:r,error:s,complete:o});return e instanceof kt&&e.add(l),l}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},Se=cb;function uW(){return this._results[Symbol.iterator]()}var pa=class t{get changes(){return this._changes??=new Se}constructor(e=!1){this._emitDistinctChangesOnly=e,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;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=uW)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=z5(e);(this._changesDetected=!F$(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function xO(t){return(t.flags&128)===128}var AO=new Map,cW=0;function dW(){return cW++}function hW(t){AO.set(t[u9],t)}function fW(t){AO.delete(t[u9])}var DA="__ngContext__";function co(t,e){ha(e)?(t[DA]=e[u9],hW(e)):t[DA]=e}function DO(t){return RO(t[D5])}function OO(t){return RO(t[ps])}function RO(t){for(;t!==null&&!ul(t);)t=t[ps];return t}var db;function MO(t){db=t}function By(){if(db!==void 0)return db;if(typeof document<"u")return document;throw new se(210,!1)}var _c=new Z("",{providedIn:"root",factory:()=>pW}),pW="ng",Uy=new Z(""),Jn=new Z("",{providedIn:"platform",factory:()=>"unknown"});var Tn=new Z(""),Z5=new Z("",{providedIn:"root",factory:()=>By().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var mW="h",gW="b";var _W=()=>null;function jy(t,e,i=!1){return _W(t,e,i)}var kO=!1,vW=new Z("",{providedIn:"root",factory:()=>kO});var p8;function NO(){if(p8===void 0&&(p8=null,Nn.trustedTypes))try{p8=Nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return p8}function vc(t){return NO()?.createHTML(t)||t}function bW(t){return NO()?.createScriptURL(t)||t}var m8;function Hy(){if(m8===void 0&&(m8=null,Nn.trustedTypes))try{m8=Nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return m8}function OA(t){return Hy()?.createHTML(t)||t}function RA(t){return Hy()?.createScript(t)||t}function MA(t){return Hy()?.createScriptURL(t)||t}var ll=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ED})`}},hb=class extends ll{getTypeName(){return"HTML"}},fb=class extends ll{getTypeName(){return"Style"}},pb=class extends ll{getTypeName(){return"Script"}},mb=class extends ll{getTypeName(){return"URL"}},gb=class extends ll{getTypeName(){return"ResourceURL"}};function Ni(t){return t instanceof ll?t.changingThisBreaksApplicationSecurity:t}function ys(t,e){let i=yW(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${ED})`)}return i===e}function yW(t){return t instanceof ll&&t.getTypeName()||null}function PO(t){return new hb(t)}function LO(t){return new fb(t)}function FO(t){return new pb(t)}function VO(t){return new mb(t)}function BO(t){return new gb(t)}function UO(t){let e=new vb(t);return EW()?new _b(e):e}var _b=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let i=new window.DOMParser().parseFromString(vc(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},vb=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=vc(e),i}};function EW(){try{return!!new window.DOMParser().parseFromString(vc(""),"text/html")}catch{return!1}}var CW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function X5(t){return t=String(t),t.match(CW)?t:"unsafe:"+t}function fl(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Q5(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var jO=fl("area,br,col,hr,img,wbr"),HO=fl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zO=fl("rp,rt"),IW=Q5(zO,HO),TW=Q5(HO,fl("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")),SW=Q5(zO,fl("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")),bb=Q5(jO,TW,SW,IW),zy=fl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wW=fl("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"),xW=fl("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"),$O=Q5(zy,wW,xW),AW=fl("script,style,template"),yb=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=RW(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let s=OW(i);if(s){i=s;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=kA(e).toLowerCase();if(!bb.hasOwnProperty(i))return this.sanitizedSomething=!0,!AW.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r"),!0}endElement(e){let i=kA(e).toLowerCase();bb.hasOwnProperty(i)&&!jO.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(NA(e))}};function DW(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function OW(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw GO(e);return e}function RW(t){let e=t.firstChild;if(e&&DW(t,e))throw GO(e);return e}function kA(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function GO(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var MW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kW=/([^\#-~ |!])/g;function NA(t){return t.replace(/&/g,"&").replace(MW,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(kW,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var g8;function $y(t,e){let i=null;try{g8=g8||UO(t);let n=e?String(e):"";i=g8.getInertBodyElement(n);let r=5,s=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=g8.getInertBodyElement(n)}while(n!==s);let l=new yb().sanitizeChildren(Eb(i)||i);return vc(l)}finally{if(i){let n=Eb(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Eb(t){return"content"in t&&NW(t)?t.content:null}function NW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var _r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(_r||{});function Gy(t){let e=J5();return e?OA(e.sanitize(_r.HTML,t)||""):ys(t,"HTML")?OA(Ni(t)):$y(By(),lt(t))}function PW(t){let e=J5();return e?e.sanitize(_r.STYLE,t)||"":ys(t,"Style")?Ni(t):lt(t)}function bc(t){let e=J5();return e?e.sanitize(_r.URL,t)||"":ys(t,"URL")?Ni(t):X5(lt(t))}function v9(t){let e=J5();if(e)return MA(e.sanitize(_r.RESOURCE_URL,t)||"");if(ys(t,"ResourceURL"))return MA(Ni(t));throw new se(904,!1)}function LW(t){let e=J5();if(e)return RA(e.sanitize(_r.SCRIPT,t)||"");if(ys(t,"Script"))return RA(Ni(t));throw new se(905,!1)}function FW(t){return vc(t[0])}function VW(t){return bW(t[0])}function BW(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?v9:bc}function UW(t,e,i){return BW(e,i)(t)}function J5(){let t=$();return t&&t[uo].sanitizer}var jW=/^>|^->||--!>|)/g,zW="\u200B$1\u200B";function $W(t){return t.replace(jW,e=>e.replace(HW,zW))}function GW(t){return t.ownerDocument.defaultView}function WW(t){return t.ownerDocument}function qW(t){return t.ownerDocument.body}function ua(t){return t instanceof Function?t():t}function i2(t){return(t??Y(ze)).get(Jn)==="browser"}var ho=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ho||{}),Cb;function Wy(t,e){return Cb(t,e)}function KW(t){Cb===void 0&&(Cb=t())}function nc(t,e,i,n,r){if(n!=null){let s,o=!1;ul(n)?s=n:ha(n)&&(o=!0,n=n[fo]);let l=Mr(n);t===0&&i!==null?r==null?JO(e,i,l):Yu(e,i,l,r||null,!0):t===1&&i!==null?Yu(e,i,l,r||null,!0):t===2?Yy(e,l,o):t===3&&e.destroyNode(l),s!=null&&rq(e,t,s,i,r)}}function WO(t,e){return t.createText(e)}function qO(t,e,i){t.setValue(e,i)}function KO(t,e){return t.createComment($W(e))}function qy(t,e,i){return t.createElement(e,i)}function YW(t,e){YO(t,e),e[fo]=null,e[Mi]=null}function ZW(t,e,i,n,r,s){n[fo]=r,n[Mi]=e,C9(t,n,i,1,r,s)}function YO(t,e){e[uo].changeDetectionScheduler?.notify(8),C9(t,e,e[ht],2,null,null)}function XW(t){let e=t[D5];if(!e)return Ov(t[De],t);for(;e;){let i=null;if(ha(e))i=e[D5];else{let n=e[di];n&&(i=n)}if(!i){for(;e&&!e[ps]&&e!==t;)ha(e)&&Ov(e[De],e),e=e[hi];e===null&&(e=t),ha(e)&&Ov(e[De],e),i=e&&e[ps]}e=i}}function QW(t,e,i,n){let r=di+n,s=i.length;n>0&&(i[r-1][ps]=e),n0&&(t[i-1][ps]=n[ps]);let s=M8(t,di+e);YW(n[De],n);let o=s[ol];o!==null&&o.detachView(s[De]),n[hi]=null,n[ps]=null,n[Xe]&=-129}return n}function b9(t,e){if(!(e[Xe]&256)){let i=e[ht];i.destroyNode&&C9(t,e,i,3,null,null),XW(e)}}function Ov(t,e){if(e[Xe]&256)return;let i=dt(null);try{e[Xe]&=-129,e[Xe]|=256,e[Rr]&&M6(e[Rr]),eq(t,e),JW(t,e),e[De].type===1&&e[ht].destroy();let n=e[zu];if(n!==null&&ul(e[hi])){n!==e[hi]&&Ky(n,e);let r=e[ol];r!==null&&r.detachView(t)}fW(e)}finally{dt(i)}}function JW(t,e){let i=t.cleanup,n=e[L8];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[L8]=null);let r=e[da];if(r!==null){e[da]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===ms.None||s===ms.Emulated)return null}return gr(n,i)}}function Yu(t,e,i,n,r){t.insertBefore(e,i,n,r)}function JO(t,e,i){t.appendChild(e,i)}function PA(t,e,i,n,r){n!==null?Yu(t,e,i,n,r):JO(t,e,i)}function tq(t,e,i,n){t.removeChild(e,i,n)}function y9(t,e){return t.parentNode(e)}function nq(t,e){return t.nextSibling(e)}function eR(t,e,i){return nR(t,e,i)}function tR(t,e,i){return t.type&40?gr(t,i):null}var nR=tR,Ib;function iR(t,e){nR=t,Ib=e}function E9(t,e,i,n){let r=XO(t,n,e),s=e[ht],o=n.parent||e[Mi],l=eR(o,n,e);if(r!=null)if(Array.isArray(i))for(let a=0;aPt&&aR(t,e,Pt,!1),so(o?2:0,r),i(n,r)}finally{Wu(s),so(o?3:1,r)}}function Jy(t,e,i){if(xy(e)){let n=dt(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function hq(t,e,i,n){let r=gR(e);r.push(i),t.firstCreatePass&&_R(t).push(n,r.length-1)}function fq(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,l=0;return iO()&&(l|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function LA(t,e,i,n,r){for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s];if(o===void 0)continue;n??={};let l,a=fa.None;Array.isArray(o)?(l=o[0],a=o[1]):l=o;let u=s;if(r!==null){if(!r.hasOwnProperty(s))continue;u=r[s]}t===0?FA(n,i,u,l,a):FA(n,i,u,l)}return n}function FA(t,e,i,n,r){let s;t.hasOwnProperty(i)?(s=t[i]).push(e,n):s=t[i]=[e,n],r!==void 0&&s.push(r)}function pq(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,l=[],a=null,u=null;for(let c=n;c0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function bq(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;c9(i)&&wq(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||H8(i,e),co(n,e);let o=i.initialInputs;for(let l=r;l{h9(t.lView)},consumerOnSignalRead(){this.lView[Rr]=this}});function Fq(t){let e=t[Rr]??Object.create(Vq);return e.lView=t,e}var Vq=ee(b({},B3),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Gu(t.lView);for(;e&&!ER(e[De]);)e=Gu(e);e&&JD(e)},consumerOnSignalRead(){this.lView[Rr]=this}});function ER(t){return t.type!==2}var Bq=100;function CR(t,e=!0,i=0){let n=t[uo],r=n.rendererFactory,s=!1;s||r.begin?.();try{Uq(t,i)}catch(o){throw e&&S9(t,o),o}finally{s||(r.end?.(),n.inlineEffectRunner?.flush())}}function Uq(t,e){let i=oO();try{CA(!0),xb(t,e);let n=0;for(;O5(t);){if(n===Bq)throw new se(103,!1);n++,xb(t,1)}}finally{CA(i)}}function jq(t,e,i,n){let r=e[Xe];if((r&256)===256)return;let s=!1,o=!1;!s&&e[uo].inlineEffectRunner?.flush(),Ny(e);let l=!0,a=null,u=null;s||(ER(t)?(u=kq(e),a=u5(u)):px()===null?(l=!1,u=Fq(e),a=u5(u)):e[Rr]&&(M6(e[Rr]),e[Rr]=null));try{QD(e),lO(t.bindingStartIndex),i!==null&&cR(t,e,i,2,n);let c=(r&3)===3;if(!s)if(c){let f=t.preOrderCheckHooks;f!==null&&S8(e,f,null)}else{let f=t.preOrderHooks;f!==null&&w8(e,f,0,null),wv(e,0)}if(o||Hq(e),IR(e,0),t.contentQueries!==null&&mR(t,e),!s)if(c){let f=t.contentCheckHooks;f!==null&&S8(e,f)}else{let f=t.contentHooks;f!==null&&w8(e,f,1),wv(e,1)}lq(t,e);let d=t.components;d!==null&&SR(e,d,0);let h=t.viewQuery;if(h!==null&&wb(2,h,n),!s)if(c){let f=t.viewCheckHooks;f!==null&&S8(e,f)}else{let f=t.viewHooks;f!==null&&w8(e,f,2),wv(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[T8]){for(let f of e[T8])f();e[T8]=null}s||(e[Xe]&=-73)}catch(c){throw s||h9(e),c}finally{u!==null&&(O6(u,a),l&&Pq(u)),Py()}}function IR(t,e){for(let i=DO(t);i!==null;i=OO(i))for(let n=di;n-1&&(M5(e,n),M8(i,n))}this._attachedToViewContainer=!1}b9(this._lView[De],this._lView)}onDestroy(e){f9(this._lView,e)}markForCheck(){w9(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Xe]&=-129}reattach(){rb(this._lView),this._lView[Xe]|=128}detectChanges(){this._lView[Xe]|=1024,CR(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=tb(this._lView),i=this._lView[zu];i!==null&&!e&&Ky(i,this._lView),YO(this._lView[De],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new se(902,!1);this._appRef=e;let i=tb(this._lView),n=this._lView[zu];n!==null&&!i&&ZO(n,this._lView),rb(this._lView)}},xt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Wq;let t=e;return t})(),$q=xt,Gq=class extends $q{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=yc(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new Xu(r)}};function Wq(){return x9(zt(),$())}function x9(t,e){return t.type&4?new Gq(e,t,gc(t,e)):null}function wR(t,e,i){let n=e.insertBeforeIndex,r=Array.isArray(n)?n[0]:n;return r===null?tR(t,e,i):Mr(i[r])}function xR(t,e,i,n,r){let s=e.insertBeforeIndex;if(Array.isArray(s)){let o=n,l=null;if(e.type&3||(l=o,o=r),o!==null&&e.componentOffset===-1)for(let a=1;a1)for(let i=t.length-2;i>=0;i--){let n=t[i];DR(n)||qq(n,e)&&Kq(n)===null&&Yq(n,e.index)}}function DR(t){return!(t.type&64)}function qq(t,e){return DR(e)||t.index>e.index}function Kq(t){let e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Yq(t,e){let i=t.insertBeforeIndex;Array.isArray(i)?i[0]=e:(iR(wR,xR),t.insertBeforeIndex=e)}function v5(t,e){let i=t.data[e];return i===null||typeof i=="string"?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function Zq(t,e,i){let n=t.data[e];n===null?t.data[e]=i:n.value=i}function Xq(t,e){let i=t.insertBeforeIndex;i===null?(iR(wR,xR),i=t.insertBeforeIndex=[null,e]):(v$(Array.isArray(i),!0,"Expecting array here"),i.push(e))}function Qq(t,e,i){let n=Qy(t,i,64,null,null);return AR(e,n),n}function A9(t,e){let i=e[t.currentCaseLViewIndex];return i===null?i:i<0?~i:i}function Jq(t){return t>>>17}function eK(t){return(t&131070)>>>1}function tK(t,e,i){return t|e<<17|i<<1}function nK(t){return t===-1}function OR(t,e,i){t.index=0;let n=A9(e,i);n!==null?t.removes=e.remove[n]:t.removes=vn}function Ab(t){if(t.index0)return t.lView[e];{t.stack.push(t.index,t.removes);let i=~e,n=t.lView[De].data[i];return OR(t,n,t.lView),Ab(t)}}else return t.stack.length===0?null:(t.removes=t.stack.pop(),t.index=t.stack.pop(),Ab(t))}function iK(){let t={stack:[],index:-1};function e(i,n){for(t.lView=n;t.stack.length;)t.stack.pop();return OR(t,i.value,n),Ab.bind(null,t)}return e}var $_e=new RegExp(`^(\\d+)*(${gW}|${mW})*(.*)`);var rK=()=>{};function sK(t,e,i,n){rK(t,e,i,n)}var oK=()=>{};function lK(t,e,i){oK(t,e,i)}var aK=()=>null;function Qu(t,e){return aK(t,e)}var cc=class{},RR=new Z("",{providedIn:"root",factory:()=>!1});var MR=new Z(""),Db=class{},$8=class{};function uK(t){let e=Error(`No component factory found for ${ui(t)}.`);return e[cK]=t,e}var cK="ngComponent";var Ob=class{resolveComponentFactory(e){throw uK(e)}},xE=class xE{};xE.NULL=new Ob;var pr=xE,ma=class{},Pi=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>dK();let t=e;return t})();function dK(){let t=$(),e=zt(),i=_a(e.index,t);return(ha(i)?i:t)[ht]}var hK=(()=>{let e=class e{};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var VA=new Set;function vr(t){VA.has(t)||(VA.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function kR(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof Nn.requestAnimationFrame=="function"&&Nn.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function BA(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function UA(...t){}var le=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Se(!1),this.onMicrotaskEmpty=new Se(!1),this.onStable=new Se(!1),this.onError=new Se(!1),typeof Zone>"u")throw new se(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.callbackScheduled=!1,mK(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new se(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new se(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,fK,UA,UA);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},fK={};function aE(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function pK(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{kR(()=>{t.callbackScheduled=!1,Rb(t),t.isCheckStableRunning=!0,aE(t),t.isCheckStableRunning=!1})}),Rb(t))}function mK(t){let e=()=>{pK(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,l)=>{if(gK(l))return i.invokeTask(r,s,o,l);try{return jA(t),i.invokeTask(r,s,o,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),HA(t)}},onInvoke:(i,n,r,s,o,l,a)=>{try{return jA(t),i.invoke(r,s,o,l,a)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_K(l)&&e(),HA(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Rb(t),aE(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Rb(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jA(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function HA(t){t._nesting--,aE(t)}var G8=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Se,this.onMicrotaskEmpty=new Se,this.onStable=new Se,this.onError=new Se}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function gK(t){return NR(t,"__ignore_ng_zone__")}function _K(t){return NR(t,"__scheduler_tick__")}function NR(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function vK(t="zone.js",e){return t==="noop"?new G8:t==="zone.js"?new le(e):t}var Di=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Di||{}),PR={destroy(){}};function zA(t,e){let i=e?.injector??Y(ze);if(!e?.runOnServer&&!i2(i))return;i.get(D9).internalCallbacks.push(t)}function uE(t,e){!e&&Sy(uE);let i=e?.injector??Y(ze);return i2(i)?(vr("NgAfterRender"),LR(t,i,!1,e?.phase??Di.MixedReadWrite)):PR}function Es(t,e){!e&&Sy(Es);let i=e?.injector??Y(ze);return i2(i)?(vr("NgAfterNextRender"),LR(t,i,!0,e?.phase??Di.MixedReadWrite)):PR}function bK(t,e){if(t instanceof Function)switch(e){case Di.EarlyRead:return{earlyRead:t};case Di.Write:return{write:t};case Di.MixedReadWrite:return{mixedReadWrite:t};case Di.Read:return{read:t}}return t}function LR(t,e,i,n){let r=bK(t,n),s=e.get(D9),o=s.handler??=new kb,l=[],a=[],u=()=>{for(let f of a)o.unregister(f);c()},c=e.get(_9).onDestroy(u),d=0,h=(f,p)=>{if(!p)return;let v=i?(...C)=>(d--,d<1&&u(),p(...C)):p,E=Ty(e,()=>new Mb(f,l,v));o.register(E),a.push(E),d++};return h(Di.EarlyRead,r.earlyRead),h(Di.Write,r.write),h(Di.MixedReadWrite,r.mixedReadWrite),h(Di.Read,r.read),{destroy:u}}var Mb=class{constructor(e,i,n){this.phase=e,this.pipelinedArgs=i,this.callbackFn=n,this.zone=Y(le),this.errorHandler=Y(Zi,{optional:!0}),Y(cc,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},kb=class{constructor(){this.executingCallbacks=!1,this.buckets={[Di.EarlyRead]:new Set,[Di.Write]:new Set,[Di.MixedReadWrite]:new Set,[Di.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},D9=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function FR(t){return t.ngModule!==void 0}function Bu(t){return!!ao(t)}function _8(t){return!!fr(t)}function $A(t){return!!hr(t)}function b5(t){return!!Cn(t)}function yK(t){return Cn(t)?"component":hr(t)?"directive":fr(t)?"pipe":"type"}function EK(t,e){if(r9(t)&&(t=Yt(t),!t))throw new Error(`Expected forwardRef function, imported from "${ro(e)}", to return a standalone entity or NgModule but got "${ro(t)||t}".`);if(ao(t)==null){let i=Cn(t)||hr(t)||fr(t);if(i!=null){if(!i.standalone)throw new Error(`The "${ro(t)}" ${yK(t)}, imported from "${ro(e)}", is not standalone. Did you forget to add the standalone: true flag?`)}else throw FR(t)?new Error(`A module with providers was imported from "${ro(e)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${ro(t)}" type, imported from "${ro(e)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var Nb=!0,Pb=class{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let e of this.ngModulesWithSomeUnresolvedDecls){let i=ao(e);if(i?.declarations)for(let n of ua(i.declarations))b5(n)&&this.ownerNgModule.set(n,e)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(e,i){this.resolveNgModulesDecls();let n=Cn(e);if(n===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${e}`);if(n.standalone){let r=this.getStandaloneComponentScope(e,i);return r.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...r.compilation.directives,...r.compilation.pipes,...r.compilation.ngModules]}}else{if(!this.ownerNgModule.has(e))return{dependencies:[]};let r=this.getNgModuleScope(this.ownerNgModule.get(e));return r.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...r.compilation.directives,...r.compilation.pipes]}}}registerNgModule(e,i){if(!Bu(e))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${e}`);this.ngModulesWithSomeUnresolvedDecls.add(e)}clearScopeCacheFor(e){this.ngModulesScopeCache.delete(e),this.standaloneComponentsScopeCache.delete(e)}getNgModuleScope(e){if(this.ngModulesScopeCache.has(e))return this.ngModulesScopeCache.get(e);let i=this.computeNgModuleScope(e);return this.ngModulesScopeCache.set(e,i),i}computeNgModuleScope(e){let i=ao(e,!0),n={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let r of ua(i.imports))if(Bu(r)){let s=this.getNgModuleScope(r);la(s.exported.directives,n.compilation.directives),la(s.exported.pipes,n.compilation.pipes)}else if(N8(r))if($A(r)||b5(r))n.compilation.directives.add(r);else if(_8(r))n.compilation.pipes.add(r);else throw new se(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");else{n.compilation.isPoisoned=!0;break}if(!n.compilation.isPoisoned)for(let r of ua(i.declarations)){if(Bu(r)||N8(r)){n.compilation.isPoisoned=!0;break}_8(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}for(let r of ua(i.exports))if(Bu(r)){let s=this.getNgModuleScope(r);la(s.exported.directives,n.exported.directives),la(s.exported.pipes,n.exported.pipes),la(s.exported.directives,n.compilation.directives),la(s.exported.pipes,n.compilation.pipes)}else _8(r)?n.exported.pipes.add(r):n.exported.directives.add(r);return n}getStandaloneComponentScope(e,i){if(this.standaloneComponentsScopeCache.has(e))return this.standaloneComponentsScopeCache.get(e);let n=this.computeStandaloneComponentScope(e,i);return this.standaloneComponentsScopeCache.set(e,n),n}computeStandaloneComponentScope(e,i){let n={compilation:{directives:new Set([e]),pipes:new Set,ngModules:new Set}};for(let r of z5(i??[])){let s=Yt(r);try{EK(s,e)}catch{return n.compilation.isPoisoned=!0,n}if(Bu(s)){n.compilation.ngModules.add(s);let o=this.getNgModuleScope(s);if(o.exported.isPoisoned)return n.compilation.isPoisoned=!0,n;la(o.exported.directives,n.compilation.directives),la(o.exported.pipes,n.compilation.pipes)}else if(_8(s))n.compilation.pipes.add(s);else if($A(s)||b5(s))n.compilation.directives.add(s);else return n.compilation.isPoisoned=!0,n}return n}isOrphanComponent(e){let i=Cn(e);return!i||i.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(e))}};function la(t,e){for(let i of t)e.add(i)}var k5=new Pb;function W8(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(e!==null)for(let o=0;o0&&oR(t,i,s.join(" "))}}function AK(t,e,i){let n=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=OK;let t=e;return t})();function OK(){let t=zt();return BR(t,$())}var RK=Bt,VR=class extends RK{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return gc(this._hostTNode,this._hostLView)}get injector(){return new ju(this._hostTNode,this._hostLView)}get parentInjector(){let e=Fy(this._hostTNode,this._hostLView);if(gO(e)){let i=U8(e,this._hostLView),n=B8(e),r=i[De].data[n+8];return new ju(r,i)}else return new ju(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=WA(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-di}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=Qu(this._lContainer,e.ssrId),l=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(l,r,Zu(this._hostTNode,o)),l}createComponent(e,i,n,r,s){let o=e&&!p5(e),l;if(o)l=i;else{let p=i||{};l=p.index,n=p.injector,r=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}let a=o?e:new N5(Cn(e)),u=n||this.parentInjector;if(!s&&a.ngModule==null){let v=(o?u:this.parentInjector).get(Oi,null);v&&(s=v)}let c=Cn(a.componentType??{}),d=Qu(this._lContainer,c?.id??null),h=d?.firstChild??null,f=a.create(u,r,h,s);return this.insertImpl(f.hostView,l,Zu(this._hostTNode,d)),f}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(IG(r)){let l=this.indexOf(e);if(l!==-1)this.detach(l);else{let a=r[hi],u=new VR(a,a[Mi],a[hi]);u.detach(u.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return Ec(o,r,s,n),e.attachToViewContainerRef(),MD(Rv(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=WA(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=M5(this._lContainer,i);n&&(M8(Rv(this._lContainer),i),b9(n[De],n))}detach(e){let i=this._adjustIndex(e,-1),n=M5(this._lContainer,i);return n&&M8(Rv(this._lContainer),i)!=null?new Xu(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function WA(t){return t[F8]}function Rv(t){return t[F8]||(t[F8]=[])}function BR(t,e){let i,n=e[t.index];return ul(n)?i=n:(i=pR(n,e,null,t),e[t.index]=i,T9(e,i)),kK(i,e,t,n),new VR(i,t,e)}function MK(t,e){let i=t[ht],n=i.createComment(""),r=gr(e,t),s=y9(i,r);return Yu(i,s,n,nq(i,r),!1),n}var kK=PK,NK=()=>!1;function UR(t,e,i){return NK(t,e,i)}function PK(t,e,i,n){if(t[$u])return;let r;i.type&8?r=Mr(n):r=MK(e,i),t[$u]=r}var Fb=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Vb=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[l/2]);else{let u=s[l+1],c=e[-a];for(let d=di;de.trim())}function WR(t,e,i){t.queries===null&&(t.queries=new Bb),t.queries.track(new Ub(e,i))}function jK(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function cE(t,e){return t.queries.getByIndex(e)}function HK(t,e){let i=t[De],n=cE(i,e);return n.crossesNgTemplate?jb(i,t,e,[]):jR(i,t,n,e)}function O9(t){return typeof t=="function"&&t[Ar]!==void 0}function ba(t,e){vr("NgSignals");let i=wx(t),n=i[Ar];return e?.equal&&(n.equal=e.equal),i.set=r=>P6(n,r),i.update=r=>xx(n,r),i.asReadonly=zK.bind(i),i}function zK(){let t=this[Ar];if(t.readonlyFn===void 0){let e=()=>this();e[Ar]=t,t.readonlyFn=e}return t.readonlyFn}function qR(t){return O9(t)&&typeof t.set=="function"}function KR(t,e){let i=t[Ar];i._lView=$(),i._queryIndex=e,i._queryList=HR(i._lView,e),i._queryList.onDirty(()=>i._dirtyCounter.update(n=>n+1))}function $K(t){let e=[],i=new Map;function n(r){let s=i.get(r);if(!s){let o=t(r);i.set(r,s=o.then(KK))}return s}return P5.forEach((r,s)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(u=>{r.template=u}));let l=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=l,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let u=r.styles.length,c=r.styleUrls;r.styleUrls.forEach((d,h)=>{l.push(""),o.push(n(d).then(f=>{l[u+h]=f,c.splice(c.indexOf(d),1),c.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(u=>{l.push(u),r.styleUrl=void 0}));let a=Promise.all(o).then(()=>YK(s));e.push(a)}),WK(),Promise.all(e).then(()=>{})}var P5=new Map,YR=new Set;function GK(t,e){ZR(e)&&(P5.set(t,e),YR.add(t))}function ZR(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length||t.styleUrl)}function WK(){let t=P5;return P5=new Map,t}function qK(){return P5.size===0}function KK(t){return typeof t=="string"?t:t.text()}function YK(t){YR.delete(t)}var qA=new Map,ZK=!0;function XK(t,e,i){if(e&&e!==i&&ZK)throw new Error(`Duplicate module registered for ${t} - ${ui(e)} vs ${ui(e.name)}`)}function QK(t,e){let i=qA.get(e)||null;XK(e,i,t),qA.set(e,t)}function JK(t,e,i){let n=$(),r=tn(),s=gr(r,n);if(r.type===2&&e.toLowerCase()==="iframe"){let o=s;o.src="",o.srcdoc=vc(""),Yy(n[ht],o);let l=!1;throw new se(-910,l)}return t}function XR(t){return Object.getPrototypeOf(t.prototype).constructor}function At(t){let e=XR(t.type),i=!0,n=[t];for(;e;){let r;if(gs(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new se(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let o=t;o.inputs=v8(t.inputs),o.inputTransforms=v8(t.inputTransforms),o.declaredInputs=v8(t.declaredInputs),o.outputs=v8(t.outputs);let l=r.hostBindings;l&&rY(t,l);let a=r.viewQuery,u=r.contentQueries;if(a&&nY(t,a),u&&iY(t,u),eY(t,r),g$(t.outputs,r.outputs),gs(r)&&r.data.animation){let c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=x5(r.hostAttrs,i=x5(i,r.hostAttrs))}}function v8(t){return t===lo?{}:t===vn?[]:t}function nY(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function iY(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function rY(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}var sY=["providersResolver"],oY=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function lY(t){let e=XR(t.type),i;gs(t)?i=e.\u0275cmp:i=e.\u0275dir;let n=t;for(let r of sY)n[r]=i[r];if(gs(i))for(let r of oY)n[r]=i[r]}function dE(t){let e=i=>{let n=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:Yt(r),inputs:lo,outputs:lo}:{directive:Yt(r.directive),inputs:KA(r.inputs),outputs:KA(r.outputs)});i.hostDirectives===null?(i.findHostDirectiveDefs=QR,i.hostDirectives=n):i.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function QR(t,e,i){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let r=hr(n.directive);aY(r.declaredInputs,n.inputs),QR(r,e,i),i.set(r,n),e.push(r)}}function KA(t){if(t===void 0||t.length===0)return lo;let e={};for(let i=0;ii()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},zb=class extends Hb{constructor(e){super(),this.moduleType=e}create(e){return new Y8(this.moduleType,e,[])}};function uY(t,e,i){return new Y8(t,e,i)}var $b=class extends ga{constructor(e){super(),this.componentFactoryResolver=new q8(this),this.instance=null;let i=new A5([...e.providers,{provide:ga,useValue:this},{provide:pr,useValue:this.componentFactoryResolver}],e.parent||a9(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function JR(t,e,i=null){return new $b({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var cY=(()=>{let e=class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,r,s,o){if(!this.cachedInjectors.has(n)){let l=s.length>0?JR(s,r,o):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=q({token:e,providedIn:"environment",factory:()=>new e});let t=e;return t})();function eM(t){return hE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function dY(t,e){if(Array.isArray(t))for(let i=0;i{for(let e of this.callbacks)e()}}};function oM(t,e){let i=kv.get(t);if(!i){i=new V5,kv.set(t,i);for(let n of XA)t.addEventListener(n,i.listener,Z8)}return i.callbacks.add(e),()=>{let{callbacks:n,listener:r}=i;if(n.delete(e),n.size===0){kv.delete(t);for(let s of XA)t.removeEventListener(s,r,Z8)}}}function lM(t,e){let i=Mv.get(t);if(!i){i=new V5,Mv.set(t,i);for(let n of QA)t.addEventListener(n,i.listener,Z8)}return i.callbacks.add(e),()=>{let{callbacks:n,listener:r}=i;if(n.delete(e),n.size===0){for(let s of QA)t.removeEventListener(s,r,Z8);Mv.delete(t)}}}function aM(t,e,i){let n=i.get(le),r=Z3.get(t);return X3=X3||n.runOutsideAngular(()=>new IntersectionObserver(s=>{for(let o of s)o.isIntersecting&&Z3.has(o.target)&&n.run(Z3.get(o.target).listener)})),r||(r=new V5,n.runOutsideAngular(()=>X3.observe(t)),Z3.set(t,r),Nv++),r.callbacks.add(e),()=>{Z3.has(t)&&(r.callbacks.delete(e),r.callbacks.size===0&&(X3?.unobserve(t),Z3.delete(t),Nv--),Nv===0&&(X3?.disconnect(),X3=null))}}function EY(t,e,i){return i==null?t:i>=0?eO(i,t):t[e.index][di]??null}function CY(t,e){return W5(Pt+e,t)}function Cc(t,e,i,n,r,s,o){let l=t[Qn];function a(){if(nb(t))return;let u=s2(t,e),c=u[M9];if(c!==F5.Initial&&c!==xn.Placeholder)return;let d=EY(t,e,n);if(!d){zA(a,{injector:l});return}if(nb(d))return;let h=CY(d,i),f=r(h,()=>{t!==d&&Dy(d,f),s()},l);t!==d&&f9(d,f),k9(o,u,f)}zA(a,{injector:l})}function uM(t,e){let n=e[Qn].get(SY),r=()=>n.remove(t);return n.add(t),r}var IY=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,TY=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,SY=(()=>{let e=class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=Y(le),this.requestIdleCallbackFn=IY().bind(globalThis),this.cancelIdleCallbackFn=TY().bind(globalThis)}add(n){(this.executingCallbacks?this.deferred:this.current).add(n),this.idleId===null&&this.scheduleIdleCallback()}remove(n){let{current:r,deferred:s}=this;r.delete(n),s.delete(n),r.size===0&&s.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let n=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let r of this.current)r();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let r of this.deferred)this.current.add(r);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(n))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function cM(t){return(e,i)=>dM(t,e,i)}function dM(t,e,i){let r=i[Qn].get(wY),s=()=>r.remove(e);return r.add(t,e),s}var wY=(()=>{let e=class e{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(n,r){let s=this.executingCallbacks?this.deferred:this.current;this.addToQueue(s,Date.now()+n,r),this.scheduleTimer()}remove(n){let{current:r,deferred:s}=this;this.removeFromQueue(r,n)===-1&&this.removeFromQueue(s,n),r.length===0&&s.length===0&&this.clearTimeout()}addToQueue(n,r,s){let o=n.length;for(let l=0;lr){o=l;break}kD(n,o,r,s)}removeFromQueue(n,r){let s=-1;for(let o=0;o-1&&gA(n,s,2),s}scheduleTimer(){let n=()=>{this.clearTimeout(),this.executingCallbacks=!0;let s=[...this.current],o=Date.now();for(let a=0;a=0&&gA(this.current,0,l+1),this.executingCallbacks=!1,this.deferred.length>0){for(let a=0;a0){let s=Date.now(),o=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-o>16){this.clearTimeout();let l=Math.max(o-s,16);this.invokeTimerAt=o,this.timeoutId=setTimeout(n,l)}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var xY=new Z("");function fE(t){return t.get(xY,null,{optional:!0})?.behavior===iM.Manual?!1:i2(t)}var qb=null;function AY(t,e,i,n){let r=t.consts;i!=null&&(e.placeholderBlockConfig=kr(r,i)),n!=null&&(e.loadingBlockConfig=kr(r,n)),qb===null&&(qb=GY)}function DY(t,e,i,n,r,s,o,l,a){let u=$(),c=pt(),d=t+Pt,h=L5(u,c,t,null,0,0);if(c.firstCreatePass){vr("NgDefer");let E={primaryTmplIndex:e,loadingTmplIndex:n??null,placeholderTmplIndex:r??null,errorTmplIndex:s??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:i??null,loadingState:kn.NOT_STARTED,loadingPromise:null,providers:null};a?.(c,E,l,o),vY(c,d,E)}let f=u[d];UR(f,h,u);let p=[null,F5.Initial,null,null,null,null];_Y(u,d,p);let v=()=>rM(p);k9(0,p,()=>Dy(u,v)),f9(u,v)}function OY(t){let e=$(),i=bs();if(An(e,i,t)){let n=dt(null);try{let r=!!t,s=tn(),l=s2(e,s)[M9];r===!1&&l===F5.Initial?Ic(e,s):r===!0&&(l===F5.Initial||l===xn.Placeholder)&&Tc(e,s)}finally{dt(n)}}}function RY(t){let e=$(),i=bs();if(An(e,i,t)){let n=dt(null);try{let r=!!t,s=e[De],o=tn(),l=Lr(s,o);r===!0&&l.loadingState===kn.NOT_STARTED&&nh(l,e,o)}finally{dt(n)}}}function MY(){hM(uM)}function kY(){fM(uM)}function NY(){let t=$(),e=zt(),i=t[De],n=t[Qn],r=Lr(i,e);(!fE(n)||r.loadingTmplIndex===null)&&Ic(t,e),Tc(t,e)}function PY(){let t=$(),e=zt(),i=t[De],n=Lr(i,e);n.loadingState===kn.NOT_STARTED&&pE(n,t,e)}function LY(t){hM(cM(t))}function FY(t){fM(cM(t))}function VY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,lM,()=>Tc(i,n),0)}function BY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,lM,()=>nh(s,i,n),1)}function UY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,oM,()=>Tc(i,n),0)}function jY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,oM,()=>nh(s,i,n),1)}function HY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,aM,()=>Tc(i,n),0)}function zY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,aM,()=>nh(s,i,n),1)}function hM(t){let e=$(),i=zt();if(Ic(e,i),i2(e[Qn])){let n=t(()=>Tc(e,i),e),r=s2(e,i);k9(0,r,n)}}function fM(t){let e=$();if(i2(e[Qn])){let i=zt(),n=e[De],r=Lr(n,i);if(r.loadingState===kn.NOT_STARTED){let s=s2(e,i),l=t(()=>nh(r,e,i),e);k9(1,s,l)}}}function ca(t,e,i,n=!1){let r=i[hi],s=r[De];if(nb(r))return;let o=s2(r,e),l=o[M9];if(eD(l,t)&&eD(o[oc]??-1,t)){let a=r[Qn],u=Lr(s,e),d=!n&&i2(a)&&(sM(u)!==null||Wb(u,xn.Loading)!==null||Wb(u,xn.Placeholder))?qb:pM;try{d(t,o,i,e,r)}catch(h){S9(r,h)}}}function Pv(t,e,i){return t.get(cY).getOrCreateInjector(e,t,i,"")}function $Y(t,e,i){if(t instanceof sc){let r=t.injector,s=t.parentInjector,o=Pv(s,e,i);return new sc(r,o)}let n=t.get(Oi);if(n!==t){let r=Pv(n,e,i);return new sc(t,r)}return Pv(t,e,i)}function pM(t,e,i,n,r){let s=bY(t,r,n);if(s!==null){e[M9]=t;let o=r[De],l=s+Pt,a=q5(o,l),u=0;lE(i,u);let c;if(t===xn.Complete){let f=Lr(o,n),p=f.providers;p&&p.length>0&&(c=$Y(r[Qn],f,p))}let d=Qu(i,a.tView.ssrId),h=yc(r,a,null,{dehydratedView:d,injector:c});Ec(i,h,u,Zu(a,d)),w9(h,2)}}function GY(t,e,i,n,r){let s=Date.now(),o=r[De],l=Lr(o,n);if(e[m5]===null||e[m5]<=s){e[m5]=null;let a=sM(l),u=e[b8]!==null;if(t===xn.Loading&&a!==null&&!u){e[oc]=t;let c=JA(a,e,n,i,r);e[b8]=c}else{t>xn.Loading&&u&&(e[b8](),e[b8]=null,e[oc]=null),pM(t,e,i,n,r);let c=Wb(l,t);c!==null&&(e[m5]=s+c,JA(c,e,n,i,r))}}else e[oc]=t}function JA(t,e,i,n,r){return dM(t,()=>{let o=e[oc];e[m5]=null,e[oc]=null,o!==null&&ca(o,i,n)},r)}function eD(t,e){return t{let d=!1,h=[],f=[];for(let p of c)if(p.status==="fulfilled"){let v=p.value,E=Cn(v)||hr(v);if(E)h.push(E);else{let C=fr(v);C&&f.push(C)}}else{d=!0;break}if(t.loadingPromise=null,a.remove(u),d){if(t.loadingState=kn.FAILED,t.errorTmplIndex===null){let p="",v=new se(750,!1);S9(e,v)}}else{t.loadingState=kn.COMPLETE;let p=o.tView;if(h.length>0){p.directiveRegistry=ZA(p.directiveRegistry,h);let v=h.map(C=>C.type),E=Cy(!1,...v);t.providers=E}f.length>0&&(p.pipeRegistry=ZA(p.pipeRegistry,f))}}),t.loadingPromise):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=kn.COMPLETE,a.remove(u)}),t.loadingPromise)}function Ic(t,e){let i=t[e.index];ca(xn.Placeholder,e,i)}function tD(t,e,i){t.loadingPromise.then(()=>{t.loadingState===kn.COMPLETE?ca(xn.Complete,e,i):t.loadingState===kn.FAILED&&ca(xn.Error,e,i)})}function Tc(t,e){let i=t[De],n=t[e.index],r=t[Qn];if(!fE(r))return;let s=s2(t,e),o=Lr(i,e);switch(rM(s),o.loadingState){case kn.NOT_STARTED:ca(xn.Loading,e,n),pE(o,t,e),o.loadingState===kn.IN_PROGRESS&&tD(o,e,n);break;case kn.IN_PROGRESS:ca(xn.Loading,e,n),tD(o,e,n);break;case kn.COMPLETE:ca(xn.Complete,e,n);break;case kn.FAILED:ca(xn.Error,e,n);break;default:}}function Tt(t,e,i,n){let r=$(),s=bs();if(An(r,s,e)){let o=pt(),l=tn();go(l,r,t,e,i,n)}return Tt}function Sc(t,e){let i=!1,n=cl();for(let s=1;s>17&32767}function WY(t){return(t&2)==2}function qY(t,e){return t&131071|e<<17}function Kb(t){return t|2}function dc(t){return(t&131068)>>2}function Lv(t,e){return t&-131069|e<<2}function KY(t){return(t&1)===1}function Yb(t){return t|1}function YY(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,l=e2(o),a=dc(o);t[n]=i;let u=!1,c;if(Array.isArray(i)){let d=i;c=d[1],(c===null||$5(d,c)>0)&&(u=!0)}else c=i;if(r)if(a!==0){let h=e2(t[l+1]);t[n+1]=y8(h,l),h!==0&&(t[h+1]=Lv(t[h+1],n)),t[l+1]=qY(t[l+1],n)}else t[n+1]=y8(l,0),l!==0&&(t[l+1]=Lv(t[l+1],n)),l=n;else t[n+1]=y8(a,0),l===0?l=n:t[a+1]=Lv(t[a+1],n),a=n;u&&(t[n+1]=Kb(t[n+1])),nD(t,c,n,!0),nD(t,c,n,!1),ZY(e,c,t,n,s),o=y8(l,a),s?e.classBindings=o:e.styleBindings=o}function ZY(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&$5(s,e)>=0&&(i[n+1]=Yb(i[n+1]))}function nD(t,e,i,n){let r=t[i+1],s=e===null,o=n?e2(r):dc(r),l=!1;for(;o!==0&&(l===!1||s);){let a=t[o],u=t[o+1];XY(a,e)&&(l=!0,t[o+1]=n?Yb(u):Kb(u)),o=n?e2(u):dc(u)}l&&(t[i+1]=n?Kb(r):Yb(r))}function XY(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?$5(t,e)>=0:!1}var zn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TM(t){return t.substring(zn.key,zn.keyEnd)}function QY(t){return t.substring(zn.value,zn.valueEnd)}function JY(t){return xM(t),SM(t,hc(t,0,zn.textEnd))}function SM(t,e){let i=zn.textEnd;return i===e?-1:(e=zn.keyEnd=tZ(t,zn.key=e,i),hc(t,e,i))}function eZ(t){return xM(t),wM(t,hc(t,0,zn.textEnd))}function wM(t,e){let i=zn.textEnd,n=zn.key=hc(t,e,i);return i===n?-1:(n=zn.keyEnd=nZ(t,n,i),n=iD(t,n,i,58),n=zn.value=hc(t,n,i),n=zn.valueEnd=iZ(t,n,i),iD(t,n,i,59))}function xM(t){zn.key=0,zn.keyEnd=0,zn.value=0,zn.valueEnd=0,zn.textEnd=t.length}function hc(t,e,i){for(;e32;)e++;return e}function nZ(t,e,i){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function iD(t,e,i,n){return e=hc(t,e,i),e32&&(l=o),s=r,r=n,n=a&-33}return l}function rD(t,e,i,n){let r=-1,s=i;for(;s=0;i=wM(e,i))OM(t,TM(e),QY(e))}function Vr(t){Is(cZ,vo,t,!0)}function vo(t,e){for(let i=JY(e);i>=0;i=SM(e,i))mr(t,TM(e),!0)}function Cs(t,e,i,n){let r=$(),s=pt(),o=dl(2);if(s.firstUpdatePass&&DM(s,t,o,n),e!==tt&&An(r,o,e)){let l=s.data[fi()];RM(s,l,r,r[ht],t,r[o+1]=hZ(e,i),n,o)}}function Is(t,e,i,n){let r=pt(),s=dl(2);r.firstUpdatePass&&DM(r,null,s,n);let o=$();if(i!==tt&&An(o,s,i)){let l=r.data[fi()];if(MM(l,n)&&!AM(r,s)){let a=n?l.classesWithoutHost:l.stylesWithoutHost;a!==null&&(i=Wv(a,i||"")),Zb(r,l,o,i,n)}else dZ(r,l,o,o[ht],o[s+1],o[s+1]=uZ(t,e,i),n,s)}}function AM(t,e){return e>=t.expandoStartIndex}function DM(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[fi()],o=AM(t,i);MM(s,n)&&e===null&&!o&&(e=!1),e=sZ(r,s,e,n),YY(r,s,e,i,o,n)}}function sZ(t,e,i,n){let r=My(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Fv(null,t,e,i,n),i=B5(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Fv(r,t,e,i,n),s===null){let a=oZ(t,e,n);a!==void 0&&Array.isArray(a)&&(a=Fv(null,t,e,a[1],n),a=B5(a,e.attrs,n),lZ(t,e,n,a))}else s=aZ(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function oZ(t,e,i){let n=i?e.classBindings:e.styleBindings;if(dc(n)!==0)return t[e2(n)]}function lZ(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[e2(r)]=n}function aZ(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let a=t[r],u=Array.isArray(a),c=u?a[1]:a,d=c===null,h=i[r+1];h===tt&&(h=d?vn:void 0);let f=d?Iv(h,n):c===n?h:void 0;if(u&&!X8(f)&&(f=Iv(a,n)),X8(f)&&(l=f,o))return l;let p=t[r+1];r=o?e2(p):dc(p)}if(e!==null){let a=s?e.residualClasses:e.residualStyles;a!=null&&(l=Iv(a,n))}return l}function X8(t){return t!==void 0}function hZ(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ui(Ni(t)))),t}function MM(t,e){return(t.flags&(e?8:16))!==0}function fZ(t,e,i){let n=$(),r=wc(n,t,e,i);Is(mr,vo,r,!0)}function pZ(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);Is(mr,vo,o,!0)}function mZ(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);Is(mr,vo,a,!0)}function gZ(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);Is(mr,vo,c,!0)}function _Z(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);Is(mr,vo,h,!0)}function vZ(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);Is(mr,vo,p,!0)}function bZ(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);Is(mr,vo,E,!0)}function yZ(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);Is(mr,vo,P,!0)}function EZ(t){let e=$(),i=Sc(e,t);Is(mr,vo,i,!0)}function CZ(){return $()[Ri][ci]}var Xb=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Vv(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function IZ(t,e,i){let n,r,s=0,o=t.length-1,l=void 0;if(Array.isArray(e)){let a=e.length-1;for(;s<=o&&s<=a;){let u=t.at(s),c=e[s],d=Vv(s,u,s,c,i);if(d!==0){d<0&&t.updateValue(s,c),s++;continue}let h=t.at(o),f=e[a],p=Vv(o,h,a,f,i);if(p!==0){p<0&&t.updateValue(o,f),o--,a--;continue}let v=i(s,u),E=i(o,h),C=i(s,c);if(Object.is(C,E)){let P=i(a,f);Object.is(P,v)?(t.swap(s,o),t.updateValue(o,f),a--,o--):t.move(o,s),t.updateValue(s,c),s++;continue}if(n??=new Q8,r??=lD(t,s,o,i),Qb(t,n,s,C))t.updateValue(s,c),s++,o++;else if(r.has(C))n.set(v,t.detach(s)),o--;else{let P=t.create(s,e[s]);t.attach(s,P),s++,o++}}for(;s<=a;)oD(t,n,i,s,e[s]),s++}else if(e!=null){let a=e[Symbol.iterator](),u=a.next();for(;!u.done&&s<=o;){let c=t.at(s),d=u.value,h=Vv(s,c,s,d,i);if(h!==0)h<0&&t.updateValue(s,d),s++,u=a.next();else{n??=new Q8,r??=lD(t,s,o,i);let f=i(s,d);if(Qb(t,n,s,f))t.updateValue(s,d),s++,o++,u=a.next();else if(!r.has(f))t.attach(s,t.create(s,d)),s++,o++,u=a.next();else{let p=i(s,c);n.set(p,t.detach(s)),o--}}}for(;!u.done;)oD(t,n,i,t.length,u.value),u=a.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(a=>{t.destroy(a)})}function Qb(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function oD(t,e,i,n,r){if(Qb(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function lD(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Q8=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function Pn(t,e){vr("NgControlFlow");let i=$(),n=bs(),r=i[n]!==tt?i[n]:-1,s=r!==-1?J8(i,Pt+r):void 0,o=0;if(An(i,n,t)){let l=dt(null);try{if(s!==void 0&&lE(s,o),t!==-1){let a=Pt+t,u=J8(i,a),c=ny(i[De],a),d=Qu(u,c.tView.ssrId),h=yc(i,c,e,{dehydratedView:d});Ec(u,h,o,Zu(c,d))}}finally{dt(l)}}else if(s!==void 0){let l=bR(s,o);l!==void 0&&(l[ci]=e)}}var Jb=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-di}};function TZ(t){return t}function P9(t,e){return e}var ey=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function o2(t,e,i,n,r,s,o,l,a,u,c,d,h){vr("NgControlFlow");let f=$(),p=pt(),v=a!==void 0,E=$(),C=l?o.bind(E[Ri][ci]):o,P=new ey(v,C);E[Pt+t]=P,L5(f,p,t+1,e,i,n,r,kr(p.consts,s)),v&&L5(f,p,t+2,a,u,c,d,kr(p.consts,h))}var ty=class extends Xb{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-di}at(e){return this.getLView(e)[ci].$implicit}attach(e,i){let n=i[ac];this.needsIndexUpdate||=e!==this.length,Ec(this.lContainer,i,e,Zu(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,SZ(this.lContainer,e)}create(e,i){let n=Qu(this.lContainer,this.templateTNode.tView.ssrId),r=yc(this.hostLView,this.templateTNode,new Jb(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){b9(e[De],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ci].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Y5(!0),qy(n,r,VG()));function DZ(t,e,i,n,r){let s=e.consts,o=kr(s,n),l=r2(e,t,8,"ng-container",o);o!==null&&W8(l,o,!0);let a=kr(s,r);return iE(e,i,l,a),e.queries!==null&&e.queries.elementStart(e,l),l}function ya(t,e,i){let n=$(),r=pt(),s=t+Pt,o=r.firstCreatePass?DZ(s,r,n,e,i):r.data[s];_s(o,!0);let l=OZ(r,n,o,t);return n[s]=l,K5()&&E9(r,n,l,o),co(l,n),d9(o)&&(eE(r,n,o),Jy(r,o,n)),i!=null&&tE(n,o),ya}function Ea(){let t=zt(),e=pt();return Oy()?Ry():(t=t.parent,_s(t,!1)),e.firstCreatePass&&(g9(e,t),xy(t)&&e.queries.elementEnd(t)),Ea}function Dn(t,e,i){return ya(t,e,i),Ea(),Dn}var OZ=(t,e,i,n)=>(Y5(!0),KO(e[ht],""));function mt(){return $()}function Nc(t,e,i){let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn();Qi(s,o,n,t,e,n[ht],i,!0)}return Nc}function L9(t,e,i){let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn(),l=My(s.data),a=vR(l,o,n);Qi(s,o,n,t,e,a,i,!0)}return L9}var Vu=void 0;function RZ(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var MZ=["en",[["a","p"],["AM","PM"],Vu],[["AM","PM"],Vu,Vu],[["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"]],Vu,[["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"]],Vu,[["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}",Vu,"{1} 'at' {0}",Vu],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",RZ],Bv={};function kM(t){let e=kZ(t),i=aD(e);if(i)return i;let n=e.split("-")[0];if(i=aD(n),i)return i;if(n==="en")return MZ;throw new se(701,!1)}function NM(t){return kM(t)[mE.PluralCase]}function aD(t){return t in Bv||(Bv[t]=Nn.ng&&Nn.ng.common&&Nn.ng.common.locales&&Nn.ng.common.locales[t]),Bv[t]}var mE=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(mE||{});function kZ(t){return t.toLowerCase().replace(/_/g,"-")}var NZ=["zero","one","two","few","many"];function PZ(t,e){let i=NM(e)(parseInt(t,10)),n=NZ[i];return n!==void 0?n:"other"}var e9="en-US";var PM={marker:"element"},LM={marker:"ICU"},sl=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(sl||{}),FM=e9;function LZ(t){typeof t=="string"&&(FM=t.toLowerCase().replace(/_/g,"-"))}function FZ(){return FM}var U5=0,y5=0;function VZ(t){t&&(U5=U5|1<0){let n=t.data[i],r=Array.isArray(n)?n:n.update,s=cl()-y5-1;BM(t,e,r,s,U5)}U5=0,y5=0}function UZ(t,e,i){let n=t[ht];switch(i){case Node.COMMENT_NODE:return KO(n,e);case Node.TEXT_NODE:return WO(n,e);case Node.ELEMENT_NODE:return qy(n,e,null)}}var D8=(t,e,i,n)=>(Y5(!0),UZ(t,i,n));function jZ(t,e,i,n){let r=t[ht];for(let s=0;s>>sl.SHIFT,d=t[c],h=!1;d===null&&(d=t[c]=D8(t,c,l,a?Node.COMMENT_NODE:Node.TEXT_NODE),h=K5()),u&&i!==null&&h&&Yu(r,i,d,n,!1)}}function VM(t,e,i,n){let r=i[ht],s=null,o;for(let l=0;l>>1,f=e[++l],p=e[++l];rE(r,W5(h,i),null,null,f,p,null);break;default:}else switch(a){case LM:let u=e[++l],c=e[++l];if(i[c]===null){let f=i[c]=D8(i,c,u,Node.COMMENT_NODE);co(f,i)}break;case PM:let d=e[++l],h=e[++l];if(i[h]===null){let f=i[h]=D8(i,h,d,Node.ELEMENT_NODE);co(f,i)}break;default:}}}function BM(t,e,i,n,r){for(let s=0;s>>2;switch(c&3){case 1:let h=i[++u],f=i[++u],p=t.data[d];typeof p=="string"?rE(e[ht],e[d],null,p,h,a,f):Qi(t,p,e,h,a,e[ht],f,!1);break;case 0:let v=e[d];v!==null&&qO(e[ht],v,a);break;case 2:HZ(t,v5(t,d),e,a);break;case 3:uD(t,v5(t,d),n,e);break}}}}else{let a=i[s+1];if(a>0&&(a&3)===3){let u=a>>>2,c=v5(t,u);e[c.currentCaseLViewIndex]<0&&uD(t,c,n,e)}}s+=l}}function uD(t,e,i,n){let r=n[e.currentCaseLViewIndex];if(r!==null){let s=U5;r<0&&(r=n[e.currentCaseLViewIndex]=~r,s=-1),BM(t,n,e.update[r],i,s)}}function HZ(t,e,i,n){let r=zZ(e,n);if(A9(e,i)!==r&&(UM(t,e,i),i[e.currentCaseLViewIndex]=r===null?null:~r,r!==null)){let o=i[e.anchorIdx];o&&VM(t,e.create[r],i,o),lK(i,e.anchorIdx,r)}}function UM(t,e,i){let n=A9(e,i);if(n!==null){let r=e.remove[n];for(let s=0;s0){let l=W5(o,i);l!==null&&Yy(i[ht],l)}else UM(t,v5(t,~o),i)}}}function zZ(t,e){let i=t.cases.indexOf(e);if(i===-1)switch(t.type){case 1:{let n=PZ(e,FZ());i=t.cases.indexOf(n),i===-1&&n!=="other"&&(i=t.cases.indexOf("other"));break}case 0:{i=t.cases.indexOf("other");break}}return i===-1?null:i}var t9=/�(\d+):?\d*�/gi,$Z=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,GZ=/�(\d+)�/,jM=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,E5="\uFFFD",WZ=/�\/?\*(\d+:\d+)�/gi,qZ=/�(\/?[#*]\d+):?\d*�/gi,KZ=/\uE500/g;function YZ(t){return t.replace(KZ," ")}function ZZ(t,e,i,n,r,s){let o=R5(),l=[],a=[],u=[[]],c=[[]];r=eX(r,s);let d=YZ(r).split(qZ);for(let h=0;h`}}let p=[];c.push(p),l=nX(p,e,a,i,n,r,s.cases[d],h.join(""),f)|l}l&&sX(n,l,o),t.push({kind:3,index:o,cases:c,currentCaseLViewIndex:a.currentCaseLViewIndex})}function tX(t){let e=[],i=[],n=1,r=0;t=t.replace(jM,function(o,l,a){return a==="select"?n=0:n=1,r=parseInt(l.slice(1),10),""});let s=iy(t);for(let o=0;oi.length&&i.push(a)}return{type:n,mainBinding:r,cases:e,values:i}}function iy(t){if(!t)return[];let e=0,i=[],n=[],r=/[{}]/g;r.lastIndex=0;let s;for(;s=r.exec(t);){let l=s.index;if(s[0]=="}"){if(i.pop(),i.length==0){let a=t.substring(e,l);jM.test(a)?n.push(tX(a)):n.push(a),e=l+1}}else{if(i.length==0){let a=t.substring(e,l);n.push(a),e=l+1}i.push("{")}}let o=t.substring(e);return n.push(o),n}function nX(t,e,i,n,r,s,o,l,a){let u=[],c=[],d=[];i.cases.push(o),i.create.push(u),i.remove.push(c),i.update.push(d);let f=UO(By()).getInertBodyElement(l),p=Eb(f)||f;return p?GM(t,e,i,n,r,u,c,d,p,s,a,0):0}function GM(t,e,i,n,r,s,o,l,a,u,c,d){let h=0,f=a.firstChild;for(;f;){let p=eh(e,n,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:let v=f,E=v.tagName.toLowerCase();if(bb.hasOwnProperty(E)){Uv(s,PM,E,u,p),e.data[p]=E;let L=v.attributes;for(let V=0;V{let a=o||l,u=n[a]||[];if(u.length||(a.split("|").forEach(v=>{let E=v.match(fX),C=E?parseInt(E[1],10):hD,P=hX.test(v);u.push([C,P,v])}),n[a]=u),!u.length)throw new Error(`i18n postprocess: unmatched placeholder - ${a}`);let c=r[r.length-1],d=0;for(let v=0;ve.hasOwnProperty(s)?`${r}${e[s]}${a}`:n),i=i.replace(cX,(n,r)=>e.hasOwnProperty(r)?e[r]:n),i=i.replace(dX,(n,r)=>{if(e.hasOwnProperty(r)){let s=e[r];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${n} with key: ${r}`);return s.shift()}return n})),i}function WM(t,e,i=-1){let n=pt(),r=$(),s=Pt+t,o=kr(n.consts,e),l=R5();if(n.firstCreatePass&&ZZ(n,l===null?0:l.index,r,s,o,i),n.type===2){let h=r[Ri];h[Xe]|=32}else r[Xe]|=32;let a=n.data[s],u=l===r[Mi]?null:l,c=QO(n,u,r),d=l&&l.type&8?r[l.index]:null;sK(r,s,l,i),jZ(r,a.create,c,d),aO(!0)}function qM(){aO(!1)}function mX(t,e,i){WM(t,e,i),qM()}function gX(t,e){let i=pt(),n=kr(i.consts,e);QZ(i,t+Pt,n)}function KM(t){let e=$();return VZ(An(e,bs(),t)),KM}function _X(t){BZ(pt(),$(),t+Pt)}function vX(t,e={}){return pX(t,e)}var bX=(t,e,i)=>{};function be(t,e,i,n){let r=$(),s=pt(),o=zt();return gE(s,r,r[ht],o,t,e,n),be}function F9(t,e){let i=zt(),n=$(),r=pt(),s=My(r.data),o=vR(s,i,n);return gE(r,n,o,i,t,e),F9}function yX(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sa?l[a]:null}typeof o=="string"&&(s+=2)}return null}function gE(t,e,i,n,r,s,o){let l=d9(n),u=t.firstCreatePass&&_R(t),c=e[ci],d=gR(e),h=!0;if(n.type&3||o){let v=gr(n,e),E=o?o(v):v,C=d.length,P=o?L=>o(Mr(L[n.index])):n.index,U=null;if(!o&&l&&(U=yX(t,e,r,n.index)),U!==null){let L=U.__ngLastListenerFn__||U;L.__ngNextListenerFn__=s,U.__ngLastListenerFn__=s,h=!1}else{s=pD(n,e,c,s),bX(v,r,s);let L=i.listen(E,r,s);d.push(s,L),u&&u.push(r,P,C,C+1)}}else s=pD(n,e,c,s);let f=n.outputs,p;if(h&&f!==null&&(p=f[r])){let v=p.length;if(v)for(let E=0;E-1?_a(t.index,e):e;w9(o,5);let l=fD(e,i,n,s),a=r.__ngNextListenerFn__;for(;a;)l=fD(e,i,a,s)&&l,a=a.__ngNextListenerFn__;return l}}function ne(t=1){return PG(t)}function EX(t,e){let i=null,n=G$(t);for(let r=0;r=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Br(t){let e=sO();return n2(e,Pt+t)}function wX(t,e,i){let n=$(),r=wc(n,t,e,i);Fr(r)}function xX(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);Fr(o)}function AX(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);Fr(a)}function DX(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);Fr(c)}function OX(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);Fr(h)}function RX(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);Fr(p)}function MX(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);Fr(E)}function kX(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);Fr(P)}function NX(t){let e=$(),i=Sc(e,t);Fr(i)}function rk(t,e,i,n,r){let s=$(),o=wc(s,e,i,n);return Cs(t,o,r,!1),rk}function sk(t,e,i,n,r,s,o){let l=$(),a=xc(l,e,i,n,r,s);return Cs(t,a,o,!1),sk}function ok(t,e,i,n,r,s,o,l,a){let u=$(),c=Ac(u,e,i,n,r,s,o,l);return Cs(t,c,a,!1),ok}function lk(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Dc(d,e,i,n,r,s,o,l,a,u);return Cs(t,h,c,!1),lk}function ak(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Oc(f,e,i,n,r,s,o,l,a,u,c,d);return Cs(t,p,h,!1),ak}function uk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Rc(v,e,i,n,r,s,o,l,a,u,c,d,h,f);return Cs(t,E,p,!1),uk}function ck(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=Mc(C,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v);return Cs(t,P,E,!1),ck}function dk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E,C,P){let U=$(),L=kc(U,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E,C);return Cs(t,L,P,!1),dk}function hk(t,e,i){let n=$(),r=Sc(n,e);return Cs(t,r,i,!1),hk}function N(t,e=""){let i=$(),n=pt(),r=t+Pt,s=n.firstCreatePass?r2(n,r,1,e,null):n.data[r],o=PX(n,i,s,e,t);i[r]=o,K5()&&E9(n,i,o,s),_s(s,!1)}var PX=(t,e,i,n,r)=>(Y5(!0),WO(e[ht],n));function Fn(t){return Ca("",t,""),Fn}function Ca(t,e,i){let n=$(),r=wc(n,t,e,i);return r!==tt&&pl(n,fi(),r),Ca}function B9(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);return o!==tt&&pl(s,fi(),o),B9}function fk(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);return a!==tt&&pl(l,fi(),a),fk}function pk(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);return c!==tt&&pl(u,fi(),c),pk}function mk(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);return h!==tt&&pl(d,fi(),h),mk}function gk(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);return p!==tt&&pl(f,fi(),p),gk}function _k(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);return E!==tt&&pl(v,fi(),E),_k}function vk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);return P!==tt&&pl(C,fi(),P),vk}function bk(t){let e=$(),i=Sc(e,t);return i!==tt&&pl(e,fi(),i),bk}function bo(t,e,i){qR(e)&&(e=e());let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn();Qi(s,o,n,t,e,n[ht],i,!1)}return bo}function ml(t,e){let i=qR(t);return i&&t.set(e),i}function yo(t,e){let i=$(),n=pt(),r=zt();return gE(n,i,i[ht],r,t,e),yo}var yk={};function Ek(t){let e=pt(),i=$(),n=t+Pt,r=r2(e,n,128,null,null);return _s(r,!1),_E(e,i,n,yk),Ek}function LX(t){vr("NgLet");let e=pt(),i=$(),n=fi();return _E(e,i,n,t),t}function FX(t){let e=sO(),i=n2(e,Pt+t);if(i===yk)throw new se(314,!1);return i}function VX(t,e,i){let n=pt();if(n.firstCreatePass){let r=gs(t);ry(i,n.data,n.blueprint,r,!0),ry(e,n.data,n.blueprint,r,!1)}}function ry(t,e,i,n,r){if(t=Yt(t),Array.isArray(t))for(let s=0;s>20;if(lc(t)||!t.multi){let f=new qu(u,r,I),p=Hv(a,e,r?c:c+h,d);p===-1?(lb(H8(l,o),s,a),jv(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(f),o.push(f)):(i[p]=f,o[p]=f)}else{let f=Hv(a,e,c+h,d),p=Hv(a,e,c,c+h),v=f>=0&&i[f],E=p>=0&&i[p];if(r&&!E||!r&&!v){lb(H8(l,o),s,a);let C=jX(r?UX:BX,i.length,r,n,u);!r&&E&&(i[p].providerFactory=C),jv(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(C),o.push(C)}else{let C=Ck(i[r?p:f],u,!r&&n);jv(s,t,f>-1?f:p,C)}!r&&n&&E&&i[p].componentProviders++}}}function jv(t,e,i,n){let r=lc(e),s=sG(e);if(r||s){let a=(s?Yt(e.useClass):e).prototype.ngOnDestroy;if(a){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let c=u.indexOf(i);c===-1?u.push(i,[n,a]):u[c+1].push(n,a)}else u.push(i,a)}}}function Ck(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Hv(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>VX(n,r?r(t):t,e)}}var HX=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Cy(!1,n.type),s=r.length>0?JR([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=q({token:e,providedIn:"environment",factory:()=>new e(x(Oi))});let t=e;return t})();function ot(t){vr("NgStandalone"),t.getStandaloneInjector=e=>e.get(HX).getOrCreateStandaloneInjector(t)}function zX(t,e,i){let n=t.\u0275cmp;n.directiveDefs=P8(e,!1),n.pipeDefs=P8(i,!0)}function $X(t,e){return t2(()=>{let i=ao(t,!0);i.declarations=E8(e.declarations||vn),i.imports=E8(e.imports||vn),i.exports=E8(e.exports||vn),e.bootstrap&&(i.bootstrap=E8(e.bootstrap)),k5.registerNgModule(t,e)})}function E8(t){if(typeof t=="function")return t;let e=z5(t);return e.some(r9)?()=>e.map(Yt).map(mD):e.map(mD)}function mD(t){return FR(t)?t.ngModule:t}function U9(t,e,i){let n=ki()+t,r=$();return r[n]===tt?_o(r,n,i?e.call(i):e()):th(r,n)}function vE(t,e,i,n){return Ik($(),ki(),t,e,i,n)}function ih(t,e,i,n,r){return Tk($(),ki(),t,e,i,n,r)}function GX(t,e,i,n,r,s){return Sk($(),ki(),t,e,i,n,r,s)}function WX(t,e,i,n,r,s,o){return wk($(),ki(),t,e,i,n,r,s,o)}function qX(t,e,i,n,r,s,o,l){let a=ki()+t,u=$(),c=Nr(u,a,i,n,r,s);return An(u,a+4,o)||c?_o(u,a+5,l?e.call(l,i,n,r,s,o):e(i,n,r,s,o)):th(u,a+5)}function bE(t,e,i,n,r,s,o,l,a){let u=ki()+t,c=$(),d=Nr(c,u,i,n,r,s);return Ju(c,u+4,o,l)||d?_o(c,u+6,a?e.call(a,i,n,r,s,o,l):e(i,n,r,s,o,l)):th(c,u+6)}function KX(t,e,i,n,r,s,o,l,a,u){let c=ki()+t,d=$(),h=Nr(d,c,i,n,r,s);return R9(d,c+4,o,l,a)||h?_o(d,c+7,u?e.call(u,i,n,r,s,o,l,a):e(i,n,r,s,o,l,a)):th(d,c+7)}function YX(t,e,i,n,r,s,o,l,a,u,c){let d=ki()+t,h=$(),f=Nr(h,d,i,n,r,s);return Nr(h,d+4,o,l,a,u)||f?_o(h,d+8,c?e.call(c,i,n,r,s,o,l,a,u):e(i,n,r,s,o,l,a,u)):th(h,d+8)}function ZX(t,e,i,n){return xk($(),ki(),t,e,i,n)}function rh(t,e){let i=t[e];return i===tt?void 0:i}function Ik(t,e,i,n,r,s){let o=e+i;return An(t,o,r)?_o(t,o+1,s?n.call(s,r):n(r)):rh(t,o+1)}function Tk(t,e,i,n,r,s,o){let l=e+i;return Ju(t,l,r,s)?_o(t,l+2,o?n.call(o,r,s):n(r,s)):rh(t,l+2)}function Sk(t,e,i,n,r,s,o,l){let a=e+i;return R9(t,a,r,s,o)?_o(t,a+3,l?n.call(l,r,s,o):n(r,s,o)):rh(t,a+3)}function wk(t,e,i,n,r,s,o,l,a){let u=e+i;return Nr(t,u,r,s,o,l)?_o(t,u+4,a?n.call(a,r,s,o,l):n(r,s,o,l)):rh(t,u+4)}function xk(t,e,i,n,r,s){let o=e+i,l=!1;for(let a=0;a=0;i--){let n=e[i];if(t===n.name)return n}}function Ak(t,e,i){let n=t+Pt,r=$(),s=n2(r,n);return oh(r,n)?Ik(r,ki(),e,s.transform,i,s):s.transform(i)}function yE(t,e,i,n){let r=t+Pt,s=$(),o=n2(s,r);return oh(s,r)?Tk(s,ki(),e,o.transform,i,n,o):o.transform(i,n)}function EE(t,e,i,n,r){let s=t+Pt,o=$(),l=n2(o,s);return oh(o,s)?Sk(o,ki(),e,l.transform,i,n,r,l):l.transform(i,n,r)}function QX(t,e,i,n,r,s){let o=t+Pt,l=$(),a=n2(l,o);return oh(l,o)?wk(l,ki(),e,a.transform,i,n,r,s,a):a.transform(i,n,r,s)}function JX(t,e,i){let n=t+Pt,r=$(),s=n2(r,n);return oh(r,n)?xk(r,ki(),e,s.transform,i,s):s.transform.apply(s,i)}function oh(t,e){return t[De].data[e].pure}function a2(t,e){return x9(t,e)}function eQ(t,e){return()=>{try{return k5.getComponentDependencies(t,e).dependencies}catch(i){throw console.error(`Computing dependencies in local compilation mode for the component "${t.name}" failed with the exception:`,i),i}}}function tQ(t,e){let i=Cn(t);i!==null&&(i.debugInfo=e)}var CE={\u0275\u0275attribute:Tt,\u0275\u0275attributeInterpolate1:mM,\u0275\u0275attributeInterpolate2:gM,\u0275\u0275attributeInterpolate3:_M,\u0275\u0275attributeInterpolate4:vM,\u0275\u0275attributeInterpolate5:bM,\u0275\u0275attributeInterpolate6:yM,\u0275\u0275attributeInterpolate7:EM,\u0275\u0275attributeInterpolate8:CM,\u0275\u0275attributeInterpolateV:IM,\u0275\u0275defineComponent:Me,\u0275\u0275defineDirective:Ce,\u0275\u0275defineInjectable:q,\u0275\u0275defineInjector:we,\u0275\u0275defineNgModule:xe,\u0275\u0275definePipe:Ey,\u0275\u0275directiveInject:I,\u0275\u0275getInheritedFactory:po,\u0275\u0275inject:x,\u0275\u0275injectAttribute:va,\u0275\u0275invalidFactory:Xy,\u0275\u0275invalidFactoryDep:O$,\u0275\u0275templateRefExtractor:a2,\u0275\u0275resetView:ue,\u0275\u0275HostDirectivesFeature:dE,\u0275\u0275NgOnChangesFeature:In,\u0275\u0275ProvidersFeature:mn,\u0275\u0275CopyDefinitionFeature:lY,\u0275\u0275InheritDefinitionFeature:At,\u0275\u0275InputTransformsFeature:ln,\u0275\u0275StandaloneFeature:ot,\u0275\u0275nextContext:ne,\u0275\u0275namespaceHTML:Ly,\u0275\u0275namespaceMathML:LG,\u0275\u0275namespaceSVG:m9,\u0275\u0275enableBindings:AG,\u0275\u0275disableBindings:DG,\u0275\u0275elementStart:R,\u0275\u0275elementEnd:F,\u0275\u0275element:pe,\u0275\u0275elementContainerStart:ya,\u0275\u0275elementContainerEnd:Ea,\u0275\u0275elementContainer:Dn,\u0275\u0275pureFunction0:U9,\u0275\u0275pureFunction1:vE,\u0275\u0275pureFunction2:ih,\u0275\u0275pureFunction3:GX,\u0275\u0275pureFunction4:WX,\u0275\u0275pureFunction5:qX,\u0275\u0275pureFunction6:bE,\u0275\u0275pureFunction7:KX,\u0275\u0275pureFunction8:YX,\u0275\u0275pureFunctionV:ZX,\u0275\u0275getCurrentView:mt,\u0275\u0275restoreView:ae,\u0275\u0275listener:be,\u0275\u0275projection:Ln,\u0275\u0275syntheticHostProperty:L9,\u0275\u0275syntheticHostListener:F9,\u0275\u0275pipeBind1:Ak,\u0275\u0275pipeBind2:yE,\u0275\u0275pipeBind3:EE,\u0275\u0275pipeBind4:QX,\u0275\u0275pipeBindV:JX,\u0275\u0275projectionDef:ei,\u0275\u0275hostProperty:Nc,\u0275\u0275property:J,\u0275\u0275propertyInterpolate:YM,\u0275\u0275propertyInterpolate1:V9,\u0275\u0275propertyInterpolate2:ZM,\u0275\u0275propertyInterpolate3:XM,\u0275\u0275propertyInterpolate4:QM,\u0275\u0275propertyInterpolate5:JM,\u0275\u0275propertyInterpolate6:ek,\u0275\u0275propertyInterpolate7:tk,\u0275\u0275propertyInterpolate8:nk,\u0275\u0275propertyInterpolateV:ik,\u0275\u0275pipe:sh,\u0275\u0275queryRefresh:nt,\u0275\u0275queryAdvance:SX,\u0275\u0275viewQuery:Et,\u0275\u0275viewQuerySignal:TX,\u0275\u0275loadQuery:it,\u0275\u0275contentQuery:Ts,\u0275\u0275contentQuerySignal:IX,\u0275\u0275reference:Br,\u0275\u0275classMap:Vr,\u0275\u0275classMapInterpolate1:fZ,\u0275\u0275classMapInterpolate2:pZ,\u0275\u0275classMapInterpolate3:mZ,\u0275\u0275classMapInterpolate4:gZ,\u0275\u0275classMapInterpolate5:_Z,\u0275\u0275classMapInterpolate6:vZ,\u0275\u0275classMapInterpolate7:bZ,\u0275\u0275classMapInterpolate8:yZ,\u0275\u0275classMapInterpolateV:EZ,\u0275\u0275styleMap:Fr,\u0275\u0275styleMapInterpolate1:wX,\u0275\u0275styleMapInterpolate2:xX,\u0275\u0275styleMapInterpolate3:AX,\u0275\u0275styleMapInterpolate4:DX,\u0275\u0275styleMapInterpolate5:OX,\u0275\u0275styleMapInterpolate6:RX,\u0275\u0275styleMapInterpolate7:MX,\u0275\u0275styleMapInterpolate8:kX,\u0275\u0275styleMapInterpolateV:NX,\u0275\u0275styleProp:an,\u0275\u0275stylePropInterpolate1:rk,\u0275\u0275stylePropInterpolate2:sk,\u0275\u0275stylePropInterpolate3:ok,\u0275\u0275stylePropInterpolate4:lk,\u0275\u0275stylePropInterpolate5:ak,\u0275\u0275stylePropInterpolate6:uk,\u0275\u0275stylePropInterpolate7:ck,\u0275\u0275stylePropInterpolate8:dk,\u0275\u0275stylePropInterpolateV:hk,\u0275\u0275classProp:ut,\u0275\u0275advance:G,\u0275\u0275template:ke,\u0275\u0275conditional:Pn,\u0275\u0275defer:DY,\u0275\u0275deferWhen:OY,\u0275\u0275deferOnIdle:MY,\u0275\u0275deferOnImmediate:NY,\u0275\u0275deferOnTimer:LY,\u0275\u0275deferOnHover:VY,\u0275\u0275deferOnInteraction:UY,\u0275\u0275deferOnViewport:HY,\u0275\u0275deferPrefetchWhen:RY,\u0275\u0275deferPrefetchOnIdle:kY,\u0275\u0275deferPrefetchOnImmediate:PY,\u0275\u0275deferPrefetchOnTimer:FY,\u0275\u0275deferPrefetchOnHover:BY,\u0275\u0275deferPrefetchOnInteraction:jY,\u0275\u0275deferPrefetchOnViewport:zY,\u0275\u0275deferEnableTimerScheduling:AY,\u0275\u0275repeater:l2,\u0275\u0275repeaterCreate:o2,\u0275\u0275repeaterTrackByIndex:TZ,\u0275\u0275repeaterTrackByIdentity:P9,\u0275\u0275componentInstance:CZ,\u0275\u0275text:N,\u0275\u0275textInterpolate:Fn,\u0275\u0275textInterpolate1:Ca,\u0275\u0275textInterpolate2:B9,\u0275\u0275textInterpolate3:fk,\u0275\u0275textInterpolate4:pk,\u0275\u0275textInterpolate5:mk,\u0275\u0275textInterpolate6:gk,\u0275\u0275textInterpolate7:_k,\u0275\u0275textInterpolate8:vk,\u0275\u0275textInterpolateV:bk,\u0275\u0275i18n:mX,\u0275\u0275i18nAttributes:gX,\u0275\u0275i18nExp:KM,\u0275\u0275i18nStart:WM,\u0275\u0275i18nEnd:qM,\u0275\u0275i18nApply:_X,\u0275\u0275i18nPostprocess:vX,\u0275\u0275resolveWindow:GW,\u0275\u0275resolveDocument:WW,\u0275\u0275resolveBody:qW,\u0275\u0275setComponentScope:zX,\u0275\u0275setNgModuleScope:$X,\u0275\u0275registerNgModuleType:QK,\u0275\u0275getComponentDepsFactory:eQ,\u0275setClassDebugInfo:tQ,\u0275\u0275declareLet:Ek,\u0275\u0275storeLet:LX,\u0275\u0275readContextLet:FX,\u0275\u0275sanitizeHtml:Gy,\u0275\u0275sanitizeStyle:PW,\u0275\u0275sanitizeResourceUrl:v9,\u0275\u0275sanitizeScript:LW,\u0275\u0275sanitizeUrl:bc,\u0275\u0275sanitizeUrlOrResourceUrl:UW,\u0275\u0275trustConstantHtml:FW,\u0275\u0275trustConstantResourceUrl:VW,\u0275\u0275validateIframeAttribute:JK,forwardRef:vs,resolveForwardRef:Yt,\u0275\u0275twoWayProperty:bo,\u0275\u0275twoWayBindingSet:ml,\u0275\u0275twoWayListener:yo},g5=null;function nQ(t){g5!==null&&(t.defaultEncapsulation!==g5.defaultEncapsulation||t.preserveWhitespaces!==g5.preserveWhitespaces)||(g5=t)}function iQ(){return g5}var zv=[];var $v=!1;function rQ(){if(!$v){$v=!0;try{for(let t=zv.length-1;t>=0;t--){let{moduleType:e,ngModule:i}=zv[t];i.declarations&&i.declarations.every(Dk)&&(zv.splice(t,1),sQ(e,i))}}finally{$v=!1}}}function Dk(t){return Array.isArray(t)?t.every(Dk):!!Yt(t)}function sQ(t,e){let i=z5(e.declarations||vn),n=fc(t);i.forEach(r=>{if(r=Yt(r),r.hasOwnProperty(s9)){let o=Cn(r);Ok(o,n)}else!r.hasOwnProperty(gy)&&!r.hasOwnProperty(DD)&&(r.ngSelectorScope=t)})}function Ok(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(i=>i.hasOwnProperty(s9)?Cn(i):hr(i)).filter(i=>!!i),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(i=>fr(i)),t.schemas=e.schemas,t.tView=null}function fc(t){if(Bu(t))if(Nb){let e=k5.getNgModuleScope(t),i=ao(t,!0);return b({schemas:i.schemas||null},e)}else return oQ(t);else if(N8(t)){if((Cn(t)||hr(t))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([t]),pipes:new Set}};if(fr(t)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([t])}}}throw new Error(`${t.name} does not have a module def (\u0275mod property)`)}function oQ(t){let e=ao(t,!0);if(e.transitiveCompileScopes!==null)return e.transitiveCompileScopes;let i={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ua(e.imports).forEach(n=>{let r=fc(n);r.exported.directives.forEach(s=>i.compilation.directives.add(s)),r.exported.pipes.forEach(s=>i.compilation.pipes.add(s))}),ua(e.declarations).forEach(n=>{fr(n)?i.compilation.pipes.add(n):i.compilation.directives.add(n)}),ua(e.exports).forEach(n=>{let r=n;if(Bu(r)){let s=fc(r);s.exported.directives.forEach(o=>{i.compilation.directives.add(o),i.exported.directives.add(o)}),s.exported.pipes.forEach(o=>{i.compilation.pipes.add(o),i.exported.pipes.add(o)})}else fr(r)?i.exported.pipes.add(r):i.exported.directives.add(r)}),e.transitiveCompileScopes=i,i}var Gv=0;function lQ(t,e){let i=null;GK(t,e),kk(t,e),Object.defineProperty(t,s9,{get:()=>{if(i===null){let n=G5({usage:0,kind:"component",type:t});if(ZR(e)){let u=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&u.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&u.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),e.styleUrl&&u.push(` - styleUrl: ${e.styleUrl}`),u.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(u.join(` + `)}`}var N$=j5(pc("Inject",t=>({token:t})),-1),Xi=j5(pc("Optional"),8),P$=j5(pc("Self"),2),H5=j5(pc("SkipSelf"),4),L$=j5(pc("Host"),1);function Hu(t,e){let i=t.hasOwnProperty(T5);return i?t[T5]:null}function F$(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?vy(i,e):e(i))}function MD(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function M8(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function C8(t,e){let i=[];for(let n=0;ne;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function mr(t,e,i){let n=$5(t,e);return n>=0?t[n|1]=i:(n=~n,kD(t,n,e,i)),n}function Iv(t,e){let i=$5(t,e);if(i>=0)return t[i|1]}function $5(t,e){return V$(t,e,1)}function V$(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<e){o=s-1;break}}}for(;s-1){let s;for(;++rs?d="":d=r[c+1].toLowerCase(),n&2&&u!==d){if(fs(n))return!1;o=!0}}}}return fs(n)||o}function fs(t){return(t&1)===0}function $$(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+l+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!fs(o)&&(e+=vA(s,r),r=""),n=o,s=s||!fs(n);i++}return r!==""&&(e+=vA(s,r)),e}function Z$(t){return t.map(Y$).join(",")}function X$(t){let e=[],i=[],n=1,r=2;for(;n{let e=BD(t),i=ee(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===by.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ms.Emulated,styles:t.styles||vn,_:null,schemas:t.schemas||null,tView:null,id:""});UD(i);let n=t.dependencies;return i.directiveDefs=P8(n,!1),i.pipeDefs=P8(n,!0),i.id=eG(i),i})}function Q$(t){return Cn(t)||hr(t)}function J$(t){return t!==null}function xe(t){return t2(()=>({type:t.type,bootstrap:t.bootstrap||vn,declarations:t.declarations||vn,imports:t.imports||vn,exports:t.exports||vn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function bA(t,e){if(t==null)return lo;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s,o,l=fa.None;Array.isArray(r)?(l=r[0],s=r[1],o=r[2]??s):(s=r,o=r),e?(i[s]=l!==fa.None?[n,l]:n,e[s]=o):i[s]=n}return i}function Ce(t){return t2(()=>{let e=BD(t);return UD(e),e})}function Ey(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Cn(t){return t[s9]||null}function hr(t){return t[gy]||null}function fr(t){return t[DD]||null}function N8(t){let e=Cn(t)||hr(t)||fr(t);return e!==null?e.standalone:!1}function ao(t,e){let i=t[C$]||null;if(!i&&e===!0)throw new Error(`Type ${ui(t)} does not have '\u0275mod' property.`);return i}function BD(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||lo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||vn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bA(t.inputs,e),outputs:bA(t.outputs),debugInfo:null}}function UD(t){t.features?.forEach(e=>e(t))}function P8(t,e){if(!t)return null;let i=e?fr:Q$;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(J$)}function eG(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Pr(t){return{\u0275providers:t}}function tG(...t){return{\u0275providers:Cy(!0,t),\u0275fromNgModule:!0}}function Cy(t,...e){let i=[],n=new Set,r,s=o=>{i.push(o)};return vy(e,o=>{let l=o;Xv(l,s,[],n)&&(r||=[],r.push(l))}),r!==void 0&&jD(r,s),i}function jD(t,e){for(let i=0;i{e(s,n)})}}function Xv(t,e,i,n){if(t=Yt(t),!t)return!1;let r=null,s=hA(t),o=!s&&Cn(t);if(!s&&!o){let a=t.ngModule;if(s=hA(a),s)r=a;else return!1}else{if(o&&!o.standalone)return!1;r=t}let l=n.has(r);if(o){if(l)return!1;if(n.add(r),o.dependencies){let a=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of a)Xv(u,e,i,n)}}else if(s){if(s.imports!=null&&!l){n.add(r);let u;try{vy(s.imports,c=>{Xv(c,e,i,n)&&(u||=[],u.push(c))})}finally{}u!==void 0&&jD(u,e)}if(!l){let u=Hu(r)||(()=>new r);e({provide:r,useFactory:u,deps:vn},r),e({provide:PD,useValue:r,multi:!0},r),e({provide:w5,useValue:()=>x(r),multi:!0},r)}let a=s.providers;if(a!=null&&!l){let u=t;Iy(a,c=>{e(c,u)})}}else return!1;return r!==t&&t.providers!==void 0}function Iy(t,e){for(let i of t)AD(i)&&(i=i.\u0275providers),Array.isArray(i)?Iy(i,e):e(i)}var nG=Zt({provide:String,useValue:Zt});function HD(t){return t!==null&&typeof t=="object"&&nG in t}function iG(t){return!!(t&&t.useExisting)}function rG(t){return!!(t&&t.useFactory)}function lc(t){return typeof t=="function"}function sG(t){return!!t.useClass}var l9=new Z(""),I8={},oG={},Tv;function a9(){return Tv===void 0&&(Tv=new k8),Tv}var Oi=class{},A5=class extends Oi{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jv(e,o=>this.processProvider(o)),this.records.set(ND,ec(void 0,this)),r.has("environment")&&this.records.set(Oi,ec(void 0,this));let s=this.records.get(l9);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(PD,vn,Ct.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=dt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),dt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=aa(this),n=Yi(void 0),r;try{return e()}finally{aa(i),Yi(n)}}get(e,i=S5,n=Ct.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(pA))return e[pA](this);n=o9(n);let r,s=aa(this),o=Yi(void 0);try{if(!(n&Ct.SkipSelf)){let a=this.records.get(e);if(a===void 0){let u=dG(e)&&my(e);u&&this.injectableDefInScope(u)?a=ec(Qv(e),I8):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let l=n&Ct.Self?a9():this.parent;return i=n&Ct.Optional&&i===S5?null:i,l.get(e,i)}catch(l){if(l.name==="NullInjectorError"){if((l[R8]=l[R8]||[]).unshift(ui(e)),s)throw l;return M$(l,e,"R3InjectorError",this.source)}else throw l}finally{Yi(o),aa(s)}}resolveInjectorInitializers(){let e=dt(null),i=aa(this),n=Yi(void 0),r;try{let s=this.get(w5,vn,Ct.Self);for(let o of s)o()}finally{aa(i),Yi(n),dt(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(ui(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new se(205,!1)}processProvider(e){e=Yt(e);let i=lc(e)?e:Yt(e&&e.provide),n=aG(e);if(!lc(e)&&e.multi===!0){let r=this.records.get(i);r||(r=ec(void 0,I8,!0),r.factory=()=>Yv(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=dt(null);try{return i.value===I8&&(i.value=oG,i.value=i.factory()),typeof i.value=="object"&&i.value&&cG(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{dt(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Yt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Qv(t){let e=my(t),i=e!==null?e.factory:Hu(t);if(i!==null)return i;if(t instanceof Z)throw new se(204,!1);if(t instanceof Function)return lG(t);throw new se(204,!1)}function lG(t){if(t.length>0)throw new se(204,!1);let i=y$(t);return i!==null?()=>i.factory(t):()=>new t}function aG(t){if(HD(t))return ec(void 0,t.useValue);{let e=zD(t);return ec(e,I8)}}function zD(t,e,i){let n;if(lc(t)){let r=Yt(t);return Hu(r)||Qv(r)}else if(HD(t))n=()=>Yt(t.useValue);else if(rG(t))n=()=>t.useFactory(...Yv(t.deps||[]));else if(iG(t))n=()=>x(Yt(t.useExisting));else{let r=Yt(t&&(t.useClass||t.provide));if(uG(t))n=()=>new r(...Yv(t.deps));else return Hu(r)||Qv(r)}return n}function ec(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function uG(t){return!!t.deps}function cG(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function dG(t){return typeof t=="function"||typeof t=="object"&&t instanceof Z}function Jv(t,e){for(let i of t)Array.isArray(i)?Jv(i,e):i&&AD(i)?Jv(i.\u0275providers,e):e(i)}function Ty(t,e){t instanceof A5&&t.assertNotDestroyed();let i,n=aa(t),r=Yi(void 0);try{return e()}finally{aa(n),Yi(r)}}function $D(){return OD()!==void 0||A$()!=null}function Sy(t){if(!$D())throw new se(-203,!1)}function G5(t){let e=Nn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var hG=Function;function p5(t){return typeof t=="function"}var fG=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,pG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,mG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,gG=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function _G(t){return fG.test(t)||gG.test(t)||pG.test(t)&&!mG.test(t)}var eb=class{constructor(e){this._reflect=e||Nn.Reflect}factory(e){return(...i)=>new e(...i)}_zipTypesAndAnnotations(e,i){let n;typeof e>"u"?n=C8(i.length):n=C8(e.length);for(let r=0;r"u"?n[r]=[]:e[r]&&e[r]!=Object?n[r]=[e[r]]:n[r]=[],i&&i[r]!=null&&(n[r]=n[r].concat(i[r]));return n}_ownParameters(e,i){let n=e.toString();if(_G(n))return null;if(e.parameters&&e.parameters!==i.parameters)return e.parameters;let r=e.ctorParameters;if(r&&r!==i.ctorParameters){let l=typeof r=="function"?r():r,a=l.map(c=>c&&c.type),u=l.map(c=>c&&Sv(c.decorators));return this._zipTypesAndAnnotations(a,u)}let s=e.hasOwnProperty(J3)&&e[J3],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||s?this._zipTypesAndAnnotations(o,s):C8(e.length)}parameters(e){if(!p5(e))return[];let i=f8(e),n=this._ownParameters(e,i);return!n&&i!==Object&&(n=this.parameters(i)),n||[]}_ownAnnotations(e,i){if(e.annotations&&e.annotations!==i.annotations){let n=e.annotations;return typeof n=="function"&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==i.decorators?Sv(e.decorators):e.hasOwnProperty(Q3)?e[Q3]:null}annotations(e){if(!p5(e))return[];let i=f8(e),n=this._ownAnnotations(e,i)||[];return(i!==Object?this.annotations(i):[]).concat(n)}_ownPropMetadata(e,i){if(e.propMetadata&&e.propMetadata!==i.propMetadata){let n=e.propMetadata;return typeof n=="function"&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==i.propDecorators){let n=e.propDecorators,r={};return Object.keys(n).forEach(s=>{r[s]=Sv(n[s])}),r}return e.hasOwnProperty(cA)?e[cA]:null}propMetadata(e){if(!p5(e))return{};let i=f8(e),n={};if(i!==Object){let s=this.propMetadata(i);Object.keys(s).forEach(o=>{n[o]=s[o]})}let r=this._ownPropMetadata(e,i);return r&&Object.keys(r).forEach(s=>{let o=[];n.hasOwnProperty(s)&&o.push(...n[s]),o.push(...r[s]),n[s]=o}),n}ownPropMetadata(e){return p5(e)?this._ownPropMetadata(e,f8(e))||{}:{}}hasLifecycleHook(e,i){return e instanceof hG&&i in e.prototype}};function Sv(t){return t?t.map(e=>{let n=e.type.annotationCls,r=e.args?e.args:[];return new n(...r)}):[]}function f8(t){let e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}var fo=0,De=1,Xe=2,hi=3,ps=4,Mi=5,ac=6,L8=7,ci=8,Qn=9,uo=10,ht=11,D5=12,yA=13,mc=14,Ri=15,zu=16,tc=17,ol=18,u9=19,GD=20,da=21,T8=22,Rr=23,Pt=25,wy=1;var $u=7,F8=8,uc=9,di=10,V8=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(V8||{});function ha(t){return Array.isArray(t)&&typeof t[wy]=="object"}function ul(t){return Array.isArray(t)&&t[wy]===!0}function xy(t){return(t.flags&4)!==0}function c9(t){return t.componentOffset>-1}function d9(t){return(t.flags&1)===1}function gs(t){return!!t.template}function tb(t){return(t[Xe]&512)!==0}function nb(t){return(t[Xe]&256)===256}var ib=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function WD(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function In(){return qD}function qD(t){return t.type.prototype.ngOnChanges&&(t.setInput=bG),vG}In.ngInherit=!0;function vG(){let t=YD(this),e=t?.current;if(e){let i=t.previous;if(i===lo)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function bG(t,e,i,n,r){let s=this.declaredInputs[n],o=YD(t)||yG(t,{previous:lo,current:null}),l=o.current||(o.current={}),a=o.previous,u=a[s];l[s]=new ib(u&&u.currentValue,i,a===lo),WD(t,e,r,i)}var KD="__ngSimpleChanges__";function YD(t){return t[KD]||null}function yG(t,e){return t[KD]=e}var EA=null;var so=function(t,e,i){EA?.(t,e,i)},ZD="svg",XD="math";function Mr(t){for(;Array.isArray(t);)t=t[fo];return t}function EG(t){for(;Array.isArray(t);){if(typeof t[wy]=="object")return t;t=t[fo]}return null}function W5(t,e){return Mr(e[t])}function gr(t,e){return Mr(e[t.index])}function q5(t,e){return t.data[e]}function n2(t,e){return t[e]}function _a(t,e){let i=e[t];return ha(i)?i:i[fo]}function CG(t){return(t[Xe]&4)===4}function Ay(t){return(t[Xe]&128)===128}function IG(t){return ul(t[hi])}function kr(t,e){return e==null?null:t[e]}function QD(t){t[tc]=0}function JD(t){t[Xe]&1024||(t[Xe]|=1024,Ay(t)&&h9(t))}function eO(t,e){for(;t>0;)e=e[mc],t--;return e}function O5(t){return!!(t[Xe]&9216||t[Rr]?.dirty)}function rb(t){t[uo].changeDetectionScheduler?.notify(7),t[Xe]&64&&(t[Xe]|=1024),O5(t)&&h9(t)}function h9(t){t[uo].changeDetectionScheduler?.notify(0);let e=Gu(t);for(;e!==null&&!(e[Xe]&8192||(e[Xe]|=8192,!Ay(e)));)e=Gu(e)}function f9(t,e){if((t[Xe]&256)===256)throw new se(911,!1);t[da]===null&&(t[da]=[]),t[da].push(e)}function Dy(t,e){if(t[da]===null)return;let i=t[da].indexOf(e);i!==-1&&t[da].splice(i,1)}function Gu(t){let e=t[hi];return ul(e)?e[hi]:e}var et={lFrame:dO(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tO=!1;function TG(){return et.lFrame.elementDepthCount}function SG(){et.lFrame.elementDepthCount++}function wG(){et.lFrame.elementDepthCount--}function nO(){return et.bindingsEnabled}function iO(){return et.skipHydrationRootTNode!==null}function xG(t){return et.skipHydrationRootTNode===t}function AG(){et.bindingsEnabled=!0}function DG(){et.bindingsEnabled=!1}function OG(){et.skipHydrationRootTNode=null}function $(){return et.lFrame.lView}function pt(){return et.lFrame.tView}function ae(t){return et.lFrame.contextLView=t,t[ci]}function ue(t){return et.lFrame.contextLView=null,t}function zt(){let t=rO();for(;t!==null&&t.type===64;)t=t.parent;return t}function rO(){return et.lFrame.currentTNode}function R5(){let t=et.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function _s(t,e){let i=et.lFrame;i.currentTNode=t,i.isParent=e}function Oy(){return et.lFrame.isParent}function Ry(){et.lFrame.isParent=!1}function sO(){return et.lFrame.contextLView}function oO(){return tO}function CA(t){tO=t}function ki(){let t=et.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cl(){return et.lFrame.bindingIndex}function lO(t){return et.lFrame.bindingIndex=t}function bs(){return et.lFrame.bindingIndex++}function dl(t){let e=et.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function RG(){return et.lFrame.inI18n}function aO(t){et.lFrame.inI18n=t}function MG(t,e){let i=et.lFrame;i.bindingIndex=i.bindingRootIndex=t,sb(e)}function kG(){return et.lFrame.currentDirectiveIndex}function sb(t){et.lFrame.currentDirectiveIndex=t}function My(t){let e=et.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function ky(){return et.lFrame.currentQueryIndex}function p9(t){et.lFrame.currentQueryIndex=t}function NG(t){let e=t[De];return e.type===2?e.declTNode:e.type===1?t[Mi]:null}function uO(t,e,i){if(i&Ct.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&Ct.Host);)if(r=NG(s),r===null||(s=s[mc],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=et.lFrame=cO();return n.currentTNode=e,n.lView=t,!0}function Ny(t){let e=cO(),i=t[De];et.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function cO(){let t=et.lFrame,e=t===null?null:t.child;return e===null?dO(t):e}function dO(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function hO(){let t=et.lFrame;return et.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var fO=hO;function Py(){let t=hO();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function PG(t){return(et.lFrame.contextLView=eO(t,et.lFrame.contextLView))[ci]}function fi(){return et.lFrame.selectedIndex}function Wu(t){et.lFrame.selectedIndex=t}function tn(){let t=et.lFrame;return q5(t.tView,t.selectedIndex)}function m9(){et.lFrame.currentNamespace=ZD}function LG(){et.lFrame.currentNamespace=XD}function Ly(){FG()}function FG(){et.lFrame.currentNamespace=null}function VG(){return et.lFrame.currentNamespace}var pO=!0;function K5(){return pO}function Y5(t){pO=t}function BG(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=qD(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function g9(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[tc]+=65536),(l>14>16&&(t[Xe]&3)===e&&(t[Xe]+=16384,IA(l,s)):IA(l,s)}var rc=-1,qu=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function jG(t){return t instanceof qu}function HG(t){return(t.flags&8)!==0}function zG(t){return(t.flags&16)!==0}var xv={},sc=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=o9(n);let r=this.injector.get(e,xv,n);return r!==xv||i===xv?r:this.parentInjector.get(e,i,n)}};function gO(t){return t!==rc}function B8(t){return t&32767}function $G(t){return t>>16}function U8(t,e){let i=$G(t),n=e;for(;i>0;)n=n[mc],i--;return n}var ob=!0;function j8(t){let e=ob;return ob=t,e}var GG=256,_O=GG-1,vO=5,WG=0,oo={};function qG(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(_5)&&(n=i[_5]),n==null&&(n=i[_5]=WG++);let r=n&_O,s=1<>vO)]|=s}function H8(t,e){let i=bO(t,e);if(i!==-1)return i;let n=e[De];n.firstCreatePass&&(t.injectorIndex=e.length,Av(n.data,t),Av(e,null),Av(n.blueprint,null));let r=Fy(t,e),s=t.injectorIndex;if(gO(r)){let o=B8(r),l=U8(r,e),a=l[De].data;for(let u=0;u<8;u++)e[s+u]=l[o+u]|a[o+u]}return e[s+8]=r,s}function Av(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bO(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fy(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=TO(r),n===null)return rc;if(i++,r=r[mc],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return rc}function lb(t,e,i){qG(t,e,i)}function KG(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,d=n?l:l+c,h=r?l+c:u;for(let f=d;f=a&&p.type===i)return f}if(r){let f=o[a];if(f&&gs(f)&&f.type===i)return a}return null}function Ku(t,e,i,n){let r=t[i],s=e.data;if(jG(r)){let o=r;o.resolving&&I$(ro(s[i]));let l=j8(o.canSeeViewProviders);o.resolving=!0;let a,u=o.injectImpl?Yi(o.injectImpl):null,c=uO(t,n,Ct.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&BG(i,s[i],e)}finally{u!==null&&Yi(u),j8(l),o.resolving=!1,fO()}}return r}function ZG(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(_5)?t[_5]:void 0;return typeof e=="number"?e>=0?e&_O:XG:e}function TA(t,e,i){let n=1<>vO)]&n)}function SA(t,e){return!(t&Ct.Self)&&!(t&Ct.Host&&e)}var ju=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return CO(this._tNode,this._lView,e,o9(n),i)}};function XG(){return new ju(zt(),$())}function po(t){return t2(()=>{let e=t.prototype.constructor,i=e[T5]||ab(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[T5]||ab(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function ab(t){return r9(t)?()=>{let e=ab(Yt(t));return e&&e()}:Hu(t)}function QG(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[Xe]&2048&&!(o[Xe]&512);){let l=IO(s,o,i,n|Ct.Self,oo);if(l!==oo)return l;let a=s.parent;if(!a){let u=o[GD];if(u){let c=u.get(i,oo,n);if(c!==oo)return c}a=TO(o),o=o[mc]}s=a}return r}function TO(t){let e=t[De],i=e.type;return i===2?e.declTNode:i===1?t[Mi]:null}function va(t){return KG(zt(),t)}var JG=pc("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>va(t)})),wA=null;function Vy(){return wA=wA||new eb}function eW(t){return tW(Vy().parameters(t))}function tW(t){return t.map(e=>nW(e))}function nW(t){let e={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let i=0;ix(ND)}),Uu.__NG_ELEMENT_ID__=-1;var ze=Uu;var iW=new Z("");iW.__NG_ELEMENT_ID__=t=>{let e=zt();if(e===null)throw new se(204,!1);if(e.type&2)return e.value;if(t&Ct.Optional)return null;throw new se(204,!1)};var rW="ngOriginalError";function Dv(t){return t[rW]}var Zi=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Dv(e);for(;i&&Dv(i);)i=Dv(i);return i||null}},wO=new Z("",{providedIn:"root",factory:()=>Y(Zi).handleError.bind(void 0)}),_9=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sW,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),ub=class extends _9{constructor(e){super(),this._lView=e}onDestroy(e){return f9(this._lView,e),()=>Dy(this._lView,e)}};function sW(){return new ub($())}function AA(t,e){return ID(t,e)}function oW(t){return ID(CD,t)}var mo=(AA.required=oW,AA);function lW(){return gc(zt(),$())}function gc(t,e){return new Te(gr(t,e))}var Te=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=lW;let t=e;return t})();function aW(t){return t instanceof Te?t.nativeElement:t}var hl=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var cb=class extends te{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,$D()&&(this.destroyRef=Y(_9,{optional:!0})??void 0,this.pendingTasks=Y(hl,{optional:!0})??void 0)}emit(e){let i=dt(null);try{super.next(e)}finally{dt(i)}}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),s=a.error?.bind(a),o=a.complete?.bind(a)}this.__isAsync&&(s=this.wrapInTimeout(s),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let l=super.subscribe({next:r,error:s,complete:o});return e instanceof kt&&e.add(l),l}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},Se=cb;function uW(){return this._results[Symbol.iterator]()}var pa=class t{get changes(){return this._changes??=new Se}constructor(e=!1){this._emitDistinctChangesOnly=e,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;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=uW)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=z5(e);(this._changesDetected=!F$(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function xO(t){return(t.flags&128)===128}var AO=new Map,cW=0;function dW(){return cW++}function hW(t){AO.set(t[u9],t)}function fW(t){AO.delete(t[u9])}var DA="__ngContext__";function co(t,e){ha(e)?(t[DA]=e[u9],hW(e)):t[DA]=e}function DO(t){return RO(t[D5])}function OO(t){return RO(t[ps])}function RO(t){for(;t!==null&&!ul(t);)t=t[ps];return t}var db;function MO(t){db=t}function By(){if(db!==void 0)return db;if(typeof document<"u")return document;throw new se(210,!1)}var _c=new Z("",{providedIn:"root",factory:()=>pW}),pW="ng",Uy=new Z(""),Jn=new Z("",{providedIn:"platform",factory:()=>"unknown"});var Tn=new Z(""),Z5=new Z("",{providedIn:"root",factory:()=>By().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var mW="h",gW="b";var _W=()=>null;function jy(t,e,i=!1){return _W(t,e,i)}var kO=!1,vW=new Z("",{providedIn:"root",factory:()=>kO});var p8;function NO(){if(p8===void 0&&(p8=null,Nn.trustedTypes))try{p8=Nn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return p8}function vc(t){return NO()?.createHTML(t)||t}function bW(t){return NO()?.createScriptURL(t)||t}var m8;function Hy(){if(m8===void 0&&(m8=null,Nn.trustedTypes))try{m8=Nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return m8}function OA(t){return Hy()?.createHTML(t)||t}function RA(t){return Hy()?.createScript(t)||t}function MA(t){return Hy()?.createScriptURL(t)||t}var ll=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ED})`}},hb=class extends ll{getTypeName(){return"HTML"}},fb=class extends ll{getTypeName(){return"Style"}},pb=class extends ll{getTypeName(){return"Script"}},mb=class extends ll{getTypeName(){return"URL"}},gb=class extends ll{getTypeName(){return"ResourceURL"}};function Ni(t){return t instanceof ll?t.changingThisBreaksApplicationSecurity:t}function ys(t,e){let i=yW(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${ED})`)}return i===e}function yW(t){return t instanceof ll&&t.getTypeName()||null}function PO(t){return new hb(t)}function LO(t){return new fb(t)}function FO(t){return new pb(t)}function VO(t){return new mb(t)}function BO(t){return new gb(t)}function UO(t){let e=new vb(t);return EW()?new _b(e):e}var _b=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let i=new window.DOMParser().parseFromString(vc(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},vb=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=vc(e),i}};function EW(){try{return!!new window.DOMParser().parseFromString(vc(""),"text/html")}catch{return!1}}var CW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function X5(t){return t=String(t),t.match(CW)?t:"unsafe:"+t}function fl(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Q5(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var jO=fl("area,br,col,hr,img,wbr"),HO=fl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zO=fl("rp,rt"),IW=Q5(zO,HO),TW=Q5(HO,fl("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")),SW=Q5(zO,fl("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")),bb=Q5(jO,TW,SW,IW),zy=fl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wW=fl("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"),xW=fl("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"),$O=Q5(zy,wW,xW),AW=fl("script,style,template"),yb=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=RW(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let s=OW(i);if(s){i=s;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=kA(e).toLowerCase();if(!bb.hasOwnProperty(i))return this.sanitizedSomething=!0,!AW.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r"),!0}endElement(e){let i=kA(e).toLowerCase();bb.hasOwnProperty(i)&&!jO.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(NA(e))}};function DW(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function OW(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw GO(e);return e}function RW(t){let e=t.firstChild;if(e&&DW(t,e))throw GO(e);return e}function kA(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function GO(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var MW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kW=/([^\#-~ |!])/g;function NA(t){return t.replace(/&/g,"&").replace(MW,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(kW,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var g8;function $y(t,e){let i=null;try{g8=g8||UO(t);let n=e?String(e):"";i=g8.getInertBodyElement(n);let r=5,s=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=g8.getInertBodyElement(n)}while(n!==s);let l=new yb().sanitizeChildren(Eb(i)||i);return vc(l)}finally{if(i){let n=Eb(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Eb(t){return"content"in t&&NW(t)?t.content:null}function NW(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var _r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(_r||{});function Gy(t){let e=J5();return e?OA(e.sanitize(_r.HTML,t)||""):ys(t,"HTML")?OA(Ni(t)):$y(By(),lt(t))}function PW(t){let e=J5();return e?e.sanitize(_r.STYLE,t)||"":ys(t,"Style")?Ni(t):lt(t)}function bc(t){let e=J5();return e?e.sanitize(_r.URL,t)||"":ys(t,"URL")?Ni(t):X5(lt(t))}function v9(t){let e=J5();if(e)return MA(e.sanitize(_r.RESOURCE_URL,t)||"");if(ys(t,"ResourceURL"))return MA(Ni(t));throw new se(904,!1)}function LW(t){let e=J5();if(e)return RA(e.sanitize(_r.SCRIPT,t)||"");if(ys(t,"Script"))return RA(Ni(t));throw new se(905,!1)}function FW(t){return vc(t[0])}function VW(t){return bW(t[0])}function BW(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?v9:bc}function UW(t,e,i){return BW(e,i)(t)}function J5(){let t=$();return t&&t[uo].sanitizer}var jW=/^>|^->||--!>|)/g,zW="\u200B$1\u200B";function $W(t){return t.replace(jW,e=>e.replace(HW,zW))}function GW(t){return t.ownerDocument.defaultView}function WW(t){return t.ownerDocument}function qW(t){return t.ownerDocument.body}function ua(t){return t instanceof Function?t():t}function i2(t){return(t??Y(ze)).get(Jn)==="browser"}var ho=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ho||{}),Cb;function Wy(t,e){return Cb(t,e)}function KW(t){Cb===void 0&&(Cb=t())}function nc(t,e,i,n,r){if(n!=null){let s,o=!1;ul(n)?s=n:ha(n)&&(o=!0,n=n[fo]);let l=Mr(n);t===0&&i!==null?r==null?JO(e,i,l):Yu(e,i,l,r||null,!0):t===1&&i!==null?Yu(e,i,l,r||null,!0):t===2?Yy(e,l,o):t===3&&e.destroyNode(l),s!=null&&rq(e,t,s,i,r)}}function WO(t,e){return t.createText(e)}function qO(t,e,i){t.setValue(e,i)}function KO(t,e){return t.createComment($W(e))}function qy(t,e,i){return t.createElement(e,i)}function YW(t,e){YO(t,e),e[fo]=null,e[Mi]=null}function ZW(t,e,i,n,r,s){n[fo]=r,n[Mi]=e,C9(t,n,i,1,r,s)}function YO(t,e){e[uo].changeDetectionScheduler?.notify(8),C9(t,e,e[ht],2,null,null)}function XW(t){let e=t[D5];if(!e)return Ov(t[De],t);for(;e;){let i=null;if(ha(e))i=e[D5];else{let n=e[di];n&&(i=n)}if(!i){for(;e&&!e[ps]&&e!==t;)ha(e)&&Ov(e[De],e),e=e[hi];e===null&&(e=t),ha(e)&&Ov(e[De],e),i=e&&e[ps]}e=i}}function QW(t,e,i,n){let r=di+n,s=i.length;n>0&&(i[r-1][ps]=e),n0&&(t[i-1][ps]=n[ps]);let s=M8(t,di+e);YW(n[De],n);let o=s[ol];o!==null&&o.detachView(s[De]),n[hi]=null,n[ps]=null,n[Xe]&=-129}return n}function b9(t,e){if(!(e[Xe]&256)){let i=e[ht];i.destroyNode&&C9(t,e,i,3,null,null),XW(e)}}function Ov(t,e){if(e[Xe]&256)return;let i=dt(null);try{e[Xe]&=-129,e[Xe]|=256,e[Rr]&&M6(e[Rr]),eq(t,e),JW(t,e),e[De].type===1&&e[ht].destroy();let n=e[zu];if(n!==null&&ul(e[hi])){n!==e[hi]&&Ky(n,e);let r=e[ol];r!==null&&r.detachView(t)}fW(e)}finally{dt(i)}}function JW(t,e){let i=t.cleanup,n=e[L8];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[L8]=null);let r=e[da];if(r!==null){e[da]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===ms.None||s===ms.Emulated)return null}return gr(n,i)}}function Yu(t,e,i,n,r){t.insertBefore(e,i,n,r)}function JO(t,e,i){t.appendChild(e,i)}function PA(t,e,i,n,r){n!==null?Yu(t,e,i,n,r):JO(t,e,i)}function tq(t,e,i,n){t.removeChild(e,i,n)}function y9(t,e){return t.parentNode(e)}function nq(t,e){return t.nextSibling(e)}function eR(t,e,i){return nR(t,e,i)}function tR(t,e,i){return t.type&40?gr(t,i):null}var nR=tR,Ib;function iR(t,e){nR=t,Ib=e}function E9(t,e,i,n){let r=XO(t,n,e),s=e[ht],o=n.parent||e[Mi],l=eR(o,n,e);if(r!=null)if(Array.isArray(i))for(let a=0;aPt&&aR(t,e,Pt,!1),so(o?2:0,r),i(n,r)}finally{Wu(s),so(o?3:1,r)}}function Jy(t,e,i){if(xy(e)){let n=dt(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function hq(t,e,i,n){let r=gR(e);r.push(i),t.firstCreatePass&&_R(t).push(n,r.length-1)}function fq(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,l=0;return iO()&&(l|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function LA(t,e,i,n,r){for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s];if(o===void 0)continue;n??={};let l,a=fa.None;Array.isArray(o)?(l=o[0],a=o[1]):l=o;let u=s;if(r!==null){if(!r.hasOwnProperty(s))continue;u=r[s]}t===0?FA(n,i,u,l,a):FA(n,i,u,l)}return n}function FA(t,e,i,n,r){let s;t.hasOwnProperty(i)?(s=t[i]).push(e,n):s=t[i]=[e,n],r!==void 0&&s.push(r)}function pq(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,l=[],a=null,u=null;for(let c=n;c0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function bq(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;c9(i)&&wq(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||H8(i,e),co(n,e);let o=i.initialInputs;for(let l=r;l{h9(t.lView)},consumerOnSignalRead(){this.lView[Rr]=this}});function Fq(t){let e=t[Rr]??Object.create(Vq);return e.lView=t,e}var Vq=ee(b({},B3),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Gu(t.lView);for(;e&&!ER(e[De]);)e=Gu(e);e&&JD(e)},consumerOnSignalRead(){this.lView[Rr]=this}});function ER(t){return t.type!==2}var Bq=100;function CR(t,e=!0,i=0){let n=t[uo],r=n.rendererFactory,s=!1;s||r.begin?.();try{Uq(t,i)}catch(o){throw e&&S9(t,o),o}finally{s||(r.end?.(),n.inlineEffectRunner?.flush())}}function Uq(t,e){let i=oO();try{CA(!0),xb(t,e);let n=0;for(;O5(t);){if(n===Bq)throw new se(103,!1);n++,xb(t,1)}}finally{CA(i)}}function jq(t,e,i,n){let r=e[Xe];if((r&256)===256)return;let s=!1,o=!1;!s&&e[uo].inlineEffectRunner?.flush(),Ny(e);let l=!0,a=null,u=null;s||(ER(t)?(u=kq(e),a=u5(u)):px()===null?(l=!1,u=Fq(e),a=u5(u)):e[Rr]&&(M6(e[Rr]),e[Rr]=null));try{QD(e),lO(t.bindingStartIndex),i!==null&&cR(t,e,i,2,n);let c=(r&3)===3;if(!s)if(c){let f=t.preOrderCheckHooks;f!==null&&S8(e,f,null)}else{let f=t.preOrderHooks;f!==null&&w8(e,f,0,null),wv(e,0)}if(o||Hq(e),IR(e,0),t.contentQueries!==null&&mR(t,e),!s)if(c){let f=t.contentCheckHooks;f!==null&&S8(e,f)}else{let f=t.contentHooks;f!==null&&w8(e,f,1),wv(e,1)}lq(t,e);let d=t.components;d!==null&&SR(e,d,0);let h=t.viewQuery;if(h!==null&&wb(2,h,n),!s)if(c){let f=t.viewCheckHooks;f!==null&&S8(e,f)}else{let f=t.viewHooks;f!==null&&w8(e,f,2),wv(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[T8]){for(let f of e[T8])f();e[T8]=null}s||(e[Xe]&=-73)}catch(c){throw s||h9(e),c}finally{u!==null&&(O6(u,a),l&&Pq(u)),Py()}}function IR(t,e){for(let i=DO(t);i!==null;i=OO(i))for(let n=di;n-1&&(M5(e,n),M8(i,n))}this._attachedToViewContainer=!1}b9(this._lView[De],this._lView)}onDestroy(e){f9(this._lView,e)}markForCheck(){w9(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Xe]&=-129}reattach(){rb(this._lView),this._lView[Xe]|=128}detectChanges(){this._lView[Xe]|=1024,CR(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=tb(this._lView),i=this._lView[zu];i!==null&&!e&&Ky(i,this._lView),YO(this._lView[De],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new se(902,!1);this._appRef=e;let i=tb(this._lView),n=this._lView[zu];n!==null&&!i&&ZO(n,this._lView),rb(this._lView)}},xt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Wq;let t=e;return t})(),$q=xt,Gq=class extends $q{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=yc(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new Xu(r)}};function Wq(){return x9(zt(),$())}function x9(t,e){return t.type&4?new Gq(e,t,gc(t,e)):null}function wR(t,e,i){let n=e.insertBeforeIndex,r=Array.isArray(n)?n[0]:n;return r===null?tR(t,e,i):Mr(i[r])}function xR(t,e,i,n,r){let s=e.insertBeforeIndex;if(Array.isArray(s)){let o=n,l=null;if(e.type&3||(l=o,o=r),o!==null&&e.componentOffset===-1)for(let a=1;a1)for(let i=t.length-2;i>=0;i--){let n=t[i];DR(n)||qq(n,e)&&Kq(n)===null&&Yq(n,e.index)}}function DR(t){return!(t.type&64)}function qq(t,e){return DR(e)||t.index>e.index}function Kq(t){let e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Yq(t,e){let i=t.insertBeforeIndex;Array.isArray(i)?i[0]=e:(iR(wR,xR),t.insertBeforeIndex=e)}function v5(t,e){let i=t.data[e];return i===null||typeof i=="string"?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function Zq(t,e,i){let n=t.data[e];n===null?t.data[e]=i:n.value=i}function Xq(t,e){let i=t.insertBeforeIndex;i===null?(iR(wR,xR),i=t.insertBeforeIndex=[null,e]):(v$(Array.isArray(i),!0,"Expecting array here"),i.push(e))}function Qq(t,e,i){let n=Qy(t,i,64,null,null);return AR(e,n),n}function A9(t,e){let i=e[t.currentCaseLViewIndex];return i===null?i:i<0?~i:i}function Jq(t){return t>>>17}function eK(t){return(t&131070)>>>1}function tK(t,e,i){return t|e<<17|i<<1}function nK(t){return t===-1}function OR(t,e,i){t.index=0;let n=A9(e,i);n!==null?t.removes=e.remove[n]:t.removes=vn}function Ab(t){if(t.index0)return t.lView[e];{t.stack.push(t.index,t.removes);let i=~e,n=t.lView[De].data[i];return OR(t,n,t.lView),Ab(t)}}else return t.stack.length===0?null:(t.removes=t.stack.pop(),t.index=t.stack.pop(),Ab(t))}function iK(){let t={stack:[],index:-1};function e(i,n){for(t.lView=n;t.stack.length;)t.stack.pop();return OR(t,i.value,n),Ab.bind(null,t)}return e}var $_e=new RegExp(`^(\\d+)*(${gW}|${mW})*(.*)`);var rK=()=>{};function sK(t,e,i,n){rK(t,e,i,n)}var oK=()=>{};function lK(t,e,i){oK(t,e,i)}var aK=()=>null;function Qu(t,e){return aK(t,e)}var cc=class{},RR=new Z("",{providedIn:"root",factory:()=>!1});var MR=new Z(""),Db=class{},$8=class{};function uK(t){let e=Error(`No component factory found for ${ui(t)}.`);return e[cK]=t,e}var cK="ngComponent";var Ob=class{resolveComponentFactory(e){throw uK(e)}},xE=class xE{};xE.NULL=new Ob;var pr=xE,ma=class{},Pi=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>dK();let t=e;return t})();function dK(){let t=$(),e=zt(),i=_a(e.index,t);return(ha(i)?i:t)[ht]}var hK=(()=>{let e=class e{};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var VA=new Set;function vr(t){VA.has(t)||(VA.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function kR(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof Nn.requestAnimationFrame=="function"&&Nn.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function BA(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function UA(...t){}var le=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Se(!1),this.onMicrotaskEmpty=new Se(!1),this.onStable=new Se(!1),this.onError=new Se(!1),typeof Zone>"u")throw new se(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.callbackScheduled=!1,mK(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new se(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new se(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,fK,UA,UA);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},fK={};function aE(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function pK(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{kR(()=>{t.callbackScheduled=!1,Rb(t),t.isCheckStableRunning=!0,aE(t),t.isCheckStableRunning=!1})}),Rb(t))}function mK(t){let e=()=>{pK(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,l)=>{if(gK(l))return i.invokeTask(r,s,o,l);try{return jA(t),i.invokeTask(r,s,o,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),HA(t)}},onInvoke:(i,n,r,s,o,l,a)=>{try{return jA(t),i.invoke(r,s,o,l,a)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_K(l)&&e(),HA(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Rb(t),aE(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Rb(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jA(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function HA(t){t._nesting--,aE(t)}var G8=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Se,this.onMicrotaskEmpty=new Se,this.onStable=new Se,this.onError=new Se}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function gK(t){return NR(t,"__ignore_ng_zone__")}function _K(t){return NR(t,"__scheduler_tick__")}function NR(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function vK(t="zone.js",e){return t==="noop"?new G8:t==="zone.js"?new le(e):t}var Di=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Di||{}),PR={destroy(){}};function zA(t,e){let i=e?.injector??Y(ze);if(!e?.runOnServer&&!i2(i))return;i.get(D9).internalCallbacks.push(t)}function uE(t,e){!e&&Sy(uE);let i=e?.injector??Y(ze);return i2(i)?(vr("NgAfterRender"),LR(t,i,!1,e?.phase??Di.MixedReadWrite)):PR}function Es(t,e){!e&&Sy(Es);let i=e?.injector??Y(ze);return i2(i)?(vr("NgAfterNextRender"),LR(t,i,!0,e?.phase??Di.MixedReadWrite)):PR}function bK(t,e){if(t instanceof Function)switch(e){case Di.EarlyRead:return{earlyRead:t};case Di.Write:return{write:t};case Di.MixedReadWrite:return{mixedReadWrite:t};case Di.Read:return{read:t}}return t}function LR(t,e,i,n){let r=bK(t,n),s=e.get(D9),o=s.handler??=new kb,l=[],a=[],u=()=>{for(let f of a)o.unregister(f);c()},c=e.get(_9).onDestroy(u),d=0,h=(f,p)=>{if(!p)return;let v=i?(...C)=>(d--,d<1&&u(),p(...C)):p,E=Ty(e,()=>new Mb(f,l,v));o.register(E),a.push(E),d++};return h(Di.EarlyRead,r.earlyRead),h(Di.Write,r.write),h(Di.MixedReadWrite,r.mixedReadWrite),h(Di.Read,r.read),{destroy:u}}var Mb=class{constructor(e,i,n){this.phase=e,this.pipelinedArgs=i,this.callbackFn=n,this.zone=Y(le),this.errorHandler=Y(Zi,{optional:!0}),Y(cc,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},kb=class{constructor(){this.executingCallbacks=!1,this.buckets={[Di.EarlyRead]:new Set,[Di.Write]:new Set,[Di.MixedReadWrite]:new Set,[Di.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},D9=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function FR(t){return t.ngModule!==void 0}function Bu(t){return!!ao(t)}function _8(t){return!!fr(t)}function $A(t){return!!hr(t)}function b5(t){return!!Cn(t)}function yK(t){return Cn(t)?"component":hr(t)?"directive":fr(t)?"pipe":"type"}function EK(t,e){if(r9(t)&&(t=Yt(t),!t))throw new Error(`Expected forwardRef function, imported from "${ro(e)}", to return a standalone entity or NgModule but got "${ro(t)||t}".`);if(ao(t)==null){let i=Cn(t)||hr(t)||fr(t);if(i!=null){if(!i.standalone)throw new Error(`The "${ro(t)}" ${yK(t)}, imported from "${ro(e)}", is not standalone. Did you forget to add the standalone: true flag?`)}else throw FR(t)?new Error(`A module with providers was imported from "${ro(e)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${ro(t)}" type, imported from "${ro(e)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var Nb=!0,Pb=class{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let e of this.ngModulesWithSomeUnresolvedDecls){let i=ao(e);if(i?.declarations)for(let n of ua(i.declarations))b5(n)&&this.ownerNgModule.set(n,e)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(e,i){this.resolveNgModulesDecls();let n=Cn(e);if(n===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${e}`);if(n.standalone){let r=this.getStandaloneComponentScope(e,i);return r.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...r.compilation.directives,...r.compilation.pipes,...r.compilation.ngModules]}}else{if(!this.ownerNgModule.has(e))return{dependencies:[]};let r=this.getNgModuleScope(this.ownerNgModule.get(e));return r.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...r.compilation.directives,...r.compilation.pipes]}}}registerNgModule(e,i){if(!Bu(e))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${e}`);this.ngModulesWithSomeUnresolvedDecls.add(e)}clearScopeCacheFor(e){this.ngModulesScopeCache.delete(e),this.standaloneComponentsScopeCache.delete(e)}getNgModuleScope(e){if(this.ngModulesScopeCache.has(e))return this.ngModulesScopeCache.get(e);let i=this.computeNgModuleScope(e);return this.ngModulesScopeCache.set(e,i),i}computeNgModuleScope(e){let i=ao(e,!0),n={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let r of ua(i.imports))if(Bu(r)){let s=this.getNgModuleScope(r);la(s.exported.directives,n.compilation.directives),la(s.exported.pipes,n.compilation.pipes)}else if(N8(r))if($A(r)||b5(r))n.compilation.directives.add(r);else if(_8(r))n.compilation.pipes.add(r);else throw new se(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");else{n.compilation.isPoisoned=!0;break}if(!n.compilation.isPoisoned)for(let r of ua(i.declarations)){if(Bu(r)||N8(r)){n.compilation.isPoisoned=!0;break}_8(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}for(let r of ua(i.exports))if(Bu(r)){let s=this.getNgModuleScope(r);la(s.exported.directives,n.exported.directives),la(s.exported.pipes,n.exported.pipes),la(s.exported.directives,n.compilation.directives),la(s.exported.pipes,n.compilation.pipes)}else _8(r)?n.exported.pipes.add(r):n.exported.directives.add(r);return n}getStandaloneComponentScope(e,i){if(this.standaloneComponentsScopeCache.has(e))return this.standaloneComponentsScopeCache.get(e);let n=this.computeStandaloneComponentScope(e,i);return this.standaloneComponentsScopeCache.set(e,n),n}computeStandaloneComponentScope(e,i){let n={compilation:{directives:new Set([e]),pipes:new Set,ngModules:new Set}};for(let r of z5(i??[])){let s=Yt(r);try{EK(s,e)}catch{return n.compilation.isPoisoned=!0,n}if(Bu(s)){n.compilation.ngModules.add(s);let o=this.getNgModuleScope(s);if(o.exported.isPoisoned)return n.compilation.isPoisoned=!0,n;la(o.exported.directives,n.compilation.directives),la(o.exported.pipes,n.compilation.pipes)}else if(_8(s))n.compilation.pipes.add(s);else if($A(s)||b5(s))n.compilation.directives.add(s);else return n.compilation.isPoisoned=!0,n}return n}isOrphanComponent(e){let i=Cn(e);return!i||i.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(e))}};function la(t,e){for(let i of t)e.add(i)}var k5=new Pb;function W8(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(e!==null)for(let o=0;o0&&oR(t,i,s.join(" "))}}function AK(t,e,i){let n=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=OK;let t=e;return t})();function OK(){let t=zt();return BR(t,$())}var RK=Bt,VR=class extends RK{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return gc(this._hostTNode,this._hostLView)}get injector(){return new ju(this._hostTNode,this._hostLView)}get parentInjector(){let e=Fy(this._hostTNode,this._hostLView);if(gO(e)){let i=U8(e,this._hostLView),n=B8(e),r=i[De].data[n+8];return new ju(r,i)}else return new ju(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=WA(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-di}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=Qu(this._lContainer,e.ssrId),l=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(l,r,Zu(this._hostTNode,o)),l}createComponent(e,i,n,r,s){let o=e&&!p5(e),l;if(o)l=i;else{let p=i||{};l=p.index,n=p.injector,r=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}let a=o?e:new N5(Cn(e)),u=n||this.parentInjector;if(!s&&a.ngModule==null){let v=(o?u:this.parentInjector).get(Oi,null);v&&(s=v)}let c=Cn(a.componentType??{}),d=Qu(this._lContainer,c?.id??null),h=d?.firstChild??null,f=a.create(u,r,h,s);return this.insertImpl(f.hostView,l,Zu(this._hostTNode,d)),f}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(IG(r)){let l=this.indexOf(e);if(l!==-1)this.detach(l);else{let a=r[hi],u=new VR(a,a[Mi],a[hi]);u.detach(u.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return Ec(o,r,s,n),e.attachToViewContainerRef(),MD(Rv(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=WA(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=M5(this._lContainer,i);n&&(M8(Rv(this._lContainer),i),b9(n[De],n))}detach(e){let i=this._adjustIndex(e,-1),n=M5(this._lContainer,i);return n&&M8(Rv(this._lContainer),i)!=null?new Xu(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function WA(t){return t[F8]}function Rv(t){return t[F8]||(t[F8]=[])}function BR(t,e){let i,n=e[t.index];return ul(n)?i=n:(i=pR(n,e,null,t),e[t.index]=i,T9(e,i)),kK(i,e,t,n),new VR(i,t,e)}function MK(t,e){let i=t[ht],n=i.createComment(""),r=gr(e,t),s=y9(i,r);return Yu(i,s,n,nq(i,r),!1),n}var kK=PK,NK=()=>!1;function UR(t,e,i){return NK(t,e,i)}function PK(t,e,i,n){if(t[$u])return;let r;i.type&8?r=Mr(n):r=MK(e,i),t[$u]=r}var Fb=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Vb=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[l/2]);else{let u=s[l+1],c=e[-a];for(let d=di;de.trim())}function WR(t,e,i){t.queries===null&&(t.queries=new Bb),t.queries.track(new Ub(e,i))}function jK(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function cE(t,e){return t.queries.getByIndex(e)}function HK(t,e){let i=t[De],n=cE(i,e);return n.crossesNgTemplate?jb(i,t,e,[]):jR(i,t,n,e)}function O9(t){return typeof t=="function"&&t[Ar]!==void 0}function ba(t,e){vr("NgSignals");let i=wx(t),n=i[Ar];return e?.equal&&(n.equal=e.equal),i.set=r=>P6(n,r),i.update=r=>xx(n,r),i.asReadonly=zK.bind(i),i}function zK(){let t=this[Ar];if(t.readonlyFn===void 0){let e=()=>this();e[Ar]=t,t.readonlyFn=e}return t.readonlyFn}function qR(t){return O9(t)&&typeof t.set=="function"}function KR(t,e){let i=t[Ar];i._lView=$(),i._queryIndex=e,i._queryList=HR(i._lView,e),i._queryList.onDirty(()=>i._dirtyCounter.update(n=>n+1))}function $K(t){let e=[],i=new Map;function n(r){let s=i.get(r);if(!s){let o=t(r);i.set(r,s=o.then(KK))}return s}return P5.forEach((r,s)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(u=>{r.template=u}));let l=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=l,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let u=r.styles.length,c=r.styleUrls;r.styleUrls.forEach((d,h)=>{l.push(""),o.push(n(d).then(f=>{l[u+h]=f,c.splice(c.indexOf(d),1),c.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(u=>{l.push(u),r.styleUrl=void 0}));let a=Promise.all(o).then(()=>YK(s));e.push(a)}),WK(),Promise.all(e).then(()=>{})}var P5=new Map,YR=new Set;function GK(t,e){ZR(e)&&(P5.set(t,e),YR.add(t))}function ZR(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length||t.styleUrl)}function WK(){let t=P5;return P5=new Map,t}function qK(){return P5.size===0}function KK(t){return typeof t=="string"?t:t.text()}function YK(t){YR.delete(t)}var qA=new Map,ZK=!0;function XK(t,e,i){if(e&&e!==i&&ZK)throw new Error(`Duplicate module registered for ${t} - ${ui(e)} vs ${ui(e.name)}`)}function QK(t,e){let i=qA.get(e)||null;XK(e,i,t),qA.set(e,t)}function JK(t,e,i){let n=$(),r=tn(),s=gr(r,n);if(r.type===2&&e.toLowerCase()==="iframe"){let o=s;o.src="",o.srcdoc=vc(""),Yy(n[ht],o);let l=!1;throw new se(-910,l)}return t}function XR(t){return Object.getPrototypeOf(t.prototype).constructor}function At(t){let e=XR(t.type),i=!0,n=[t];for(;e;){let r;if(gs(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new se(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let o=t;o.inputs=v8(t.inputs),o.inputTransforms=v8(t.inputTransforms),o.declaredInputs=v8(t.declaredInputs),o.outputs=v8(t.outputs);let l=r.hostBindings;l&&rY(t,l);let a=r.viewQuery,u=r.contentQueries;if(a&&nY(t,a),u&&iY(t,u),eY(t,r),g$(t.outputs,r.outputs),gs(r)&&r.data.animation){let c=t.data;c.animation=(c.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=x5(r.hostAttrs,i=x5(i,r.hostAttrs))}}function v8(t){return t===lo?{}:t===vn?[]:t}function nY(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function iY(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function rY(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}var sY=["providersResolver"],oY=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function lY(t){let e=XR(t.type),i;gs(t)?i=e.\u0275cmp:i=e.\u0275dir;let n=t;for(let r of sY)n[r]=i[r];if(gs(i))for(let r of oY)n[r]=i[r]}function dE(t){let e=i=>{let n=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:Yt(r),inputs:lo,outputs:lo}:{directive:Yt(r.directive),inputs:KA(r.inputs),outputs:KA(r.outputs)});i.hostDirectives===null?(i.findHostDirectiveDefs=QR,i.hostDirectives=n):i.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function QR(t,e,i){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let r=hr(n.directive);aY(r.declaredInputs,n.inputs),QR(r,e,i),i.set(r,n),e.push(r)}}function KA(t){if(t===void 0||t.length===0)return lo;let e={};for(let i=0;ii()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},zb=class extends Hb{constructor(e){super(),this.moduleType=e}create(e){return new Y8(this.moduleType,e,[])}};function uY(t,e,i){return new Y8(t,e,i)}var $b=class extends ga{constructor(e){super(),this.componentFactoryResolver=new q8(this),this.instance=null;let i=new A5([...e.providers,{provide:ga,useValue:this},{provide:pr,useValue:this.componentFactoryResolver}],e.parent||a9(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function JR(t,e,i=null){return new $b({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var cY=(()=>{let e=class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,r,s,o){if(!this.cachedInjectors.has(n)){let l=s.length>0?JR(s,r,o):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=q({token:e,providedIn:"environment",factory:()=>new e});let t=e;return t})();function eM(t){return hE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function dY(t,e){if(Array.isArray(t))for(let i=0;i{for(let e of this.callbacks)e()}}};function oM(t,e){let i=kv.get(t);if(!i){i=new V5,kv.set(t,i);for(let n of XA)t.addEventListener(n,i.listener,Z8)}return i.callbacks.add(e),()=>{let{callbacks:n,listener:r}=i;if(n.delete(e),n.size===0){kv.delete(t);for(let s of XA)t.removeEventListener(s,r,Z8)}}}function lM(t,e){let i=Mv.get(t);if(!i){i=new V5,Mv.set(t,i);for(let n of QA)t.addEventListener(n,i.listener,Z8)}return i.callbacks.add(e),()=>{let{callbacks:n,listener:r}=i;if(n.delete(e),n.size===0){for(let s of QA)t.removeEventListener(s,r,Z8);Mv.delete(t)}}}function aM(t,e,i){let n=i.get(le),r=Z3.get(t);return X3=X3||n.runOutsideAngular(()=>new IntersectionObserver(s=>{for(let o of s)o.isIntersecting&&Z3.has(o.target)&&n.run(Z3.get(o.target).listener)})),r||(r=new V5,n.runOutsideAngular(()=>X3.observe(t)),Z3.set(t,r),Nv++),r.callbacks.add(e),()=>{Z3.has(t)&&(r.callbacks.delete(e),r.callbacks.size===0&&(X3?.unobserve(t),Z3.delete(t),Nv--),Nv===0&&(X3?.disconnect(),X3=null))}}function EY(t,e,i){return i==null?t:i>=0?eO(i,t):t[e.index][di]??null}function CY(t,e){return W5(Pt+e,t)}function Cc(t,e,i,n,r,s,o){let l=t[Qn];function a(){if(nb(t))return;let u=s2(t,e),c=u[M9];if(c!==F5.Initial&&c!==xn.Placeholder)return;let d=EY(t,e,n);if(!d){zA(a,{injector:l});return}if(nb(d))return;let h=CY(d,i),f=r(h,()=>{t!==d&&Dy(d,f),s()},l);t!==d&&f9(d,f),k9(o,u,f)}zA(a,{injector:l})}function uM(t,e){let n=e[Qn].get(SY),r=()=>n.remove(t);return n.add(t),r}var IY=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,TY=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,SY=(()=>{let e=class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=Y(le),this.requestIdleCallbackFn=IY().bind(globalThis),this.cancelIdleCallbackFn=TY().bind(globalThis)}add(n){(this.executingCallbacks?this.deferred:this.current).add(n),this.idleId===null&&this.scheduleIdleCallback()}remove(n){let{current:r,deferred:s}=this;r.delete(n),s.delete(n),r.size===0&&s.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let n=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let r of this.current)r();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let r of this.deferred)this.current.add(r);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(n))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function cM(t){return(e,i)=>dM(t,e,i)}function dM(t,e,i){let r=i[Qn].get(wY),s=()=>r.remove(e);return r.add(t,e),s}var wY=(()=>{let e=class e{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(n,r){let s=this.executingCallbacks?this.deferred:this.current;this.addToQueue(s,Date.now()+n,r),this.scheduleTimer()}remove(n){let{current:r,deferred:s}=this;this.removeFromQueue(r,n)===-1&&this.removeFromQueue(s,n),r.length===0&&s.length===0&&this.clearTimeout()}addToQueue(n,r,s){let o=n.length;for(let l=0;lr){o=l;break}kD(n,o,r,s)}removeFromQueue(n,r){let s=-1;for(let o=0;o-1&&gA(n,s,2),s}scheduleTimer(){let n=()=>{this.clearTimeout(),this.executingCallbacks=!0;let s=[...this.current],o=Date.now();for(let a=0;a=0&&gA(this.current,0,l+1),this.executingCallbacks=!1,this.deferred.length>0){for(let a=0;a0){let s=Date.now(),o=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-o>16){this.clearTimeout();let l=Math.max(o-s,16);this.invokeTimerAt=o,this.timeoutId=setTimeout(n,l)}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var xY=new Z("");function fE(t){return t.get(xY,null,{optional:!0})?.behavior===iM.Manual?!1:i2(t)}var qb=null;function AY(t,e,i,n){let r=t.consts;i!=null&&(e.placeholderBlockConfig=kr(r,i)),n!=null&&(e.loadingBlockConfig=kr(r,n)),qb===null&&(qb=GY)}function DY(t,e,i,n,r,s,o,l,a){let u=$(),c=pt(),d=t+Pt,h=L5(u,c,t,null,0,0);if(c.firstCreatePass){vr("NgDefer");let E={primaryTmplIndex:e,loadingTmplIndex:n??null,placeholderTmplIndex:r??null,errorTmplIndex:s??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:i??null,loadingState:kn.NOT_STARTED,loadingPromise:null,providers:null};a?.(c,E,l,o),vY(c,d,E)}let f=u[d];UR(f,h,u);let p=[null,F5.Initial,null,null,null,null];_Y(u,d,p);let v=()=>rM(p);k9(0,p,()=>Dy(u,v)),f9(u,v)}function OY(t){let e=$(),i=bs();if(An(e,i,t)){let n=dt(null);try{let r=!!t,s=tn(),l=s2(e,s)[M9];r===!1&&l===F5.Initial?Ic(e,s):r===!0&&(l===F5.Initial||l===xn.Placeholder)&&Tc(e,s)}finally{dt(n)}}}function RY(t){let e=$(),i=bs();if(An(e,i,t)){let n=dt(null);try{let r=!!t,s=e[De],o=tn(),l=Lr(s,o);r===!0&&l.loadingState===kn.NOT_STARTED&&nh(l,e,o)}finally{dt(n)}}}function MY(){hM(uM)}function kY(){fM(uM)}function NY(){let t=$(),e=zt(),i=t[De],n=t[Qn],r=Lr(i,e);(!fE(n)||r.loadingTmplIndex===null)&&Ic(t,e),Tc(t,e)}function PY(){let t=$(),e=zt(),i=t[De],n=Lr(i,e);n.loadingState===kn.NOT_STARTED&&pE(n,t,e)}function LY(t){hM(cM(t))}function FY(t){fM(cM(t))}function VY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,lM,()=>Tc(i,n),0)}function BY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,lM,()=>nh(s,i,n),1)}function UY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,oM,()=>Tc(i,n),0)}function jY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,oM,()=>nh(s,i,n),1)}function HY(t,e){let i=$(),n=zt();Ic(i,n),Cc(i,n,t,e,aM,()=>Tc(i,n),0)}function zY(t,e){let i=$(),n=zt(),r=i[De],s=Lr(r,n);s.loadingState===kn.NOT_STARTED&&Cc(i,n,t,e,aM,()=>nh(s,i,n),1)}function hM(t){let e=$(),i=zt();if(Ic(e,i),i2(e[Qn])){let n=t(()=>Tc(e,i),e),r=s2(e,i);k9(0,r,n)}}function fM(t){let e=$();if(i2(e[Qn])){let i=zt(),n=e[De],r=Lr(n,i);if(r.loadingState===kn.NOT_STARTED){let s=s2(e,i),l=t(()=>nh(r,e,i),e);k9(1,s,l)}}}function ca(t,e,i,n=!1){let r=i[hi],s=r[De];if(nb(r))return;let o=s2(r,e),l=o[M9];if(eD(l,t)&&eD(o[oc]??-1,t)){let a=r[Qn],u=Lr(s,e),d=!n&&i2(a)&&(sM(u)!==null||Wb(u,xn.Loading)!==null||Wb(u,xn.Placeholder))?qb:pM;try{d(t,o,i,e,r)}catch(h){S9(r,h)}}}function Pv(t,e,i){return t.get(cY).getOrCreateInjector(e,t,i,"")}function $Y(t,e,i){if(t instanceof sc){let r=t.injector,s=t.parentInjector,o=Pv(s,e,i);return new sc(r,o)}let n=t.get(Oi);if(n!==t){let r=Pv(n,e,i);return new sc(t,r)}return Pv(t,e,i)}function pM(t,e,i,n,r){let s=bY(t,r,n);if(s!==null){e[M9]=t;let o=r[De],l=s+Pt,a=q5(o,l),u=0;lE(i,u);let c;if(t===xn.Complete){let f=Lr(o,n),p=f.providers;p&&p.length>0&&(c=$Y(r[Qn],f,p))}let d=Qu(i,a.tView.ssrId),h=yc(r,a,null,{dehydratedView:d,injector:c});Ec(i,h,u,Zu(a,d)),w9(h,2)}}function GY(t,e,i,n,r){let s=Date.now(),o=r[De],l=Lr(o,n);if(e[m5]===null||e[m5]<=s){e[m5]=null;let a=sM(l),u=e[b8]!==null;if(t===xn.Loading&&a!==null&&!u){e[oc]=t;let c=JA(a,e,n,i,r);e[b8]=c}else{t>xn.Loading&&u&&(e[b8](),e[b8]=null,e[oc]=null),pM(t,e,i,n,r);let c=Wb(l,t);c!==null&&(e[m5]=s+c,JA(c,e,n,i,r))}}else e[oc]=t}function JA(t,e,i,n,r){return dM(t,()=>{let o=e[oc];e[m5]=null,e[oc]=null,o!==null&&ca(o,i,n)},r)}function eD(t,e){return t{let d=!1,h=[],f=[];for(let p of c)if(p.status==="fulfilled"){let v=p.value,E=Cn(v)||hr(v);if(E)h.push(E);else{let C=fr(v);C&&f.push(C)}}else{d=!0;break}if(t.loadingPromise=null,a.remove(u),d){if(t.loadingState=kn.FAILED,t.errorTmplIndex===null){let p="",v=new se(750,!1);S9(e,v)}}else{t.loadingState=kn.COMPLETE;let p=o.tView;if(h.length>0){p.directiveRegistry=ZA(p.directiveRegistry,h);let v=h.map(C=>C.type),E=Cy(!1,...v);t.providers=E}f.length>0&&(p.pipeRegistry=ZA(p.pipeRegistry,f))}}),t.loadingPromise):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=kn.COMPLETE,a.remove(u)}),t.loadingPromise)}function Ic(t,e){let i=t[e.index];ca(xn.Placeholder,e,i)}function tD(t,e,i){t.loadingPromise.then(()=>{t.loadingState===kn.COMPLETE?ca(xn.Complete,e,i):t.loadingState===kn.FAILED&&ca(xn.Error,e,i)})}function Tc(t,e){let i=t[De],n=t[e.index],r=t[Qn];if(!fE(r))return;let s=s2(t,e),o=Lr(i,e);switch(rM(s),o.loadingState){case kn.NOT_STARTED:ca(xn.Loading,e,n),pE(o,t,e),o.loadingState===kn.IN_PROGRESS&&tD(o,e,n);break;case kn.IN_PROGRESS:ca(xn.Loading,e,n),tD(o,e,n);break;case kn.COMPLETE:ca(xn.Complete,e,n);break;case kn.FAILED:ca(xn.Error,e,n);break;default:}}function Tt(t,e,i,n){let r=$(),s=bs();if(An(r,s,e)){let o=pt(),l=tn();go(l,r,t,e,i,n)}return Tt}function Sc(t,e){let i=!1,n=cl();for(let s=1;s>17&32767}function WY(t){return(t&2)==2}function qY(t,e){return t&131071|e<<17}function Kb(t){return t|2}function dc(t){return(t&131068)>>2}function Lv(t,e){return t&-131069|e<<2}function KY(t){return(t&1)===1}function Yb(t){return t|1}function YY(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,l=e2(o),a=dc(o);t[n]=i;let u=!1,c;if(Array.isArray(i)){let d=i;c=d[1],(c===null||$5(d,c)>0)&&(u=!0)}else c=i;if(r)if(a!==0){let h=e2(t[l+1]);t[n+1]=y8(h,l),h!==0&&(t[h+1]=Lv(t[h+1],n)),t[l+1]=qY(t[l+1],n)}else t[n+1]=y8(l,0),l!==0&&(t[l+1]=Lv(t[l+1],n)),l=n;else t[n+1]=y8(a,0),l===0?l=n:t[a+1]=Lv(t[a+1],n),a=n;u&&(t[n+1]=Kb(t[n+1])),nD(t,c,n,!0),nD(t,c,n,!1),ZY(e,c,t,n,s),o=y8(l,a),s?e.classBindings=o:e.styleBindings=o}function ZY(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&$5(s,e)>=0&&(i[n+1]=Yb(i[n+1]))}function nD(t,e,i,n){let r=t[i+1],s=e===null,o=n?e2(r):dc(r),l=!1;for(;o!==0&&(l===!1||s);){let a=t[o],u=t[o+1];XY(a,e)&&(l=!0,t[o+1]=n?Yb(u):Kb(u)),o=n?e2(u):dc(u)}l&&(t[i+1]=n?Kb(r):Yb(r))}function XY(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?$5(t,e)>=0:!1}var zn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TM(t){return t.substring(zn.key,zn.keyEnd)}function QY(t){return t.substring(zn.value,zn.valueEnd)}function JY(t){return xM(t),SM(t,hc(t,0,zn.textEnd))}function SM(t,e){let i=zn.textEnd;return i===e?-1:(e=zn.keyEnd=tZ(t,zn.key=e,i),hc(t,e,i))}function eZ(t){return xM(t),wM(t,hc(t,0,zn.textEnd))}function wM(t,e){let i=zn.textEnd,n=zn.key=hc(t,e,i);return i===n?-1:(n=zn.keyEnd=nZ(t,n,i),n=iD(t,n,i,58),n=zn.value=hc(t,n,i),n=zn.valueEnd=iZ(t,n,i),iD(t,n,i,59))}function xM(t){zn.key=0,zn.keyEnd=0,zn.value=0,zn.valueEnd=0,zn.textEnd=t.length}function hc(t,e,i){for(;e32;)e++;return e}function nZ(t,e,i){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function iD(t,e,i,n){return e=hc(t,e,i),e32&&(l=o),s=r,r=n,n=a&-33}return l}function rD(t,e,i,n){let r=-1,s=i;for(;s=0;i=wM(e,i))OM(t,TM(e),QY(e))}function Vr(t){Is(cZ,vo,t,!0)}function vo(t,e){for(let i=JY(e);i>=0;i=SM(e,i))mr(t,TM(e),!0)}function Cs(t,e,i,n){let r=$(),s=pt(),o=dl(2);if(s.firstUpdatePass&&DM(s,t,o,n),e!==tt&&An(r,o,e)){let l=s.data[fi()];RM(s,l,r,r[ht],t,r[o+1]=hZ(e,i),n,o)}}function Is(t,e,i,n){let r=pt(),s=dl(2);r.firstUpdatePass&&DM(r,null,s,n);let o=$();if(i!==tt&&An(o,s,i)){let l=r.data[fi()];if(MM(l,n)&&!AM(r,s)){let a=n?l.classesWithoutHost:l.stylesWithoutHost;a!==null&&(i=Wv(a,i||"")),Zb(r,l,o,i,n)}else dZ(r,l,o,o[ht],o[s+1],o[s+1]=uZ(t,e,i),n,s)}}function AM(t,e){return e>=t.expandoStartIndex}function DM(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[fi()],o=AM(t,i);MM(s,n)&&e===null&&!o&&(e=!1),e=sZ(r,s,e,n),YY(r,s,e,i,o,n)}}function sZ(t,e,i,n){let r=My(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Fv(null,t,e,i,n),i=B5(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Fv(r,t,e,i,n),s===null){let a=oZ(t,e,n);a!==void 0&&Array.isArray(a)&&(a=Fv(null,t,e,a[1],n),a=B5(a,e.attrs,n),lZ(t,e,n,a))}else s=aZ(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function oZ(t,e,i){let n=i?e.classBindings:e.styleBindings;if(dc(n)!==0)return t[e2(n)]}function lZ(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[e2(r)]=n}function aZ(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let a=t[r],u=Array.isArray(a),c=u?a[1]:a,d=c===null,h=i[r+1];h===tt&&(h=d?vn:void 0);let f=d?Iv(h,n):c===n?h:void 0;if(u&&!X8(f)&&(f=Iv(a,n)),X8(f)&&(l=f,o))return l;let p=t[r+1];r=o?e2(p):dc(p)}if(e!==null){let a=s?e.residualClasses:e.residualStyles;a!=null&&(l=Iv(a,n))}return l}function X8(t){return t!==void 0}function hZ(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ui(Ni(t)))),t}function MM(t,e){return(t.flags&(e?8:16))!==0}function fZ(t,e,i){let n=$(),r=wc(n,t,e,i);Is(mr,vo,r,!0)}function pZ(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);Is(mr,vo,o,!0)}function mZ(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);Is(mr,vo,a,!0)}function gZ(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);Is(mr,vo,c,!0)}function _Z(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);Is(mr,vo,h,!0)}function vZ(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);Is(mr,vo,p,!0)}function bZ(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);Is(mr,vo,E,!0)}function yZ(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);Is(mr,vo,P,!0)}function EZ(t){let e=$(),i=Sc(e,t);Is(mr,vo,i,!0)}function CZ(){return $()[Ri][ci]}var Xb=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Vv(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function IZ(t,e,i){let n,r,s=0,o=t.length-1,l=void 0;if(Array.isArray(e)){let a=e.length-1;for(;s<=o&&s<=a;){let u=t.at(s),c=e[s],d=Vv(s,u,s,c,i);if(d!==0){d<0&&t.updateValue(s,c),s++;continue}let h=t.at(o),f=e[a],p=Vv(o,h,a,f,i);if(p!==0){p<0&&t.updateValue(o,f),o--,a--;continue}let v=i(s,u),E=i(o,h),C=i(s,c);if(Object.is(C,E)){let P=i(a,f);Object.is(P,v)?(t.swap(s,o),t.updateValue(o,f),a--,o--):t.move(o,s),t.updateValue(s,c),s++;continue}if(n??=new Q8,r??=lD(t,s,o,i),Qb(t,n,s,C))t.updateValue(s,c),s++,o++;else if(r.has(C))n.set(v,t.detach(s)),o--;else{let P=t.create(s,e[s]);t.attach(s,P),s++,o++}}for(;s<=a;)oD(t,n,i,s,e[s]),s++}else if(e!=null){let a=e[Symbol.iterator](),u=a.next();for(;!u.done&&s<=o;){let c=t.at(s),d=u.value,h=Vv(s,c,s,d,i);if(h!==0)h<0&&t.updateValue(s,d),s++,u=a.next();else{n??=new Q8,r??=lD(t,s,o,i);let f=i(s,d);if(Qb(t,n,s,f))t.updateValue(s,d),s++,o++,u=a.next();else if(!r.has(f))t.attach(s,t.create(s,d)),s++,o++,u=a.next();else{let p=i(s,c);n.set(p,t.detach(s)),o--}}}for(;!u.done;)oD(t,n,i,t.length,u.value),u=a.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(a=>{t.destroy(a)})}function Qb(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function oD(t,e,i,n,r){if(Qb(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function lD(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Q8=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function Pn(t,e){vr("NgControlFlow");let i=$(),n=bs(),r=i[n]!==tt?i[n]:-1,s=r!==-1?J8(i,Pt+r):void 0,o=0;if(An(i,n,t)){let l=dt(null);try{if(s!==void 0&&lE(s,o),t!==-1){let a=Pt+t,u=J8(i,a),c=ny(i[De],a),d=Qu(u,c.tView.ssrId),h=yc(i,c,e,{dehydratedView:d});Ec(u,h,o,Zu(c,d))}}finally{dt(l)}}else if(s!==void 0){let l=bR(s,o);l!==void 0&&(l[ci]=e)}}var Jb=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-di}};function TZ(t){return t}function P9(t,e){return e}var ey=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function o2(t,e,i,n,r,s,o,l,a,u,c,d,h){vr("NgControlFlow");let f=$(),p=pt(),v=a!==void 0,E=$(),C=l?o.bind(E[Ri][ci]):o,P=new ey(v,C);E[Pt+t]=P,L5(f,p,t+1,e,i,n,r,kr(p.consts,s)),v&&L5(f,p,t+2,a,u,c,d,kr(p.consts,h))}var ty=class extends Xb{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-di}at(e){return this.getLView(e)[ci].$implicit}attach(e,i){let n=i[ac];this.needsIndexUpdate||=e!==this.length,Ec(this.lContainer,i,e,Zu(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,SZ(this.lContainer,e)}create(e,i){let n=Qu(this.lContainer,this.templateTNode.tView.ssrId),r=yc(this.hostLView,this.templateTNode,new Jb(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){b9(e[De],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ci].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Y5(!0),qy(n,r,VG()));function DZ(t,e,i,n,r){let s=e.consts,o=kr(s,n),l=r2(e,t,8,"ng-container",o);o!==null&&W8(l,o,!0);let a=kr(s,r);return iE(e,i,l,a),e.queries!==null&&e.queries.elementStart(e,l),l}function ya(t,e,i){let n=$(),r=pt(),s=t+Pt,o=r.firstCreatePass?DZ(s,r,n,e,i):r.data[s];_s(o,!0);let l=OZ(r,n,o,t);return n[s]=l,K5()&&E9(r,n,l,o),co(l,n),d9(o)&&(eE(r,n,o),Jy(r,o,n)),i!=null&&tE(n,o),ya}function Ea(){let t=zt(),e=pt();return Oy()?Ry():(t=t.parent,_s(t,!1)),e.firstCreatePass&&(g9(e,t),xy(t)&&e.queries.elementEnd(t)),Ea}function Dn(t,e,i){return ya(t,e,i),Ea(),Dn}var OZ=(t,e,i,n)=>(Y5(!0),KO(e[ht],""));function mt(){return $()}function Nc(t,e,i){let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn();Qi(s,o,n,t,e,n[ht],i,!0)}return Nc}function L9(t,e,i){let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn(),l=My(s.data),a=vR(l,o,n);Qi(s,o,n,t,e,a,i,!0)}return L9}var Vu=void 0;function RZ(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var MZ=["en",[["a","p"],["AM","PM"],Vu],[["AM","PM"],Vu,Vu],[["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"]],Vu,[["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"]],Vu,[["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}",Vu,"{1} 'at' {0}",Vu],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",RZ],Bv={};function kM(t){let e=kZ(t),i=aD(e);if(i)return i;let n=e.split("-")[0];if(i=aD(n),i)return i;if(n==="en")return MZ;throw new se(701,!1)}function NM(t){return kM(t)[mE.PluralCase]}function aD(t){return t in Bv||(Bv[t]=Nn.ng&&Nn.ng.common&&Nn.ng.common.locales&&Nn.ng.common.locales[t]),Bv[t]}var mE=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(mE||{});function kZ(t){return t.toLowerCase().replace(/_/g,"-")}var NZ=["zero","one","two","few","many"];function PZ(t,e){let i=NM(e)(parseInt(t,10)),n=NZ[i];return n!==void 0?n:"other"}var e9="en-US";var PM={marker:"element"},LM={marker:"ICU"},sl=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(sl||{}),FM=e9;function LZ(t){typeof t=="string"&&(FM=t.toLowerCase().replace(/_/g,"-"))}function FZ(){return FM}var U5=0,y5=0;function VZ(t){t&&(U5=U5|1<0){let n=t.data[i],r=Array.isArray(n)?n:n.update,s=cl()-y5-1;BM(t,e,r,s,U5)}U5=0,y5=0}function UZ(t,e,i){let n=t[ht];switch(i){case Node.COMMENT_NODE:return KO(n,e);case Node.TEXT_NODE:return WO(n,e);case Node.ELEMENT_NODE:return qy(n,e,null)}}var D8=(t,e,i,n)=>(Y5(!0),UZ(t,i,n));function jZ(t,e,i,n){let r=t[ht];for(let s=0;s>>sl.SHIFT,d=t[c],h=!1;d===null&&(d=t[c]=D8(t,c,l,a?Node.COMMENT_NODE:Node.TEXT_NODE),h=K5()),u&&i!==null&&h&&Yu(r,i,d,n,!1)}}function VM(t,e,i,n){let r=i[ht],s=null,o;for(let l=0;l>>1,f=e[++l],p=e[++l];rE(r,W5(h,i),null,null,f,p,null);break;default:}else switch(a){case LM:let u=e[++l],c=e[++l];if(i[c]===null){let f=i[c]=D8(i,c,u,Node.COMMENT_NODE);co(f,i)}break;case PM:let d=e[++l],h=e[++l];if(i[h]===null){let f=i[h]=D8(i,h,d,Node.ELEMENT_NODE);co(f,i)}break;default:}}}function BM(t,e,i,n,r){for(let s=0;s>>2;switch(c&3){case 1:let h=i[++u],f=i[++u],p=t.data[d];typeof p=="string"?rE(e[ht],e[d],null,p,h,a,f):Qi(t,p,e,h,a,e[ht],f,!1);break;case 0:let v=e[d];v!==null&&qO(e[ht],v,a);break;case 2:HZ(t,v5(t,d),e,a);break;case 3:uD(t,v5(t,d),n,e);break}}}}else{let a=i[s+1];if(a>0&&(a&3)===3){let u=a>>>2,c=v5(t,u);e[c.currentCaseLViewIndex]<0&&uD(t,c,n,e)}}s+=l}}function uD(t,e,i,n){let r=n[e.currentCaseLViewIndex];if(r!==null){let s=U5;r<0&&(r=n[e.currentCaseLViewIndex]=~r,s=-1),BM(t,n,e.update[r],i,s)}}function HZ(t,e,i,n){let r=zZ(e,n);if(A9(e,i)!==r&&(UM(t,e,i),i[e.currentCaseLViewIndex]=r===null?null:~r,r!==null)){let o=i[e.anchorIdx];o&&VM(t,e.create[r],i,o),lK(i,e.anchorIdx,r)}}function UM(t,e,i){let n=A9(e,i);if(n!==null){let r=e.remove[n];for(let s=0;s0){let l=W5(o,i);l!==null&&Yy(i[ht],l)}else UM(t,v5(t,~o),i)}}}function zZ(t,e){let i=t.cases.indexOf(e);if(i===-1)switch(t.type){case 1:{let n=PZ(e,FZ());i=t.cases.indexOf(n),i===-1&&n!=="other"&&(i=t.cases.indexOf("other"));break}case 0:{i=t.cases.indexOf("other");break}}return i===-1?null:i}var t9=/�(\d+):?\d*�/gi,$Z=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,GZ=/�(\d+)�/,jM=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,E5="\uFFFD",WZ=/�\/?\*(\d+:\d+)�/gi,qZ=/�(\/?[#*]\d+):?\d*�/gi,KZ=/\uE500/g;function YZ(t){return t.replace(KZ," ")}function ZZ(t,e,i,n,r,s){let o=R5(),l=[],a=[],u=[[]],c=[[]];r=eX(r,s);let d=YZ(r).split(qZ);for(let h=0;h`}}let p=[];c.push(p),l=nX(p,e,a,i,n,r,s.cases[d],h.join(""),f)|l}l&&sX(n,l,o),t.push({kind:3,index:o,cases:c,currentCaseLViewIndex:a.currentCaseLViewIndex})}function tX(t){let e=[],i=[],n=1,r=0;t=t.replace(jM,function(o,l,a){return a==="select"?n=0:n=1,r=parseInt(l.slice(1),10),""});let s=iy(t);for(let o=0;oi.length&&i.push(a)}return{type:n,mainBinding:r,cases:e,values:i}}function iy(t){if(!t)return[];let e=0,i=[],n=[],r=/[{}]/g;r.lastIndex=0;let s;for(;s=r.exec(t);){let l=s.index;if(s[0]=="}"){if(i.pop(),i.length==0){let a=t.substring(e,l);jM.test(a)?n.push(tX(a)):n.push(a),e=l+1}}else{if(i.length==0){let a=t.substring(e,l);n.push(a),e=l+1}i.push("{")}}let o=t.substring(e);return n.push(o),n}function nX(t,e,i,n,r,s,o,l,a){let u=[],c=[],d=[];i.cases.push(o),i.create.push(u),i.remove.push(c),i.update.push(d);let f=UO(By()).getInertBodyElement(l),p=Eb(f)||f;return p?GM(t,e,i,n,r,u,c,d,p,s,a,0):0}function GM(t,e,i,n,r,s,o,l,a,u,c,d){let h=0,f=a.firstChild;for(;f;){let p=eh(e,n,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:let v=f,E=v.tagName.toLowerCase();if(bb.hasOwnProperty(E)){Uv(s,PM,E,u,p),e.data[p]=E;let L=v.attributes;for(let V=0;V{let a=o||l,u=n[a]||[];if(u.length||(a.split("|").forEach(v=>{let E=v.match(fX),C=E?parseInt(E[1],10):hD,P=hX.test(v);u.push([C,P,v])}),n[a]=u),!u.length)throw new Error(`i18n postprocess: unmatched placeholder - ${a}`);let c=r[r.length-1],d=0;for(let v=0;ve.hasOwnProperty(s)?`${r}${e[s]}${a}`:n),i=i.replace(cX,(n,r)=>e.hasOwnProperty(r)?e[r]:n),i=i.replace(dX,(n,r)=>{if(e.hasOwnProperty(r)){let s=e[r];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${n} with key: ${r}`);return s.shift()}return n})),i}function WM(t,e,i=-1){let n=pt(),r=$(),s=Pt+t,o=kr(n.consts,e),l=R5();if(n.firstCreatePass&&ZZ(n,l===null?0:l.index,r,s,o,i),n.type===2){let h=r[Ri];h[Xe]|=32}else r[Xe]|=32;let a=n.data[s],u=l===r[Mi]?null:l,c=QO(n,u,r),d=l&&l.type&8?r[l.index]:null;sK(r,s,l,i),jZ(r,a.create,c,d),aO(!0)}function qM(){aO(!1)}function mX(t,e,i){WM(t,e,i),qM()}function gX(t,e){let i=pt(),n=kr(i.consts,e);QZ(i,t+Pt,n)}function KM(t){let e=$();return VZ(An(e,bs(),t)),KM}function _X(t){BZ(pt(),$(),t+Pt)}function vX(t,e={}){return pX(t,e)}var bX=(t,e,i)=>{};function be(t,e,i,n){let r=$(),s=pt(),o=zt();return gE(s,r,r[ht],o,t,e,n),be}function F9(t,e){let i=zt(),n=$(),r=pt(),s=My(r.data),o=vR(s,i,n);return gE(r,n,o,i,t,e),F9}function yX(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sa?l[a]:null}typeof o=="string"&&(s+=2)}return null}function gE(t,e,i,n,r,s,o){let l=d9(n),u=t.firstCreatePass&&_R(t),c=e[ci],d=gR(e),h=!0;if(n.type&3||o){let v=gr(n,e),E=o?o(v):v,C=d.length,P=o?L=>o(Mr(L[n.index])):n.index,U=null;if(!o&&l&&(U=yX(t,e,r,n.index)),U!==null){let L=U.__ngLastListenerFn__||U;L.__ngNextListenerFn__=s,U.__ngLastListenerFn__=s,h=!1}else{s=pD(n,e,c,s),bX(v,r,s);let L=i.listen(E,r,s);d.push(s,L),u&&u.push(r,P,C,C+1)}}else s=pD(n,e,c,s);let f=n.outputs,p;if(h&&f!==null&&(p=f[r])){let v=p.length;if(v)for(let E=0;E-1?_a(t.index,e):e;w9(o,5);let l=fD(e,i,n,s),a=r.__ngNextListenerFn__;for(;a;)l=fD(e,i,a,s)&&l,a=a.__ngNextListenerFn__;return l}}function ne(t=1){return PG(t)}function EX(t,e){let i=null,n=G$(t);for(let r=0;r=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Br(t){let e=sO();return n2(e,Pt+t)}function wX(t,e,i){let n=$(),r=wc(n,t,e,i);Fr(r)}function xX(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);Fr(o)}function AX(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);Fr(a)}function DX(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);Fr(c)}function OX(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);Fr(h)}function RX(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);Fr(p)}function MX(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);Fr(E)}function kX(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);Fr(P)}function NX(t){let e=$(),i=Sc(e,t);Fr(i)}function rk(t,e,i,n,r){let s=$(),o=wc(s,e,i,n);return Cs(t,o,r,!1),rk}function sk(t,e,i,n,r,s,o){let l=$(),a=xc(l,e,i,n,r,s);return Cs(t,a,o,!1),sk}function ok(t,e,i,n,r,s,o,l,a){let u=$(),c=Ac(u,e,i,n,r,s,o,l);return Cs(t,c,a,!1),ok}function lk(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Dc(d,e,i,n,r,s,o,l,a,u);return Cs(t,h,c,!1),lk}function ak(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Oc(f,e,i,n,r,s,o,l,a,u,c,d);return Cs(t,p,h,!1),ak}function uk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Rc(v,e,i,n,r,s,o,l,a,u,c,d,h,f);return Cs(t,E,p,!1),uk}function ck(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=Mc(C,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v);return Cs(t,P,E,!1),ck}function dk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E,C,P){let U=$(),L=kc(U,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E,C);return Cs(t,L,P,!1),dk}function hk(t,e,i){let n=$(),r=Sc(n,e);return Cs(t,r,i,!1),hk}function k(t,e=""){let i=$(),n=pt(),r=t+Pt,s=n.firstCreatePass?r2(n,r,1,e,null):n.data[r],o=PX(n,i,s,e,t);i[r]=o,K5()&&E9(n,i,o,s),_s(s,!1)}var PX=(t,e,i,n,r)=>(Y5(!0),WO(e[ht],n));function Fn(t){return Ca("",t,""),Fn}function Ca(t,e,i){let n=$(),r=wc(n,t,e,i);return r!==tt&&pl(n,fi(),r),Ca}function B9(t,e,i,n,r){let s=$(),o=xc(s,t,e,i,n,r);return o!==tt&&pl(s,fi(),o),B9}function fk(t,e,i,n,r,s,o){let l=$(),a=Ac(l,t,e,i,n,r,s,o);return a!==tt&&pl(l,fi(),a),fk}function pk(t,e,i,n,r,s,o,l,a){let u=$(),c=Dc(u,t,e,i,n,r,s,o,l,a);return c!==tt&&pl(u,fi(),c),pk}function mk(t,e,i,n,r,s,o,l,a,u,c){let d=$(),h=Oc(d,t,e,i,n,r,s,o,l,a,u,c);return h!==tt&&pl(d,fi(),h),mk}function gk(t,e,i,n,r,s,o,l,a,u,c,d,h){let f=$(),p=Rc(f,t,e,i,n,r,s,o,l,a,u,c,d,h);return p!==tt&&pl(f,fi(),p),gk}function _k(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p){let v=$(),E=Mc(v,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p);return E!==tt&&pl(v,fi(),E),_k}function vk(t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E){let C=$(),P=kc(C,t,e,i,n,r,s,o,l,a,u,c,d,h,f,p,v,E);return P!==tt&&pl(C,fi(),P),vk}function bk(t){let e=$(),i=Sc(e,t);return i!==tt&&pl(e,fi(),i),bk}function bo(t,e,i){qR(e)&&(e=e());let n=$(),r=bs();if(An(n,r,e)){let s=pt(),o=tn();Qi(s,o,n,t,e,n[ht],i,!1)}return bo}function ml(t,e){let i=qR(t);return i&&t.set(e),i}function yo(t,e){let i=$(),n=pt(),r=zt();return gE(n,i,i[ht],r,t,e),yo}var yk={};function Ek(t){let e=pt(),i=$(),n=t+Pt,r=r2(e,n,128,null,null);return _s(r,!1),_E(e,i,n,yk),Ek}function LX(t){vr("NgLet");let e=pt(),i=$(),n=fi();return _E(e,i,n,t),t}function FX(t){let e=sO(),i=n2(e,Pt+t);if(i===yk)throw new se(314,!1);return i}function VX(t,e,i){let n=pt();if(n.firstCreatePass){let r=gs(t);ry(i,n.data,n.blueprint,r,!0),ry(e,n.data,n.blueprint,r,!1)}}function ry(t,e,i,n,r){if(t=Yt(t),Array.isArray(t))for(let s=0;s>20;if(lc(t)||!t.multi){let f=new qu(u,r,I),p=Hv(a,e,r?c:c+h,d);p===-1?(lb(H8(l,o),s,a),jv(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(f),o.push(f)):(i[p]=f,o[p]=f)}else{let f=Hv(a,e,c+h,d),p=Hv(a,e,c,c+h),v=f>=0&&i[f],E=p>=0&&i[p];if(r&&!E||!r&&!v){lb(H8(l,o),s,a);let C=jX(r?UX:BX,i.length,r,n,u);!r&&E&&(i[p].providerFactory=C),jv(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(C),o.push(C)}else{let C=Ck(i[r?p:f],u,!r&&n);jv(s,t,f>-1?f:p,C)}!r&&n&&E&&i[p].componentProviders++}}}function jv(t,e,i,n){let r=lc(e),s=sG(e);if(r||s){let a=(s?Yt(e.useClass):e).prototype.ngOnDestroy;if(a){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let c=u.indexOf(i);c===-1?u.push(i,[n,a]):u[c+1].push(n,a)}else u.push(i,a)}}}function Ck(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Hv(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>VX(n,r?r(t):t,e)}}var HX=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Cy(!1,n.type),s=r.length>0?JR([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=q({token:e,providedIn:"environment",factory:()=>new e(x(Oi))});let t=e;return t})();function ot(t){vr("NgStandalone"),t.getStandaloneInjector=e=>e.get(HX).getOrCreateStandaloneInjector(t)}function zX(t,e,i){let n=t.\u0275cmp;n.directiveDefs=P8(e,!1),n.pipeDefs=P8(i,!0)}function $X(t,e){return t2(()=>{let i=ao(t,!0);i.declarations=E8(e.declarations||vn),i.imports=E8(e.imports||vn),i.exports=E8(e.exports||vn),e.bootstrap&&(i.bootstrap=E8(e.bootstrap)),k5.registerNgModule(t,e)})}function E8(t){if(typeof t=="function")return t;let e=z5(t);return e.some(r9)?()=>e.map(Yt).map(mD):e.map(mD)}function mD(t){return FR(t)?t.ngModule:t}function U9(t,e,i){let n=ki()+t,r=$();return r[n]===tt?_o(r,n,i?e.call(i):e()):th(r,n)}function vE(t,e,i,n){return Ik($(),ki(),t,e,i,n)}function ih(t,e,i,n,r){return Tk($(),ki(),t,e,i,n,r)}function GX(t,e,i,n,r,s){return Sk($(),ki(),t,e,i,n,r,s)}function WX(t,e,i,n,r,s,o){return wk($(),ki(),t,e,i,n,r,s,o)}function qX(t,e,i,n,r,s,o,l){let a=ki()+t,u=$(),c=Nr(u,a,i,n,r,s);return An(u,a+4,o)||c?_o(u,a+5,l?e.call(l,i,n,r,s,o):e(i,n,r,s,o)):th(u,a+5)}function bE(t,e,i,n,r,s,o,l,a){let u=ki()+t,c=$(),d=Nr(c,u,i,n,r,s);return Ju(c,u+4,o,l)||d?_o(c,u+6,a?e.call(a,i,n,r,s,o,l):e(i,n,r,s,o,l)):th(c,u+6)}function KX(t,e,i,n,r,s,o,l,a,u){let c=ki()+t,d=$(),h=Nr(d,c,i,n,r,s);return R9(d,c+4,o,l,a)||h?_o(d,c+7,u?e.call(u,i,n,r,s,o,l,a):e(i,n,r,s,o,l,a)):th(d,c+7)}function YX(t,e,i,n,r,s,o,l,a,u,c){let d=ki()+t,h=$(),f=Nr(h,d,i,n,r,s);return Nr(h,d+4,o,l,a,u)||f?_o(h,d+8,c?e.call(c,i,n,r,s,o,l,a,u):e(i,n,r,s,o,l,a,u)):th(h,d+8)}function ZX(t,e,i,n){return xk($(),ki(),t,e,i,n)}function rh(t,e){let i=t[e];return i===tt?void 0:i}function Ik(t,e,i,n,r,s){let o=e+i;return An(t,o,r)?_o(t,o+1,s?n.call(s,r):n(r)):rh(t,o+1)}function Tk(t,e,i,n,r,s,o){let l=e+i;return Ju(t,l,r,s)?_o(t,l+2,o?n.call(o,r,s):n(r,s)):rh(t,l+2)}function Sk(t,e,i,n,r,s,o,l){let a=e+i;return R9(t,a,r,s,o)?_o(t,a+3,l?n.call(l,r,s,o):n(r,s,o)):rh(t,a+3)}function wk(t,e,i,n,r,s,o,l,a){let u=e+i;return Nr(t,u,r,s,o,l)?_o(t,u+4,a?n.call(a,r,s,o,l):n(r,s,o,l)):rh(t,u+4)}function xk(t,e,i,n,r,s){let o=e+i,l=!1;for(let a=0;a=0;i--){let n=e[i];if(t===n.name)return n}}function Ak(t,e,i){let n=t+Pt,r=$(),s=n2(r,n);return oh(r,n)?Ik(r,ki(),e,s.transform,i,s):s.transform(i)}function yE(t,e,i,n){let r=t+Pt,s=$(),o=n2(s,r);return oh(s,r)?Tk(s,ki(),e,o.transform,i,n,o):o.transform(i,n)}function EE(t,e,i,n,r){let s=t+Pt,o=$(),l=n2(o,s);return oh(o,s)?Sk(o,ki(),e,l.transform,i,n,r,l):l.transform(i,n,r)}function QX(t,e,i,n,r,s){let o=t+Pt,l=$(),a=n2(l,o);return oh(l,o)?wk(l,ki(),e,a.transform,i,n,r,s,a):a.transform(i,n,r,s)}function JX(t,e,i){let n=t+Pt,r=$(),s=n2(r,n);return oh(r,n)?xk(r,ki(),e,s.transform,i,s):s.transform.apply(s,i)}function oh(t,e){return t[De].data[e].pure}function a2(t,e){return x9(t,e)}function eQ(t,e){return()=>{try{return k5.getComponentDependencies(t,e).dependencies}catch(i){throw console.error(`Computing dependencies in local compilation mode for the component "${t.name}" failed with the exception:`,i),i}}}function tQ(t,e){let i=Cn(t);i!==null&&(i.debugInfo=e)}var CE={\u0275\u0275attribute:Tt,\u0275\u0275attributeInterpolate1:mM,\u0275\u0275attributeInterpolate2:gM,\u0275\u0275attributeInterpolate3:_M,\u0275\u0275attributeInterpolate4:vM,\u0275\u0275attributeInterpolate5:bM,\u0275\u0275attributeInterpolate6:yM,\u0275\u0275attributeInterpolate7:EM,\u0275\u0275attributeInterpolate8:CM,\u0275\u0275attributeInterpolateV:IM,\u0275\u0275defineComponent:Me,\u0275\u0275defineDirective:Ce,\u0275\u0275defineInjectable:q,\u0275\u0275defineInjector:we,\u0275\u0275defineNgModule:xe,\u0275\u0275definePipe:Ey,\u0275\u0275directiveInject:I,\u0275\u0275getInheritedFactory:po,\u0275\u0275inject:x,\u0275\u0275injectAttribute:va,\u0275\u0275invalidFactory:Xy,\u0275\u0275invalidFactoryDep:O$,\u0275\u0275templateRefExtractor:a2,\u0275\u0275resetView:ue,\u0275\u0275HostDirectivesFeature:dE,\u0275\u0275NgOnChangesFeature:In,\u0275\u0275ProvidersFeature:mn,\u0275\u0275CopyDefinitionFeature:lY,\u0275\u0275InheritDefinitionFeature:At,\u0275\u0275InputTransformsFeature:ln,\u0275\u0275StandaloneFeature:ot,\u0275\u0275nextContext:ne,\u0275\u0275namespaceHTML:Ly,\u0275\u0275namespaceMathML:LG,\u0275\u0275namespaceSVG:m9,\u0275\u0275enableBindings:AG,\u0275\u0275disableBindings:DG,\u0275\u0275elementStart:R,\u0275\u0275elementEnd:F,\u0275\u0275element:pe,\u0275\u0275elementContainerStart:ya,\u0275\u0275elementContainerEnd:Ea,\u0275\u0275elementContainer:Dn,\u0275\u0275pureFunction0:U9,\u0275\u0275pureFunction1:vE,\u0275\u0275pureFunction2:ih,\u0275\u0275pureFunction3:GX,\u0275\u0275pureFunction4:WX,\u0275\u0275pureFunction5:qX,\u0275\u0275pureFunction6:bE,\u0275\u0275pureFunction7:KX,\u0275\u0275pureFunction8:YX,\u0275\u0275pureFunctionV:ZX,\u0275\u0275getCurrentView:mt,\u0275\u0275restoreView:ae,\u0275\u0275listener:be,\u0275\u0275projection:Ln,\u0275\u0275syntheticHostProperty:L9,\u0275\u0275syntheticHostListener:F9,\u0275\u0275pipeBind1:Ak,\u0275\u0275pipeBind2:yE,\u0275\u0275pipeBind3:EE,\u0275\u0275pipeBind4:QX,\u0275\u0275pipeBindV:JX,\u0275\u0275projectionDef:ei,\u0275\u0275hostProperty:Nc,\u0275\u0275property:J,\u0275\u0275propertyInterpolate:YM,\u0275\u0275propertyInterpolate1:V9,\u0275\u0275propertyInterpolate2:ZM,\u0275\u0275propertyInterpolate3:XM,\u0275\u0275propertyInterpolate4:QM,\u0275\u0275propertyInterpolate5:JM,\u0275\u0275propertyInterpolate6:ek,\u0275\u0275propertyInterpolate7:tk,\u0275\u0275propertyInterpolate8:nk,\u0275\u0275propertyInterpolateV:ik,\u0275\u0275pipe:sh,\u0275\u0275queryRefresh:nt,\u0275\u0275queryAdvance:SX,\u0275\u0275viewQuery:Et,\u0275\u0275viewQuerySignal:TX,\u0275\u0275loadQuery:it,\u0275\u0275contentQuery:Ts,\u0275\u0275contentQuerySignal:IX,\u0275\u0275reference:Br,\u0275\u0275classMap:Vr,\u0275\u0275classMapInterpolate1:fZ,\u0275\u0275classMapInterpolate2:pZ,\u0275\u0275classMapInterpolate3:mZ,\u0275\u0275classMapInterpolate4:gZ,\u0275\u0275classMapInterpolate5:_Z,\u0275\u0275classMapInterpolate6:vZ,\u0275\u0275classMapInterpolate7:bZ,\u0275\u0275classMapInterpolate8:yZ,\u0275\u0275classMapInterpolateV:EZ,\u0275\u0275styleMap:Fr,\u0275\u0275styleMapInterpolate1:wX,\u0275\u0275styleMapInterpolate2:xX,\u0275\u0275styleMapInterpolate3:AX,\u0275\u0275styleMapInterpolate4:DX,\u0275\u0275styleMapInterpolate5:OX,\u0275\u0275styleMapInterpolate6:RX,\u0275\u0275styleMapInterpolate7:MX,\u0275\u0275styleMapInterpolate8:kX,\u0275\u0275styleMapInterpolateV:NX,\u0275\u0275styleProp:an,\u0275\u0275stylePropInterpolate1:rk,\u0275\u0275stylePropInterpolate2:sk,\u0275\u0275stylePropInterpolate3:ok,\u0275\u0275stylePropInterpolate4:lk,\u0275\u0275stylePropInterpolate5:ak,\u0275\u0275stylePropInterpolate6:uk,\u0275\u0275stylePropInterpolate7:ck,\u0275\u0275stylePropInterpolate8:dk,\u0275\u0275stylePropInterpolateV:hk,\u0275\u0275classProp:ut,\u0275\u0275advance:G,\u0275\u0275template:ke,\u0275\u0275conditional:Pn,\u0275\u0275defer:DY,\u0275\u0275deferWhen:OY,\u0275\u0275deferOnIdle:MY,\u0275\u0275deferOnImmediate:NY,\u0275\u0275deferOnTimer:LY,\u0275\u0275deferOnHover:VY,\u0275\u0275deferOnInteraction:UY,\u0275\u0275deferOnViewport:HY,\u0275\u0275deferPrefetchWhen:RY,\u0275\u0275deferPrefetchOnIdle:kY,\u0275\u0275deferPrefetchOnImmediate:PY,\u0275\u0275deferPrefetchOnTimer:FY,\u0275\u0275deferPrefetchOnHover:BY,\u0275\u0275deferPrefetchOnInteraction:jY,\u0275\u0275deferPrefetchOnViewport:zY,\u0275\u0275deferEnableTimerScheduling:AY,\u0275\u0275repeater:l2,\u0275\u0275repeaterCreate:o2,\u0275\u0275repeaterTrackByIndex:TZ,\u0275\u0275repeaterTrackByIdentity:P9,\u0275\u0275componentInstance:CZ,\u0275\u0275text:k,\u0275\u0275textInterpolate:Fn,\u0275\u0275textInterpolate1:Ca,\u0275\u0275textInterpolate2:B9,\u0275\u0275textInterpolate3:fk,\u0275\u0275textInterpolate4:pk,\u0275\u0275textInterpolate5:mk,\u0275\u0275textInterpolate6:gk,\u0275\u0275textInterpolate7:_k,\u0275\u0275textInterpolate8:vk,\u0275\u0275textInterpolateV:bk,\u0275\u0275i18n:mX,\u0275\u0275i18nAttributes:gX,\u0275\u0275i18nExp:KM,\u0275\u0275i18nStart:WM,\u0275\u0275i18nEnd:qM,\u0275\u0275i18nApply:_X,\u0275\u0275i18nPostprocess:vX,\u0275\u0275resolveWindow:GW,\u0275\u0275resolveDocument:WW,\u0275\u0275resolveBody:qW,\u0275\u0275setComponentScope:zX,\u0275\u0275setNgModuleScope:$X,\u0275\u0275registerNgModuleType:QK,\u0275\u0275getComponentDepsFactory:eQ,\u0275setClassDebugInfo:tQ,\u0275\u0275declareLet:Ek,\u0275\u0275storeLet:LX,\u0275\u0275readContextLet:FX,\u0275\u0275sanitizeHtml:Gy,\u0275\u0275sanitizeStyle:PW,\u0275\u0275sanitizeResourceUrl:v9,\u0275\u0275sanitizeScript:LW,\u0275\u0275sanitizeUrl:bc,\u0275\u0275sanitizeUrlOrResourceUrl:UW,\u0275\u0275trustConstantHtml:FW,\u0275\u0275trustConstantResourceUrl:VW,\u0275\u0275validateIframeAttribute:JK,forwardRef:vs,resolveForwardRef:Yt,\u0275\u0275twoWayProperty:bo,\u0275\u0275twoWayBindingSet:ml,\u0275\u0275twoWayListener:yo},g5=null;function nQ(t){g5!==null&&(t.defaultEncapsulation!==g5.defaultEncapsulation||t.preserveWhitespaces!==g5.preserveWhitespaces)||(g5=t)}function iQ(){return g5}var zv=[];var $v=!1;function rQ(){if(!$v){$v=!0;try{for(let t=zv.length-1;t>=0;t--){let{moduleType:e,ngModule:i}=zv[t];i.declarations&&i.declarations.every(Dk)&&(zv.splice(t,1),sQ(e,i))}}finally{$v=!1}}}function Dk(t){return Array.isArray(t)?t.every(Dk):!!Yt(t)}function sQ(t,e){let i=z5(e.declarations||vn),n=fc(t);i.forEach(r=>{if(r=Yt(r),r.hasOwnProperty(s9)){let o=Cn(r);Ok(o,n)}else!r.hasOwnProperty(gy)&&!r.hasOwnProperty(DD)&&(r.ngSelectorScope=t)})}function Ok(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(i=>i.hasOwnProperty(s9)?Cn(i):hr(i)).filter(i=>!!i),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(i=>fr(i)),t.schemas=e.schemas,t.tView=null}function fc(t){if(Bu(t))if(Nb){let e=k5.getNgModuleScope(t),i=ao(t,!0);return b({schemas:i.schemas||null},e)}else return oQ(t);else if(N8(t)){if((Cn(t)||hr(t))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([t]),pipes:new Set}};if(fr(t)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([t])}}}throw new Error(`${t.name} does not have a module def (\u0275mod property)`)}function oQ(t){let e=ao(t,!0);if(e.transitiveCompileScopes!==null)return e.transitiveCompileScopes;let i={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ua(e.imports).forEach(n=>{let r=fc(n);r.exported.directives.forEach(s=>i.compilation.directives.add(s)),r.exported.pipes.forEach(s=>i.compilation.pipes.add(s))}),ua(e.declarations).forEach(n=>{fr(n)?i.compilation.pipes.add(n):i.compilation.directives.add(n)}),ua(e.exports).forEach(n=>{let r=n;if(Bu(r)){let s=fc(r);s.exported.directives.forEach(o=>{i.compilation.directives.add(o),i.exported.directives.add(o)}),s.exported.pipes.forEach(o=>{i.compilation.pipes.add(o),i.exported.pipes.add(o)})}else fr(r)?i.exported.pipes.add(r):i.exported.directives.add(r)}),e.transitiveCompileScopes=i,i}var Gv=0;function lQ(t,e){let i=null;GK(t,e),kk(t,e),Object.defineProperty(t,s9,{get:()=>{if(i===null){let n=G5({usage:0,kind:"component",type:t});if(ZR(e)){let u=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&u.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&u.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),e.styleUrl&&u.push(` - styleUrl: ${e.styleUrl}`),u.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(u.join(` `))}let r=iQ(),s=e.preserveWhitespaces;s===void 0&&(r!==null&&r.preserveWhitespaces!==void 0?s=r.preserveWhitespaces:s=!1);let o=e.encapsulation;o===void 0&&(r!==null&&r.defaultEncapsulation!==void 0?o=r.defaultEncapsulation:o=ms.Emulated);let l=e.templateUrl||`ng:///${t.name}/template.html`,a=ee(b({},Nk(t,e)),{typeSourceSpan:n.createParseSourceSpan("Component",t.name,l),template:e.template||"",preserveWhitespaces:s,styles:typeof e.styles=="string"?[e.styles]:e.styles||vn,animations:e.animations,declarations:[],changeDetection:e.changeDetection,encapsulation:o,interpolation:e.interpolation,viewProviders:e.viewProviders||null});Gv++;try{if(a.usesInheritance&&Pk(t),i=n.compileComponent(CE,l,a),e.standalone){let u=z5(e.imports||vn),{directiveDefs:c,pipeDefs:d}=aQ(t,u);i.directiveDefs=c,i.pipeDefs=d,i.dependencies=()=>u.map(Yt)}}finally{Gv--}if(Gv===0&&rQ(),uQ(t)){let u=fc(t.ngSelectorScope);Ok(i,u)}if(e.schemas)if(e.standalone)i.schemas=e.schemas;else throw new Error(`The 'schemas' was specified for the ${ro(t)} but is only valid on a component that is standalone.`);else e.standalone&&(i.schemas=[])}return i},configurable:!1})}function aQ(t,e){let i=null,n=null;return{directiveDefs:()=>{if(Nb)return b5(t)?[...k5.getStandaloneComponentScope(t,e).compilation.directives].map(l=>Cn(l)||hr(l)).filter(l=>l!==null):[];if(i===null){i=[Cn(t)];let o=new Set([t]);for(let l of e){let a=Yt(l);if(!o.has(a))if(o.add(a),ao(a)){let u=fc(a);for(let c of u.exported.directives){let d=Cn(c)||hr(c);d&&!o.has(c)&&(o.add(c),i.push(d))}}else{let u=Cn(a)||hr(a);u&&i.push(u)}}}return i},pipeDefs:()=>{if(Nb)return b5(t)?[...k5.getStandaloneComponentScope(t,e).compilation.pipes].map(l=>fr(l)).filter(l=>l!==null):[];if(n===null){n=[];let o=new Set;for(let l of e){let a=Yt(l);if(!o.has(a))if(o.add(a),ao(a)){let u=fc(a);for(let c of u.exported.pipes){let d=fr(c);d&&!o.has(c)&&(o.add(c),n.push(d))}}else{let u=fr(a);u&&n.push(u)}}}return n}}}function uQ(t){return t.ngSelectorScope!==void 0}function Rk(t,e){let i=null;kk(t,e||{}),Object.defineProperty(t,gy,{get:()=>{if(i===null){let n=Mk(t,e||{});i=G5({usage:0,kind:"directive",type:t}).compileDirective(CE,n.sourceMapUrl,n.metadata)}return i},configurable:!1})}function Mk(t,e){let i=t&&t.name,n=`ng:///${i}/\u0275dir.js`,r=G5({usage:0,kind:"directive",type:t}),s=Nk(t,e);return s.typeSourceSpan=r.createParseSourceSpan("Directive",i,n),s.usesInheritance&&Pk(t),{metadata:s,sourceMapUrl:n}}function kk(t,e){let i=null;Object.defineProperty(t,T5,{get:()=>{if(i===null){let n=Mk(t,e),r=G5({usage:0,kind:"directive",type:t});i=r.compileFactory(CE,`ng:///${t.name}/\u0275fac.js`,{name:n.metadata.name,type:n.metadata.type,typeArgumentCount:0,deps:eW(t),target:r.FactoryTarget.Directive})}return i},configurable:!1})}function cQ(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function Nk(t,e){let i=Vy(),n=i.ownPropMetadata(t);return{name:t.name,type:t,selector:e.selector!==void 0?e.selector:null,host:e.host||lo,propMetadata:n,inputs:e.inputs||vn,outputs:e.outputs||vn,queries:gD(t,n,Lk),lifecycle:{usesOnChanges:i.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!cQ(t),exportAs:fQ(e.exportAs),providers:e.providers||null,viewQueries:gD(t,n,Fk),isStandalone:!!e.standalone,isSignal:!!e.signals,hostDirectives:e.hostDirectives?.map(r=>typeof r=="function"?{directive:r}:r)||null}}function Pk(t){let e=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==e;)!hr(i)&&!Cn(i)&&mQ(i)&&Rk(i,null),i=Object.getPrototypeOf(i)}function dQ(t){return typeof t=="string"?Bk(t):Yt(t)}function hQ(t,e){return{propertyName:t,predicate:dQ(e.selector),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static,emitDistinctChangesOnly:!!e.emitDistinctChangesOnly,isSignal:!!e.isSignal}}function gD(t,e,i){let n=[];for(let r in e)if(e.hasOwnProperty(r)){let s=e[r];s.forEach(o=>{if(i(o)){if(!o.selector)throw new Error(`Can't construct a query for the property "${r}" of "${ro(t)}" since the query selector wasn't defined.`);if(s.some(Vk))throw new Error("Cannot combine @Input decorators with query decorators");n.push(hQ(r,o))}})}return n}function fQ(t){return t===void 0?null:Bk(t)}function Lk(t){let e=t.ngMetadataName;return e==="ContentChild"||e==="ContentChildren"}function Fk(t){let e=t.ngMetadataName;return e==="ViewChild"||e==="ViewChildren"}function Vk(t){return t.ngMetadataName==="Input"}function Bk(t){return t.split(",").map(e=>e.trim())}var pQ=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function mQ(t){let e=Vy();if(pQ.some(n=>e.hasLifecycleHook(t,n)))return!0;let i=e.propMetadata(t);for(let n in i){let r=i[n];for(let s=0;st,void 0,void 0,(t,e)=>Rk(t,e)),Uk=TD("Component",(t={})=>b({changeDetection:by.Default},t),gQ,void 0,(t,e)=>lQ(t,e));var al=class{constructor(e){this.full=e;let i=e.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}},Pc=new al("18.1.2");var IE=new Z(""),lh=new Z(""),j9=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,TE||(_Q(s),s.addToWindow(r)),this._watchAngularEvents(),n.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:()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:s})}whenStable(n,r,s){if(s&&!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(n,r,s),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}};e.\u0275fac=function(r){return new(r||e)(x(le),x(H9),x(lh))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),H9=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return TE?.findTestabilityInTree(this,n,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function _Q(t){TE=t}var TE;function ah(t){return!!t&&typeof t.then=="function"}function jk(t){return!!t&&typeof t.subscribe=="function"}var u2=new Z(""),Hk=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Y(u2,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(ah(o))n.push(o);else if(jk(o)){let l=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(l)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),SE=new Z("");function vQ(){Sx(()=>{throw new se(600,!1)})}function bQ(t){return t.isBoundToModule}var yQ=10;function EQ(t,e,i){try{let n=i();return ah(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function zk(t,e){return Array.isArray(e)?e.reduce(zk,t):b(b({},t),e)}var Ji=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Y(wO),this.afterRenderEffectManager=Y(D9),this.zonelessEnabled=Y(RR),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=Y(hl).hasPendingTasks.pipe(st(n=>!n)),this._injector=Y(Oi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof $8;if(!this._injector.get(Hk).done){let f=!s&&N8(n),p=!1;throw new se(405,p)}let l;s?l=n:l=this._injector.get(pr).resolveComponentFactory(n),this.componentTypes.push(l.componentType);let a=bQ(l)?void 0:this._injector.get(ga),u=r||l.selector,c=l.create(ze.NULL,[],u,a),d=c.location.nativeElement,h=c.injector.get(IE,null);return h?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),O8(this.components,c),h?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new se(101,!1);let r=dt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1,dt(r),this.afterTick.next()}}detectChangesInAttachedViews(n){let r=null;this._injector.destroyed||(r=this._injector.get(ma,null,{optional:!0}));let s=0,o=this.afterRenderEffectManager;for(;sO5(a))&&(o.execute(),!this.allViews.some(({_lView:a})=>O5(a))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;O8(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(SE,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>O8(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new se(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function O8(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function CQ(t,e,i,n){if(!i&&!O5(t))return;CR(t,e,i&&!n?0:1)}var IQ=new Z("");function TQ(t,e,i){let n=new zb(i);return Promise.resolve(n)}function _D(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var SQ=(()=>{let e=class e{constructor(){this.zone=Y(le),this.changeDetectionScheduler=Y(cc),this.applicationRef=Y(Ji)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function wQ({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new le($k()),[{provide:le,useFactory:t},{provide:w5,multi:!0,useFactory:()=>{let i=Y(SQ,{optional:!0});return()=>i.initialize()}},{provide:w5,multi:!0,useFactory:()=>{let i=Y(AQ);return()=>{i.initialize()}}},{provide:wO,useFactory:xQ},e===!0?{provide:MR,useValue:!0}:[]]}function xQ(){let t=Y(le),e=Y(Zi);return i=>t.runOutsideAngular(()=>e.handleError(i))}function $k(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var AQ=(()=>{let e=class e{constructor(){this.subscription=new kt,this.initialized=!1,this.zone=Y(le),this.pendingTasks=Y(hl)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var DQ=(()=>{let e=class e{constructor(){this.appRef=Y(Ji),this.taskService=Y(hl),this.ngZone=Y(le),this.zonelessEnabled=Y(RR),this.disableScheduling=Y(MR,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new kt,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof G8||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?BA:kR;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&le.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(s){throw this.taskService.remove(r),s}finally{this.cleanup()}this.useMicrotaskScheduler=!0,BA(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function OQ(){return typeof $localize<"u"&&$localize.locale||e9}var z9=new Z("",{providedIn:"root",factory:()=>Y(z9,Ct.Optional|Ct.SkipSelf)||OQ()});var Gk=new Z(""),Wk=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let s=vK(r?.ngZone,$k({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{let o=r?.ignoreChangesOutsideZone,l=uY(n.moduleType,this.injector,[...wQ({ngZoneFactory:()=>s,ignoreChangesOutsideZone:o}),{provide:cc,useExisting:DQ}]),a=l.injector.get(Zi,null);return s.runOutsideAngular(()=>{let u=s.onError.subscribe({next:c=>{a.handleError(c)}});l.onDestroy(()=>{O8(this._modules,l),u.unsubscribe()})}),EQ(a,s,()=>{let u=l.injector.get(Hk);return u.runInitializers(),u.donePromise.then(()=>{let c=l.injector.get(z9,e9);return LZ(c||e9),this._moduleDoBootstrap(l),l})})})}bootstrapModule(n,r=[]){let s=zk({},r);return TQ(this.injector,s,n).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(n){let r=n.injector.get(Ji);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(r);else throw new se(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new se(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Gk,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(x(ze))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),I5=null,qk=new Z("");function RQ(t){if(I5&&!I5.get(qk,!1))throw new se(400,!1);vQ(),I5=t;let e=t.get(Wk);return NQ(t),e}function wE(t,e,i=[]){let n=`Platform: ${e}`,r=new Z(n);return(s=[])=>{let o=Kk();if(!o||o.injector.get(qk,!1)){let l=[...i,...s,{provide:r,useValue:!0}];t?t(l):RQ(MQ(l,n))}return kQ(r)}}function MQ(t=[],e){return ze.create({name:e,providers:[{provide:l9,useValue:"platform"},{provide:Gk,useValue:new Set([()=>I5=null])},...t]})}function kQ(t){let e=Kk();if(!e)throw new se(401,!1);return e}function Kk(){return I5?.get(Wk)??null}function NQ(t){t.get(Uy,null)?.forEach(i=>i())}function c2(){return!1}var Wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=PQ;let t=e;return t})();function PQ(t){return LQ(zt(),$(),(t&16)===16)}function LQ(t,e,i){if(c9(t)&&!i){let n=_a(t.index,e);return new Xu(n,n)}else if(t.type&175){let n=e[Ri];return new Xu(n,e)}return null}var oy=class{constructor(){}supports(e){return eM(e)}create(e){return new ly(e)}},FQ=(t,e)=>e,ly=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||FQ}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,s=null;for(;i||n;){let o=!n||i&&i.currentIndex{o=this._trackByFn(r,l),i===null||!Object.is(i.trackById,o)?(i=this._mismatch(i,l,o,r),n=!0):(n&&(i=this._verifyReinsertion(i,l,o,r)),Object.is(i.item,l)||this._addIdentityChange(i,l)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let s;return e===null?s=this._itTail:(s=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,s,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,s,r)):e=this._addAfter(new ay(i,n),s,r)),e}_verifyReinsertion(e,i,n,r){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return s!==null?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,s=e._nextRemoved;return r===null?this._removalsHead=s:r._nextRemoved=s,s===null?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new n9),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new n9),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},ay=class{constructor(e,i){this.item=e,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}},uy=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},n9=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new uy,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vD(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let s=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,s)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,i);let s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}let n=new hy(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},hy=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function bD(){return new gl([new oy])}var gl=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||bD()),deps:[[e,new H5,new Xi]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r!=null)return r;throw new se(901,!1)}};e.\u0275prov=q({token:e,providedIn:"root",factory:bD});let t=e;return t})();function yD(){return new uh([new cy])}var uh=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||yD()),deps:[[e,new H5,new Xi]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r)return r;throw new se(901,!1)}};e.\u0275prov=q({token:e,providedIn:"root",factory:yD});let t=e;return t})();var Yk=wE(null,"core",[]),Zk=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(x(Ji))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var Xk=new Z("");function Ut(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function er(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function $9(t,e){vr("NgSignals");let i=Cx(t);return e?.equal&&(i[Ar].equal=e.equal),i}function Eo(t){let e=dt(null);try{return t()}finally{dt(e)}}var VQ=new Z("",{providedIn:"root",factory:()=>Y(BQ)}),BQ=(()=>{let e=class e{};e.\u0275prov=q({token:e,providedIn:"root",factory:()=>new fy});let t=e;return t})(),fy=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Y(hl),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}},py=class{constructor(e,i,n,r,s,o){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=s,this.watcher=Ax(l=>this.runEffect(l),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get(Zi,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Ur(t,e){vr("NgSignals"),!e?.injector&&Sy(Ur);let i=e?.injector??Y(ze),n=e?.manualCleanup!==!0?i.get(_9):null,r=new py(i.get(VQ),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),s=i.get(Wt,null,{optional:!0});return!s||!(s._lView[Xe]&8)?r.watcher.notify():(s._lView[T8]??=[]).push(r.watcher.notify),r}function Qk(t,e){let i=Cn(t),n=e.elementInjector||a9();return new N5(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var rN=null;function Co(){return rN}function sN(t){rN??=t}var G9=class{};var Ne=new Z(""),oN=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:()=>Y(jQ),providedIn:"platform"});let t=e;return t})();var jQ=(()=>{let e=class e extends oN{constructor(){super(),this._doc=Y(Ne),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Co().getBaseHref(this._doc)}onPopState(n){let r=Co().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Co().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function lN(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function Jk(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function d2(t){return t&&t[0]!=="?"?"?"+t:t}var RE=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:()=>Y(zQ),providedIn:"root"});let t=e;return t})(),HQ=new Z(""),zQ=(()=>{let e=class e extends RE{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Y(Ne).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return lN(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+d2(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let l=this.prepareExternalUrl(s+d2(o));this._platformLocation.pushState(n,r,l)}replaceState(n,r,s,o){let l=this.prepareExternalUrl(s+d2(o));this._platformLocation.replaceState(n,r,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(x(oN),x(HQ,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ch=(()=>{let e=class e{constructor(n){this._subject=new Se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=WQ(Jk(eN(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+d2(r))}normalize(n){return e.stripTrailingSlash(GQ(this._basePath,eN(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+d2(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+d2(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=d2,e.joinWithSlash=lN,e.stripTrailingSlash=Jk,e.\u0275fac=function(r){return new(r||e)(x(RE))},e.\u0275prov=q({token:e,factory:()=>$Q(),providedIn:"root"});let t=e;return t})();function $Q(){return new ch(x(RE))}function GQ(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function eN(t){return t.replace(/\/index.html$/,"")}function WQ(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function q9(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var AE=/\s+/,tN=[],Fc=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=tN,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(AE):tN}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(AE):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let s=this.stateMap.get(n);s!==void 0?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],s=n[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(AE).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Pi))},e.\u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var DE=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},K9=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,s){this._viewContainer=n,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((s,o,l)=>{if(s.previousIndex==null)r.createEmbeddedView(this._template,new DE(s.item,this._ngForOf,-1,-1),l===null?void 0:l);else if(l==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,l),nN(a,s)}});for(let s=0,o=r.length;s{let o=r.get(s.currentIndex);nN(o,s)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt),I(gl))},e.\u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function nN(t,e){t.context.$implicit=e.item}var Vc=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new OE,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){iN("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){iN("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),OE=class{constructor(){this.$implicit=null,this.ngIf=null}};function iN(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ui(e)}'.`)}var W9=class{constructor(e,i){this._viewContainerRef=e,this._templateRef=i,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Ia=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),Bc=(()=>{let e=class e{constructor(n,r,s){this.ngSwitch=s,s._addCase(),this._view=new W9(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt),I(Ia,9))},e.\u0275dir=Ce({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),aN=(()=>{let e=class e{constructor(n,r,s){s._addDefault(new W9(n,r))}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt),I(Ia,9))},e.\u0275dir=Ce({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var dh=(()=>{let e=class e{constructor(n,r,s){this._ngEl=n,this._differs=r,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[s,o]=n.split("."),l=s.indexOf("-")===-1?void 0:ho.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,s,o?`${r}${o}`:r,l):this._renderer.removeStyle(this._ngEl.nativeElement,s,l)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(uh),I(Pi))},e.\u0275dir=Ce({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),Y9=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let s=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,s,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,s)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,s):!1,get:(n,r,s)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,s)}})}};e.\u0275fac=function(r){return new(r||e)(I(Bt))},e.\u0275dir=Ce({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[In]});let t=e;return t})();function qQ(t,e){return new se(2100,!1)}var uN=(()=>{let e=class e{transform(n,r,s){if(n==null)return null;if(!this.supports(n))throw qQ(e,n);return n.slice(r,s)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Ey({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})();var tr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})(),ME="browser",KQ="server";function hh(t){return t===ME}function Uc(t){return t===KQ}var Lc=class{};var ph=class{},X9=class{},vl=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` `).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(l=>s.indexOf(l)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var NE=class{encodeKey(e){return cN(e)}encodeValue(e){return cN(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function YQ(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,l]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],a=i.get(o)||[];a.push(l),i.set(o,a)}),i}var ZQ=/%(\d[a-f0-9])/gi,XQ={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function cN(t){return encodeURIComponent(t).replace(ZQ,(e,i)=>XQ[i]??e)}function Z9(t){return`${t}`}var Ta=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new NE,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=YQ(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Z9):[Z9(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Z9(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Z9(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var PE=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function QQ(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dN(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function hN(t){return typeof Blob<"u"&&t instanceof Blob}function fN(t){return typeof FormData<"u"&&t instanceof FormData}function JQ(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var fh=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(QQ(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new vl,this.context??=new PE,!this.params)this.params=new Ta,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let l=i.indexOf("?"),a=l===-1?"?":lh.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),c)),new t(i,n,o,{params:c,headers:u,context:d,reportProgress:a,responseType:r,withCredentials:l,transferCache:s})}},Sa=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Sa||{}),mh=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new vl,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Q9=class t extends mh{constructor(e={}){super(e),this.type=Sa.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},gh=class t extends mh{constructor(e={}){super(e),this.type=Sa.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Io=class extends mh{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},vN=200,eJ=204;function kE(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var h2=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof fh)o=n;else{let u;s.headers instanceof vl?u=s.headers:u=new vl(s.headers);let c;s.params&&(s.params instanceof Ta?c=s.params:c=new Ta({fromObject:s.params})),o=new fh(n,r,s.body!==void 0?s.body:null,{headers:u,context:s.context,params:c,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let l=pn(o).pipe(gv(u=>this.handler.handle(u)));if(n instanceof fh||s.observe==="events")return l;let a=l.pipe(Ge(u=>u instanceof gh));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(st(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(st(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(st(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return a.pipe(st(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ta().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,kE(s,r))}post(n,r,s={}){return this.request("POST",n,kE(s,r))}put(n,r,s={}){return this.request("PUT",n,kE(s,r))}};e.\u0275fac=function(r){return new(r||e)(x(ph))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),tJ=/^\)\]\}',?\n/,nJ="X-Request-URL";function pN(t){if(t.url)return t.url;let e=nJ.toLocaleLowerCase();return t.headers.get(e)}var iJ=(()=>{let e=class e{constructor(){this.fetchImpl=Y(LE,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=Y(le)}handle(n){return new Ae(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(FE,o=>r.error(new Io({error:o}))),()=>s.abort()})}doRequest(n,r,s){return K(this,null,function*(){let o=this.createRequestInit(n),l;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:r},o)));rJ(p),s.next({type:Sa.Sent}),l=yield p}catch(p){s.error(new Io({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let a=new vl(l.headers),u=l.statusText,c=pN(l)??n.urlWithParams,d=l.status,h=null;if(n.reportProgress&&s.next(new Q9({headers:a,status:d,statusText:u,url:c})),l.body){let p=l.headers.get("content-length"),v=[],E=l.body.getReader(),C=0,P,U,L=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>K(this,null,function*(){for(;;){let{done:V,value:j}=yield E.read();if(V)break;if(v.push(j),C+=j.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(P??=new TextDecoder).decode(j,{stream:!0}):void 0;let me=()=>s.next({type:Sa.DownloadProgress,total:p?+p:void 0,loaded:C,partialText:U});L?L.run(me):me()}}}));let de=this.concatChunks(v,C);try{let V=l.headers.get("Content-Type")??"";h=this.parseBody(n,de,V)}catch(V){s.error(new Io({error:V,headers:new vl(l.headers),status:l.status,statusText:l.statusText,url:pN(l)??n.urlWithParams}));return}}d===0&&(d=h?vN:0),d>=200&&d<300?(s.next(new gh({body:h,headers:a,status:d,statusText:u,url:c})),s.complete()):s.error(new Io({error:h,headers:a,status:d,statusText:u,url:c}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(tJ,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,l)=>r[o]=l.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let l of n)s.set(l,o),o+=l.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),LE=class{};function FE(){}function rJ(t){t.then(FE,FE)}function bN(t,e){return e(t)}function sJ(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function oJ(t,e,i){return(n,r)=>Ty(i,()=>e(n,s=>t(s,r)))}var lJ=new Z(""),VE=new Z(""),aJ=new Z(""),yN=new Z("",{providedIn:"root",factory:()=>!0});function uJ(){let t=null;return(e,i)=>{t===null&&(t=(Y(lJ,{optional:!0})??[]).reduceRight(sJ,bN));let n=Y(hl);if(Y(yN)){let s=n.add();return t(e,i).pipe(Y3(()=>n.remove(s)))}else return t(e,i)}}var mN=(()=>{let e=class e extends ph{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=Y(hl),this.contributeToStability=Y(yN)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(VE),...this.injector.get(aJ,[])]));this.chain=r.reduceRight((s,o)=>oJ(s,o,this.injector),bN)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(Y3(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(x(X9),x(Oi))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();var cJ=/^\)\]\}',?\n/;function dJ(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var gN=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new se(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Wi(r.\u0275loadImpl()):pn(null)).pipe(Ai(()=>new Ae(o=>{let l=r.build();if(l.open(n.method,n.urlWithParams),n.withCredentials&&(l.withCredentials=!0),n.headers.forEach((E,C)=>l.setRequestHeader(E,C.join(","))),n.headers.has("Accept")||l.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let E=n.detectContentTypeHeader();E!==null&&l.setRequestHeader("Content-Type",E)}if(n.responseType){let E=n.responseType.toLowerCase();l.responseType=E!=="json"?E:"text"}let a=n.serializeBody(),u=null,c=()=>{if(u!==null)return u;let E=l.statusText||"OK",C=new vl(l.getAllResponseHeaders()),P=dJ(l)||n.url;return u=new Q9({headers:C,status:l.status,statusText:E,url:P}),u},d=()=>{let{headers:E,status:C,statusText:P,url:U}=c(),L=null;C!==eJ&&(L=typeof l.response>"u"?l.responseText:l.response),C===0&&(C=L?vN:0);let de=C>=200&&C<300;if(n.responseType==="json"&&typeof L=="string"){let V=L;L=L.replace(cJ,"");try{L=L!==""?JSON.parse(L):null}catch(j){L=V,de&&(de=!1,L={error:j,text:L})}}de?(o.next(new gh({body:L,headers:E,status:C,statusText:P,url:U||void 0})),o.complete()):o.error(new Io({error:L,headers:E,status:C,statusText:P,url:U||void 0}))},h=E=>{let{url:C}=c(),P=new Io({error:E,status:l.status||0,statusText:l.statusText||"Unknown Error",url:C||void 0});o.error(P)},f=!1,p=E=>{f||(o.next(c()),f=!0);let C={type:Sa.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(C.total=E.total),n.responseType==="text"&&l.responseText&&(C.partialText=l.responseText),o.next(C)},v=E=>{let C={type:Sa.UploadProgress,loaded:E.loaded};E.lengthComputable&&(C.total=E.total),o.next(C)};return l.addEventListener("load",d),l.addEventListener("error",h),l.addEventListener("timeout",h),l.addEventListener("abort",h),n.reportProgress&&(l.addEventListener("progress",p),a!==null&&l.upload&&l.upload.addEventListener("progress",v)),l.send(a),o.next({type:Sa.Sent}),()=>{l.removeEventListener("error",h),l.removeEventListener("abort",h),l.removeEventListener("load",d),l.removeEventListener("timeout",h),n.reportProgress&&(l.removeEventListener("progress",p),a!==null&&l.upload&&l.upload.removeEventListener("progress",v)),l.readyState!==l.DONE&&l.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(x(Lc))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),EN=new Z(""),hJ="XSRF-TOKEN",fJ=new Z("",{providedIn:"root",factory:()=>hJ}),pJ="X-XSRF-TOKEN",mJ=new Z("",{providedIn:"root",factory:()=>pJ}),J9=class{},gJ=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=q9(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(Jn),x(fJ))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function _J(t,e){let i=t.url.toLowerCase();if(!Y(EN)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=Y(J9).getToken(),r=Y(mJ);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var CN=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(CN||{});function vJ(t,e){return{\u0275kind:t,\u0275providers:e}}function IN(...t){let e=[h2,gN,mN,{provide:ph,useExisting:mN},{provide:X9,useFactory:()=>Y(iJ,{optional:!0})??Y(gN)},{provide:VE,useValue:_J,multi:!0},{provide:EN,useValue:!0},{provide:J9,useClass:gJ}];for(let i of t)e.push(...i.\u0275providers);return Pr(e)}var _N=new Z("");function TN(){return vJ(CN.LegacyInterceptors,[{provide:_N,useFactory:uJ},{provide:VE,useExisting:_N,multi:!0}])}var HE=class extends G9{constructor(){super(...arguments),this.supportsDOMEvents=!0}},zE=class t extends HE{static makeCurrent(){sN(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=yJ();return i==null?null:EJ(i)}resetBaseElement(){_h=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return q9(document.cookie,e)}},_h=null;function yJ(){return _h=_h||document.querySelector("base"),_h?_h.getAttribute("href"):null}function EJ(t){return new URL(t,document.baseURI).pathname}var $E=class{addToWindow(e){Nn.getAngularTestability=(n,r=!0)=>{let s=e.findTestabilityInTree(n,r);if(s==null)throw new se(5103,!1);return s},Nn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Nn.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=Nn.getAllAngularTestabilities(),s=r.length,o=function(){s--,s==0&&n()};r.forEach(l=>{l.whenStable(o)})};Nn.frameworkStabilizers||(Nn.frameworkStabilizers=[]),Nn.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?Co().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},CJ=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),jc=new Z(""),xN=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new se(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(x(jc),x(le))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),vh=class{constructor(e){this._doc=e}},UE="ng-app-id",AN=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Uc(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${UE}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(UE),o;{let l=this.doc.createElement("style");return this.nonce&&l.setAttribute("nonce",this.nonce),l.textContent=r,this.platformIsServer&&l.setAttribute(UE,this.appId),n.appendChild(l),l}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,l=o.get(r)?.elements;l?l.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(_c),x(Z5,8),x(Jn))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),jE={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},WE=/%COMP%/g,DN="%COMP%",IJ=`_nghost-${DN}`,TJ=`_ngcontent-${DN}`,SJ=!0,wJ=new Z("",{providedIn:"root",factory:()=>SJ});function xJ(t){return TJ.replace(WE,t)}function AJ(t){return IJ.replace(WE,t)}function ON(t,e){return e.map(i=>i.replace(WE,t))}var e7=(()=>{let e=class e{constructor(n,r,s,o,l,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=l,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Uc(a),this.defaultRenderer=new bh(n,l,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ms.ShadowDom&&(r=ee(b({},r),{encapsulation:ms.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof t7?s.applyToHost(n):s instanceof yh&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let l=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case ms.Emulated:o=new t7(u,c,r,this.appId,d,l,a,h);break;case ms.ShadowDom:return new GE(u,c,n,r,l,a,this.nonce,h);default:o=new yh(u,c,r,d,l,a,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(x(xN),x(AN),x(_c),x(wJ),x(Ne),x(Jn),x(le),x(Z5))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),bh=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(jE[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(SN(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(SN(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new se(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=jE[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=jE[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(ho.DashCase|ho.Important)?e.style.setProperty(i,n,r&ho.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&ho.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=Co().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function SN(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var GE=class extends bh{constructor(e,i,n,r,s,o,l,a){super(e,s,o,a),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ON(r.id,r.styles);for(let c of u){let d=document.createElement("style");l&&d.setAttribute("nonce",l),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},yh=class extends bh{constructor(e,i,n,r,s,o,l,a){super(e,s,o,l),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=a?ON(a,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},t7=class extends yh{constructor(e,i,n,r,s,o,l,a){let u=r+"-"+n.id;super(e,i,n,s,o,l,a,u),this.contentAttr=xJ(u),this.hostAttr=AJ(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},DJ=(()=>{let e=class e extends vh{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),OJ=(()=>{let e=class e extends vh{constructor(n){super(n),this.delegate=Y(Xk,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,s){return this.delegate.addEventListener(n,r,s)}removeEventListener(n,r,s){return this.delegate.removeEventListener(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),wN=["alt","control","meta","shift"],RJ={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},MJ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},kJ=(()=>{let e=class e extends vh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),l=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Co().onAndCancel(n,o.domEventName,l))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),l="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),l="code."),wN.forEach(c=>{let d=r.indexOf(c);d>-1&&(r.splice(d,1),l+=c+".")}),l+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=s,u.fullKey=l,u}static matchEventFullKeyCode(n,r){let s=RJ[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),wN.forEach(l=>{if(l!==s){let a=MJ[l];a(n)&&(o+=l+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function NJ(){zE.makeCurrent()}function PJ(){return new Zi}function LJ(){return MO(document),document}var FJ=[{provide:Jn,useValue:ME},{provide:Uy,useValue:NJ,multi:!0},{provide:Ne,useFactory:LJ,deps:[]}],RN=wE(Yk,"browser",FJ),VJ=new Z(""),BJ=[{provide:lh,useClass:$E,deps:[]},{provide:IE,useClass:j9,deps:[le,H9,lh]},{provide:j9,useClass:j9,deps:[le,H9,lh]}],UJ=[{provide:l9,useValue:"root"},{provide:Zi,useFactory:PJ,deps:[]},{provide:jc,useClass:DJ,multi:!0,deps:[Ne,le,Jn]},{provide:jc,useClass:kJ,multi:!0,deps:[Ne]},{provide:jc,useClass:OJ,multi:!0},e7,AN,xN,{provide:ma,useExisting:e7},{provide:Lc,useClass:CJ,deps:[]},[]],n7=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:_c,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(x(VJ,12))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[...UJ,...BJ],imports:[tr,Zk]});let t=e;return t})();var Eh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=x(jJ),s},providedIn:"root"});let t=e;return t})(),jJ=(()=>{let e=class e extends Eh{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case _r.NONE:return r;case _r.HTML:return ys(r,"HTML")?Ni(r):$y(this._doc,String(r)).toString();case _r.STYLE:return ys(r,"Style")?Ni(r):r;case _r.SCRIPT:if(ys(r,"Script"))return Ni(r);throw new se(5200,!1);case _r.URL:return ys(r,"URL")?Ni(r):X5(String(r));case _r.RESOURCE_URL:if(ys(r,"ResourceURL"))return Ni(r);throw new se(5201,!1);default:throw new se(5202,!1)}}bypassSecurityTrustHtml(n){return PO(n)}bypassSecurityTrustStyle(n){return LO(n)}bypassSecurityTrustScript(n){return FO(n)}bypassSecurityTrustUrl(n){return VO(n)}bypassSecurityTrustResourceUrl(n){return BO(n)}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var MN=Object.prototype.toString;function jr(t){switch(MN.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return yr(t,Error)}}function Hc(t,e){return MN.call(t)===`[object ${e}]`}function i7(t){return Hc(t,"ErrorEvent")}function r7(t){return Hc(t,"DOMError")}function KE(t){return Hc(t,"DOMException")}function $n(t){return Hc(t,"String")}function zc(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function f2(t){return t===null||zc(t)||typeof t!="object"&&typeof t!="function"}function br(t){return Hc(t,"Object")}function p2(t){return typeof Event<"u"&&yr(t,Event)}function YE(t){return typeof Element<"u"&&yr(t,Element)}function ZE(t){return Hc(t,"RegExp")}function To(t){return!!(t&&t.then&&typeof t.then=="function")}function XE(t){return br(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function yr(t,e){try{return t instanceof e}catch{return!1}}function Ch(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Hr(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function s7(t,e){if(!Array.isArray(t))return"";let i=[];for(let n=0;nkN(t,n,i))}function JE(t,e,i=250,n,r,s,o){if(!s.exception||!s.exception.values||!o||!yr(o.originalException,Error))return;let l=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;l&&(s.exception.values=HJ(QE(t,e,r,o.originalException,n,s.exception.values,l,0),i))}function QE(t,e,i,n,r,s,o,l){if(s.length>=i+1)return s;let a=[...s];if(yr(n[r],Error)){NN(o,l);let u=t(e,n[r]),c=a.length;PN(u,r,c,l),a=QE(t,e,i,n[r],r,[u,...a],u,c)}return Array.isArray(n.errors)&&n.errors.forEach((u,c)=>{if(yr(u,Error)){NN(o,l);let d=t(e,u),h=a.length;PN(d,`errors[${c}]`,h,l),a=QE(t,e,i,u,r,[d,...a],d,h)}}),a}function NN(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=ee(b(b({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function PN(t,e,i,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=ee(b({},t.mechanism),{type:"chained",source:e,exception_id:i,parent_id:n})}function HJ(t,e){return t.map(i=>(i.value&&(i.value=Hr(i.value,e)),i))}var $r="8.20.0";var $e=globalThis;function $c(t,e,i){let n=i||$e,r=n.__SENTRY__=n.__SENTRY__||{},s=r[$r]=r[$r]||{};return s[t]||(s[t]=e())}var Gc=$e,zJ=80;function nr(t,e={}){if(!t)return"";try{let i=t,n=5,r=[],s=0,o=0,l=" > ",a=l.length,u,c=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||zJ;for(;i&&s++1&&o+r.length*a+u.length>=d));)r.push(u),o+=u.length,i=i.parentNode;return r.reverse().join(l)}catch{return""}}function $J(t,e){let i=t,n=[];if(!i||!i.tagName)return"";if(Gc.HTMLElement&&i instanceof HTMLElement&&i.dataset){if(i.dataset.sentryComponent)return i.dataset.sentryComponent;if(i.dataset.sentryElement)return i.dataset.sentryElement}n.push(i.tagName.toLowerCase());let r=e&&e.length?e.filter(o=>i.getAttribute(o)).map(o=>[o,i.getAttribute(o)]):null;if(r&&r.length)r.forEach(o=>{n.push(`[${o[0]}="${o[1]}"]`)});else{i.id&&n.push(`#${i.id}`);let o=i.className;if(o&&$n(o)){let l=o.split(/\s+/);for(let a of l)n.push(`.${a}`)}}let s=["aria-label","type","name","title","alt"];for(let o of s){let l=i.getAttribute(o);l&&n.push(`[${o}="${l}"]`)}return n.join("")}function Ih(){try{return Gc.document.location.href}catch{return""}}function eC(t){return Gc.document&&Gc.document.querySelector?Gc.document.querySelector(t):null}function Th(t){if(!Gc.HTMLElement)return null;let e=t,i=5;for(let n=0;n"u"||__SENTRY_DEBUG__;var GJ="Sentry Logger ",Sh=["debug","info","warn","error","log","assert","trace"],Wc={};function Wr(t){if(!("console"in $e))return t();let e=$e.console,i={},n=Object.keys(Wc);n.forEach(r=>{let s=Wc[r];i[r]=e[r],e[r]=s});try{return t()}finally{n.forEach(r=>{e[r]=i[r]})}}function WJ(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Gr?Sh.forEach(i=>{e[i]=(...n)=>{t&&Wr(()=>{$e.console[i](`${GJ}[${i}]:`,...n)})}}):Sh.forEach(i=>{e[i]=()=>{}}),e}var B=WJ();var qJ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function KJ(t){return t==="http"||t==="https"}function qr(t,e=!1){let{host:i,path:n,pass:r,port:s,projectId:o,protocol:l,publicKey:a}=t;return`${l}://${a}${e&&r?`:${r}`:""}@${i}${s?`:${s}`:""}/${n&&`${n}/`}${o}`}function LN(t){let e=qJ.exec(t);if(!e){Wr(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[i,n,r="",s="",o="",l=""]=e.slice(1),a="",u=l,c=u.split("/");if(c.length>1&&(a=c.slice(0,-1).join("/"),u=c.pop()),u){let d=u.match(/^\d+/);d&&(u=d[0])}return FN({host:s,pass:r,path:a,projectId:u,port:o,protocol:i,publicKey:n})}function FN(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function YJ(t){if(!Gr)return!0;let{port:e,projectId:i,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(B.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:i.match(/^\d+$/)?KJ(n)?e&&isNaN(parseInt(e,10))?(B.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(B.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(B.error(`Invalid Sentry Dsn: Invalid projectId ${i}`),!1)}function wh(t){let e=typeof t=="string"?LN(t):FN(t);if(!(!e||!YJ(e)))return e}var Ii=class extends Error{constructor(e,i="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=i}};function nn(t,e,i){if(!(e in t))return;let n=t[e],r=i(n);typeof r=="function"&&o7(r,n),t[e]=r}function bn(t,e,i){try{Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0})}catch{Gr&&B.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function o7(t,e){try{let i=e.prototype||{};t.prototype=e.prototype=i,bn(t,"__sentry_original__",e)}catch{}}function m2(t){return t.__sentry_original__}function nC(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function l7(t){if(jr(t))return b({message:t.message,name:t.name,stack:t.stack},BN(t));if(p2(t)){let e=b({type:t.type,target:VN(t.target),currentTarget:VN(t.currentTarget)},BN(t));return typeof CustomEvent<"u"&&yr(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function VN(t){try{return YE(t)?nr(t):Object.prototype.toString.call(t)}catch{return""}}function BN(t){if(typeof t=="object"&&t!==null){let e={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}else return{}}function iC(t,e=40){let i=Object.keys(l7(t));i.sort();let n=i[0];if(!n)return"[object has no keys]";if(n.length>=e)return Hr(n,e);for(let r=i.length;r>0;r--){let s=i.slice(0,r).join(", ");if(!(s.length>e))return r===i.length?s:Hr(s,e)}return""}function $t(t){return tC(t,new Map)}function tC(t,e){if(ZJ(t)){let i=e.get(t);if(i!==void 0)return i;let n={};e.set(t,n);for(let r of Object.keys(t))typeof t[r]<"u"&&(n[r]=tC(t[r],e));return n}if(Array.isArray(t)){let i=e.get(t);if(i!==void 0)return i;let n=[];return e.set(t,n),t.forEach(r=>{n.push(tC(r,e))}),n}return t}function ZJ(t){if(!br(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}var So="?",UN=/\(error: (.*)\)/,jN=/captureMessage|captureException/;function u7(...t){let e=t.sort((i,n)=>i[0]-n[0]).map(i=>i[1]);return(i,n=0,r=0)=>{let s=[],o=i.split(` `);for(let l=n;l1024)continue;let u=UN.test(a)?a.replace(UN,"$1"):a;if(!u.match(/\S*Error: /)){for(let c of e){let d=c(u);if(d){s.push(d);break}}if(s.length>=50+r)break}}return HN(s.slice(r))}}function sC(t){return Array.isArray(t)?u7(...t):t}function HN(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(a7(e).function||"")&&e.pop(),e.reverse(),jN.test(a7(e).function||"")&&(e.pop(),jN.test(a7(e).function||"")&&e.pop()),e.slice(0,50).map(i=>ee(b({},i),{filename:i.filename||a7(e).filename,function:i.function||So}))}function a7(t){return t[t.length-1]||{}}var rC="";function ir(t){try{return!t||typeof t!="function"?rC:t.name||rC}catch{return rC}}function c7(t){let e=t.exception;if(e){let i=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&i.push(...n.stacktrace.frames)}),i}catch{return}}}var d7={},zN={};function Li(t,e){d7[t]=d7[t]||[],d7[t].push(e)}function Fi(t,e){zN[t]||(e(),zN[t]=!0)}function Gn(t,e){let i=t&&d7[t];if(i)for(let n of i)try{n(e)}catch(r){Gr&&B.error(`Error while triggering instrumentation handler. @@ -40,115 +40,115 @@ Content-Type: application/json; charset=utf-8\r Content-Type: `+u.contentType+`\r \r `,h=`\r ---`+a+"--",f=Hm.getBlob(d,n,h);if(f===null)throw c2e();let p={name:u.fullPath},v=eB(s,t.host,t._protocol),E="POST",C=t.maxUploadRetryTime,P=new zm(v,E,z2e(t,i),C);return P.urlParams=p,P.headers=o,P.body=f.uploadData(),P.errorHandler=sB(e),P}var AMe=256*1024;var WV=null,$m=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=D0.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=D0.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=D0.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,i,n,r){if(this.sent_)throw Ff("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(i,e,!0),r!==void 0)for(let s in r)r.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,r[s].toString());return n!==void 0?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Ff("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Ff("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw Ff("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Ff("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}},ZT=class extends $m{initXhr(){this.xhr_.responseType="text"}};function Y2e(){return WV?WV():new ZT}var XT=class extends $m{initXhr(){this.xhr_.responseType="blob"}};function Z2e(){return new XT}var O0=class t{constructor(e,i){this._service=e,i instanceof Ls?this._location=i:this._location=Ls.makeFromUrl(i,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,i){return new t(e,i)}get root(){let e=new Ls(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return rB(this._location.path)}get storage(){return this._service}get parent(){let e=k2e(this._location.path);if(e===null)return null;let i=new Ls(this._location.bucket,e);return new t(this._service,i)}_throwIfRoot(e){if(this._location.path==="")throw h2e(e)}};function X2e(t,e){t._throwIfRoot("getBlob");let i=G2e(t.storage,t._location,e);return t.storage.makeRequestWithTokens(i,Z2e).then(n=>e!==void 0?n.slice(0,e):n)}function Q2e(t,e,i){t._throwIfRoot("uploadBytes");let n=K2e(t.storage,t._location,F2e(),new Hm(e,!0),i);return t.storage.makeRequestWithTokens(n,Y2e).then(r=>({metadata:r,ref:t}))}function J2e(t,e,i=Fs.RAW,n){t._throwIfRoot("uploadString");let r=tB(i,e),s=Object.assign({},n);return s.contentType==null&&r.contentType!=null&&(s.contentType=r.contentType),Q2e(t,r.data,s)}function e3e(t,e){let i=N2e(t._location.path,e),n=new Ls(t._location.bucket,i);return new O0(t.storage,n)}function t3e(t){return/^[A-Za-z]+:\/\//.test(t)}function n3e(t,e){return new O0(t,e)}function oB(t,e){if(t instanceof Uf){let i=t;if(i._bucket==null)throw u2e();let n=new O0(i,i._bucket);return e!=null?oB(n,e):n}else return e!==void 0?e3e(t,e):t}function i3e(t,e){if(e&&t3e(e)){if(t instanceof Uf)return n3e(t,e);throw qT("To use ref(service, url), the first argument must be a Storage instance.")}else return oB(t,e)}function qV(t,e){let i=e?.[XV];return i==null?null:Ls.makeFromBucketSpec(i,t)}function r3e(t,e,i,n={}){t.host=`${e}:${i}`,t._protocol="http";let{mockUserToken:r}=n;r&&(t._overrideAuthToken=typeof r=="string"?r:iV(r,t.app.options.projectId))}var Uf=class{constructor(e,i,n,r,s){this.app=e,this._authProvider=i,this._appCheckProvider=n,this._url=r,this._firebaseVersion=s,this._bucket=null,this._host=ZV,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Que,this._maxUploadRetryTime=Jue,this._requests=new Set,r!=null?this._bucket=Ls.makeFromBucketSpec(r,this._host):this._bucket=qV(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=Ls.makeFromBucketSpec(this._url,e):this._bucket=qV(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){GV("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){GV("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}_getAuthToken(){return K(this,null,function*(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let i=yield e.getToken();if(i!==null)return i.accessToken}return null})}_getAppCheckToken(){return K(this,null,function*(){let e=this._appCheckProvider.getImmediate({optional:!0});return e?(yield e.getToken()).token:null})}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new O0(this,e)}_makeRequest(e,i,n,r,s=!0){if(this._deleted)return new KT(QV());{let o=I2e(e,this._appId,n,r,i,this._firebaseVersion,s);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}makeRequestWithTokens(e,i){return K(this,null,function*(){let[n,r]=yield Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,i,n,r).getPromise()})}},KV="@firebase/storage",YV="0.12.6";var lB="storage";function aB(t,e,i,n){return t=Ro(t),J2e(t,e,i,n)}function uB(t,e){return t=Ro(t),i3e(t,e)}function cB(t=xf(),e){t=Ro(t);let n=xT(t,lB).getImmediate({identifier:e}),r=tV("storage");return r&&dB(n,...r),n}function dB(t,e,i,n={}){r3e(t,e,i,n)}function hB(t,e){return t=Ro(t),X2e(t,e)}function s3e(t,{instanceIdentifier:e}){let i=t.getProvider("app").getImmediate(),n=t.getProvider("auth-internal"),r=t.getProvider("app-check-internal");return new Uf(i,n,r,e,S0)}function o3e(){ja(new es(lB,s3e,"PUBLIC").setMultipleInstances(!0)),ii(KV,YV,""),ii(KV,YV,"esm2017")}o3e();var Al=class{constructor(e){return e}},fB="storage",eS=class{constructor(){return Df(fB)}};var tS=new Z("angularfire2.storage-instances");function l3e(t,e){let i=OT(fB,t,e);return i&&new Al(i)}function a3e(t){return(e,i)=>{let n=e.runOutsideAngular(()=>t(i));return new Al(n)}}var u3e={provide:eS,deps:[[new Xi,tS]]},c3e={provide:Al,useFactory:l3e,deps:[[new Xi,tS],D2]};function pB(t,...e){return ii("angularfire",x0.full,"gcs"),Pr([c3e,u3e,{provide:tS,useFactory:a3e(t),multi:!0,deps:[le,ze,Of,Rf,[new Xi,Bm],[new Xi,Af],...e]}])}var mB=Ha(hB,!0);var gB=Ha(cB,!0);var Gm=Ha(uB,!0);var _B=Ha(aB,!0);var wB=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(I(Pi),I(Te))},e.\u0275dir=Ce({type:e});let t=e;return t})(),d3e=(()=>{let e=class e extends wB{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,features:[At]});let t=e;return t})(),Zm=new Z("");var h3e={provide:Zm,useExisting:vs(()=>xB),multi:!0};function f3e(){let t=Co()?Co().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p3e=new Z(""),xB=(()=>{let e=class e extends wB{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!f3e())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(I(Pi),I(Te),I(p3e,8))},e.\u0275dir=Ce({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&be("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[mn([h3e]),At]});let t=e;return t})();var oS=new Z(""),m3e=new Z("");function AB(t){return t!=null}function DB(t){return ah(t)?Wi(t):t}function OB(t){let e={};return t.forEach(i=>{e=i!=null?b(b({},e),i):e}),Object.keys(e).length===0?null:e}function RB(t,e){return e.map(i=>i(t))}function g3e(t){return!t.validate}function MB(t){return t.map(e=>g3e(e)?e:i=>e.validate(i))}function _3e(t){if(!t)return null;let e=t.filter(AB);return e.length==0?null:function(i){return OB(RB(i,e))}}function kB(t){return t!=null?_3e(MB(t)):null}function v3e(t){if(!t)return null;let e=t.filter(AB);return e.length==0?null:function(i){let n=RB(i,e).map(DB);return pv(n).pipe(st(OB))}}function NB(t){return t!=null?v3e(MB(t)):null}function bB(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function b3e(t){return t._rawValidators}function y3e(t){return t._rawAsyncValidators}function nS(t){return t?Array.isArray(t)?t:[t]:[]}function qm(t,e){return Array.isArray(t)?t.includes(e):t===e}function yB(t,e){let i=nS(e);return nS(t).forEach(r=>{qm(i,r)||i.push(r)}),i}function EB(t,e){return nS(e).filter(i=>!qm(t,i))}var Km=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=kB(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=NB(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},iS=class extends Km{get formDirective(){return null}get path(){return null}},Gf=class extends Km{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},rS=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},E3e={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},hke=ee(b({},E3e),{"[class.ng-submitted]":"isSubmitted"}),Xm=(()=>{let e=class e extends rS{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(Gf,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&ut("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[At]});let t=e;return t})();var jf="VALID",Wm="INVALID",R0="PENDING",Hf="DISABLED",k0=class{},Ym=class extends k0{constructor(e,i){super(),this.value=e,this.source=i}},zf=class extends k0{constructor(e,i){super(),this.pristine=e,this.source=i}},$f=class extends k0{constructor(e,i){super(),this.touched=e,this.source=i}},M0=class extends k0{constructor(e,i){super(),this.status=e,this.source=i}};function C3e(t){return(Qm(t)?t.validators:t)||null}function I3e(t){return Array.isArray(t)?kB(t):t||null}function T3e(t,e){return(Qm(e)?e.asyncValidators:t)||null}function S3e(t){return Array.isArray(t)?NB(t):t||null}function Qm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var sS=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=$9(()=>this.statusReactive()),this.statusReactive=ba(void 0),this._pristine=$9(()=>this.pristineReactive()),this.pristineReactive=ba(!0),this._touched=$9(()=>this.touchedReactive()),this.touchedReactive=ba(!1),this._events=new te,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Eo(this.statusReactive)}set status(e){Eo(()=>this.statusReactive.set(e))}get valid(){return this.status===jf}get invalid(){return this.status===Wm}get pending(){return this.status==R0}get disabled(){return this.status===Hf}get enabled(){return this.status!==Hf}get pristine(){return Eo(this.pristineReactive)}set pristine(e){Eo(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Eo(this.touchedReactive)}set touched(e){Eo(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(yB(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(yB(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(EB(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(EB(e,this._rawAsyncValidators))}hasValidator(e){return qm(this._rawValidators,e)}hasAsyncValidator(e){return qm(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ee(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new $f(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new $f(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ee(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new zf(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new zf(!0,n))}markAsPending(e={}){this.status=R0;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new M0(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ee(b({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Hf,this.errors=null,this._forEachChild(r=>{r.disable(ee(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ym(this.value,n)),this._events.next(new M0(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ee(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=jf,this._forEachChild(n=>{n.enable(ee(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ee(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jf||this.status===R0)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ym(this.value,i)),this._events.next(new M0(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ee(b({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hf:jf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=R0,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=DB(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new M0(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new Se,this.statusChanges=new Se}_calculateStatus(){return this._allControlsDisabled()?Hf:this.errors?Wm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(R0)?R0:this._anyControlsHaveStatus(Wm)?Wm:jf}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new zf(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new $f(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Qm(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=I3e(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=S3e(this._rawAsyncValidators)}};var PB=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>lS}),lS="always";function w3e(t,e){return[...e.path,t]}function x3e(t,e,i=lS){D3e(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),O3e(t,e),M3e(t,e),R3e(t,e),A3e(t,e)}function CB(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function A3e(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function D3e(t,e){let i=b3e(t);e.validator!==null?t.setValidators(bB(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=y3e(t);e.asyncValidator!==null?t.setAsyncValidators(bB(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();CB(e._rawValidators,r),CB(e._rawAsyncValidators,r)}function O3e(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&LB(t,e)})}function R3e(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&LB(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function LB(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function M3e(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function k3e(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function N3e(t){return Object.getPrototypeOf(t.constructor)===d3e}function P3e(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===xB?i=s:N3e(s)?n=s:r=s}),r||n||i||null}function IB(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function TB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var aS=class extends sS{constructor(e=null,i,n){super(C3e(i),T3e(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qm(i)&&(i.nonNullable||i.initialValueIsDefault)&&(TB(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){IB(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){IB(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){TB(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var L3e={provide:Gf,useExisting:vs(()=>Wf)},SB=Promise.resolve(),Wf=(()=>{let e=class e extends Gf{constructor(n,r,s,o,l,a){super(),this._changeDetectorRef=l,this.callSetDisabledState=a,this.control=new aS,this._registered=!1,this.name="",this.update=new Se,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=P3e(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),k3e(n,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(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){x3e(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()&&this.name}_updateValue(n){SB.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Ut(r);SB.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?w3e(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(I(iS,9),I(oS,10),I(m3e,10),I(Zm,10),I(Wt,8),I(PB,8))},e.\u0275dir=Ce({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[mn([L3e]),At,In]});let t=e;return t})();var F3e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var FB=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:PB,useValue:n.callSetDisabledState??lS}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[F3e]});let t=e;return t})();var cS;try{cS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cS=!1}var St=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?hh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||cS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(x(Jn))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qf;function V3e(){if(qf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>qf=!0}))}finally{qf=qf||!1}return qf}function ko(t){return V3e()?t:!!t.capture}var Vs=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Vs||{}),Jm,M2;function eg(){if(M2==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return M2=!1,M2;if("scrollBehavior"in document.documentElement.style)M2=!0;else{let t=Element.prototype.scrollTo;t?M2=!/\{\s*\[native code\]\s*\}/.test(t.toString()):M2=!1}}return M2}function N0(){if(typeof document!="object"||!document)return Vs.NORMAL;if(Jm==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),Jm=Vs.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Jm=t.scrollLeft===0?Vs.NEGATED:Vs.INVERTED),t.remove()}return Jm}var uS;function B3e(){if(uS==null){let t=typeof document<"u"?document.head:null;uS=!!(t&&(t.createShadowRoot||t.attachShadow))}return uS}function BB(t){if(B3e()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Kf(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function ts(t){return t.composedPath?t.composedPath()[0]:t.target}function Yf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function No(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function tg(t){return t!=null&&`${t}`!="false"}function Po(t,e=0){return U3e(t)?Number(t):e}function U3e(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function P0(t){return Array.isArray(t)?t:[t]}function Rn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Bs(t){return t instanceof Te?t.nativeElement:t}function j3e(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),H3e=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=Y(le)}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=Bs(n);return new Ae(s=>{let l=this._observeElement(r).pipe(st(a=>a.filter(u=>!j3e(u))),Ge(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{s.next(a)})});return()=>{l.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let r=new te,s=this._mutationObserverFactory.create(o=>r.next(o));s&&s.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:s,stream:r,count:1})}return this._observedElements.get(n).stream})}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){let{observer:r,stream:s}=this._observedElements.get(n);r&&r.disconnect(),s.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(r){return new(r||e)(x(UB))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jB=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=Po(n),this._subscribe()}constructor(n,r){this._contentObserver=n,this._elementRef=r,this.event=new Se,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(Ki(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(H3e),I(Te))},e.\u0275dir=Ce({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ut],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ln]});let t=e;return t})(),HB=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[UB]});let t=e;return t})();var zB=new Set,k2,z3e=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):G3e}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&$3e(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(x(St),x(Z5,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $3e(t,e){if(!zB.has(t))try{k2||(k2=document.createElement("style"),e&&k2.setAttribute("nonce",e),k2.setAttribute("type","text/css"),document.head.appendChild(k2)),k2.sheet&&(k2.sheet.insertRule(`@media ${t} {body{ }}`,0),zB.add(t))}catch(i){console.error(i)}}function G3e(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var L0=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new te}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return $B(P0(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=$B(P0(n)).map(l=>this._registerQuery(l).observable),o=fv(s);return o=no(o.pipe(en(1)),o.pipe(Fu(1),Ki(0))),o.pipe(st(l=>{let a={matches:!1,breakpoints:{}};return l.forEach(({matches:u,query:c})=>{a.matches=a.matches||u,a.breakpoints[c]=u}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new Ae(l=>{let a=u=>this._zone.run(()=>l.next(u));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(Or(r),st(({matches:l})=>({query:n,matches:l})),yt(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(x(z3e),x(le))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $B(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var GB={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var XB=" ";function cce(t,e,i){let n=sg(t,e);i=i.trim(),!n.some(r=>r.trim()===i)&&(n.push(i),t.setAttribute(e,n.join(XB)))}function dce(t,e,i){let n=sg(t,e);i=i.trim();let r=n.filter(s=>s!==i);r.length?t.setAttribute(e,r.join(XB)):t.removeAttribute(e)}function sg(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var QB="cdk-describedby-message",ng="cdk-describedby-host",fS=0,JB=(()=>{let e=class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${fS++}`,this._document=n,this._id=Y(_c)+"-"+fS++}describe(n,r,s){if(!this._canBeDescribed(n,r))return;let o=dS(r,s);typeof r!="string"?(qB(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(n,o)||this._addMessageReference(n,o)}removeDescription(n,r,s){if(!r||!this._isElementNode(n))return;let o=dS(r,s);if(this._isElementDescribedByMessage(n,o)&&this._removeMessageReference(n,o),typeof r=="string"){let l=this._messageRegistry.get(o);l&&l.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ng}="${this._id}"]`);for(let r=0;rs.indexOf(QB)!=0);n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){let s=this._messageRegistry.get(r);cce(n,"aria-describedby",s.messageElement.id),n.setAttribute(ng,this._id),s.referenceCount++}_removeMessageReference(n,r){let s=this._messageRegistry.get(r);s.referenceCount--,dce(n,"aria-describedby",s.messageElement.id),n.removeAttribute(ng)}_isElementDescribedByMessage(n,r){let s=sg(n,"aria-describedby"),o=this._messageRegistry.get(r),l=o&&o.messageElement.id;return!!l&&s.indexOf(l)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&typeof r=="object")return!0;let s=r==null?"":`${r}`.trim(),o=n.getAttribute("aria-label");return s?!o||o.trim()!==s:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(St))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dS(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function qB(t,e){t.id||(t.id=`${QB}-${e}-${fS++}`)}var pS=class{constructor(e,i){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new te,this._typeaheadSubscription=kt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new te,this.change=new te,e instanceof pa?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):O9(e)&&(this._effectRef=Ur(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mn(i=>this._pressedLetters.push(i)),Ki(e),Ge(()=>this._pressedLetters.length>0),st(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return O9(this._items)?this._items():this._items instanceof pa?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let i=e.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}};var og=class extends pS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Zf=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return fce(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=hce(Ece(n));if(r&&(KB(r)===-1||!this.isVisible(r)))return!1;let s=n.nodeName.toLowerCase(),o=KB(n);return n.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!bce(n)?!1:s==="audio"?n.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return yce(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(r){return new(r||e)(x(St))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hce(t){try{return t.frameElement}catch{return null}}function fce(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function pce(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function mce(t){return _ce(t)&&t.type=="hidden"}function gce(t){return vce(t)&&t.hasAttribute("href")}function _ce(t){return t.nodeName.toLowerCase()=="input"}function vce(t){return t.nodeName.toLowerCase()=="a"}function eU(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function KB(t){if(!eU(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function bce(t){let e=t.nodeName.toLowerCase(),i=e==="input"&&t.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function yce(t){return mce(t)?!1:pce(t)||gce(t)||t.hasAttribute("contenteditable")||eU(t)}function Ece(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var mS=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,n,r,s=!1,o){this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let n=this._getFirstTabbableElement(i);return n?.focus(e),!!n}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let n=0;n=0;n--){let r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Es(e,{injector:this._injector}):setTimeout(e)}},lg=(()=>{let e=class e{constructor(n,r,s){this._checker=n,this._ngZone=r,this._injector=Y(ze),this._document=s}create(n,r=!1){return new mS(n,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(x(Zf),x(le),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gS(t){return t.buttons===0||t.detail===0}function _S(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Cce=new Z("cdk-input-modality-detector-options"),Ice={ignoreKeys:[18,17,224,91,16]},tU=650,F0=ko({passive:!0,capture:!0}),Tce=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new Ci(null),this._lastTouchMs=0,this._onKeydown=l=>{this._options?.ignoreKeys?.some(a=>a===l.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ts(l))},this._onMousedown=l=>{Date.now()-this._lastTouchMs{if(_S(l)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ts(l)},this._options=b(b({},Ice),o),this.modalityDetected=this._modality.pipe(Fu(1)),this.modalityChanged=this.modalityDetected.pipe(rl()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,F0),s.addEventListener("mousedown",this._onMousedown,F0),s.addEventListener("touchstart",this._onTouchstart,F0)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,F0),document.removeEventListener("mousedown",this._onMousedown,F0),document.removeEventListener("touchstart",this._onTouchstart,F0))}};e.\u0275fac=function(r){return new(r||e)(x(St),x(le),x(Ne),x(Cce,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Sce=new Z("liveAnnouncerElement",{providedIn:"root",factory:wce});function wce(){return null}var xce=new Z("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ace=0,nU=(()=>{let e=class e{constructor(n,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=n||this._createLiveElement()}announce(n,...r){let s=this._defaultOptions,o,l;return r.length===1&&typeof r[0]=="number"?l=r[0]:[o,l]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),l==null&&s&&(l=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof l=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),l)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let e=class e{constructor(n,r,s,o,l){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new te,this._rootNodeFocusAndBlurListener=a=>{let u=ts(a);for(let c=u;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=l?.detectionMode||rg.IMMEDIATE}monitor(n,r=!1){let s=Bs(n);if(!this._platform.isBrowser||s.nodeType!==1)return pn();let o=BB(s)||this._getDocument(),l=this._elementInfo.get(s);if(l)return r&&(l.checkChildren=!0),l.subject;let a={checkChildren:r,subject:new te,rootNode:o};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=Bs(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=Bs(n),l=this._getDocument().activeElement;o===l?this._getClosestElementsInfo(o).forEach(([a,u])=>this._originChanged(a,r,u)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===rg.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===rg.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?tU:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=ts(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,ig),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,ig)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ig),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ig),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let l=0;l{let e=class e{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new Se}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Ol))},e.\u0275dir=Ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),N2=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(N2||{}),YB="cdk-high-contrast-black-on-white",ZB="cdk-high-contrast-white-on-black",hS="cdk-high-contrast-active",vS=(()=>{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=Y(L0).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return N2.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return N2.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return N2.BLACK_ON_WHITE}return N2.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(hS,YB,ZB),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===N2.BLACK_ON_WHITE?n.add(hS,YB):r===N2.WHITE_ON_BLACK&&n.add(hS,ZB)}}};e.\u0275fac=function(r){return new(r||e)(x(St),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ag=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(x(vS))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[HB]});let t=e;return t})();var Oce=new Z("cdk-dir-doc",{providedIn:"root",factory:Rce});function Rce(){return Y(Ne)}var Mce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function kce(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Mce.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Tr=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new Se,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=kce(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(x(Oce,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var $a=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();function Nce(){return!0}var Pce=new Z("mat-sanity-checks",{providedIn:"root",factory:Nce}),cn=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return Yf()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(x(vS),x(Pce,8),x(Ne))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[$a,$a]});let t=e;return t})();var ns=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(ns||{}),ES=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=ns.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},rU=ko({passive:!0,capture:!0}),CS=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=ts(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rU)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rU)))}},sU={enterDuration:225,exitDuration:150},Lce=800,oU=ko({passive:!0,capture:!0}),lU=["mousedown","touchstart"],aU=["mouseup","mouseleave","touchend","touchcancel"],Qf=class Qf{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bs(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=b(b({},sU),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||Fce(e,i,r),l=e-r.left,a=i-r.top,u=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-o}px`,c.style.top=`${a-o}px`,c.style.height=`${o*2}px`,c.style.width=`${o*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let d=window.getComputedStyle(c),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,v=new ES(this,c,n,p);c.style.transform="scale3d(1, 1, 1)",v.state=ns.FADING_IN,n.persistent||(this._mostRecentTransientRipple=v);let E=null;return!p&&(u||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let C=()=>{E&&(E.fallbackTimer=null),clearTimeout(U),this._finishRippleTransition(v)},P=()=>this._destroyRipple(v),U=setTimeout(P,u+100);c.addEventListener("transitionend",C),c.addEventListener("transitioncancel",P),E={onTransitionEnd:C,onTransitionCancel:P,fallbackTimer:U}}),this._activeRipples.set(v,E),(p||!u)&&this._finishRippleTransition(v),v}fadeOutRipple(e){if(e.state===ns.FADING_OUT||e.state===ns.HIDDEN)return;let i=e.element,n=b(b({},sU),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=ns.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=Bs(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,lU.forEach(n=>{Qf._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{aU.forEach(i=>{this._triggerElement.addEventListener(i,this,oU)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===ns.FADING_IN?this._startFadeOutTransition(e):e.state===ns.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=ns.VISIBLE,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=ns.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel),i.fallbackTimer!==null&&clearTimeout(i.fallbackTimer)),e.element.remove()}_onMousedown(e){let i=gS(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===ns.VISIBLE||e.config.terminateOnPointerUp&&e.state===ns.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(lU.forEach(i=>Qf._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(aU.forEach(i=>e.removeEventListener(i,this,oU)),this._pointerUpEventsRegistered=!1))}};Qf._eventManager=new CS;var IS=Qf;function Fce(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var TS=new Z("mat-ripple-global-options"),is=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,l){this._elementRef=n,this._animationMode=l,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new IS(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:b(b(b({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,b(b({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(le),I(St),I(TS,8),I(Tn,8))},e.\u0275dir=Ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&ut("mat-ripple-unbounded",s.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),dg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var uU={capture:!0},cU=["focus","mousedown","mouseenter","touchstart"],bS="mat-ripple-loader-uninitialized",yS="mat-ripple-loader-class-name",dU="mat-ripple-loader-centered",cg="mat-ripple-loader-disabled",hU=(()=>{let e=class e{constructor(){this._document=Y(Ne,{optional:!0}),this._animationMode=Y(Tn,{optional:!0}),this._globalRippleOptions=Y(TS,{optional:!0}),this._platform=Y(St),this._ngZone=Y(le),this._hosts=new Map,this._onInteraction=n=>{let r=ts(n);if(r instanceof HTMLElement){let s=r.closest(`[${bS}="${this._globalRippleOptions?.namespace??""}"]`);s&&this._createRipple(s)}},this._ngZone.runOutsideAngular(()=>{for(let n of cU)this._document?.addEventListener(n,this._onInteraction,uU)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of cU)this._document?.removeEventListener(r,this._onInteraction,uU)}configureRipple(n,r){n.setAttribute(bS,this._globalRippleOptions?.namespace??""),(r.className||!n.hasAttribute(yS))&&n.setAttribute(yS,r.className||""),r.centered&&n.setAttribute(dU,""),r.disabled&&n.setAttribute(cg,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let s=this._hosts.get(n);if(s){s.disabled=r;return}r?n.setAttribute(cg,""):n.removeAttribute(cg)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",n.getAttribute(yS)),n.append(s);let o=new is(new Te(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(dU),o.disabled=n.hasAttribute(cg),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(bS),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vce=["mat-button",""],Bce=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Uce=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var jce=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Hce=["mat-icon-button",""],zce=["*"];var $ce=new Z("MAT_BUTTON_CONFIG");var Gce=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],fU=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,r,s,o){this._elementRef=n,this._platform=r,this._ngZone=s,this._animationMode=o,this._focusMonitor=Y(Ol),this._rippleLoader=Y(hU),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let l=Y($ce,{optional:!0}),a=n.nativeElement,u=a.classList;this.disabledInteractive=l?.disabledInteractive??!1,this.color=l?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:d}of Gce)a.hasAttribute(c)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Xy()},e.\u0275dir=Ce({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ut],disabled:[2,"disabled","disabled",Ut],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ut],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ut]},features:[ln]});let t=e;return t})();var Ga=(()=>{let e=class e extends fU{constructor(n,r,s,o){super(n,r,s,o)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(St),I(le),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,s){r&2&&(Tt("disabled",s._getDisabledAttribute())("aria-disabled",s._getAriaDisabled()),Vr(s.color?"mat-"+s.color:""),ut("mat-mdc-button-disabled",s.disabled)("mat-mdc-button-disabled-interactive",s.disabledInteractive)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[At,ot],attrs:Vce,ngContentSelectors:Uce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,s){r&1&&(ei(Bce),pe(0,"span",0),Ln(1),R(2,"span",1),Ln(3,1),F(),Ln(4,2),pe(5,"span",2)(6,"span",3)),r&2&&ut("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color);background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow);height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color);background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight);border-radius:var(--mdc-outlined-button-container-shape);border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color);border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var V0=(()=>{let e=class e extends fU{constructor(n,r,s,o){super(n,r,s,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(St),I(le),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,s){r&2&&(Tt("disabled",s._getDisabledAttribute())("aria-disabled",s._getAriaDisabled()),Vr(s.color?"mat-"+s.color:""),ut("mat-mdc-button-disabled",s.disabled)("mat-mdc-button-disabled-interactive",s.disabledInteractive)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[At,ot],attrs:Hce,ngContentSelectors:zce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,s){r&1&&(ei(),pe(0,"span",0),Ln(1),pe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',jce],encapsulation:2,changeDetection:0});let t=e;return t})();var B0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,dg,cn]});let t=e;return t})();var fg=class{};function pU(t){return t&&typeof t.connect=="function"&&!(t instanceof ku)}var pg=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,i,n=!0,r){this._multiple=e,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new te,i&&i.length&&(e?i.forEach(s=>this._markSelected(s)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...e){this._verifyValueAssignment(e);let i=this.selected,n=new Set(e);e.forEach(s=>this._markSelected(s)),i.filter(s=>!n.has(this._getConcreteValue(s,n))).forEach(s=>this._unmarkSelected(s));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let i=this._hasQueuedChanges();return e&&this._emitChangeEvent(),i}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,i){if(this.compareWith){i=i??this._selection;for(let n of i)if(this.compareWith(e,n))return n;return e}else return e}};var Wce=20,U0=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this._platform=r,this._scrolled=new te,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=Wce){return this._platform.isBrowser?new Ae(r=>{this._globalSubscription||this._addGlobalListener();let s=n>0?this._scrolled.pipe(a8(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):pn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let s=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Ge(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let s=Bs(r),o=n.getElementRef().nativeElement;do if(s==o)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return ai(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(x(le),x(St),x(Ne,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ep=(()=>{let e=class e{constructor(n,r,s,o){this.elementRef=n,this.scrollDispatcher=r,this.ngZone=s,this.dir=o,this._destroyed=new te,this._elementScrolled=new Ae(l=>this.ngZone.runOutsideAngular(()=>ai(this.elementRef.nativeElement,"scroll").pipe(yt(this._destroyed)).subscribe(l)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(n){let r=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=s?n.end:n.start),n.right==null&&(n.right=s?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),s&&N0()!=Vs.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),N0()==Vs.INVERTED?n.left=n.right:N0()==Vs.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;eg()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",s="right",o=this.elementRef.nativeElement;if(n=="top")return o.scrollTop;if(n=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let l=this.dir&&this.dir.value=="rtl";return n=="start"?n=l?s:r:n=="end"&&(n=l?r:s),l&&N0()==Vs.INVERTED?n==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:l&&N0()==Vs.NEGATED?n==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(U0),I(le),I(Tr,8))},e.\u0275dir=Ce({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),qce=20,P2=(()=>{let e=class e{constructor(n,r,s){this._platform=n,this._change=new te,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(n.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+s,right:n.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),s=n.documentElement,o=s.getBoundingClientRect(),l=-o.top||n.body.scrollTop||r.scrollY||s.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||s.scrollLeft||0;return{top:l,left:a}}change(n=qce){return n>0?this._change.pipe(a8(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(x(St),x(le),x(Ne,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})(),SS=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[$a,mg,$a,mg]});let t=e;return t})();var tp=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Us=class extends tp{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},js=class extends tp{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},xS=class extends tp{constructor(e){super(),this.element=e instanceof Te?e.nativeElement:e}},Wa=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Us)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof js)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof xS)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var gg=class extends Wa{constructor(e,i,n,r,s){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{this._document;let l=o.element;l.parentNode;let a=this._document.createComment("dom-portal");l.parentNode.insertBefore(a,l),this.outletElement.appendChild(l),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(l,a)})},this._document=s}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||ze.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);r!==-1&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var mU=(()=>{let e=class e extends js{constructor(n,r){super(n,r)}};e.\u0275fac=function(r){return new(r||e)(I(xt),I(Bt))},e.\u0275dir=Ce({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[At]});let t=e;return t})();var rs=(()=>{let e=class e extends Wa{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new Se,this.attachDomPortal=o=>{this._document;let l=o.element;l.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),l.parentNode.insertBefore(a,l),this._getRootNode().appendChild(l),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(l,a)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),l=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),super.setDisposeFn(()=>l.destroy()),this._attachedPortal=n,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(I(pr),I(Bt),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[At]});let t=e;return t})();var Rl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var gU=eg(),AS=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Rn(-this._previousScrollPosition.left),e.style.top=Rn(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,n=e.style,r=i.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),gU&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gU&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}};var DS=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ge(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},_g=class{enable(){}disable(){}attach(){}};function OS(t,e){return e.some(i=>{let n=t.bottomi.bottom,s=t.righti.right;return n||r||s||o})}function _U(t,e){return e.some(i=>{let n=t.topi.bottom,s=t.lefti.right;return n||r||s||o})}var RS=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();OS(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Kce=(()=>{let e=class e{constructor(n,r,s,o){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new _g,this.close=l=>new DS(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new AS(this._viewportRuler,this._document),this.reposition=l=>new RS(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=o}};e.\u0275fac=function(r){return new(r||e)(x(U0),x(P2),x(le),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),F2=class{constructor(e){if(this.scrollStrategy=new _g,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let n of i)e[n]!==void 0&&(this[n]=e[n])}}};var MS=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var IU=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yce=(()=>{let e=class e extends IU{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=s=>{let o=this._attachedOverlays;for(let l=o.length-1;l>-1;l--)if(o[l]._keydownEvents.observers.length>0){let a=o[l]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(s)):a.next(s);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(le,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Zce=(()=>{let e=class e extends IU{constructor(n,r,s){super(n),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ts(o)},this._clickListener=o=>{let l=ts(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let c=u.length-1;c>-1;c--){let d=u[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(vU(d.overlayElement,l)||vU(d.overlayElement,a))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(n){if(super.add(n),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(St),x(le,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vU(t,e){let i=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===t)return!0;n=i&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var j0=(()=>{let e=class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||Yf()){let s=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new te,this._outsidePointerEvents=new te,this._renders=new te,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Eo(()=>uE(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Es(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=b(b({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ee(b({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Rn(this._config.width),e.height=Rn(this._config.height),e.minWidth=Rn(this._config.minWidth),e.minHeight=Rn(this._config.minHeight),e.maxWidth=Rn(this._config.maxWidth),e.maxHeight=Rn(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){let r=P0(i||[]).filter(s=>!!s);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(yt(qi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},bU="cdk-overlay-connected-position-bounding-box",Xce=/([A-Za-z%]+)$/,kS=class{get positions(){return this._preferredPositions}constructor(e,i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new te,this._resizeSubscription=kt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(bU),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[],o;for(let l of this._preferredPositions){let a=this._getOriginPoint(e,r,l),u=this._getOverlayPoint(a,i,l),c=this._getOverlayFit(u,i,n,l);if(c.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,a);return}if(this._canFitWithFlexibleDimensions(c,u,n)){s.push({position:l,origin:a,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(a,l)});continue}(!o||o.overlayFit.visibleAreaa&&(a=c,l=u)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&L2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bU),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:l}i.left<0&&(r-=i.left);let s;return n.originY=="center"?s=e.top+e.height/2:s=n.originY=="top"?e.top:e.bottom,i.top<0&&(s-=i.top),{x:r,y:s}}_getOverlayPoint(e,i,n){let r;n.overlayX=="center"?r=-i.width/2:n.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let s;return n.overlayY=="center"?s=-i.height/2:s=n.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,i,n,r){let s=EU(i),{x:o,y:l}=e,a=this._getOffset(r,"x"),u=this._getOffset(r,"y");a&&(o+=a),u&&(l+=u);let c=0-o,d=o+s.width-n.width,h=0-l,f=l+s.height-n.height,p=this._subtractOverflows(s.width,c,d),v=this._subtractOverflows(s.height,h,f),E=p*v;return{visibleArea:E,isCompletelyWithinViewport:s.width*s.height===E,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){let r=n.bottom-i.y,s=n.right-i.x,o=yU(this._overlayRef.getConfig().minHeight),l=yU(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportVertically||o!=null&&o<=r,u=e.fitsInViewportHorizontally||l!=null&&l<=s;return a&&u}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=EU(i),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),l=Math.max(e.y+r.height-s.height,0),a=Math.max(s.top-n.top-e.y,0),u=Math.max(s.left-n.left-e.x,0),c=0,d=0;return r.width<=s.width?c=u||-o:c=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}let a=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,u=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,c,d,h;if(u)h=n.width-e.x+this._viewportMargin*2,c=e.x-this._viewportMargin;else if(a)d=e.x,c=n.right-e.x;else{let f=Math.min(n.right-e.x+n.left,e.x),p=this._lastBoundingBoxSize.width;c=f*2,d=e.x-f,c>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:l,right:h,width:c,height:s}}_setBoundingBoxStyles(e,i){let n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Rn(n.height),r.top=Rn(n.top),r.bottom=Rn(n.bottom),r.width=Rn(n.width),r.left=Rn(n.left),r.right=Rn(n.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=Rn(s)),o&&(r.maxWidth=Rn(o))}this._lastBoundingBoxSize=n,L2(this._boundingBox.style,r)}_resetBoundingBoxStyles(){L2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){L2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let c=this._viewportRuler.getViewportScrollPosition();L2(n,this._getExactOverlayY(i,e,c)),L2(n,this._getExactOverlayX(i,e,c))}else n.position="static";let l="",a=this._getOffset(i,"x"),u=this._getOffset(i,"y");a&&(l+=`translateX(${a}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),o.maxHeight&&(r?n.maxHeight=Rn(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Rn(o.maxWidth):s&&(n.maxWidth="")),L2(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},s=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(s.y+this._overlayRect.height)}px`}else r.top=Rn(s.y);return r}_getExactOverlayX(e,i,n){let r={left:"",right:""},s=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let l=this._document.documentElement.clientWidth;r.right=`${l-(s.x+this._overlayRect.width)}px`}else r.left=Rn(s.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_U(e,n),isOriginOutsideView:OS(e,n),isOverlayClipped:_U(i,n),isOverlayOutsideView:OS(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&P0(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Te)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}};function L2(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function yU(t){if(typeof t!="number"&&t!=null){let[e,i]=t.split(Xce);return!i||i==="px"?parseFloat(e):null}return t||null}function EU(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function Qce(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var CU="cdk-global-overlay-wrapper",NS=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(CU),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:l}=n,a=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),u=(s==="100%"||s==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",p="",v="";a?v="flex-start":c==="center"?(v="center",h?p=d:f=d):h?c==="left"||c==="end"?(v="flex-end",f=d):(c==="right"||c==="start")&&(v="flex-start",p=d):c==="left"||c==="start"?(v="flex-start",f=d):(c==="right"||c==="end")&&(v="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=a?"0":f,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=a?"0":p,i.justifyContent=v,i.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(CU),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Jce=(()=>{let e=class e{constructor(n,r,s,o){this._viewportRuler=n,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new NS}flexibleConnectedTo(n){return new kS(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(x(P2),x(Ne),x(St),x(j0))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e0e=0,ri=(()=>{let e=class e{constructor(n,r,s,o,l,a,u,c,d,h,f,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=l,this._injector=a,this._ngZone=u,this._document=c,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(n){let r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),l=new F2(n);return l.direction=l.direction||this._directionality.value,new Ml(o,r,s,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Oi))}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=`cdk-overlay-${e0e++}`,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Ji)),new gg(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(x(Kce),x(j0),x(pr),x(Jce),x(Yce),x(ze),x(le),x(Ne),x(Tr),x(ch),x(Zce),x(Tn,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var t0e=new Z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.reposition()}});function n0e(t){return()=>t.scrollStrategies.reposition()}var i0e={provide:t0e,deps:[ri],useFactory:n0e},qa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[ri,i0e],imports:[$a,Rl,SS,SS]});let t=e;return t})();function r0e(t,e){}var V2=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var LS=(()=>{let e=class e extends Wa{constructor(n,r,s,o,l,a,u,c){super(),this._elementRef=n,this._focusTrapFactory=r,this._config=o,this._interactivityChecker=l,this._ngZone=a,this._overlayRef=u,this._focusMonitor=c,this._platform=Y(St),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=Y(Wt),this._injector=Y(ze),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._document=s,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let s=()=>{n.removeEventListener("blur",s),n.removeEventListener("mousedown",s),n.removeAttribute("tabindex")};n.addEventListener("blur",s),n.addEventListener("mousedown",s)})),n.focus(r)}_focusByCssSelector(n,r){let s=this._elementRef.nativeElement.querySelector(n);s&&this._forceFocus(s,r)}_trapFocus(){this._isDestroyed||Es(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let s=Kf(),o=this._elementRef.nativeElement;(!s||s===this._document.body||s===o||o.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let n=this._elementRef.nativeElement,r=Kf();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Kf()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(lg),I(Ne,8),I(V2),I(Zf),I(le),I(Ml),I(Ol))},e.\u0275cmp=Me({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,s){if(r&1&&Et(rs,7),r&2){let o;nt(o=it())&&(s._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,s){r&2&&Tt("id",s._config.id||null)("role",s._config.role)("aria-modal",s._config.ariaModal)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null)},standalone:!0,features:[At,ot],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,s){r&1&&ke(0,r0e,0,0,"ng-template",0)},dependencies:[rs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let t=e;return t})(),np=class{constructor(e,i){this.overlayRef=e,this.config=i,this.closed=new te,this.disableClose=i.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!No(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{i.closeOnOverlayDetachments!==!1&&this.close()})}close(e,i){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",i=""){return this.overlayRef.updateSize({width:e,height:i}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},s0e=new Z("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.block()}}),o0e=new Z("DialogData"),l0e=new Z("DefaultDialogConfig");var a0e=0,FS=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(n,r,s,o,l,a){this._overlay=n,this._injector=r,this._defaultOptions=s,this._parentDialog=o,this._overlayContainer=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this._ariaHiddenElements=new Map,this.afterAllClosed=io(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Or(void 0))),this._scrollStrategy=a}open(n,r){let s=this._defaultOptions||new V2;r=b(b({},s),r),r.id=r.id||`cdk-dialog-${a0e++}`,r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),l=this._overlay.create(o),a=new np(l,r),u=this._attachContainer(l,a,r);return a.containerInstance=u,this._attachDialogContent(n,a,u,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){PS(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){PS(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),PS(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new F2({positionStrategy:n.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,s){let o=s.injector||s.viewContainerRef?.injector,l=[{provide:V2,useValue:s},{provide:np,useValue:r},{provide:Ml,useValue:n}],a;s.container?typeof s.container=="function"?a=s.container:(a=s.container.type,l.push(...s.container.providers(s))):a=LS;let u=new Us(a,s.viewContainerRef,ze.create({parent:o||this._injector,providers:l}),s.componentFactoryResolver);return n.attach(u).instance}_attachDialogContent(n,r,s,o){if(n instanceof xt){let l=this._createInjector(o,r,s,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=b(b({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),s.attachTemplatePortal(new js(n,null,a,l))}else{let l=this._createInjector(o,r,s,this._injector),a=s.attachComponentPortal(new Us(n,o.viewContainerRef,l,o.componentFactoryResolver));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,s,o){let l=n.injector||n.viewContainerRef?.injector,a=[{provide:o0e,useValue:n.data},{provide:np,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,s)):a.push(...n.providers)),n.direction&&(!l||!l.get(Tr,null,{optional:!0}))&&a.push({provide:Tr,useValue:{value:n.direction,change:pn()}}),ze.create({parent:l||o,providers:a})}_removeOpenDialog(n,r){let s=this.openDialogs.indexOf(n);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let n=this._overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let s=r.length-1;s>-1;s--){let o=r[s];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(ze),x(l0e,8),x(e,12),x(j0),x(s0e))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PS(t,e){let i=t.length;for(;i--;)e(t[i])}var TU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[FS],imports:[qa,Rl,ag,Rl]});let t=e;return t})();var ct=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ct||{}),Lo="*";function bg(t,e){return{type:ct.Trigger,name:t,definitions:e,options:{}}}function B2(t,e=null){return{type:ct.Animate,styles:e,timings:t}}function SU(t,e=null){return{type:ct.Sequence,steps:t,options:e}}function Sr(t){return{type:ct.Style,styles:t,offset:null}}function U2(t,e,i){return{type:ct.State,name:t,styles:e,options:i}}function j2(t,e,i=null){return{type:ct.Transition,expr:t,animation:e,options:i}}var Ka=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rp=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,l)=>Math.max(o,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},yg="!";function u0e(t,e){}var sp=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},VS="mdc-dialog--open",wU="mdc-dialog--opening",xU="mdc-dialog--closing",c0e=150,d0e=75,h0e=(()=>{let e=class e extends LS{constructor(n,r,s,o,l,a,u,c,d){super(n,r,s,o,l,a,u,d),this._animationMode=c,this._animationStateChanged=new Se,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DU(this._config.enterAnimationDuration)??c0e:0,this._exitAnimationDuration=this._animationsEnabled?DU(this._config.exitAnimationDuration)??d0e:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(AU,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wU,VS)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(VS),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(VS),this._animationsEnabled?(this._hostElement.style.setProperty(AU,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(xU)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(n){this._actionSectionCount+=n,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(wU,xU)}_waitForAnimationToComplete(n,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,n)}_requestAnimationFrame(n){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(n):n()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(n){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(n){let r=super.attachComponentPortal(n);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(lg),I(Ne,8),I(sp),I(Zf),I(le),I(Ml),I(Tn,8),I(Ol))},e.\u0275cmp=Me({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,s){r&2&&(Nc("id",s._config.id),Tt("aria-modal",s._config.ariaModal)("role",s._config.role)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null),ut("_mat-animation-noopable",!s._animationsEnabled)("mat-mdc-dialog-container-with-actions",s._actionSectionCount>0))},standalone:!0,features:[At,ot],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,s){r&1&&(R(0,"div",0)(1,"div",1),ke(2,u0e,0,0,"ng-template",2),F()())},dependencies:[rs],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let t=e;return t})(),AU="--mat-dialog-transition-duration";function DU(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Po(t.substring(0,t.length-2)):t.endsWith("s")?Po(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Eg=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Eg||{}),op=class{constructor(e,i,n){this._ref=e,this._containerInstance=n,this._afterOpened=new te,this._beforeClosed=new te,this._state=Eg.OPEN,this.disableClose=i.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ge(r=>r.state==="opened"),en(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ge(r=>r.state==="closed"),en(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),qi(this.backdropClick(),this.keydownEvents().pipe(Ge(r=>r.keyCode===27&&!this.disableClose&&!No(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),OU(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Ge(i=>i.state==="closing"),en(1)).subscribe(i=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Eg.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",i=""){return this._ref.updateSize(e,i),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=Eg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function OU(t,e,i){return t._closeInteractionType=e,t.close(i)}var f0e=new Z("MatMdcDialogData"),p0e=new Z("mat-mdc-dialog-default-options"),m0e=new Z("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.block()}});var g0e=0,lp=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(n,r,s,o,l,a,u,c){this._overlay=n,this._defaultOptions=o,this._scrollStrategy=l,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this.dialogConfigClass=sp,this.afterAllClosed=io(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Or(void 0))),this._dialog=r.get(FS),this._dialogRefConstructor=op,this._dialogContainerType=h0e,this._dialogDataToken=f0e}open(n,r){let s;r=b(b({},this._defaultOptions||new sp),r),r.id=r.id||`mat-mdc-dialog-${g0e++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(n,ee(b({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:V2,useValue:r}]},templateContext:()=>({dialogRef:s}),providers:(l,a,u)=>(s=new this._dialogRefConstructor(l,r,u),s.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:s}])}));return s.componentRef=o.componentRef,s.componentInstance=o.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(s);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(n){let r=n.length;for(;r--;)n[r].close()}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(ze),x(ch,8),x(p0e,8),x(m0e),x(e,12),x(j0),x(Tn,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_0e=0,RU=(()=>{let e=class e{constructor(n,r,s){this.dialogRef=n,this._elementRef=r,this._dialog=s,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=NU(this._elementRef,this._dialog.openDialogs))}ngOnChanges(n){let r=n._matDialogClose||n._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(n){OU(this.dialogRef,n.screenX===0&&n.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(I(op,8),I(Te),I(lp))},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,s){r&1&&be("click",function(l){return s._onButtonClick(l)}),r&2&&Tt("aria-label",s.ariaLabel||null)("type",s.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[In]});let t=e;return t})(),v0e=(()=>{let e=class e{constructor(n,r,s){this._dialogRef=n,this._elementRef=r,this._dialog=s}ngOnInit(){this._dialogRef||(this._dialogRef=NU(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(I(op,8),I(Te),I(lp))},e.\u0275dir=Ce({type:e,standalone:!0});let t=e;return t})(),MU=(()=>{let e=class e extends v0e{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${_0e++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,s){r&2&&Nc("id",s.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[At]});let t=e;return t})(),kU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[dE([ep])]});let t=e;return t})();function NU(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-mdc-dialog-container");)i=i.parentElement;return i?e.find(n=>n.id===i.id):null}var PU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[lp],imports:[TU,qa,Rl,cn,cn]});let t=e;return t})();var FU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var b0e=["determinateSpinner"];function y0e(t,e){if(t&1&&(m9(),R(0,"svg",11),pe(1,"circle",12),F()),t&2){let i=ne();Tt("viewBox",i._viewBox()),G(),an("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeCircumference()/2,"px")("stroke-width",i._circleStrokeWidth(),"%"),Tt("r",i._circleRadius())}}var E0e=new Z("mat-progress-spinner-default-options",{providedIn:"root",factory:C0e});function C0e(){return{diameter:VU}}var VU=100,I0e=10,BU=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}constructor(n,r,s){this._elementRef=n,this._defaultColor="primary",this._value=0,this._diameter=VU,this._noopAnimations=r==="NoopAnimations"&&!!s&&!s._forceAnimations,this.mode=n.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",s&&(s.color&&(this.color=this._defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,n||0))}get diameter(){return this._diameter}set diameter(n){this._diameter=n||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(n){this._strokeWidth=n||0}_circleRadius(){return(this.diameter-I0e)/2}_viewBox(){let n=this._circleRadius()*2+this.strokeWidth;return`0 0 ${n} ${n}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Tn,8),I(E0e))},e.\u0275cmp=Me({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,s){if(r&1&&Et(b0e,5),r&2){let o;nt(o=it())&&(s._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,s){r&2&&(Tt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",s.mode==="determinate"?s.value:null)("mode",s.mode),Vr("mat-"+s.color),an("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),ut("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate",s.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",er],diameter:[2,"diameter","diameter",er],strokeWidth:[2,"strokeWidth","strokeWidth",er]},exportAs:["matProgressSpinner"],standalone:!0,features:[ln,ot],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,s){if(r&1&&(ke(0,y0e,2,8,"ng-template",null,0,a2),R(2,"div",2,1),m9(),R(4,"svg",3),pe(5,"circle",4),F()(),Ly(),R(6,"div",5)(7,"div",6)(8,"div",7),Dn(9,8),F(),R(10,"div",9),Dn(11,8),F(),R(12,"div",10),Dn(13,8),F()()()),r&2){let o=Br(1);G(4),Tt("viewBox",s._viewBox()),G(),an("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),Tt("r",s._circleRadius()),G(4),J("ngTemplateOutlet",o),G(2),J("ngTemplateOutlet",o),G(2),J("ngTemplateOutlet",o)}},dependencies:[Y9],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});let t=e;return t})();var UU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[tr,cn]});let t=e;return t})();function S0e(t,e){if(t&1){let i=mt();R(0,"div",1)(1,"button",2),be("click",function(){ae(i);let r=ne();return ue(r.action())}),N(2),F()()}if(t&2){let i=ne();G(2),Ca(" ",i.data.action," ")}}var w0e=["label"];function x0e(t,e){}var A0e=Math.pow(2,31)-1,ap=class{constructor(e,i){this._overlayRef=i,this._afterDismissed=new te,this._afterOpened=new te,this._onAction=new te,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,A0e))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},jU=new Z("MatSnackBarData"),H0=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},D0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),O0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),R0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),HU=(()=>{let e=class e{constructor(n,r){this.snackBarRef=n,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(I(ap),I(jU))},e.\u0275cmp=Me({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[ot],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,s){r&1&&(R(0,"div",0),N(1),F(),ke(2,S0e,3,1,"div",1)),r&2&&(G(),Ca(" ",s.data.message,` -`),G(),Pn(s.hasAction?2:-1))},dependencies:[Ga,D0e,O0e,R0e],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),M0e={snackBarState:bg("state",[U2("void, hidden",Sr({transform:"scale(0.8)",opacity:0})),U2("visible",Sr({transform:"scale(1)",opacity:1})),j2("* => visible",B2("150ms cubic-bezier(0, 0, 0.2, 1)")),j2("* => void, * => hidden",B2("75ms cubic-bezier(0.4, 0.0, 1, 1)",Sr({opacity:0})))])},k0e=0,N0e=(()=>{let e=class e extends Wa{constructor(n,r,s,o,l){super(),this._ngZone=n,this._elementRef=r,this._changeDetectorRef=s,this._platform=o,this.snackBarConfig=l,this._document=Y(Ne),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new te,this._onExit=new te,this._onEnter=new te,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${k0e++}`,this.attachDomPortal=a=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),u},l.politeness==="assertive"&&!l.announcementMessage?this._live="assertive":l.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),r}attachTemplatePortal(n){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),r}onAnimationEnd(n){let{fromState:r,toState:s}=n;if((s==="void"&&r!=="void"||s==="hidden")&&this._completeExit(),s==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let n=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(l=>n.classList.add(l)):n.classList.add(r)),this._exposeToModals();let s=this._label.nativeElement,o="mdc-snackbar__label";s.classList.toggle(o,!s.querySelector(`.${o}`))}_exposeToModals(){let n=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let r=n.getAttribute("aria-owns");if(r){let s=r.replace(this._liveElementId,"").trim();s.length>0?n.setAttribute("aria-owns",s):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&r){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(s=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Te),I(Wt),I(St),I(H0))},e.\u0275cmp=Me({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,s){if(r&1&&(Et(rs,7),Et(w0e,7)),r&2){let o;nt(o=it())&&(s._portalOutlet=o.first),nt(o=it())&&(s._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,s){r&1&&F9("@state.done",function(l){return s.onAnimationEnd(l)}),r&2&&L9("@state",s._animationState)},standalone:!0,features:[At,ot],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,s){r&1&&(R(0,"div",1)(1,"div",2,0)(3,"div",3),ke(4,x0e,0,0,"ng-template",4),F(),pe(5,"div"),F()()),r&2&&(G(5),Tt("aria-live",s._live)("role",s._role)("id",s._liveElementId))},dependencies:[rs],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[M0e.snackBarState]}});let t=e;return t})();function P0e(){return new H0}var L0e=new Z("mat-snack-bar-default-options",{providedIn:"root",factory:P0e}),up=(()=>{let e=class e{get _openedSnackBarRef(){let n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,r,s,o,l,a){this._overlay=n,this._live=r,this._injector=s,this._breakpointObserver=o,this._parentSnackBar=l,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=HU,this.snackBarContainerComponent=N0e,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",s){let o=b(b({},this._defaultConfig),s);return o.data={message:n,action:r},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){let s=r&&r.viewContainerRef&&r.viewContainerRef.injector,o=ze.create({parent:s||this._injector,providers:[{provide:H0,useValue:r}]}),l=new Us(this.snackBarContainerComponent,r.viewContainerRef,o),a=n.attach(l);return a.instance.snackBarConfig=r,a.instance}_attach(n,r){let s=b(b(b({},new H0),this._defaultConfig),r),o=this._createOverlay(s),l=this._attachSnackBarContainer(o,s),a=new ap(l,o);if(n instanceof xt){let u=new js(n,null,{$implicit:s.data,snackBarRef:a});a.instance=l.attachTemplatePortal(u)}else{let u=this._createInjector(s,a),c=new Us(n,void 0,u),d=l.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe(GB.HandsetPortrait).pipe(yt(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),s.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(a,s),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration))}_createOverlay(n){let r=new F2;r.direction=n.direction;let s=this._overlay.position().global(),o=n.direction==="rtl",l=n.horizontalPosition==="left"||n.horizontalPosition==="start"&&!o||n.horizontalPosition==="end"&&o,a=!l&&n.horizontalPosition!=="center";return l?s.left("0"):a?s.right("0"):s.centerHorizontally(),n.verticalPosition==="top"?s.top("0"):s.bottom("0"),r.positionStrategy=s,this._overlay.create(r)}_createInjector(n,r){let s=n&&n.viewContainerRef&&n.viewContainerRef.injector;return ze.create({parent:s||this._injector,providers:[{provide:ap,useValue:r},{provide:jU,useValue:n.data}]})}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(nU),x(ze),x(L0),x(e,12),x(L0e))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[up],imports:[qa,Rl,B0,cn,HU,cn]});let t=e;return t})();var BS=class{constructor(e){this._box=e,this._destroyed=new te,this._resizeSubject=new te,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(i=>this._resizeSubject.next(i)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Ae(i=>{let n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Ge(i=>i.some(n=>n.target===e)),d8({bufferSize:1,refCount:!0}),yt(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},GU=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=Y(le),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let s=r?.box||"content-box";return this._observers.has(s)||this._observers.set(s,new BS(s)),this._observers.get(s).observe(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zS=["*"];function B0e(t,e){t&1&&Ln(0)}var U0e=["tabListContainer"],j0e=["tabList"],H0e=["tabListInner"],z0e=["nextPaginator"],$0e=["previousPaginator"],G0e=t=>({animationDuration:t}),W0e=(t,e)=>({value:t,params:e});function q0e(t,e){}var K0e=["tabBodyWrapper"],Y0e=["tabHeader"];function Z0e(t,e){}function X0e(t,e){if(t&1&&ke(0,Z0e,0,0,"ng-template",12),t&2){let i=ne().$implicit;J("cdkPortalOutlet",i.templateLabel)}}function Q0e(t,e){if(t&1&&N(0),t&2){let i=ne().$implicit;Fn(i.textLabel)}}function J0e(t,e){if(t&1){let i=mt();R(0,"div",7,2),be("click",function(){let r=ae(i),s=r.$implicit,o=r.$index,l=ne(),a=Br(1);return ue(l._handleClick(s,a,o))})("cdkFocusChange",function(r){let s=ae(i).$index,o=ne();return ue(o._tabFocusChanged(r,s))}),pe(2,"span",8)(3,"div",9),R(4,"span",10)(5,"span",11),ke(6,X0e,1,1,null,12)(7,Q0e,1,1),F()()()}if(t&2){let i=e.$implicit,n=e.$index,r=Br(1),s=ne();Vr(i.labelClass),ut("mdc-tab--active",s.selectedIndex===n),J("id",s._getTabLabelId(n))("disabled",i.disabled)("fitInkBarToContent",s.fitInkBarToContent),Tt("tabIndex",s._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(n))("aria-selected",s.selectedIndex===n)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),G(3),J("matRippleTrigger",r)("matRippleDisabled",i.disabled||s.disableRipple),G(3),Pn(i.templateLabel?6:7)}}function ede(t,e){t&1&&Ln(0)}function tde(t,e){if(t&1){let i=mt();R(0,"mat-tab-body",13),be("_onCentered",function(){ae(i);let r=ne();return ue(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){ae(i);let s=ne();return ue(s._setTabBodyWrapperHeight(r))}),F()}if(t&2){let i=e.$implicit,n=e.$index,r=ne();Vr(i.bodyClass),ut("mat-mdc-tab-body-active",r.selectedIndex===n),J("id",r._getTabContentId(n))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),Tt("tabindex",r.contentTabIndex!=null&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))("aria-hidden",r.selectedIndex!==n)}}var nde=new Z("MatTabContent"),ide=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[mn([{provide:nde,useExisting:e}])]});let t=e;return t})(),rde=new Z("MatTabLabel"),KU=new Z("MAT_TAB"),$S=(()=>{let e=class e extends mU{constructor(n,r,s){super(n,r),this._closestTab=s}};e.\u0275fac=function(r){return new(r||e)(I(xt),I(Bt),I(KU,8))},e.\u0275dir=Ce({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[mn([{provide:rde,useExisting:e}]),At]});let t=e;return t})(),YU=new Z("MAT_TAB_GROUP"),GS=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}get content(){return this._contentPortal}constructor(n,r){this._viewContainerRef=n,this._closestTabGroup=r,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new te,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(n){(n.hasOwnProperty("textLabel")||n.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new js(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(YU,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab"]],contentQueries:function(r,s,o){if(r&1&&(Ts(o,$S,5),Ts(o,ide,7,xt)),r&2){let l;nt(l=it())&&(s.templateLabel=l.first),nt(l=it())&&(s._explicitContent=l.first)}},viewQuery:function(r,s){if(r&1&&Et(xt,7),r&2){let o;nt(o=it())&&(s._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Ut],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[mn([{provide:KU,useExisting:e}]),ln,In,ot],ngContentSelectors:zS,decls:1,vars:0,template:function(r,s){r&1&&(ei(),ke(0,B0e,1,0,"ng-template"))},encapsulation:2});let t=e;return t})(),US="mdc-tab-indicator--active",WU="mdc-tab-indicator--no-transition",jS=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let i=this._items.find(r=>r.elementRef.nativeElement===e),n=this._currentItem;if(i!==n&&(n?.deactivateInkBar(),i)){let r=n?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}},sde=(()=>{let e=class e{constructor(){this._elementRef=Y(Te),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){this._fitToContent!==n&&(this._fitToContent=n,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){let r=this._elementRef.nativeElement;if(!n||!r.getBoundingClientRect||!this._inkBarContentElement){r.classList.add(US);return}let s=r.getBoundingClientRect(),o=n.width/s.width,l=n.left-s.left;r.classList.add(WU),this._inkBarContentElement.style.setProperty("transform",`translateX(${l}px) scaleX(${o})`),r.getBoundingClientRect(),r.classList.remove(WU),r.classList.add(US),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(US)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let n=this._elementRef.nativeElement.ownerDocument||document,r=this._inkBarElement=n.createElement("span"),s=this._inkBarContentElement=n.createElement("span");r.className="mdc-tab-indicator",s.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",r.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let n=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;n.appendChild(this._inkBarElement)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Ut]},features:[ln]});let t=e;return t})();var ZU=(()=>{let e=class e extends sde{constructor(n){super(),this.elementRef=n,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(r){return new(r||e)(I(Te))},e.\u0275dir=Ce({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,s){r&2&&(Tt("aria-disabled",!!s.disabled),ut("mat-mdc-tab-disabled",s.disabled))},inputs:{disabled:[2,"disabled","disabled",Ut]},standalone:!0,features:[ln,At]});let t=e;return t})(),qU=ko({passive:!0}),ode=650,lde=100,ade=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(n){let r=isNaN(n)?0:n;this._selectedIndex!=r&&(this._selectedIndexChanged=!0,this._selectedIndex=r,this._keyManager&&this._keyManager.updateActiveItem(r))}constructor(n,r,s,o,l,a,u){this._elementRef=n,this._changeDetectorRef=r,this._viewportRuler=s,this._dir=o,this._ngZone=l,this._platform=a,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new te,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new te,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Se,this.indexFocused=new Se,this._sharedResizeObserver=Y(GU),this._injector=Y(ze),l.runOutsideAngular(()=>{ai(n.nativeElement,"mouseleave").pipe(yt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){ai(this._previousPaginator.nativeElement,"touchstart",qU).pipe(yt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ai(this._nextPaginator.nativeElement,"touchstart",qU).pipe(yt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let n=this._dir?this._dir.change:pn("ltr"),r=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ki(32),yt(this._destroyed)),s=this._viewportRuler.change(150).pipe(yt(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new og(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Es(o,{injector:this._injector}),qi(n,s,r,this._items.changes,this._itemsResized()).pipe(yt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return typeof ResizeObserver!="function"?il:this._items.changes.pipe(Or(this._items),Ai(n=>new Ae(r=>this._ngZone.runOutsideAngular(()=>{let s=new ResizeObserver(o=>r.next(o));return n.forEach(o=>s.observe(o.elementRef.nativeElement)),()=>{s.disconnect()}}))),Fu(1),Ge(n=>n.some(r=>r.contentRect.width>0&&r.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(n){if(!No(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){let n=this._elementRef.nativeElement.textContent;n!==this._currentTextContent&&(this._currentTextContent=n||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}_isValidIndex(n){return this._items?!!this._items.toArray()[n]:!0}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();let r=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?r.scrollLeft=0:r.scrollLeft=r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let n=this.scrollDistance,r=this._getLayoutDirection()==="ltr"?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(n){this._scrollTo(n)}_scrollHeader(n){let r=this._tabListContainer.nativeElement.offsetWidth,s=(n=="before"?-1:1)*r/3;return this._scrollTo(this._scrollDistance+s)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;let r=this._items?this._items.toArray()[n]:null;if(!r)return;let s=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:l}=r.elementRef.nativeElement,a,u;this._getLayoutDirection()=="ltr"?(a=o,u=a+l):(u=this._tabListInner.nativeElement.offsetWidth-o,a=u-l);let c=this.scrollDistance,d=this.scrollDistance+s;ad&&(this.scrollDistance+=Math.min(u-d,a-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let n=this._tabListInner.nativeElement.scrollWidth,r=this._elementRef.nativeElement.offsetWidth,s=n-r>=5;s||(this.scrollDistance=0),s!==this._showPaginationControls&&(this._showPaginationControls=s,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let n=this._tabListInner.nativeElement.scrollWidth,r=this._tabListContainer.nativeElement.offsetWidth;return n-r||0}_alignInkBarToSelectedTab(){let n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=n?n.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,r){r&&r.button!=null&&r.button!==0||(this._stopInterval(),Xn(ode,lde).pipe(yt(qi(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:s,distance:o}=this._scrollHeader(n);(o===0||o>=s)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(P2),I(Tr,8),I(le),I(St),I(Tn,8))},e.\u0275dir=Ce({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Ut],selectedIndex:[2,"selectedIndex","selectedIndex",er]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ln]});let t=e;return t})(),ude=(()=>{let e=class e extends ade{constructor(n,r,s,o,l,a,u){super(n,r,s,o,l,a,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new jS(this._items),super.ngAfterContentInit()}_itemSelected(n){n.preventDefault()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(P2),I(Tr,8),I(le),I(St),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-header"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,ZU,4),r&2){let l;nt(l=it())&&(s._items=l)}},viewQuery:function(r,s){if(r&1&&(Et(U0e,7),Et(j0e,7),Et(H0e,7),Et(z0e,5),Et($0e,5)),r&2){let o;nt(o=it())&&(s._tabListContainer=o.first),nt(o=it())&&(s._tabList=o.first),nt(o=it())&&(s._tabListInner=o.first),nt(o=it())&&(s._nextPaginator=o.first),nt(o=it())&&(s._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(r,s){r&2&&ut("mat-mdc-tab-header-pagination-controls-enabled",s._showPaginationControls)("mat-mdc-tab-header-rtl",s._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",Ut]},standalone:!0,features:[ln,At,ot],ngContentSelectors:zS,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(r,s){if(r&1){let o=mt();ei(),R(0,"button",5,0),be("click",function(){return ae(o),ue(s._handlePaginatorClick("before"))})("mousedown",function(a){return ae(o),ue(s._handlePaginatorPress("before",a))})("touchend",function(){return ae(o),ue(s._stopInterval())}),pe(2,"div",6),F(),R(3,"div",7,1),be("keydown",function(a){return ae(o),ue(s._handleKeydown(a))}),R(5,"div",8,2),be("cdkObserveContent",function(){return ae(o),ue(s._onContentChanges())}),R(7,"div",9,3),Ln(9),F()()(),R(10,"button",10,4),be("mousedown",function(a){return ae(o),ue(s._handlePaginatorPress("after",a))})("click",function(){return ae(o),ue(s._handlePaginatorClick("after"))})("touchend",function(){return ae(o),ue(s._stopInterval())}),pe(12,"div",6),F()}r&2&&(ut("mat-mdc-tab-header-pagination-disabled",s._disableScrollBefore),J("matRippleDisabled",s._disableScrollBefore||s.disableRipple)("disabled",s._disableScrollBefore||null),G(3),ut("_mat-animation-noopable",s._animationMode==="NoopAnimations"),G(7),ut("mat-mdc-tab-header-pagination-disabled",s._disableScrollAfter),J("matRippleDisabled",s._disableScrollAfter||s.disableRipple)("disabled",s._disableScrollAfter||null))},dependencies:[is,jB],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let t=e;return t})(),cde=new Z("MAT_TABS_CONFIG"),dde={translateTab:bg("translateTab",[U2("center, void, left-origin-center, right-origin-center",Sr({transform:"none",visibility:"visible"})),U2("left",Sr({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),U2("right",Sr({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),j2("* => left, * => right, left => center, right => center",B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),j2("void => left-origin-center",[Sr({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),j2("void => right-origin-center",[Sr({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},hde=(()=>{let e=class e extends rs{constructor(n,r,s,o){super(n,r,o),this._host=s,this._centeringSub=kt.EMPTY,this._leavingSub=kt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Or(this._host._isCenterPosition(this._host._position))).subscribe(n=>{this._host._content&&n&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(pr),I(Bt),I(vs(()=>XU)),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[At]});let t=e;return t})(),XU=(()=>{let e=class e{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,r,s){this._elementRef=n,this._dir=r,this._dirChangeSubscription=kt.EMPTY,this._translateTabComplete=new te,this._onCentering=new Se,this._beforeCentering=new Se,this._afterLeavingCenter=new Se,this._onCentered=new Se(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(o=>{this._computePositionAnimationState(o),s.markForCheck()})),this._translateTabComplete.pipe(rl((o,l)=>o.fromState===l.fromState&&o.toState===l.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(n){let r=this._isCenterPosition(n.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(n){return n=="center"||n=="left-origin-center"||n=="right-origin-center"}_computePositionAnimationState(n=this._getLayoutDirection()){this._positionIndex<0?this._position=n=="ltr"?"left":"right":this._positionIndex>0?this._position=n=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(n){let r=this._getLayoutDirection();return r=="ltr"&&n<=0||r=="rtl"&&n>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Tr,8),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-body"]],viewQuery:function(r,s){if(r&1&&Et(rs,5),r&2){let o;nt(o=it())&&(s._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[ot],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1,0),be("@translateTab.start",function(a){return ae(o),ue(s._onTranslateTabStarted(a))})("@translateTab.done",function(a){return ae(o),ue(s._translateTabComplete.next(a))}),ke(2,q0e,0,0,"ng-template",2),F()}r&2&&J("@translateTab",ih(3,W0e,s._position,vE(1,G0e,s.animationDuration)))},dependencies:[hde,ep],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[dde.translateTab]}});let t=e;return t})(),fde=0,pde=!0,QU=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=n,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=isNaN(n)?null:n}get animationDuration(){return this._animationDuration}set animationDuration(n){let r=n+"";this._animationDuration=/^\d+$/.test(r)?n+"ms":r}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=isNaN(n)?null:n}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){if(!pde)throw new Error("mat-tab-group background color must be set through the Sass theming API");let r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&r.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,r,s,o){this._elementRef=n,this._changeDetectorRef=r,this._animationMode=o,this._tabs=new pa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=kt.EMPTY,this._tabLabelSubscription=kt.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new Se,this.focusChange=new Se,this.animationDone=new Se,this.selectedTabChange=new Se(!0),this._isServer=!Y(St).isBrowser,this._groupId=fde++,this.animationDuration=s&&s.animationDuration?s.animationDuration:"500ms",this.disablePagination=s&&s.disablePagination!=null?s.disablePagination:!1,this.dynamicHeight=s&&s.dynamicHeight!=null?s.dynamicHeight:!1,s?.contentTabIndex!=null&&(this.contentTabIndex=s.contentTabIndex),this.preserveContent=!!s?.preserveContent,this.fitInkBarToContent=s&&s.fitInkBarToContent!=null?s.fitInkBarToContent:!1,this.stretchTabs=s&&s.stretchTabs!=null?s.stretchTabs:!0}ngAfterContentChecked(){let n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){let r=this._selectedIndex==null;if(!r){this.selectedTabChange.emit(this._createChangeEvent(n));let s=this._tabBodyWrapper.nativeElement;s.style.minHeight=s.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((s,o)=>s.isActive=o===n),r||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,s)=>{r.position=s-n,this._selectedIndex!=null&&r.position==0&&!r.origin&&(r.origin=n-this._selectedIndex)}),this._selectedIndex!==n&&(this._selectedIndex=n,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){let r=this._tabs.toArray(),s;for(let o=0;o{r[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Or(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(r=>r._closestTabGroup===this||!r._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(n){let r=this._tabHeader;r&&(r.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){let r=new HS;return r.index=n,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[n]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=qi(...this._tabs.map(n=>n._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(n){return Math.min(this._tabs.length-1,Math.max(n||0,0))}_getTabLabelId(n){return`mat-tab-label-${this._groupId}-${n}`}_getTabContentId(n){return`mat-tab-content-${this._groupId}-${n}`}_setTabBodyWrapperHeight(n){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=n+"px")}_removeTabBodyWrapperHeight(){let n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,r,s){r.focusIndex=s,n.disabled||(this.selectedIndex=s)}_getTabIndex(n){let r=this._lastFocusedTabIndex??this.selectedIndex;return n===r?0:-1}_tabFocusChanged(n,r){n&&n!=="mouse"&&n!=="touch"&&(this._tabHeader.focusIndex=r)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(cde,8),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-group"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,GS,5),r&2){let l;nt(l=it())&&(s._allTabs=l)}},viewQuery:function(r,s){if(r&1&&(Et(K0e,5),Et(Y0e,5)),r&2){let o;nt(o=it())&&(s._tabBodyWrapper=o.first),nt(o=it())&&(s._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(r,s){r&2&&(Vr("mat-"+(s.color||"primary")),an("--mat-tab-animation-duration",s.animationDuration),ut("mat-mdc-tab-group-dynamic-height",s.dynamicHeight)("mat-mdc-tab-group-inverted-header",s.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",s.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Ut],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Ut],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Ut],selectedIndex:[2,"selectedIndex","selectedIndex",er],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",er],disablePagination:[2,"disablePagination","disablePagination",Ut],disableRipple:[2,"disableRipple","disableRipple",Ut],preserveContent:[2,"preserveContent","preserveContent",Ut],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[mn([{provide:YU,useExisting:e}]),ln,ot],ngContentSelectors:zS,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(r,s){if(r&1){let o=mt();ei(),R(0,"mat-tab-header",3,0),be("indexFocused",function(a){return ae(o),ue(s._focusChanged(a))})("selectFocusedIndex",function(a){return ae(o),ue(s.selectedIndex=a)}),o2(2,J0e,8,17,"div",4,P9),F(),ke(4,ede,1,0),R(5,"div",5,1),o2(7,tde,1,13,"mat-tab-body",6,P9),F()}r&2&&(J("selectedIndex",s.selectedIndex||0)("disableRipple",s.disableRipple)("disablePagination",s.disablePagination),G(2),l2(s._tabs),G(2),Pn(s._isServer?4:-1),G(),ut("_mat-animation-noopable",s._animationMode==="NoopAnimations"),G(2),l2(s._tabs))},dependencies:[ude,ZU,iU,is,rs,XU],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color);border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let t=e;return t})(),HS=class{};var JU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var gde=["tooltip"],nj=20;var ij=new Z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.reposition({scrollThrottle:nj})}});function _de(t){return()=>t.scrollStrategies.reposition({scrollThrottle:nj})}var vde={provide:ij,deps:[ri],useFactory:_de};function bde(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var yde=new Z("mat-tooltip-default-options",{providedIn:"root",factory:bde});var ej="tooltip-panel",tj=ko({passive:!0}),Ede=8,Cde=8,Ide=24,Tde=200,Cg=(()=>{let e=class e{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=tg(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=tg(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=Po(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=Po(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=n!=null?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,s,o,l,a,u,c,d,h,f,p){this._overlay=n,this._elementRef=r,this._scrollDispatcher=s,this._viewContainerRef=o,this._ngZone=l,this._platform=a,this._ariaDescriber=u,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Sde,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new te,this._injector=Y(ze),this._scrollStrategy=d,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Ede}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yt(this._destroyed)).subscribe(n=>{n?n==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,s])=>{n.removeEventListener(r,s,tj)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(r);this._detach(),this._portal=this._portal||new Us(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=s.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(n)}hide(n=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&o._origin instanceof Te)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?n||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return s.positionChanges.pipe(yt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${ej}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!No(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(n){let r=n.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();r.withPositions([this._addOffset(b(b({},s.main),o.main)),this._addOffset(b(b({},s.fallback),o.fallback))])}_addOffset(n){let r=Cde,s=!this._dir||this._dir.value=="ltr";return n.originY==="top"?n.offsetY=-r:n.originY==="bottom"?n.offsetY=r:n.originX==="start"?n.offsetX=s?-r:r:n.originX==="end"&&(n.offsetX=s?r:-r),n}_getOrigin(){let n=!this._dir||this._dir.value=="ltr",r=this.position,s;r=="above"||r=="below"?s={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&n||r=="right"&&!n?s={originX:"start",originY:"center"}:(r=="after"||r=="right"&&n||r=="left"&&!n)&&(s={originX:"end",originY:"center"});let{x:o,y:l}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:l}}}_getOverlayPosition(){let n=!this._dir||this._dir.value=="ltr",r=this.position,s;r=="above"?s={overlayX:"center",overlayY:"bottom"}:r=="below"?s={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&n||r=="right"&&!n?s={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&n||r=="left"&&!n)&&(s={overlayX:"start",overlayY:"center"});let{x:o,y:l}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:l}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Es(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):n==="end"?n="start":n==="start"&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){let{overlayY:r,originX:s,originY:o}=n,l;if(r==="center"?this._dir&&this._dir.value==="rtl"?l=s==="end"?"left":"right":l=s==="start"?"left":"right":l=r==="bottom"&&o==="top"?"above":"below",l!==this._currentPosition){let a=this._overlayRef;if(a){let u=`${this._cssClassPrefix}-${ej}-`;a.removePanelClass(u+this._currentPosition),a.addPanelClass(u+l)}this._currentPosition=l}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{this._setupPointerExitEventsIfNeeded();let r;n.x!==void 0&&n.y!==void 0&&(r=n),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{let r=n.targetTouches?.[0],s=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{let s=r.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,s])=>{this._elementRef.nativeElement.addEventListener(r,s,tj)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(n.clientX,n.clientY),s=this._elementRef.nativeElement;r!==s&&!s.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let n=this.touchGestures;if(n!=="off"){let r=this._elementRef.nativeElement,s=r.style;(n==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(n==="on"||!r.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(r){return new(r||e)(I(ri),I(Te),I(U0),I(Bt),I(le),I(St),I(JB),I(Ol),I(ij),I(Tr),I(yde,8),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,s){r&2&&ut("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),Sde=(()=>{let e=class e{constructor(n,r,s){this._changeDetectorRef=n,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new te,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=s==="NoopAnimations"}show(n){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>Ide&&n.width>=Tde}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){let r=this._tooltip.nativeElement,s=this._showAnimation,o=this._hideAnimation;if(r.classList.remove(n?o:s),r.classList.add(n?s:o),this._isVisible!==n&&(this._isVisible=n,this._changeDetectorRef.markForCheck()),n&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let l=getComputedStyle(r);(l.getPropertyValue("animation-duration")==="0s"||l.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}};e.\u0275fac=function(r){return new(r||e)(I(Wt),I(Te),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,s){if(r&1&&Et(gde,7),r&2){let o;nt(o=it())&&(s._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,s){r&1&&be("mouseleave",function(l){return s._handleMouseLeave(l)}),r&2&&an("zoom",s.isVisible()?1:null)},standalone:!0,features:[ot],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1,0),be("animationend",function(a){return ae(o),ue(s._handleAnimationEnd(a))}),R(2,"div",2),N(3),F()()}r&2&&(ut("mdc-tooltip--multiline",s._isMultiline),J("ngClass",s.tooltipClass),G(3),Fn(s.message))},dependencies:[Fc],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let t=e;return t})();var rj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[vde],imports:[ag,tr,qa,cn,cn,mg]});let t=e;return t})();var WS=class{constructor(){this.expansionModel=new pg(!0)}toggle(e){this.expansionModel.toggle(this._trackByValue(e))}expand(e){this.expansionModel.select(this._trackByValue(e))}collapse(e){this.expansionModel.deselect(this._trackByValue(e))}isExpanded(e){return this.expansionModel.isSelected(this._trackByValue(e))}toggleDescendants(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}collapseAll(){this.expansionModel.clear()}expandDescendants(e){let i=[e];i.push(...this.getDescendants(e)),this.expansionModel.select(...i.map(n=>this._trackByValue(n)))}collapseDescendants(e){let i=[e];i.push(...this.getDescendants(e)),this.expansionModel.deselect(...i.map(n=>this._trackByValue(n)))}_trackByValue(e){return this.trackBy?this.trackBy(e):e}};var z0=class extends WS{constructor(e,i){super(),this.getChildren=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();let e=this.dataNodes.reduce((i,n)=>[...i,...this.getDescendants(n),n],[]);this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}getDescendants(e){let i=[];return this._getDescendants(i,e),i.splice(1)}_getDescendants(e,i){e.push(i);let n=this.getChildren(i);Array.isArray(n)?n.forEach(r=>this._getDescendants(e,r)):Pu(n)&&n.pipe(en(1),Ge(Boolean)).subscribe(r=>{for(let s of r)this._getDescendants(e,s)})}},dp=new Z("CDK_TREE_NODE_OUTLET_NODE"),cp=(()=>{let e=class e{constructor(n,r){this.viewContainer=n,this._node=r}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(dp,8))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0});let t=e;return t})(),qS=class{constructor(e){this.$implicit=e}},Ig=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]},standalone:!0});let t=e;return t})();var Nl=(()=>{let e=class e{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,r){this._differs=n,this._changeDetectorRef=r,this._onDestroy=new te,this._levels=new Map,this.viewChange=new Ci({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){let n=this._nodeDefs.filter(r=>!r.when);n.length>1,this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;pU(this._dataSource)?n=this._dataSource.connect(this):Pu(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=pn(this._dataSource)),n&&(this._dataSubscription=n.pipe(yt(this._onDestroy)).subscribe(r=>this.renderNodeChanges(r)))}renderNodeChanges(n,r=this._dataDiffer,s=this._nodeOutlet.viewContainer,o){let l=r.diff(n);l&&(l.forEachOperation((a,u,c)=>{if(a.previousIndex==null)this.insertNode(n[c],c,s,o);else if(c==null)s.remove(u),this._levels.delete(a.item);else{let d=s.get(u);s.move(d,c)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,r){if(this._nodeDefs.length===1)return this._nodeDefs.first;let s=this._nodeDefs.find(o=>o.when&&o.when(r,n))||this._defaultNodeDef;return s}insertNode(n,r,s,o){let l=this._getNodeDef(n,r),a=new qS(n);this.treeControl.getLevel?a.level=this.treeControl.getLevel(n):typeof o<"u"&&this._levels.has(o)?a.level=this._levels.get(o)+1:a.level=0,this._levels.set(n,a.level),(s||this._nodeOutlet.viewContainer).createEmbeddedView(l.template,a,r),kl.mostRecentTreeNode&&(kl.mostRecentTreeNode.data=n)}};e.\u0275fac=function(r){return new(r||e)(I(gl),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["cdk-tree"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,Ig,5),r&2){let l;nt(l=it())&&(s._nodeDefs=l)}},viewQuery:function(r,s){if(r&1&&Et(cp,7),r&2){let o;nt(o=it())&&(s._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],standalone:!0,features:[ot],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,s){r&1&&Dn(0,0)},dependencies:[cp],encapsulation:2});let t=e;return t})(),kl=(()=>{let e=class e{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(n,r){this._elementRef=n,this._tree=r,this._destroyed=new te,this._dataChanges=new te,this._changeDetectorRef=Y(Wt),e.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=wde(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`),this._tree.treeControl.expansionModel.changed.pipe(st(()=>this.isExpanded),rl()).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}};e.mostRecentTreeNode=null,e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl))},e.\u0275dir=Ce({type:e,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,s){r&2&&Tt("aria-expanded",s.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"],standalone:!0});let t=e;return t})();function wde(t){let e=t.parentElement;for(;e&&!xde(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?er(e.getAttribute("aria-level")):0:-1}function xde(t){let e=t.classList;return!!(e?.contains("cdk-nested-tree-node")||e?.contains("cdk-tree"))}var KS=(()=>{let e=class e extends kl{constructor(n,r,s){super(n,r),this._differs=s}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;let n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):Pu(n)&&n.pipe(yt(this._destroyed)).subscribe(r=>this.updateChildrenNodes(r)),this.nodeOutlet.changes.pipe(yt(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){let r=this._getNodeOutlet();if(n&&(this._children=n),r&&this._children){let s=r.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,s,this._data)}else this._dataDiffer.diff([])}_clear(){let n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){let n=this.nodeOutlet;return n&&n.find(r=>!r._node||r._node===this)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),I(gl))},e.\u0275dir=Ce({type:e,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,cp,5),r&2){let l;nt(l=it())&&(s.nodeOutlet=l)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],standalone:!0,features:[mn([{provide:kl,useExisting:e},{provide:dp,useExisting:e}]),At]});let t=e;return t})();var YS=(()=>{let e=class e{constructor(n,r){this._tree=n,this._treeNode=r,this.recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(I(Nl),I(kl))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,s){r&1&&be("click",function(l){return s._toggle(l)})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",Ut]},standalone:!0,features:[ln]});let t=e;return t})();var oj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var Tg=(()=>{let e=class e extends kl{constructor(n,r,s){super(n,r),this.disabled=!1,this.tabIndex=Number(s)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),va("tabindex"))},e.\u0275dir=Ce({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{disabled:[2,"disabled","disabled",Ut],tabIndex:[2,"tabIndex","tabIndex",n=>n==null?0:er(n)]},exportAs:["matTreeNode"],standalone:!0,features:[mn([{provide:kl,useExisting:e}]),ln,At]});let t=e;return t})(),Sg=(()=>{let e=class e extends Ig{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},standalone:!0,features:[mn([{provide:Ig,useExisting:e}]),At]});let t=e;return t})(),wg=(()=>{let e=class e extends KS{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(n){this._tabIndex=n??0}constructor(n,r,s,o){super(n,r,s),this.disabled=!1,this.tabIndex=Number(o)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),I(gl),va("tabindex"))},e.\u0275dir=Ce({type:e,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",Ut],tabIndex:"tabIndex"},exportAs:["matNestedTreeNode"],standalone:!0,features:[mn([{provide:KS,useExisting:e},{provide:kl,useExisting:e},{provide:dp,useExisting:e}]),ln,At]});let t=e;return t})();var $0=(()=>{let e=class e{constructor(n,r){this.viewContainer=n,this._node=r}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(dp,8))},e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeOutlet",""]],standalone:!0,features:[mn([{provide:cp,useExisting:e}])]});let t=e;return t})(),xg=(()=>{let e=class e extends Nl{constructor(){super(...arguments),this._nodeOutlet=void 0}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275cmp=Me({type:e,selectors:[["mat-tree"]],viewQuery:function(r,s){if(r&1&&Et($0,7),r&2){let o;nt(o=it())&&(s._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],standalone:!0,features:[mn([{provide:Nl,useExisting:e}]),At,ot],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,s){r&1&&Dn(0,0)},dependencies:[$0],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});let t=e;return t})(),Ag=(()=>{let e=class e extends YS{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[mn([{provide:YS,useExisting:e}]),At]});let t=e;return t})();var lj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[oj,cn,cn]});let t=e;return t})();var G0=class extends fg{constructor(){super(...arguments),this._data=new Ci([])}get data(){return this._data.value}set data(e){this._data.next(e)}connect(e){return qi(e.viewChange,this._data).pipe(st(()=>this.data))}disconnect(){}};function uj(t){return new se(3e3,!1)}function Dde(){return new se(3100,!1)}function Ode(){return new se(3101,!1)}function Rde(t){return new se(3001,!1)}function Mde(t){return new se(3003,!1)}function kde(t){return new se(3004,!1)}function Nde(t,e){return new se(3005,!1)}function Pde(){return new se(3006,!1)}function Lde(){return new se(3007,!1)}function Fde(t,e){return new se(3008,!1)}function Vde(t){return new se(3002,!1)}function Bde(t,e,i,n,r){return new se(3010,!1)}function Ude(){return new se(3011,!1)}function jde(){return new se(3012,!1)}function Hde(){return new se(3200,!1)}function zde(){return new se(3202,!1)}function $de(){return new se(3013,!1)}function Gde(t){return new se(3014,!1)}function Wde(t){return new se(3015,!1)}function qde(t){return new se(3016,!1)}function Kde(t,e){return new se(3404,!1)}function Yde(t){return new se(3502,!1)}function Zde(t){return new se(3503,!1)}function Xde(){return new se(3300,!1)}function Qde(t){return new se(3504,!1)}function Jde(t){return new se(3301,!1)}function e1e(t,e){return new se(3302,!1)}function t1e(t){return new se(3303,!1)}function n1e(t,e){return new se(3400,!1)}function i1e(t){return new se(3401,!1)}function r1e(t){return new se(3402,!1)}function s1e(t,e){return new se(3505,!1)}function Ya(t){switch(t.length){case 0:return new Ka;case 1:return t[0];default:return new rp(t)}}function Ij(t,e,i=new Map,n=new Map){let r=[],s=[],o=-1,l=null;if(e.forEach(a=>{let u=a.get("offset"),c=u==o,d=c&&l||new Map;a.forEach((h,f)=>{let p=f,v=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),v){case yg:v=i.get(f);break;case Lo:v=n.get(f);break;default:v=t.normalizeStyleValue(f,p,v,r);break}d.set(p,v)}),c||s.push(d),l=d,o=u}),r.length)throw Yde(r);return s}function vw(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&ZS(i,"start",t)));break;case"done":t.onDone(()=>n(i&&ZS(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&ZS(i,"destroy",t)));break}}function ZS(t,e,i){let n=i.totalTime,r=!!i.disabled,s=bw(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function bw(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function xr(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function cj(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var o1e=typeof document>"u"?null:document.documentElement;function yw(t){let e=t.parentNode||t.host||null;return e===o1e?null:e}function l1e(t){return t.substring(1,6)=="ebkit"}var H2=null,dj=!1;function a1e(t){H2||(H2=u1e()||{},dj=H2.style?"WebkitAppearance"in H2.style:!1);let e=!0;return H2.style&&!l1e(t)&&(e=t in H2.style,!e&&dj&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in H2.style)),e}function u1e(){return typeof document<"u"?document.body:null}function Tj(t,e){for(;e;){if(e===t)return!0;e=yw(e)}return!1}function Sj(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var Ew=(()=>{let e=class e{validateStyleProperty(n){return a1e(n)}containsElement(n,r){return Tj(n,r)}getParentElement(n){return yw(n)}query(n,r,s){return Sj(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,l,a=[],u){return new Ka(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),Sw=class Sw{};Sw.NOOP=new Ew;var G2=Sw,W2=class{};var c1e=1e3,wj="{{",d1e="}}",xj="ng-enter",nw="ng-leave",Dg="ng-trigger",Ng=".ng-trigger",hj="ng-animating",iw=".ng-animating";function Pl(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:rw(parseFloat(e[1]),e[2])}function rw(t,e){switch(e){case"s":return t*c1e;default:return t}}function Pg(t,e,i){return t.hasOwnProperty("duration")?t:h1e(t,e,i)}function h1e(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let l=t.match(n);if(l===null)return e.push(uj(t)),{duration:0,delay:0,easing:""};r=rw(parseFloat(l[1]),l[2]);let a=l[3];a!=null&&(s=rw(parseFloat(a),l[4]));let u=l[5];u&&(o=u)}else r=t;if(!i){let l=!1,a=e.length;r<0&&(e.push(Dde()),l=!0),s<0&&(e.push(Ode()),l=!0),l&&e.splice(a,0,uj(t))}return{duration:r,delay:s,easing:o}}function f1e(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Fo(t,e,i){e.forEach((n,r)=>{let s=Cw(r);i&&!i.has(r)&&i.set(r,t.style[s]),t.style[s]=n})}function $2(t,e){e.forEach((i,n)=>{let r=Cw(n);t.style[r]=""})}function hp(t){return Array.isArray(t)?t.length==1?t[0]:SU(t):t}function p1e(t,e,i){let n=e.params||{},r=Aj(t);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||i.push(Rde(s))})}var sw=new RegExp(`${wj}\\s*(.+?)\\s*${d1e}`,"g");function Aj(t){let e=[];if(typeof t=="string"){let i;for(;i=sw.exec(t);)e.push(i[1]);sw.lastIndex=0}return e}function pp(t,e,i){let n=`${t}`,r=n.replace(sw,(s,o)=>{let l=e[o];return l==null&&(i.push(Mde(o)),l=""),l.toString()});return r==n?t:r}var m1e=/-+([a-z0-9])/g;function Cw(t){return t.replace(m1e,(...e)=>e[1].toUpperCase())}function g1e(t,e){return t===0||e===0}function _1e(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(l,Iw(t,l)))}}return e}function wr(t,e,i){switch(e.type){case ct.Trigger:return t.visitTrigger(e,i);case ct.State:return t.visitState(e,i);case ct.Transition:return t.visitTransition(e,i);case ct.Sequence:return t.visitSequence(e,i);case ct.Group:return t.visitGroup(e,i);case ct.Animate:return t.visitAnimate(e,i);case ct.Keyframes:return t.visitKeyframes(e,i);case ct.Style:return t.visitStyle(e,i);case ct.Reference:return t.visitReference(e,i);case ct.AnimateChild:return t.visitAnimateChild(e,i);case ct.AnimateRef:return t.visitAnimateRef(e,i);case ct.Query:return t.visitQuery(e,i);case ct.Stagger:return t.visitStagger(e,i);default:throw kde(e.type)}}function Iw(t,e){return window.getComputedStyle(t)[e]}var v1e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Lg=class extends W2{normalizePropertyName(e,i){return Cw(e)}normalizeStyleValue(e,i,n,r){let s="",o=n.toString().trim();if(v1e.has(i)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&l[1].length==0&&r.push(Nde(e,n))}return o+s}};var Fg="*";function b1e(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>y1e(n,i,e)):i.push(t),i}function y1e(t,e,i){if(t[0]==":"){let a=E1e(t,i);if(typeof a=="function"){e.push(a);return}t=a}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(Wde(t)),e;let r=n[1],s=n[2],o=n[3];e.push(fj(r,o));let l=r==Fg&&o==Fg;s[0]=="<"&&!l&&e.push(fj(o,r))}function E1e(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var Og=new Set(["true","1"]),Rg=new Set(["false","0"]);function fj(t,e){let i=Og.has(t)||Rg.has(t),n=Og.has(e)||Rg.has(e);return(r,s)=>{let o=t==Fg||t==r,l=e==Fg||e==s;return!o&&i&&typeof r=="boolean"&&(o=r?Og.has(t):Rg.has(t)),!l&&n&&typeof s=="boolean"&&(l=s?Og.has(e):Rg.has(e)),o&&l}}var Dj=":self",C1e=new RegExp(`s*${Dj}s*,?`,"g");function Oj(t,e,i,n){return new ow(t).build(e,i,n)}var pj="",ow=class{constructor(e){this._driver=e}build(e,i,n){let r=new lw(i);return this._resetContextStyleTimingState(r),wr(this,hp(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=pj,e.collectedStyles=new Map,e.collectedStyles.set(pj,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Pde()),e.definitions.forEach(l=>{if(this._resetContextStyleTimingState(i),l.type==ct.State){let a=l,u=a.name;u.toString().split(/\s*,\s*/).forEach(c=>{a.name=c,s.push(this.visitState(a,i))}),a.name=u}else if(l.type==ct.Transition){let a=this.visitTransition(l,i);n+=a.queryCount,r+=a.depCount,o.push(a)}else i.errors.push(Lde())}),{type:ct.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(l=>{l instanceof Map&&l.forEach(a=>{Aj(a).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}),s.size&&i.errors.push(Fde(e.name,[...s.values()]))}return{type:ct.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=wr(this,hp(e.animation),i),r=b1e(e.expr,i.errors);return{type:ct.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:z2(e.options)}}visitSequence(e,i){return{type:ct.Sequence,steps:e.steps.map(n=>wr(this,n,i)),options:z2(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,s=e.steps.map(o=>{i.currentTime=n;let l=wr(this,o,i);return r=Math.max(r,i.currentTime),l});return i.currentTime=r,{type:ct.Group,steps:s,options:z2(e.options)}}visitAnimate(e,i){let n=w1e(e.timings,i.errors);i.currentAnimateTimings=n;let r,s=e.styles?e.styles:Sr({});if(s.type==ct.Keyframes)r=this.visitKeyframes(s,i);else{let o=e.styles,l=!1;if(!o){l=!0;let u={};n.easing&&(u.easing=n.easing),o=Sr(u)}i.currentTime+=n.duration+n.delay;let a=this.visitStyle(o,i);a.isEmptyStep=l,r=a}return i.currentAnimateTimings=null,{type:ct.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let l of r)typeof l=="string"?l===Lo?n.push(l):i.errors.push(Vde(l)):n.push(new Map(Object.entries(l)));let s=!1,o=null;return n.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(o=l.get("easing"),l.delete("easing")),!s)){for(let a of l.values())if(a.toString().indexOf(wj)>=0){s=!0;break}}}),{type:ct.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,s=i.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((l,a)=>{let u=i.collectedStyles.get(i.currentQuerySelector),c=u.get(a),d=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(i.errors.push(Bde(a,c.startTime,c.endTime,s,r)),d=!1),s=c.startTime),d&&u.set(a,{startTime:s,endTime:r}),i.options&&p1e(l,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:ct.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Ude()),n;let r=1,s=0,o=[],l=!1,a=!1,u=0,c=e.steps.map(C=>{let P=this._makeStyleAst(C,i),U=P.offset!=null?P.offset:S1e(P.styles),L=0;return U!=null&&(s++,L=P.offset=U),a=a||L<0||L>1,l=l||L0&&s{let U=h>0?P==f?1:h*P:o[P],L=U*E;i.currentTime=p+v.delay+L,v.duration=L,this._validateStyleAst(C,i),C.offset=U,n.styles.push(C)}),n}visitReference(e,i){return{type:ct.Reference,animation:wr(this,hp(e.animation),i),options:z2(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:ct.AnimateChild,options:z2(e.options)}}visitAnimateRef(e,i){return{type:ct.AnimateRef,animation:this.visitReference(e.animation,i),options:z2(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=I1e(e.selector);i.currentQuerySelector=n.length?n+" "+s:s,xr(i.collectedStyles,i.currentQuerySelector,new Map);let l=wr(this,hp(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:ct.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:l,originalSelector:e.selector,options:z2(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push($de());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Pg(e.timings,i.errors,!0);return{type:ct.Stagger,animation:wr(this,hp(e.animation),i),timings:n,options:null}}};function I1e(t){let e=!!t.split(/\s*,\s*/).find(i=>i==Dj);return e&&(t=t.replace(C1e,"")),t=t.replace(/@\*/g,Ng).replace(/@\w+/g,i=>Ng+"-"+i.slice(1)).replace(/:animating/g,iw),[t,e]}function T1e(t){return t?b({},t):null}var lw=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function S1e(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function w1e(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=Pg(t,e).duration;return XS(s,0,"")}let i=t;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=XS(0,0,"");return s.dynamic=!0,s.strValue=i,s}let r=Pg(i,e);return XS(r.duration,r.delay,r.easing)}function z2(t){return t?(t=b({},t),t.params&&(t.params=T1e(t.params))):t={},t}function XS(t,e,i){return{duration:t,delay:e,easing:i}}function Tw(t,e,i,n,r,s,o=null,l=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:l}}var mp=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},x1e=1,A1e=":enter",D1e=new RegExp(A1e,"g"),O1e=":leave",R1e=new RegExp(O1e,"g");function Rj(t,e,i,n,r,s=new Map,o=new Map,l,a,u=[]){return new aw().buildKeyframes(t,e,i,n,r,s,o,l,a,u)}var aw=class{buildKeyframes(e,i,n,r,s,o,l,a,u,c=[]){u=u||new mp;let d=new uw(e,i,u,r,s,c,[]);d.options=a;let h=a.delay?Pl(a.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,a),wr(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&l.size){let p;for(let v=f.length-1;v>=0;v--){let E=f[v];if(E.element===i){p=E;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([l],null,d.errors,a)}return f.length?f.map(p=>p.buildKeyframes()):[Tw(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Pl(pp(s,r?.params??{},i.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,i,n){let s=i.currentTimeline.currentTime,o=n.duration!=null?Pl(n.duration):null,l=n.delay!=null?Pl(n.delay):null;return o!==0&&e.forEach(a=>{let u=i.appendInstructionToTimeline(a,o,l);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,i){i.updateOptions(e.options,!0),wr(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,s=e.options;if(s&&(s.params||s.delay)&&(r=i.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==ct.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Vg);let o=Pl(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>wr(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,s=e.options&&e.options.delay?Pl(e.options.delay):0;e.steps.forEach(o=>{let l=i.createSubContext(e.options);s&&l.delayNextStep(s),wr(this,o,l),r=Math.max(r,l.currentTimeline.currentTime),n.push(l.currentTimeline)}),n.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?pp(n,i.params,i.errors):n;return Pg(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==ct.Keyframes?this.visitKeyframes(s,i):(i.incrementTime(n.duration),this.visitStyle(s,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,s=n.duration,l=i.createSubContext().currentTimeline;l.easing=n.easing,e.styles.forEach(a=>{let u=a.offset||0;l.forwardTime(u*s),l.setStyles(a.styles,a.easing,i.errors,i.options),l.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(l),i.transformIntoNewTimeline(r+s),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},s=r.delay?Pl(r.delay):0;s&&(i.previousNode.type===ct.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Vg);let o=n,l=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=l.length;let a=null;l.forEach((u,c)=>{i.currentQueryIndex=c;let d=i.createSubContext(e.options,u);s&&d.delayNextStep(s),u===i.element&&(a=d.currentTimeline),wr(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;o=Math.max(o,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),a&&(i.currentTimeline.mergeTimelineCollectedStyles(a),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),l=o*(i.currentQueryTotal-1),a=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=l-a;break;case"full":a=n.currentStaggerTime;break}let c=i.currentTimeline;a&&c.delayNextStep(a);let d=c.currentTime;wr(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},Vg={},uw=class t{constructor(e,i,n,r,s,o,l,a){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Bg(this._driver,i,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Pl(n.duration)),n.delay!=null&&(r.delay=Pl(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(l=>{(!i||!o.hasOwnProperty(l))&&(o[l]=pp(s[l],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Vg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new cw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,s,o){let l=[];if(r&&l.push(this.element),e.length>0){e=e.replace(D1e,"."+this._enterClassName),e=e.replace(R1e,"."+this._leaveClassName);let a=n!=1,u=this._driver.query(this.element,e,a);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push(...u)}return!s&&l.length==0&&o.push(Gde(i)),l}},Bg=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=x1e,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Lo),this._currentKeyframe.set(i,Lo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let s=r&&r.params||{},o=M1e(e,this._globalTimelineStyles);for(let[l,a]of o){let u=pp(a,s,n);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Lo),this._updateStyle(l,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,a)=>{let u=new Map([...this._backFill,...l]);u.forEach((c,d)=>{c===yg?e.add(d):c===Lo&&i.add(d)}),n||u.set("offset",a/this.duration),r.push(u)});let s=[...e.values()],o=[...i.values()];if(n){let l=r[0],a=new Map(l);l.set("offset",0),a.set("offset",1),r=[l,a]}return Tw(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},cw=class extends Bg{constructor(e,i,n,r,s,o,l=!1){super(e,i,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=n+i,l=i/o,a=new Map(e[0]);a.set("offset",0),s.push(a);let u=new Map(e[0]);u.set("offset",mj(l)),s.push(u);let c=e.length-1;for(let d=1;d<=c;d++){let h=new Map(e[d]),f=h.get("offset"),p=i+f*n;h.set("offset",mj(p/o)),s.push(h)}n=o,i=0,r="",e=s}return Tw(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function mj(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function M1e(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)i.set(s,Lo)}else for(let[s,o]of r)i.set(s,o)}),i}function gj(t,e,i,n,r,s,o,l,a,u,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:l,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var QS={},Ug=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return k1e(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,s,o,l,a,u,c){let d=[],h=this.ast.options&&this.ast.options.params||QS,f=l&&l.params||QS,p=this.buildStyles(n,f,d),v=a&&a.params||QS,E=this.buildStyles(r,v,d),C=new Set,P=new Map,U=new Map,L=r==="void",de={params:Mj(v,h),delay:this.ast.options?.delay},V=c?[]:Rj(e,i,this.ast.animation,s,o,p,E,de,u,d),j=0;return V.forEach(me=>{j=Math.max(me.duration+me.delay,j)}),d.length?gj(i,this._triggerName,n,r,L,p,E,[],[],P,U,j,d):(V.forEach(me=>{let We=me.element,_e=xr(P,We,new Set);me.preStyleProps.forEach(qe=>_e.add(qe));let Ue=xr(U,We,new Set);me.postStyleProps.forEach(qe=>Ue.add(qe)),We!==i&&C.add(We)}),gj(i,this._triggerName,n,r,L,p,E,V,[...C.values()],P,U,j))}};function k1e(t,e,i,n,r){return t.some(s=>s(e,i,n,r))}function Mj(t,e){let i=b({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}var dw=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=Mj(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,l)=>{o&&(o=pp(o,r,i));let a=this.normalizer.normalizePropertyName(l,i);o=this.normalizer.normalizeStyleValue(l,a,o,i),n.set(l,o)})}),n}};function N1e(t,e,i){return new hw(t,e,i)}var hw=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new dw(r.style,s,n))}),_j(this.states,"true","1"),_j(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new Ug(e,r,this.states))}),this.fallbackTransition=P1e(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(o=>o.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function P1e(t,e,i){let n=[(o,l)=>!0],r={type:ct.Sequence,steps:[],options:null},s={type:ct.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Ug(t,s,e)}function _j(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var L1e=new mp,fw=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],s=Oj(this._driver,i,n,r);if(n.length)throw Zde(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,i,n){let r=e.element,s=Ij(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],s=this._animations.get(e),o,l=new Map;if(s?(o=Rj(this._driver,i,s,xj,nw,new Map,new Map,n,L1e,r),o.forEach(c=>{let d=xr(l,c.element,new Map);c.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(Xde()),o=[]),r.length)throw Qde(r);l.forEach((c,d)=>{c.forEach((h,f)=>{c.set(f,this._driver.computeStyle(d,f,Lo))})});let a=o.map(c=>{let d=l.get(c.element);return this._buildPlayer(c,new Map,d)}),u=Ya(a);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Jde(e);return i}listen(e,i,n,r){let s=bw(i,"","","");return vw(this._getPlayer(e),n,s,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,i,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},vj="ng-animate-queued",F1e=".ng-animate-queued",JS="ng-animate-disabled",V1e=".ng-animate-disabled",B1e="ng-star-inserted",U1e=".ng-star-inserted",j1e=[],kj={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},H1e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hs="__ng_removed",gp=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=$1e(r),n){let s=e,{value:o}=s,l=el(s,["value"]);this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},fp="void",ew=new gp(fp),pw=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ss(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw e1e(n,i);if(n==null||n.length==0)throw t1e(i);if(!G1e(n))throw n1e(n,i);let s=xr(this._elementListeners,e,[]),o={name:i,phase:n,callback:r};s.push(o);let l=xr(this._engine.statesByElement,e,new Map);return l.has(i)||(ss(e,Dg),ss(e,Dg+"-"+i),l.set(i,ew)),()=>{this._engine.afterFlush(()=>{let a=s.indexOf(o);a>=0&&s.splice(a,1),this._triggers.has(i)||l.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw i1e(e);return i}trigger(e,i,n,r=!0){let s=this._getTrigger(i),o=new _p(this.id,i,e),l=this._engine.statesByElement.get(e);l||(ss(e,Dg),ss(e,Dg+"-"+i),this._engine.statesByElement.set(e,l=new Map));let a=l.get(i),u=new gp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),l.set(i,u),a||(a=ew),!(u.value===fp)&&a.value===u.value){if(!K1e(a.params,u.params)){let v=[],E=s.matchStyles(a.value,a.params,v),C=s.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{$2(e,E),Fo(e,C)})}return}let h=xr(this._engine.playersByElement,e,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let f=s.matchTransition(a.value,u.value,e,u.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:a,toState:u,player:o,isFallbackTransition:p}),p||(ss(e,vj),o.onStart(()=>{W0(e,vj)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);let E=this._engine.playersByElement.get(e);if(E){let C=E.indexOf(o);C>=0&&E.splice(C,1)}}),this.players.push(o),h.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,Ng,!0);n.forEach(r=>{if(r[Hs])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let l=[];if(s.forEach((a,u)=>{if(o.set(u,a.value),this._triggers.has(u)){let c=this.trigger(e,u,fp,r);c&&l.push(c)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),n&&Ya(l).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let a=this._triggers.get(o).fallbackTransition,u=n.get(o)||ew,c=new gp(fp),d=new _p(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:a,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let s=e[Hs];(!s||s===kj)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){ss(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(l=>{if(l.name==n.triggerName){let a=bw(s,n.triggerName,n.fromState.value,n.toState.value);a._data=e,vw(n.player,l.phase,a,l.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mw=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new pw(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,l=this.driver.getParentElement(i);for(;l;){let a=r.get(l);if(a){let u=n.indexOf(a);n.splice(u+1,0,e),o=!0;break}l=this.driver.getParentElement(l)}o||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&i.add(s)}}return i}trigger(e,i,n,r){if(Mg(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Mg(i))return;let s=i[Hs];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ss(e,JS)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),W0(e,JS))}removeNode(e,i,n){if(Mg(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,s){this.collectedLeaveElements.push(i),i[Hs]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,i,n,r,s){return Mg(i)?this._fetchNamespace(e).listen(i,n,r,s):()=>{}}_buildInstruction(e,i,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,s)}destroyInnerAnimations(e){let i=this.driver.query(e,Ng,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,iw,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ya(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Hs];if(i&&i.setForRemoval){if(e[Hs]=kj,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(JS)&&this.markElementAsDisabled(e,!1),this.driver.query(e,V1e,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?Ya(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw r1e(e)}_flushAnimations(e,i){let n=new mp,r=[],s=new Map,o=[],l=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(X=>{c.add(X);let ve=this.driver.query(X,F1e,!0);for(let he=0;he{let he=xj+v++;p.set(ve,he),X.forEach(Ye=>ss(Ye,he))});let E=[],C=new Set,P=new Set;for(let X=0;XC.add(Ye)):P.add(ve))}let U=new Map,L=Ej(h,Array.from(C));L.forEach((X,ve)=>{let he=nw+v++;U.set(ve,he),X.forEach(Ye=>ss(Ye,he))}),e.push(()=>{f.forEach((X,ve)=>{let he=p.get(ve);X.forEach(Ye=>W0(Ye,he))}),L.forEach((X,ve)=>{let he=U.get(ve);X.forEach(Ye=>W0(Ye,he))}),E.forEach(X=>{this.processLeaveNode(X)})});let de=[],V=[];for(let X=this._namespaceList.length-1;X>=0;X--)this._namespaceList[X].drainQueuedTransitions(i).forEach(he=>{let Ye=he.player,Ft=he.element;if(de.push(Ye),this.collectedEnterElements.length){let En=Ft[Hs];if(En&&En.setForMove){if(En.previousTriggersValues&&En.previousTriggersValues.has(he.triggerName)){let cr=En.previousTriggersValues.get(he.triggerName),li=this.statesByElement.get(he.element);if(li&&li.has(he.triggerName)){let ds=li.get(he.triggerName);ds.value=cr,li.set(he.triggerName,ds)}}Ye.destroy();return}}let Ei=!d||!this.driver.containsElement(d,Ft),Yn=U.get(Ft),zi=p.get(Ft),Vt=this._buildInstruction(he,n,zi,Yn,Ei);if(Vt.errors&&Vt.errors.length){V.push(Vt);return}if(Ei){Ye.onStart(()=>$2(Ft,Vt.fromStyles)),Ye.onDestroy(()=>Fo(Ft,Vt.toStyles)),r.push(Ye);return}if(he.isFallbackTransition){Ye.onStart(()=>$2(Ft,Vt.fromStyles)),Ye.onDestroy(()=>Fo(Ft,Vt.toStyles)),r.push(Ye);return}let ea=[];Vt.timelines.forEach(En=>{En.stretchStartingKeyframe=!0,this.disabledNodes.has(En.element)||ea.push(En)}),Vt.timelines=ea,n.append(Ft,Vt.timelines);let Du={instruction:Vt,player:Ye,element:Ft};o.push(Du),Vt.queriedElements.forEach(En=>xr(l,En,[]).push(Ye)),Vt.preStyleProps.forEach((En,cr)=>{if(En.size){let li=a.get(cr);li||a.set(cr,li=new Set),En.forEach((ds,ta)=>li.add(ta))}}),Vt.postStyleProps.forEach((En,cr)=>{let li=u.get(cr);li||u.set(cr,li=new Set),En.forEach((ds,ta)=>li.add(ta))})});if(V.length){let X=[];V.forEach(ve=>{X.push(s1e(ve.triggerName,ve.errors))}),de.forEach(ve=>ve.destroy()),this.reportError(X)}let j=new Map,me=new Map;o.forEach(X=>{let ve=X.element;n.has(ve)&&(me.set(ve,ve),this._beforeAnimationBuild(X.player.namespaceId,X.instruction,j))}),r.forEach(X=>{let ve=X.element;this._getPreviousPlayers(ve,!1,X.namespaceId,X.triggerName,null).forEach(Ye=>{xr(j,ve,[]).push(Ye),Ye.destroy()})});let We=E.filter(X=>Cj(X,a,u)),_e=new Map;yj(_e,this.driver,P,u,Lo).forEach(X=>{Cj(X,a,u)&&We.push(X)});let qe=new Map;f.forEach((X,ve)=>{yj(qe,this.driver,new Set(X),a,yg)}),We.forEach(X=>{let ve=_e.get(X),he=qe.get(X);_e.set(X,new Map([...ve?.entries()??[],...he?.entries()??[]]))});let Rt=[],Nt=[],Gt={};o.forEach(X=>{let{element:ve,player:he,instruction:Ye}=X;if(n.has(ve)){if(c.has(ve)){he.onDestroy(()=>Fo(ve,Ye.toStyles)),he.disabled=!0,he.overrideTotalTime(Ye.totalTime),r.push(he);return}let Ft=Gt;if(me.size>1){let Yn=ve,zi=[];for(;Yn=Yn.parentNode;){let Vt=me.get(Yn);if(Vt){Ft=Vt;break}zi.push(Yn)}zi.forEach(Vt=>me.set(Vt,Ft))}let Ei=this._buildAnimation(he.namespaceId,Ye,j,s,qe,_e);if(he.setRealPlayer(Ei),Ft===Gt)Rt.push(he);else{let Yn=this.playersByElement.get(Ft);Yn&&Yn.length&&(he.parentPlayer=Ya(Yn)),r.push(he)}}else $2(ve,Ye.fromStyles),he.onDestroy(()=>Fo(ve,Ye.toStyles)),Nt.push(he),c.has(ve)&&r.push(he)}),Nt.forEach(X=>{let ve=s.get(X.element);if(ve&&ve.length){let he=Ya(ve);X.setRealPlayer(he)}}),r.forEach(X=>{X.parentPlayer?X.syncPlayerEvents(X.parentPlayer):X.destroy()});for(let X=0;X!Ei.destroyed);Ft.length?W1e(this,ve,Ft):this.processLeaveNode(ve)}return E.length=0,Rt.forEach(X=>{this.players.push(X),X.onDone(()=>{X.destroy();let ve=this.players.indexOf(X);this.players.splice(ve,1)}),X.play()}),Rt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,s){let o=[];if(i){let l=this.playersByQueriedElement.get(e);l&&(o=l)}else{let l=this.playersByElement.get(e);if(l){let a=!s||s==fp;l.forEach(u=>{u.queued||!a&&u.triggerName!=r||o.push(u)})}}return(n||r)&&(o=o.filter(l=>!(n&&n!=l.namespaceId||r&&r!=l.triggerName))),o}_beforeAnimationBuild(e,i,n){let r=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,l=i.isRemovalTransition?void 0:r;for(let a of i.timelines){let u=a.element,c=u!==s,d=xr(n,u,[]);this._getPreviousPlayers(u,c,o,l,i.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}$2(s,i.fromStyles)}_buildAnimation(e,i,n,r,s,o){let l=i.triggerName,a=i.element,u=[],c=new Set,d=new Set,h=i.timelines.map(p=>{let v=p.element;c.add(v);let E=v[Hs];if(E&&E.removedBeforeQueried)return new Ka(p.duration,p.delay);let C=v!==a,P=q1e((n.get(v)||j1e).map(j=>j.getRealPlayer())).filter(j=>{let me=j;return me.element?me.element===v:!1}),U=s.get(v),L=o.get(v),de=Ij(this._normalizer,p.keyframes,U,L),V=this._buildPlayer(p,de,P);if(p.subTimeline&&r&&d.add(v),C){let j=new _p(e,l,v);j.setRealPlayer(V),u.push(j)}return V});u.forEach(p=>{xr(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>z1e(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>ss(p,hj));let f=Ya(h);return f.onDestroy(()=>{c.forEach(p=>W0(p,hj)),Fo(a,i.toStyles)}),d.forEach(p=>{xr(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Ka(e.duration,e.delay)}},_p=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Ka,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>vw(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){xr(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function z1e(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function $1e(t){return t??null}function Mg(t){return t&&t.nodeType===1}function G1e(t){return t=="start"||t=="done"}function bj(t,e){let i=t.style.display;return t.style.display=e??"none",i}function yj(t,e,i,n,r){let s=[];i.forEach(a=>s.push(bj(a)));let o=[];n.forEach((a,u)=>{let c=new Map;a.forEach(d=>{let h=e.computeStyle(u,d,r);c.set(d,h),(!h||h.length==0)&&(u[Hs]=H1e,o.push(u))}),t.set(u,c)});let l=0;return i.forEach(a=>bj(a,s[l++])),o}function Ej(t,e){let i=new Map;if(t.forEach(l=>i.set(l,[])),e.length==0)return i;let n=1,r=new Set(e),s=new Map;function o(l){if(!l)return n;let a=s.get(l);if(a)return a;let u=l.parentNode;return i.has(u)?a=u:r.has(u)?a=n:a=o(u),s.set(l,a),a}return e.forEach(l=>{let a=o(l);a!==n&&i.get(a).push(l)}),i}function ss(t,e){t.classList?.add(e)}function W0(t,e){t.classList?.remove(e)}function W1e(t,e,i){Ya(i).onDone(()=>t.processLeaveNode(e))}function q1e(t){let e=[];return Nj(t,e),e}function Nj(t,e){for(let i=0;ir.add(s)):e.set(t,n),i.delete(t),!0}var K0=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new mw(e.body,i,n),this._timelineEngine=new fw(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,r,s){let o=e+"-"+r,l=this._triggerCache[o];if(!l){let a=[],u=[],c=Oj(this._driver,s,a,u);if(a.length)throw Kde(r,a);u.length&&void 0,l=N1e(r,c,this._normalizer),this._triggerCache[o]=l}this._transitionEngine.registerTrigger(i,r,l)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[s,o]=cj(n),l=r;this._timelineEngine.command(s,i,o,l)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,s){if(n.charAt(0)=="@"){let[o,l]=cj(n);return this._timelineEngine.listen(o,i,l,s)}return this._transitionEngine.listen(e,i,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Y1e(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=tw(e[0]),e.length>1&&(n=tw(e[e.length-1]))):e instanceof Map&&(i=tw(e)),i||n?new gw(t,i,n):null}var q0=class q0{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=q0.initialStylesByElement.get(e);r||q0.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Fo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fo(this._element,this._initialStyles),this._endStyles&&(Fo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(q0.initialStylesByElement.delete(this._element),this._startStyles&&($2(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($2(this._element,this._endStyles),this._endStyles=null),Fo(this._element,this._initialStyles),this._state=3)}};q0.initialStylesByElement=new WeakMap;var gw=q0;function tw(t){let e=null;return t.forEach((i,n)=>{Z1e(n)&&(e=e||new Map,e.set(n,i))}),e}function Z1e(t){return t==="display"||t==="position"}var jg=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Iw(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Hg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return Tj(e,i)}getParentElement(e){return yw(e)}query(e,i,n){return Sj(e,i,n)}computeStyle(e,i,n){return Iw(e,i)}animate(e,i,n,r,s,o=[]){let l=r==0?"both":"forwards",a={duration:n,delay:r,fill:l};s&&(a.easing=s);let u=new Map,c=o.filter(f=>f instanceof jg);g1e(n,r)&&c.forEach(f=>{f.currentSnapshot.forEach((p,v)=>u.set(v,p))});let d=f1e(i).map(f=>new Map(f));d=_1e(e,d,u);let h=Y1e(e,d);return new jg(e,d,a,h)}};var kg="@",Pj="@.disabled",zg=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==kg&&i==Pj?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},_w=class extends zg{constructor(e,i,n,r,s){super(i,n,r,s),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==kg?i.charAt(1)=="."&&i==Pj?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==kg){let r=X1e(e),s=i.slice(1),o="";return s.charAt(0)!=kg&&([s,o]=Q1e(s)),this.engine.listen(this.namespaceId,r,s,o,l=>{let a=l._data||-1;this.factory.scheduleListenerCallback(a,n,l)})}return this.delegate.listen(e,i,n)}};function X1e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Q1e(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var $g=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let u=this._rendererCache,c=u.get(r);if(!c){let d=()=>u.delete(r);c=new zg(n,r,this.engine,d),u.set(r,c)}return c}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,o,e,u.name,u)};return i.data.animation.forEach(l),new _w(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,l]=s;o(l)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var e4e=(()=>{let e=class e extends K0{constructor(n,r,s){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(G2),x(W2))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function t4e(){return new Lg}function n4e(t,e,i){return new $g(t,e,i)}var Fj=[{provide:W2,useFactory:t4e},{provide:K0,useClass:e4e},{provide:ma,useFactory:n4e,deps:[e7,K0,le]}],Lj=[{provide:G2,useFactory:()=>new Hg},{provide:Tn,useValue:"BrowserAnimations"},...Fj],i4e=[{provide:G2,useClass:Ew},{provide:Tn,useValue:"NoopAnimations"},...Fj],Vj=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?i4e:Lj}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:Lj,imports:[n7]});let t=e;return t})();var r4e=["editor"];var s4e="MONACO_PATH",ww=(()=>{class t{constructor(i,n){if(this.ngZone=i,this.monacoPathConfig=n,this.isMonacoLoaded$=new Ci(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized){i.run(()=>this.isMonacoLoaded$.next(!0));return}window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco()}set monacoPath(i){i&&(this._monacoPath=i)}loadMonaco(){let i=()=>{let o=this._monacoPath;window.amdRequire=window.require;let l=!!this.nodeRequire,a=o.includes("http");l&&(window.require=this.nodeRequire,a||(o=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:o}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},u=>console.error("Error loading monaco-editor: ",u))};if(!!window.amdRequire)return i();!!window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);let s=document.createElement("script");s.type="text/javascript",s.src=`${this._monacoPath}/loader.js`,s.addEventListener("load",i),document.body.appendChild(s)}addElectronFixScripts(){let i=document.createElement("script"),n=document.createTextNode("self.module = undefined;"),r=document.createTextNode("self.process.browser = true;");i.appendChild(n),i.appendChild(r),document.body.appendChild(i)}}return t.\u0275fac=function(i){return new(i||t)(x(le),x(s4e,8))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Y0=(()=>{class t{constructor(i){this.monacoLoader=i,this.init=new Se,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Ge(i=>i),en(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(i){if(this.editor&&i.options&&!i.options.firstChange){let n=i.options.currentValue,{language:r,theme:s}=n,o=el(n,["language","theme"]),{language:l,theme:a}=i.options.previousValue;l!==r&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),a!==s&&monaco.editor.setTheme(s),this.editor.updateOptions(o)}if(this.editor&&i.uri){let r=i.uri.currentValue,s=i.uri.previousValue;if(s&&!r||!s&&r||r&&s&&r.path!==s.path){let o=this.editor.getValue();this.modelUriInstance&&this.modelUriInstance.dispose();let l;r&&(l=monaco.editor.getModels().find(a=>a.uri.path===r.path)),this.modelUriInstance=l||monaco.editor.createModel(o,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(i){this.value=i,this.editor&&i?this.editor.setValue(i):this.editor&&this.editor.setValue("")}registerOnChange(i){this.propagateChange=i}registerOnTouched(i){this.onTouched=i}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(i){this.onErrorStatusChange=i}initEditor(){let i={value:[this.value].join(` -`),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?b(b({},i),this.options):i),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{let i=this.modelMarkers.map(({message:r})=>r).join("|");this.parsedError!==i&&(this.parsedError=i,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return t.\u0275fac=function(i){return new(i||t)(I(ww))},t.\u0275cmp=Me({type:t,selectors:[["ngx-monaco-editor"]],viewQuery:function(i,n){if(i&1&&Et(r4e,7),i&2){let r;nt(r=it())&&(n.editorContent=r.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[mn([{provide:Zm,useExisting:vs(()=>t),multi:!0},{provide:oS,useExisting:vs(()=>t),multi:!0}]),In],decls:4,vars:0,consts:[["container",""],["editor",""],["fxFlex","",1,"editor-container"],[1,"monaco-editor"]],template:function(i,n){i&1&&(R(0,"div",2,0),pe(2,"div",3,1),F())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),t})();var Bj=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({imports:[[]]}),t})();var xw=class{constructor(e){this.options=e,e.vcr?this.ref=e.vcr.createComponent(e.component,{index:e.vcr.length,injector:e.injector||e.vcr.injector}):(this.ref=Qk(e.component,{elementInjector:e.injector,environmentInjector:e.environmentInjector}),e.appRef.attachView(this.ref.hostView))}setInput(e,i){return this.ref.setInput(e,i),this}setInputs(e){return Object.keys(e).forEach(i=>{this.ref.setInput(i,e[i])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(e){return this.options.contextSignal?.set(e),this}appendTo(e){return e.appendChild(this.getElement()),this}removeFrom(e){return e.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function vp(t){return t instanceof xt}function q2(t){return typeof t=="function"}function Uj(t){return typeof t=="string"}var Aw=class{constructor(e){this.args=e,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:e.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},e.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let e=this.ref.rootNodes;return e.length===1&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),this.element.append(...e)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(e){return Object.assign(this.ref.context,e),this}},Dw=class{constructor(e){this.value=e}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},o4e=new Z("Component context"),Ow=(()=>{let e=class e{constructor(){this.injector=Y(ze),this.appRef=Y(Ji),this.environmentInjector=Y(Oi)}createComponent(n,r={}){let s=r.injector??this.injector,o;return r.context&&(o=ba(r.context),s=ze.create({providers:[{provide:o4e,useValue:o.asReadonly()}],parent:s})),new xw({component:n,vcr:r.vcr,injector:s,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:o})}createTemplate(n,r={}){return new Aw({vcr:r.vcr,appRef:this.appRef,tpl:n,context:r.context,injector:r.injector})}createView(n,r={}){if(vp(n))return this.createTemplate(n,r);if(q2(n))return this.createComponent(n,r);if(Uj(n))return new Dw(n);throw"Type of content is not supported"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var l4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["dynamic-view"]],inputs:{content:"content"},standalone:!0,features:[ot],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,s){r&1&&pe(0,"div",0),r&2&&J("innerHTML",s.content,Gy)},encapsulation:2});let t=e;return t})(),Rw=(()=>{let e=class e{constructor(){this.defaultTpl=Y(xt),this.vcr=Y(Bt),this.viewService=Y(Ow)}ngOnInit(){this.resolveContentType()}ngOnChanges(n){let r=n.view&&!n.view.isFirstChange(),s=n.context&&!n.context.isFirstChange(),o=n.inputs&&!n.inputs.isFirstChange();r?this.resolveContentType():s?this.viewRef.updateContext(this.context):q2(this.view)&&o&&this.viewRef.setInputs(this.inputs||{})}resolveContentType(){this.viewRef?.destroy(),Uj(this.view)?(this.viewRef=this.viewService.createComponent(l4e,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):q2(this.view)?(this.viewRef=this.viewService.createComponent(this.view,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context}),this.inputs&&this.viewRef.setInputs(this.inputs)):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","dynamicView",""]],inputs:{view:[0,"dynamicView","view"],injector:[0,"dynamicViewInjector","injector"],context:[0,"dynamicViewContext","context"],inputs:[0,"dynamicViewInputs","inputs"]},standalone:!0,features:[In]});let t=e;return t})();var u4e=(t,e)=>({"border-color":t,"border-right-color":e});function c4e(t,e){if(t&1&&(N(0,` - `),pe(1,"hot-toast-loader",1),N(2,` - `)),t&2){let i=ne(2);G(),J("theme",i.theme)}}function d4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),pe(3,"hot-toast-error",1),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function h4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),pe(3,"hot-toast-checkmark",1),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function f4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),pe(3,"hot-toast-warning",1),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function p4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),pe(3,"hot-toast-info",1),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function m4e(t,e){if(t&1&&(N(0,` - `),R(1,"div",2),N(2,` - `),R(3,"div"),N(4,` - `),ke(5,d4e,6,1)(6,h4e,6,1)(7,f4e,6,1)(8,p4e,6,1),N(9,` - `),F(),N(10,` - `),F(),N(11,` - `)),t&2){let i,n=ne(2);G(5),Pn((i=n.type)==="error"?5:i==="success"?6:i==="warning"?7:i==="info"?8:-1)}}function g4e(t,e){if(t&1&&(N(0,` -`),R(1,"div",0),N(2,` - `),ke(3,c4e,3,1)(4,m4e,12,1),F(),N(5,` -`)),t&2){let i=ne();G(3),Pn(i.type==="loading"?3:-1),G(),Pn(i.type!=="loading"?4:-1)}}var _4e=["*"],zj=["hotToastBarBase"];function v4e(t,e){if(t&1&&(N(0,` - `),R(1,"hot-toast-animated-icon",7),N(2),F(),N(3,` - `)),t&2){let i=ne(2);G(),J("iconTheme",i.toast.iconTheme),G(),Fn(i.toast.icon)}}function b4e(t,e){t&1&&Dn(0)}function y4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),ke(3,b4e,1,0,"ng-container",8),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(2);G(3),J("dynamicView",i.toast.icon)}}function E4e(t,e){if(t&1&&(N(0," "),ke(1,v4e,4,2)(2,y4e,6,1)),t&2){let i=ne();G(),Pn(i.isIconString?1:2)}}function C4e(t,e){if(t&1&&(N(0,` - `),pe(1,"hot-toast-indicator",9),N(2,` - `)),t&2){let i=ne();G(),J("theme",i.toast.iconTheme)("type",i.toast.type)}}function I4e(t,e){t&1&&Dn(0)}function T4e(t,e){if(t&1){let i=mt();N(0,` - `),R(1,"button",10),be("click",function(){ae(i);let r=ne();return ue(r.close())}),F(),N(2,` - `)}if(t&2){let i=ne();G(),J("ngStyle",i.toast.closeStyle)}}var S4e=(t,e)=>e.id;function w4e(t,e){if(t&1&&(N(0,` - `),R(1,"hot-toast-animated-icon",8),N(2),F(),N(3,` - `)),t&2){let i=ne(2);G(),J("iconTheme",i.toast.iconTheme),G(),Fn(i.toast.icon)}}function x4e(t,e){t&1&&Dn(0)}function A4e(t,e){if(t&1&&(N(0,` - `),R(1,"div"),N(2,` - `),ke(3,x4e,1,0,"ng-container",9),N(4,` - `),F(),N(5,` - `)),t&2){let i=ne(2);G(3),J("dynamicView",i.toast.icon)}}function D4e(t,e){if(t&1&&(N(0," "),ke(1,w4e,4,2)(2,A4e,6,1)),t&2){let i=ne();G(),Pn(i.isIconString?1:2)}}function O4e(t,e){if(t&1&&(N(0,` - `),pe(1,"hot-toast-indicator",10),N(2,` - `)),t&2){let i=ne();G(),J("theme",i.toast.iconTheme)("type",i.toast.type)}}function R4e(t,e){t&1&&Dn(0)}function M4e(t,e){if(t&1){let i=mt();N(0,` - `),R(1,"button",11),be("click",function(){ae(i);let r=ne();return ue(r.toggleToastGroup())}),F(),N(2,` - `)}if(t&2){let i=ne();G(),ut("expanded",i.isExpanded),J("ngStyle",i.toast.group.btnStyle),Tt("aria-label",i.isExpanded?"Collapse":"Expand")}}function k4e(t,e){if(t&1){let i=mt();N(0,` - `),R(1,"button",12),be("click",function(){ae(i);let r=ne();return ue(r.close())}),F(),N(2,` - `)}if(t&2){let i=ne();G(),J("ngStyle",i.toast.closeStyle)}}function N4e(t,e){if(t&1){let i=mt();N(0,` - `),R(1,"hot-toast-group-item",13),be("height",function(r){let s=ae(i).$implicit,o=ne();return ue(o.updateHeight(r,s))})("beforeClosed",function(){let r=ae(i).$implicit,s=ne();return ue(s.beforeClosedGroupItem(r))})("afterClosed",function(r){ae(i);let s=ne();return ue(s.afterClosedGroupItem(r))}),F(),N(2,` - `)}if(t&2){let i=e.$implicit,n=e.$index,r=ne();G(),J("toast",i)("offset",r.calculateOffset(i.id))("toastRef",r.toastRef.groupRefs[n])("toastsAfter",(i.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-n)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function P4e(t,e){}function L4e(t,e){if(t&1){let i=mt();N(0,` - `),R(1,"hot-toast",2),be("showAllToasts",function(r){ae(i);let s=ne(2);return ue(s.showAllToasts(r))})("height",function(r){ae(i);let s=ne().$implicit,o=ne();return ue(o.updateHeight(r,s))})("beforeClosed",function(){ae(i);let r=ne().$implicit,s=ne();return ue(s.beforeClosed(r))})("afterClosed",function(r){ae(i);let s=ne(2);return ue(s.afterClosed(r))})("toggleGroup",function(r){ae(i);let s=ne(2);return ue(s.toggleGroup(r))}),F(),N(2,` - `)}if(t&2){let i=ne(),n=i.$implicit,r=i.$index,s=ne();G(),J("toast",n)("offset",s.calculateOffset(n.id,n.position))("toastRef",s.toastRefs[r])("toastsAfter",(n.autoClose?s.toasts.length:s.getVisibleToasts(n.position).length)-1-r)("defaultConfig",s.defaultConfig)("isShowingAllToasts",s.isShowingAllToasts)}}function F4e(t,e){if(t&1&&(N(0," "),ke(1,P4e,0,0)(2,L4e,3,6)),t&2){let i=e.$implicit;G(),Pn(i.group!=null&&i.group.parent?1:2)}}var jj={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Z0=800,Wg=350,V4e=8,kw=.05,B4e=1,K2=class{constructor(e){this.toast=e,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new te,this._onGroupToggle=new te}set data(e){this.toast.data=e}get data(){return this.toast.data}set dispose(e){this._dispose=e}getToast(){return this.toast}appendTo(e,i){let{dispose:n,updateMessage:r,updateToast:s,afterClosed:o,afterGroupToggled:l,afterGroupRefsAttached:a}=e.addToast(this,i);return this.dispose=n,this.updateMessage=r,this.updateToast=s,this.afterClosed=l8(this._onClosed.asObservable(),o),this.afterGroupToggled=l8(this._onGroupToggle.asObservable(),l),this.afterGroupRefsAttached=a,this}close(e={dismissedByAction:!1}){this.groupRefs.forEach(i=>i.close()),this._dispose(),this._onClosed.next({dismissedByAction:e.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(e={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:e.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}},X0=(t,e)=>{t.style.animation=e},U4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(r,s){r&1&&(pe(0,"div",0),N(1,` -`)),r&2&&J("ngStyle",ih(1,u4e,s.theme==null?null:s.theme.primary,s.theme==null?null:s.theme.secondary))},dependencies:[tr,dh],encapsulation:2,changeDetection:0});let t=e;return t})(),j4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),N(1,` -`)),r&2&&an("--error-primary",s.theme==null?null:s.theme.primary)("--error-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),H4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),N(1,` -`)),r&2&&an("--check-primary",s.theme==null?null:s.theme.primary)("--check-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),z4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),N(1,` -`)),r&2&&an("--warn-primary",s.theme==null?null:s.theme.primary)("--warn-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),$4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),N(1,` -`)),r&2&&an("--warn-primary",s.theme==null?null:s.theme.primary)("--warn-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),$j=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},standalone:!0,features:[ot],decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,s){r&1&&ke(0,g4e,6,2),r&2&&Pn(s.type!=="blank"?0:-1)},dependencies:[U4e,j4e,H4e,z4e,$4e],encapsulation:2,changeDetection:0});let t=e;return t})(),Gj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},standalone:!0,features:[ot],ngContentSelectors:_4e,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(r,s){r&1&&(ei(),R(0,"div",0),N(1,` - `),Ln(2),N(3,` -`),F(),N(4,` -`)),r&2&&an("color",s.iconTheme==null?null:s.iconTheme.primary)},encapsulation:2,changeDetection:0});let t=e;return t})(),G4e=(()=>{let e=class e{get toastsAfter(){return this._toastsAfter}set toastsAfter(n){this._toastsAfter=n}constructor(n,r,s,o){this.injector=n,this.renderer=r,this.ngZone=s,this.cdr=o,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new Se,this.beforeClosed=new Se,this.afterClosed=new Se,this.showAllToasts=new Se,this.toggleGroup=new Se,this.isManualClose=!1,this.unlisteners=[],this.softClosed=!1}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-kw+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let n=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",s=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return b(b({transform:r},n),s)}get toastBarBaseStyles(){let n=`hotToastEnterAnimation${this.top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`,s=this.toast.autoClose?`${n}, ${r}`:n;return ee(b({},this.toast.style),{animation:s})}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs}set groupChildrenToastRefs(n){this.toastRef.groupRefs=n}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(n=>n.getToast())}get groupHeight(){return this.visibleToasts.map(n=>n.height).reduce((n,r)=>n+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(n){n.toast&&!n.toast.firstChange&&n.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){vp(this.toast.message)&&(this.context={$implicit:this.toastRef}),q2(this.toast.message)&&(this.toastComponentInjector=ze.create({providers:[{provide:K2,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){let n=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(n.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(n,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(n,"animationend",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){let n=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!0}softOpen(){let n=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!1}close(){this.isManualClose=!0;let n=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(n){return n.animationName.includes("hotToastExitAnimation")}setToastAttributes(){let n=this.toast.attributes;for(let[r,s]of Object.entries(n))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,s)}get visibleToasts(){return this.groupChildrenToasts.filter(n=>n.visible)}};e.\u0275fac=function(r){return new(r||e)(I(ze),I(Pi),I(le),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-group-item"]],viewQuery:function(r,s){if(r&1&&Et(zj,5),r&2){let o;nt(o=it())&&(s.toastBarBase=o.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[In,ot],decls:21,vars:21,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1),N(1,` - `),R(2,"div",2),be("mouseenter",function(){return ae(o),ue(s.handleMouseEnter())})("mouseleave",function(){return ae(o),ue(s.handleMouseLeave())}),N(3,` - `),R(4,"div",3,0),N(6,` - `),R(7,"div",4),N(8,` - `),ke(9,E4e,3,1)(10,C4e,3,2),F(),N(11,` - `),R(12,"div",5),N(13,` - `),ke(14,I4e,1,0,"ng-container",6),N(15,` - `),F(),N(16,` - `),ke(17,T4e,3,1),F(),N(18,` - `),F(),N(19,` -`),F(),N(20,` -`)}r&2&&(an("--hot-toast-scale",s.scale)("--hot-toast-translate-y",s.translateY),J("ngStyle",s.containerPositionStyle)("ngClass","hot-toast-theme-"+s.toast.theme),G(4),an("--hot-toast-animation-state",s.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",s.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",s.exitAnimationDelay),J("ngStyle",s.toastBarBaseStyles)("ngClass",s.toast.className),Tt("aria-live",s.toast.ariaLive)("role",s.toast.role),G(5),Pn(s.toast.icon!==void 0?9:10),G(5),J("dynamicView",s.toast.message)("dynamicViewContext",s.context)("dynamicViewInjector",s.toastComponentInjector),G(3),Pn(s.toast.dismissible?17:-1))},dependencies:[Fc,dh,Gj,$j,Rw],encapsulation:2,changeDetection:0});let t=e;return t})(),Hj=(()=>{let e=class e{get toastsAfter(){return this._toastsAfter}set toastsAfter(n){this._toastsAfter=n,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(n>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}constructor(n,r,s,o){this.injector=n,this.renderer=r,this.ngZone=s,this.cdr=o,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new Se,this.beforeClosed=new Se,this.afterClosed=new Se,this.showAllToasts=new Se,this.toggleGroup=new Se,this.isManualClose=!1,this.isExpanded=!1,this.unlisteners=[],this.softClosed=!1,this.groupRefs=[]}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-kw+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let n=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",s=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return b(b({transform:r},n),s)}get toastBarBaseStyles(){let n=`hotToastEnterAnimation${this.top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`,s=this.toast.autoClose?`${n}, ${r}`:n;return ee(b({},this.toast.style),{animation:s})}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs}set groupChildrenToastRefs(n){this.groupRefs=n,this.toastRef.groupRefs=n}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(n=>n.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(n=>n.height).reduce((n,r)=>n+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(n=>n.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(n){n.toast&&!n.toast.firstChange&&n.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){vp(this.toast.message)&&(this.context={$implicit:this.toastRef}),q2(this.toast.message)&&(this.toastComponentInjector=ze.create({providers:[{provide:K2,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){let n=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(n.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(n,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(n,"animationend",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){let n=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let n=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!1}close(){this.isManualClose=!0;let n=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(n){return n.animationName.includes("hotToastExitAnimation")}setToastAttributes(){let n=this.toast.attributes;for(let[r,s]of Object.entries(n))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,s)}calculateOffset(n){let r=this.visibleToasts,s=r.findIndex(l=>l.id===n);return s!==-1?r.slice(...this.defaultConfig.reverseOrder?[s+1]:[0,s]).reduce((l,a,u)=>this.defaultConfig.visibleToasts!==0&&us.id===n.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(s=>s.getToast().id!==n.id),this.cdr.detectChanges())}toggleToastGroup(){let n=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:n,id:this.toast.id}),this.emiHeightWithGroup(n==="expand")}emiHeightWithGroup(n){requestAnimationFrame(n?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};e.\u0275fac=function(r){return new(r||e)(I(ze),I(Pi),I(le),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast"]],viewQuery:function(r,s){if(r&1&&Et(zj,5),r&2){let o;nt(o=it())&&(s.toastBarBase=o.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[In,ot],decls:27,vars:27,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["role","list",1,"hot-toast-bar-base-group",3,"ngClass"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click","ngStyle"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1),N(1,` - `),R(2,"div",2),be("mouseenter",function(){return ae(o),ue(s.handleMouseEnter())})("mouseleave",function(){return ae(o),ue(s.handleMouseLeave())}),N(3,` - `),R(4,"div",3,0),N(6,` - `),R(7,"div",4),N(8,` - `),ke(9,D4e,3,1)(10,O4e,3,2),F(),N(11,` - - `),R(12,"div",5),N(13,` - `),ke(14,R4e,1,0,"ng-container",6),N(15,` - `),F(),N(16,` - - `),ke(17,M4e,3,4)(18,k4e,3,1),F(),N(19,` - - `),R(20,"div",7),N(21,` - `),o2(22,N4e,3,6,null,null,S4e),F(),N(24,` - `),F(),N(25,` -`),F(),N(26,` -`)}r&2&&(an("--hot-toast-scale",s.scale)("--hot-toast-translate-y",s.translateY),J("ngStyle",s.containerPositionStyle)("ngClass","hot-toast-theme-"+s.toast.theme),G(2),ut("expanded",s.isExpanded),G(2),an("--hot-toast-animation-state",s.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",s.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",s.exitAnimationDelay),J("ngStyle",s.toastBarBaseStyles)("ngClass",s.toast.className),Tt("aria-live",s.toast.ariaLive)("role",s.toast.role),G(5),Pn(s.toast.icon!==void 0?9:10),G(5),J("dynamicView",s.toast.message)("dynamicViewContext",s.context)("dynamicViewInjector",s.toastComponentInjector),G(3),Pn(s.toast.group!=null&&s.toast.group.expandAndCollapsible&&(s.toast.group!=null&&s.toast.group.children)&&s.visibleToasts.length>0?17:-1),G(),Pn(s.toast.dismissible?18:-1),G(2),an("--hot-toast-group-height",s.groupHeight+"px"),J("ngClass",s.toast.group==null?null:s.toast.group.className),G(2),l2(s.groupChildrenToasts))},dependencies:[tr,Fc,dh,Rw,$j,Gj,G4e],encapsulation:2,changeDetection:0});let t=e;return t})(),W4e=(()=>{let e=class e{constructor(n,r){this.cdr=n,this.toastService=r,this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new te,this._onGroupToggle=new te,this._onGroupRefAttached=new te,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable()}trackById(n,r){return r.id}getVisibleToasts(n){return this.unGroupedToasts.filter(r=>r.visible&&r.position===n)}get unGroupedToasts(){return this.toasts.filter(n=>n.group?.parent===void 0||n.group?.children===void 0||n.group?.children.length===0)}calculateOffset(n,r){let s=this.getVisibleToasts(r),o=s.findIndex(a=>a.id===n);return o!==-1?s.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((a,u,c)=>{let d=s.length-1-c;return this.defaultConfig.visibleToasts!==0&&cthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(l=>{l.autoClose&&this.closeToast(l.id)}),this.cdr.detectChanges(),this.attachGroupRefs(s,n,r),{dispose:()=>{this.closeToast(s.id)},updateMessage:o=>{s.message=o,this.updateToasts(s),this.cdr.detectChanges()},updateToast:o=>{this.updateToasts(s,o),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(s),afterGroupToggled:this.getAfterGroupToggled(s),afterGroupRefsAttached:this.getAfterGroupRefsAttached(s).pipe(st(o=>o.groupRefs))}}attachGroupRefs(n,r,s){return K(this,null,function*(){let o=[];if(n.group){if(n.group.children){o=yield this.createGroupRefs(n,r);let l=this.toastRefs.findIndex(a=>a.getToast().id===n.id);l>-1&&(this.toastRefs[l].groupRefs=o,this.cdr.detectChanges(),this._onGroupRefAttached.next({groupRefs:o,id:n.id}))}else if(n.group.parent&&!s){let a=n.group.parent.getToast(),u=this.toastRefs.findIndex(d=>d.getToast().id===a.id),c=this.toasts.findIndex(d=>d.id===a.id);if(u>-1&&c>-1){this.toastRefs[u].groupRefs.push(r);let d=this.toasts[u].group??{},h=this.toasts[u].group?.children??[];h.push({options:ee(b({},n),{type:n.type,message:n.message})}),d.children=h,this.toasts[u].group=b({},d),this.cdr.detectChanges(),this._onGroupRefAttached.next({groupRefs:o,id:a.id})}}}})}createGroupRefs(n,r){return new Promise(o=>{let a=n.group.children.map(u=>new Promise(c=>{u.options.group={parent:r},setTimeout(()=>{let d=this.toastService.show(u.options.message,u.options,!0);c(d)})}));Promise.all(a).then(u=>o(u))})}closeToast(n){if(n){let r=this.hotToastComponentList.find(s=>s.toast.id===n);r&&r.close()}else this.hotToastComponentList.forEach(r=>r.close())}beforeClosed(n){n.visible=!1}afterClosed(n){this.toasts.findIndex(s=>s.id===n.id)>-1&&(this._onClosed.next(n),this.toasts=this.toasts.filter(s=>s.id!==n.id),this.toastRefs=this.toastRefs.filter(s=>s.getToast().id!==n.id),this.cdr.detectChanges())}toggleGroup(n){let r=this.toastRefs.findIndex(s=>s.getToast().id===n.id);r>-1&&(this._onGroupToggle.next(n),this.toastRefs[r].groupExpanded=n.event==="expand",this.cdr.detectChanges())}hasToast(n){return this.toasts.findIndex(r=>r.id===n)>-1}showAllToasts(n){this.isShowingAllToasts=n}getAfterClosed(n){return this.onClosed$.pipe(Ge(r=>r.id===n.id))}getAfterGroupToggled(n){return this.onGroupToggle$.pipe(Ge(r=>r.id===n.id))}getAfterGroupRefsAttached(n){return this.onGroupRefAttached$.pipe(Ge(r=>r.id===n.id))}updateToasts(n,r){this.toasts=this.toasts.map(s=>b(b({},s),s.id===n.id&&b(b({},n),r)))}};e.\u0275fac=function(r){return new(r||e)(I(Wt),I(Nw))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-container"]],viewQuery:function(r,s){if(r&1&&Et(Hj,5),r&2){let o;nt(o=it())&&(s.hotToastComponentList=o)}},inputs:{defaultConfig:"defaultConfig"},standalone:!0,features:[ot],decls:11,vars:0,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,s){r&1&&(R(0,"div",0),N(1,` - `),R(2,"div",1),N(3,` - `),R(4,"div"),N(5,` - `),o2(6,F4e,3,1,null,null,s.trackById,!0),F(),N(8,` - `),F(),N(9,` -`),F(),N(10,` -`)),r&2&&(G(6),l2(s.toasts))},dependencies:[Hj],encapsulation:2,changeDetection:0});let t=e;return t})(),bp=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},q4e=t=>typeof t=="function",K4e=t=>typeof t=="function"&&t.decorators&&t.decorators.some(e=>e.type===Uk),Y4e=(t,e)=>K4e(t)?t:q4e(t)?t(e):t,Mw=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Nw=(()=>{let e=class e{constructor(n,r,s){this._viewService=n,this.platformId=r,this._isInitialized=!1,this._defaultGlobalConfig=new bp,this._defaultPersistConfig=new Mw,s&&(this._defaultGlobalConfig=b(b({},this._defaultGlobalConfig),s))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(n){this._defaultGlobalConfig=b(b({},this._defaultGlobalConfig),n),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(n,r,s){return this.createToast({message:n||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:b(b({},this._defaultGlobalConfig),r),skipAttachToParent:s})}error(n,r){return this.createToast({message:n||this._defaultGlobalConfig.error.content,type:"error",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(n,r){return this.createToast({message:n||this._defaultGlobalConfig.success.content,type:"success",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(n,r){return this.createToast({message:n||this._defaultGlobalConfig.loading.content,type:"loading",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(n,r){return this.createToast({message:n||this._defaultGlobalConfig.warning.content,type:"warning",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(n,r){return this.createToast({message:n||this._defaultGlobalConfig.info.content,type:"info",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(n){return r=>{let s,o=0,l=n.loading??this._defaultGlobalConfig.loading?.content,a=n.success??this._defaultGlobalConfig.success?.content,u=n.error??this._defaultGlobalConfig.error?.content;return io(()=>(l&&(s=this.createLoadingToast(l),o=Date.now()),r.pipe(Mn(b(b({},a&&{next:c=>{s=this.createOrUpdateToast(n,c,s,"success",o===0?o:Date.now()-o)}}),u&&{error:c=>{s=this.createOrUpdateToast(n,c,s,"error",o===0?o:Date.now()-o)}})))))}}close(n){this._componentRef&&this._componentRef.ref.instance.closeToast(n)}init(){Uc(this.platformId)||(this._componentRef=this._viewService.createComponent(W4e).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body))}createOrUpdateToast(n,r,s,o,l){try{let a=null,u={};if({content:a,options:u}=this.getContentAndOptions(o,n[o]||(this._defaultGlobalConfig[o]?this._defaultGlobalConfig[o].content:"")),a=Y4e(a,r),s){u.data&&(s.data=u.data),s.updateMessage(a);let c=b(b({type:o,duration:l+jj[o]},u),u.duration&&{duration:l+u.duration});s.updateToast(c)}else this.createToast({message:a,type:o,options:u});return s}catch(a){console.error(a)}}createToast({message:n,type:r,options:s,observableMessages:o,skipAttachToParent:l}){this._isInitialized||(this._isInitialized=!0,this.init());let a=Date.now(),u=s?.id??a.toString();if(!this.isDuplicate(u)&&(!s.persist?.enabled||s.persist?.enabled&&this.handleStorageValue(u,s))){let c=b({ariaLive:s?.ariaLive??"polite",createdAt:a,duration:s?.duration??jj[r],id:u,message:n,role:s?.role??"status",type:r,visible:!0,observableMessages:o??void 0},s);return new K2(c).appendTo(this._componentRef.ref.instance,l)}}isDuplicate(n){return this._componentRef.ref.instance.hasToast(n)}handleStorageValue(n,r){let s=1,o=b(b({},this._defaultPersistConfig),r.persist),l=o.storage==="local"?localStorage:sessionStorage,a=o.key.replace(/\${id}/g,n),u=l.getItem(a);return u?(u=parseInt(u,10),u>0?s=u-1:s=u):s=o.count,l.setItem(a,s.toString()),s}getContentAndOptions(n,r){var l;let s,o=b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig[n]);if(typeof r=="string"||vp(r)||q2(r))s=r;else{let a;l=r,{content:s}=l,a=el(l,["content"]),o=b(b({},o),a)}return{content:s,options:o}}createLoadingToast(n){let r=null,s={};return{content:r,options:s}=this.getContentAndOptions("loading",n),this.loading(r,s)}};e.\u0275fac=function(r){return new(r||e)(x(Ow),x(Jn),x(bp,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Wj(t){return Pr([{provide:bp,useValue:t}])}var X4e=["gutterEls"],Q4e=["*"],J4e=(t,e,i,n,r,s)=>({areaBefore:t,areaAfter:e,gutterNum:i,first:n,last:r,isDragged:s});function e5e(t,e){t&1&&Dn(0)}function t5e(t,e){if(t&1&&(ya(0),ke(1,e5e,1,0,"ng-container",7),Ea()),t&2){let i=e.$implicit,n=ne(3),r=n.$implicit,s=n.index,o=n.first,l=ne();G(),J("ngTemplateOutlet",l.customGutter.template)("ngTemplateOutletContext",bE(3,J4e,r,l.displayedAreas[s+1],s+1,o,s===l.displayedAreas.length-2,l.draggedGutterNum===s+1))("ngTemplateOutletInjector",i)}}function n5e(t,e){if(t&1&&(ya(0),ke(1,t5e,2,10,"ng-container",6),Ea()),t&2){let i=ne(2).index;G(),J("asSplitGutterDynamicInjector",i+1)}}function i5e(t,e){t&1&&pe(0,"div",8)}function r5e(t,e){if(t&1){let i=mt();R(0,"div",4,0),be("keydown",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startKeyboardDrag(r,s*2+1,s+1))})("mousedown",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startMouseDrag(r,s*2+1,s+1))})("touchstart",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startMouseDrag(r,s*2+1,s+1))})("mouseup",function(r){ae(i);let s=ne().index,o=ne();return ue(o.clickGutter(r,s+1))})("touchend",function(r){ae(i);let s=ne().index,o=ne();return ue(o.clickGutter(r,s+1))}),ke(2,n5e,2,1,"ng-container",5)(3,i5e,1,0,"ng-template",null,1,a2),F()}if(t&2){let i=Br(4),n=ne(),r=n.$implicit,s=n.index,o=ne();an("flex-basis",o.gutterSize,"px")("order",s*2+1),ut("as-dragged",o.draggedGutterNum===s+1),Tt("aria-label",o.gutterAriaLabel)("aria-orientation",o.direction)("aria-valuemin",r.minSize)("aria-valuemax",r.maxSize)("aria-valuenow",r.size==="*"?null:r.size)("aria-valuetext",o.getAriaAreaSizeText(r.size)),G(2),J("ngIf",o.customGutter==null?null:o.customGutter.template)("ngIfElse",i)}}function s5e(t,e){if(t&1&&ke(0,r5e,5,14,"div",3),t&2){let i=e.last;J("ngIf",i===!1)}}function yp(t){if(t.changedTouches!==void 0&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(t.clientX!==void 0&&t.clientY!==void 0)return{x:t.clientX,y:t.clientY};if(t.currentTarget!==void 0){let e=t.currentTarget;return{x:e.offsetLeft,y:e.offsetTop}}return null}function qj(t,e,i){return Math.abs(t.x-e.x)<=i&&Math.abs(t.y-e.y)<=i}function o5e(t,e){if(e==="horizontal")switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if(e==="vertical")switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}let i=t.currentTarget,n=t.key==="PageUp"||t.key==="PageDown"?50*10:50,r=i.offsetLeft,s=i.offsetTop;switch(t.key){case"ArrowLeft":r-=n;break;case"ArrowRight":r+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":e==="vertical"?s-=n:r+=n;break;case"PageDown":e==="vertical"?s+=n:r-=n;break;default:return null}return{x:r,y:s}}function Kj(t,e){let i=t.nativeElement.getBoundingClientRect();return e==="horizontal"?i.width:i.height}function Ep(t){return typeof t=="boolean"?t:t!=="false"}function Za(t,e){return t==null?e:(t=Number(t),!isNaN(t)&&t>=0?t:e)}function Yj(t,e){if(t==="percent"){let i=e.reduce((r,s)=>s!=="*"?r+s:r,0),n=e.filter(r=>r==="*");return n.length>1?!1:(n.length===1||i>99.9)&&i<100.1}if(t==="pixel")return e.filter(i=>i==="*").length===1}function qg(t){return t.size==="*"?null:t.component.lockSize===!0?t.size:t.component.minSize===null?null:t.component.minSize}function Kg(t){return t.size==="*"?null:t.component.lockSize===!0?t.size:t.component.maxSize===null?null:t.component.maxSize{let o=l5e(t,s,r.remain,n);return r.list.push(o),r.remain=o.pixelRemain,r},{remain:i,list:[]})}function l5e(t,e,i,n){if(i===0)return{areaSnapshot:e,pixelAbsorb:0,percentAfterAbsorption:e.sizePercentAtStart,pixelRemain:0};if(e.sizePixelAtStart===0&&i<0)return{areaSnapshot:e,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:i};if(t==="percent")return a5e(e,i,n);if(t==="pixel")return u5e(e,i)}function a5e(t,e,i){let r=(t.sizePixelAtStart+e)/i*100;if(e>0){if(t.area.maxSize!==null&&r>t.area.maxSize){let s=t.area.maxSize/100*i;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+e-s}}return{areaSnapshot:t,pixelAbsorb:e,percentAfterAbsorption:r>100?100:r,pixelRemain:0}}else if(e<0){if(t.area.minSize!==null&&r0)return t.area.maxSize!==null&&i>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:i-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:e,percentAfterAbsorption:-1,pixelRemain:0};if(e<0)return t.area.minSize!==null&&i{let e=class e{constructor(n){this.template=n,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging(n,r){return this.gutterToExcludeDragElementMap.has(r)&&this.gutterToExcludeDragElementMap.get(r).some(o=>o.nativeElement.contains(n))?!1:this.gutterToHandleElementMap.has(r)?this.gutterToHandleElementMap.get(r).some(s=>s.nativeElement.contains(n)):!0}addToMap(n,r,s){n.has(r)?n.get(r).push(s):n.set(r,[s])}removedFromMap(n,r,s){let o=n.get(r);o.splice(o.indexOf(s),1),o.length===0&&n.delete(r)}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","asSplitGutter",""]]});let t=e;return t})(),h5e=new Z("Gutter num"),f5e=(()=>{let e=class e{set gutterNum(n){this.vcr.clear();let r=ze.create({providers:[{provide:h5e,useValue:n}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:r})}constructor(n,r){this.vcr=n,this.templateRef=r}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:[0,"asSplitGutterDynamicInjector","gutterNum"]}});let t=e;return t})(),Y2=(()=>{let e=class e{set direction(n){this._direction=n==="vertical"?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${this._direction==="vertical"?"horizontal":"vertical"}`),this.build(!1,!1)}get direction(){return this._direction}set unit(n){this._unit=n==="pixel"?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${this._unit==="pixel"?"percent":"pixel"}`),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(n){this._gutterSize=Za(n,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(n){this._gutterStep=Za(n,1)}get gutterStep(){return this._gutterStep}set restrictMove(n){this._restrictMove=Ep(n)}get restrictMove(){return this._restrictMove}set useTransition(n){this._useTransition=Ep(n),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(n){this._disabled=Ep(n),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(n){this._dir=n==="rtl"?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(n){this._gutterDblClickDuration=Za(n,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new Ae(n=>this.transitionEndSubscriber=n).pipe(Ki(20))}constructor(n,r,s,o,l){this.ngZone=n,this.elRef=r,this.cdRef=s,this.renderer=o,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new Se(!1),this.dragEnd=new Se(!1),this.gutterClick=new Se(!1),this.gutterDblClick=new Se(!1),this.dragProgressSubject=new te,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=l?Object.assign(this._config,l):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return this.displayedAreas.length===0?0:this.displayedAreas.length-1}addArea(n){let r={component:n,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};n.visible===!0?(this.displayedAreas.push(r),this.build(!0,!0)):this.hiddenAreas.push(r)}removeArea(n){if(this.displayedAreas.some(r=>r.component===n)){let r=this.displayedAreas.find(s=>s.component===n);this.displayedAreas.splice(this.displayedAreas.indexOf(r),1),this.build(!0,!0)}else if(this.hiddenAreas.some(r=>r.component===n)){let r=this.hiddenAreas.find(s=>s.component===n);this.hiddenAreas.splice(this.hiddenAreas.indexOf(r),1)}}updateArea(n,r,s){n.visible===!0&&this.build(r,s)}showArea(n){let r=this.hiddenAreas.find(o=>o.component===n);if(r===void 0)return;let s=this.hiddenAreas.splice(this.hiddenAreas.indexOf(r),1);this.displayedAreas.push(...s),this.build(!0,!0)}hideArea(n){let r=this.displayedAreas.find(o=>o.component===n);if(r===void 0)return;let s=this.displayedAreas.splice(this.displayedAreas.indexOf(r),1);s.forEach(o=>{o.order=0,o.size=0}),this.hiddenAreas.push(...s),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(n=>n.size)}setVisibleAreaSizes(n){if(n.length!==this.displayedAreas.length)return!1;let r=n.map(o=>Za(o,"*"));return Yj(this.unit,r)===!1?!1:(this.displayedAreas.forEach((o,l)=>o.component.size=r[l]),this.build(!1,!0),!0)}build(n,r){if(this.stopDragging(),n===!0&&(this.displayedAreas.every(s=>s.component.order!==null)&&this.displayedAreas.sort((s,o)=>s.component.order-o.component.order),this.displayedAreas.forEach((s,o)=>{s.order=o*2,s.component.setStyleOrder(s.order)})),r===!0){let s=Yj(this.unit,this.displayedAreas.map(o=>o.component.size));switch(this.unit){case"percent":{let o=100/this.displayedAreas.length;this.displayedAreas.forEach(l=>{l.size=s?l.component.size:o,l.minSize=qg(l),l.maxSize=Kg(l)});break}case"pixel":{if(s)this.displayedAreas.forEach(o=>{o.size=o.component.size,o.minSize=qg(o),o.maxSize=Kg(o)});else{let o=this.displayedAreas.filter(l=>l.component.size==="*");if(o.length===0&&this.displayedAreas.length>0)this.displayedAreas.forEach((l,a)=>{l.size=a===0?"*":l.component.size,l.minSize=a===0?l.component.minSize:qg(l),l.maxSize=a===0?null:Kg(l)});else if(o.length>1){let l=!1;this.displayedAreas.forEach(a=>{a.component.size==="*"?l===!1?(a.size="*",a.minSize=null,a.maxSize=null,l=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=qg(a),a.maxSize=Kg(a))})}}break}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if(this.unit==="percent")if(this.displayedAreas.length===1)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{let n=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(r=>{r.size==="*"?this.displayedAreas.length===1?r.component.setStyleFlex(1,1,"100%",!1,!1):r.component.setStyleFlex(1,1,"auto",!1,!1):r.component.setStyleFlex(0,0,`calc( ${r.size}% - ${r.size/100*n}px )`,r.minSize!==null&&r.minSize===r.size,r.maxSize!==null&&r.maxSize===r.size)})}else this.unit==="pixel"&&this.displayedAreas.forEach(n=>{n.size==="*"?this.displayedAreas.length===1?n.component.setStyleFlex(1,1,"100%",!1,!1):n.component.setStyleFlex(1,1,"auto",!1,!1):this.displayedAreas.length===1?n.component.setStyleFlex(0,0,"100%",!1,!1):n.component.setStyleFlex(0,0,`${n.size}px`,n.minSize!==null&&n.minSize===n.size,n.maxSize!==null&&n.maxSize===n.size)})}clickGutter(n,r){let s=yp(n);this.startPoint&&qj(this.startPoint,s,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(this._clickTimeout!==null?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",r),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",r),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(n,r,s){if(this.disabled===!0||this.isWaitingClear===!0)return;let o=o5e(n,this.direction);o!==null&&(this.endPoint=o,this.startPoint=yp(n),n.preventDefault(),n.stopPropagation(),this.setupForDragEvent(r,s),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(n,r,s){this.customGutter&&!this.customGutter.canStartDragging(n.target,s)||(n.preventDefault(),n.stopPropagation(),this.startPoint=yp(n),!(this.startPoint===null||this.disabled===!0||this.isWaitingClear===!0)&&(this.setupForDragEvent(r,s),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent(n,r){if(this.snapshot={gutterNum:r,lastSteppedOffset:0,allAreasSizePixel:Kj(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(s=>{let o={area:s,sizePixelAtStart:Kj(s.component.elRef,this.direction),sizePercentAtStart:this.unit==="percent"?s.size:-1};s.ordern&&(this.restrictMove===!0?this.snapshot.areasAfterGutter.length===0&&(this.snapshot.areasAfterGutter=[o]):this.snapshot.areasAfterGutter.push(o))}),this.restrictMove&&this.unit==="percent"){let s=this.snapshot.areasBeforeGutter[0],o=this.snapshot.areasAfterGutter[0];if(s.area.size==="*"||o.area.size==="*"){let l=this.displayedAreas.reduce((a,u)=>s.area!==u&&o.area!==u?a+u.size:a,0);this.snapshot.allInvolvedAreasSizePercent=100-l}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((l,a)=>l+a.sizePercentAtStart,0)}this.snapshot.areasBeforeGutter.length===0||this.snapshot.areasAfterGutter.length}startDragging(){this.displayedAreas.forEach(n=>n.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(n){n.preventDefault(),n.stopPropagation();let r=yp(n);this._clickTimeout!==null&&!qj(this.startPoint,r,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),this.isDragging!==!1&&(this.endPoint=yp(n),this.endPoint!==null&&this.drag())}drag(){if(this.isWaitingInitialMove)if(this.startPoint.x!==this.endPoint.x||this.startPoint.y!==this.endPoint.y)this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)});else return;let n=this.direction==="horizontal"?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;this.dir==="rtl"&&this.direction==="horizontal"&&(n=-n);let r=Math.round(n/this.gutterStep)*this.gutterStep;if(r===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=r;let s=Q0(this.unit,this.snapshot.areasBeforeGutter,-r,this.snapshot.allAreasSizePixel),o=Q0(this.unit,this.snapshot.areasAfterGutter,r,this.snapshot.allAreasSizePixel);if(s.remain!==0&&o.remain!==0?Math.abs(s.remain)===Math.abs(o.remain)||(Math.abs(s.remain)>Math.abs(o.remain)?o=Q0(this.unit,this.snapshot.areasAfterGutter,r+s.remain,this.snapshot.allAreasSizePixel):s=Q0(this.unit,this.snapshot.areasBeforeGutter,-(r-o.remain),this.snapshot.allAreasSizePixel)):s.remain!==0?o=Q0(this.unit,this.snapshot.areasAfterGutter,r+s.remain,this.snapshot.allAreasSizePixel):o.remain!==0&&(s=Q0(this.unit,this.snapshot.areasBeforeGutter,-(r-o.remain),this.snapshot.allAreasSizePixel)),this.unit==="percent"){let l=[...s.list,...o.list],u=l.find(c=>c.percentAfterAbsorption==="*")??l.find(c=>c.percentAfterAbsorption!==0&&c.percentAfterAbsorption!==c.areaSnapshot.area.minSize&&c.percentAfterAbsorption!==c.areaSnapshot.area.maxSize);u&&(u.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-l.filter(c=>c!==u).reduce((c,d)=>c+d.percentAfterAbsorption,0))}s.list.forEach(l=>Zj(this.unit,l)),o.list.forEach(l=>Zj(this.unit,l)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(n){if(n&&(n.preventDefault(),n.stopPropagation()),this.isDragging!==!1){for(this.displayedAreas.forEach(r=>r.component.unlockEvents());this.dragListeners.length>0;){let r=this.dragListeners.pop();r&&r()}this.isDragging=!1,this.isWaitingInitialMove===!1&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(n,r){let s=this.getVisibleAreaSizes();n==="start"?this.dragStart.emit({gutterNum:r,sizes:s}):n==="end"?this.dragEnd.emit({gutterNum:r,sizes:s}):n==="click"?this.gutterClick.emit({gutterNum:r,sizes:s}):n==="dblclick"?this.gutterDblClick.emit({gutterNum:r,sizes:s}):n==="transitionEnd"?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(s)):n==="progress"&&this.dragProgressSubject.next({gutterNum:r,sizes:s})}ngOnDestroy(){this.stopDragging()}collapseArea(n,r,s){let o=this.displayedAreas.find(u=>u.component===n);if(o===void 0)return;let l=s==="right"?1:-1;o.sizeBeforeCollapse||(o.sizeBeforeCollapse=o.size,o.gutterBeforeCollapse=l),o.size=r;let a=this.gutterEls.find(u=>u.nativeElement.style.order===`${o.order+l}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(n,!1,!1)}expandArea(n){let r=this.displayedAreas.find(o=>o.component===n);if(r===void 0||!r.sizeBeforeCollapse)return;r.size=r.sizeBeforeCollapse,r.sizeBeforeCollapse=null;let s=this.gutterEls.find(o=>o.nativeElement.style.order===`${r.order+r.gutterBeforeCollapse}`);s&&this.renderer.removeClass(s.nativeElement,"as-split-gutter-collapsed"),this.updateArea(n,!1,!1)}getAriaAreaSizeText(n){return n==="*"?null:n.toFixed(0)+" "+this.unit}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Te),I(Wt),I(Pi),I(c5e,8))},e.\u0275cmp=Me({type:e,selectors:[["as-split"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,d5e,5),r&2){let l;nt(l=it())&&(s.customGutter=l.first)}},viewQuery:function(r,s){if(r&1&&Et(X4e,5),r&2){let o;nt(o=it())&&(s.gutterEls=o)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:Q4e,decls:2,vars:1,consts:[["gutterEls",""],["defaultGutterTpl",""],["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],[4,"ngIf","ngIfElse"],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(r,s){r&1&&(ei(),Ln(0),ke(1,s5e,1,1,"ng-template",2)),r&2&&(G(),J("ngForOf",s.displayedAreas))},dependencies:[K9,Vc,Y9,f5e],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0});let t=e;return t})(),J0=(()=>{let e=class e{set order(n){this._order=Za(n,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(n){this._size=Za(n,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(n){this._minSize=Za(n,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(n){this._maxSize=Za(n,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(n){this._lockSize=Ep(n),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(n){this._visible=Ep(n),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(n,r,s,o){this.ngZone=n,this.renderer=r,this.split=s,this.elRef=o,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",r=>{r.propertyName==="flex-basis"&&this.split.notify("transitionEnd",-1)})});let n=this.renderer.createElement("div");this.renderer.addClass(n,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,n)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,n)})}setStyleOrder(n){this.renderer.setStyle(this.elRef.nativeElement,"order",n)}setStyleFlex(n,r,s,o,l){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",r),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",s),o===!0?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),l===!0?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){let n=this.lockListeners.pop();n&&n()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(n=0,r="right"){this.split.collapseArea(this,n,r)}expand(){this.split.expandArea(this)}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Pi),I(Y2),I(Te))},e.\u0275dir=Ce({type:e,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]});let t=e;return t})();var Xj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[tr]});let t=e;return t})();var p5e=["*"],Cp=class{},m5e=(()=>{let e=class e extends Cp{constructor(n){super(),this.http=n}getSvg(n){return this.http.get(n,{responseType:"text"})}};e.\u0275fac=function(r){return new(r||e)(x(h2))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),g5e=new Z("SERVER_URL"),Yg=(()=>{let e=class e{constructor(){this.loader=Y(Cp),this.serverUrl=Y(g5e,{optional:!0}),this.document=Y(Ne),this.iconsByUrl=new Map,this.iconsLoadingByUrl=new Map}addSvg(n,r){if(!this.iconsByUrl.has(n)){let s=this.document.createElement("DIV");s.innerHTML=r;let o=s.querySelector("svg");this.iconsByUrl.set(n,o)}}loadSvg(n,r=n){if(this.serverUrl&&n.match(/^(http(s)?):/)===null&&(n=this.serverUrl+n,r=n),this.iconsByUrl.has(r))return pn(this.iconsByUrl.get(r));if(this.iconsLoadingByUrl.has(r))return this.iconsLoadingByUrl.get(r);let s=this.loader.getSvg(n).pipe(st(o=>{let l=this.document.createElement("DIV");return l.innerHTML=o,l.querySelector("svg")}),Mn(o=>this.iconsByUrl.set(r,o)),K3(o=>(console.error(o),sa(o))),Y3(()=>this.iconsLoadingByUrl.delete(r)),f5());return this.iconsLoadingByUrl.set(r,s),s}getSvgByName(n){return this.iconsByUrl.has(n)?pn(this.iconsByUrl.get(n)):this.iconsLoadingByUrl.has(n)?this.iconsLoadingByUrl.get(n):sa(`No svg with name '${n}' has been loaded`)}unloadSvg(n){this.iconsByUrl.has(n)&&this.iconsByUrl.delete(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function _5e(t){return t||new Yg}var v5e={provide:Yg,deps:[[new Xi,new H5,Yg]],useFactory:_5e},Zg=class{constructor(){this.loaded=!1}},Vo=(()=>{let e=class e{constructor(){this.element=Y(Te),this.differs=Y(uh),this.renderer=Y(Pi),this.iconReg=Y(Yg),this.src=mo(),this.name=mo(),this.stretch=mo(!1),this.applyClass=mo(!1),this.svgClass=mo(),this.klass=mo(void 0,{alias:"class"}),this.viewBox=mo(),this.svgAriaLabel=mo(),this.svg=ba(0),this.svgStyle=mo(),this.helper=new Zg,Ur(()=>{(this.src()||this.name())&&(this.destroy(),this.init(this.src(),this.name()))},{allowSignalWrites:!0}),Ur(()=>{let s=this.viewBox();this.svg()&&this.updateViewBox(s)}),Ur(()=>{let s=this.svgStyle()||{};this.svg()&&this.applyChanges(this.helper.differ.diff(s))}),Ur(()=>{let s=this.svg();this.applyClass()?this.setClass(this.elemSvg,null,this.klass()):this.setClass(this.elemSvg,this.klass(),null)});let n;Ur(()=>{let s=this.svg();this.setClass(this.elemSvg,n,this.svgClass()),n=this.svgClass()});let r;Ur(()=>{let s=this.svg(),o=this.element.nativeElement;this.setClass(o,r,this.klass()),this.setClass(this.elemSvg,r,this.applyClass()?this.klass():null),r=this.klass()}),Ur(()=>{let s=this.svg();this.doAria(this.svgAriaLabel())}),Ur(()=>{let s=this.svg();this.stylize(this.stretch())})}ngOnDestroy(){this.destroy()}get elemSvg(){return this.element.nativeElement.firstChild}init(n,r){if(n&&r){let s=this.iconReg.loadSvg(n,r);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else if(r){let s=this.iconReg.getSvgByName(r);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else if(n){let s=this.iconReg.loadSvg(n);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else this.element.nativeElement.innerHTML="",this.svg.set(0)}initSvg(n){!this.helper.loaded&&n&&this.setSvg(n)}destroy(){this.helper.icnSub?.unsubscribe(),this.helper=new Zg,this.helper.differ=this.differs.find({}).create()}setSvg(n){if(!this.helper.loaded&&n){this.helper.svg=n;let r=n.cloneNode(!0),s=this.element.nativeElement;s.innerHTML="",this.renderer.appendChild(s,r),this.helper.loaded=!0,this.copyNgContentAttribute(s,r),this.svg.update(o=>o+1)}}updateViewBox(n){if(n){let r=this.elemSvg;if(n==="auto"){let s=r.getAttribute("width"),o=r.getAttribute("height");if(o&&s){let l=`0 0 ${s} ${o}`;this.renderer.setAttribute(r,"viewBox",l),this.renderer.removeAttribute(r,"width"),this.renderer.removeAttribute(r,"height")}}else n!==""&&(this.renderer.setAttribute(r,"viewBox",n),this.renderer.removeAttribute(r,"width"),this.renderer.removeAttribute(r,"height"))}}copyNgContentAttribute(n,r){let s=n.attributes,o=s.length;for(let l=0;lthis.setStyle(r.key,null)),n.forEachAddedItem(r=>this.setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this.setStyle(r.key,r.currentValue)))}setStyle(n,r){let[s,o]=n.split(".");r=r!==null&&o?`${r}${o}`:r;let l=this.elemSvg;r!==null?this.renderer.setStyle(l,s,r):this.renderer.removeStyle(l,s)}setClass(n,r,s){if(n){if(r){let o=(Array.isArray(r)?r:r.split(" ")).filter(l=>l);for(let l of o)this.renderer.removeClass(n,l)}if(s){let o=(Array.isArray(s)?s:s.split(" ")).filter(l=>l);for(let l of o)this.renderer.addClass(n,l)}}}doAria(n){let r=this.element.nativeElement.firstChild;r&&!(n===void 0&&r.hasAttribute("aria-label"))&&(n===""?(this.renderer.setAttribute(r,"aria-hidden","true"),this.renderer.removeAttribute(r,"aria-label")):(this.renderer.removeAttribute(r,"aria-hidden"),this.renderer.setAttribute(r,"aria-label",n)))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["svg-icon"]],inputs:{src:[1,"src"],name:[1,"name"],stretch:[1,"stretch"],applyClass:[1,"applyClass"],svgClass:[1,"svgClass"],klass:[1,"class","klass"],viewBox:[1,"viewBox"],svgAriaLabel:[1,"svgAriaLabel"],svgStyle:[1,"svgStyle"]},standalone:!0,features:[ot],ngContentSelectors:p5e,decls:1,vars:0,template:function(r,s){r&1&&(ei(),Ln(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var Qj=(()=>{let e=class e{static forRoot(n={}){return{ngModule:e,providers:[v5e,n.loader||{provide:Cp,useClass:m5e}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();function Jj(t){return typeof t=="function"}function b5e(t){let e={};for(let i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}var y5e=(t,e)=>{let i=0;for(;it,E5e=t=>t==null;var C5e=(t,e)=>t.filter(i=>!e.includes(i)),I5e=t=>(...e)=>{let i=0,n=t.length;for(;ie=>e[t];var S5e=(t,e)=>e.reduce((i,n)=>{let r=T5e(t),s=r(n),o=r(i);return s>o?n:i},{[t]:0}),Qg=typeof navigator<"u"?navigator.userAgent.includes("Mac OS"):!1,Jg={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",cmd:Qg?"metaKey":"ctrlKey",command:Qg?"metaKey":"ctrlKey",meta:Qg?"metaKey":"ctrlKey","left command":"metaKey","right command":"MetaRight","\u2318":Qg?"metaKey":"ctrlKey",option:"altKey",ctl:"ctrlKey",control:"ctrlKey"},e_={plus:"+"};var t_={8:"backspace",9:"tab",13:"enter",16:"shift",17:["ctrl","control"],18:"alt",20:"capslock",27:["esc","escape"],32:["space","spc"],33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:["meta","cmd","command"],93:["meta","cmd","command"],224:["meta","cmd","command"]},eH={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Lw={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},w5e=b5e(Lw);for(let t=1;t<20;++t)t_[111+t]="f"+t;for(let t=0;t<=9;++t)t_[t+96]=t.toString();var ed=function(t){return t.Textarea="TEXTAREA",t.Input="INPUT",t.Select="SELECT",t.ContentEditable="CONTENT-EDITABLE",t}(ed||{}),x5e=0,Tp=(()=>{class t{constructor(i){this.document=i,this._shortcuts=[],this._sequences=[],this.throttleTime=0,this._pressed=new te,this.pressed$=this._pressed.asObservable(),this.disabled=!1,this._shortcutsSub=new Ci([]),this.shortcuts$=this._shortcutsSub.pipe(Ge(n=>!!n.length)),this._ignored=[ed.Input,ed.Textarea,ed.Select,ed.ContentEditable],this.isAllowed=n=>{let r=n.event.target,s=!!r.getAttribute("contenteditable"),o=s?ed.ContentEditable:r.nodeName;return r===n.target?!0:n.allowIn.length?!C5e(this._ignored,n.allowIn).includes(o):s?!1:!this._ignored.includes(r.nodeName)},this.mapEvent=n=>this._shortcuts.filter(r=>!r.isSequence).map(r=>Object.assign({},r,{predicates:y5e(Xg,r.predicates.map(s=>I5e(s)(n))),event:n})).filter(r=>r.predicates).reduce((r,s)=>r.priority>s.priority?r:s,{priority:0}),this.subscriptions=[],this.keydown$=ai(this.document,"keydown"),this.ignore$=this.pressed$.pipe(Ge(n=>n.event.defaultPrevented),Ai(()=>this.clicks$.pipe(c8())),Mn(n=>{n.preventDefault(),n.stopPropagation()}),h5()),this.clicks$=ai(this.document,"click",{capture:!0}),this.keyup$=ai(this.document,"keyup"),this.keydownCombo$=this.keydown$.pipe(Ge(n=>!this.disabled),st(this.mapEvent),Ge(n=>!n.target||n.event.target===n.target),Ge(n=>Jj(n.command)),Ge(n=>this.isAllowed(n)),Mn(n=>{n.preventDefault&&(n.event.preventDefault(),n.event.stopPropagation())}),h8(n=>Xn(n.throttleTime)),Mn(n=>n.command({event:n.event,key:n.key})),Mn(n=>this._pressed.next({event:n.event,key:n.key})),yt(this.keyup$),h5(),K3(n=>sa(n))),this.timer$=new te,this.resetCounter$=this.timer$.asObservable().pipe(Ai(()=>Xn(t.TIMEOUT_SEQUENCE))),this.keydownSequence$=this.keydown$.pipe(st(n=>({event:n,sequences:this._sequences})),Ev((n,r)=>{let{event:s}=r,o=n.events.length,l=o?n.sequences:r.sequences,[a]=this.characterFromEvent(s),u=Array.isArray(a)?[...a,s.key]:[a,s.key],c=l.map(f=>{let p=f.sequence.filter(E=>u.some(C=>(e_[E[o]]||E[o])===C)),v=p.length>0;return f.fullMatch?f:ee(b({},f),{sequence:p,partialMatch:v,event:s,fullMatch:v&&this.isFullMatch({command:f,events:n.events})})}).filter(f=>f.partialMatch||f.fullMatch),[d]=c;if(!d||this.modifiersOn(s))return{events:[],sequences:this._sequences};let h=S5e("priority",c);return c.length>1&&h.fullMatch?{events:[],command:h,sequences:this._sequences}:c.length>1?{events:[...n.events,s],command:c,sequences:c}:d.fullMatch?{events:[],command:d,sequences:this._sequences}:{events:[...n.events,s],command:c,sequences:c}},{events:[],sequences:[]}),Ai(({command:n})=>Array.isArray(n)?Xn(500).pipe(st(()=>({command:n.filter(r=>r.fullMatch)[0]}))):pn({command:n})),yt(this.pressed$),Ge(({command:n})=>n&&n.fullMatch),st(({command:n})=>n),Ge(n=>Jj(n.command)),Ge(n=>!n.target||n.event.target===n.target),Ge(this.isAllowed),Mn(n=>!n.preventDefault||n.event.preventDefault()),h8(n=>Xn(n.throttleTime)),Mn(n=>n.command({event:n.event,key:n.key})),Mn(n=>this._pressed.next({event:n.event,key:n.key})),yt(this.resetCounter$),h5()),this.getKeys=n=>n.map(r=>r.trim()).filter(r=>r!=="+").map(r=>(r=e_[r]||r,Jg.hasOwnProperty(r)?s=>!!s[Jg[r]]:s=>{let o=r===r.toUpperCase(),l=/[^a-zA-Z\d\s:]/.test(r),a=w5e[r],[u]=this.characterFromEvent(s),d=Object.keys(Jg).map(f=>Jg[f]).some(f=>s[f]),h=Array.isArray(u)?[...u,s.key]:[u,s.key];return d&&(!o||l)&&!a&&n.length===1?!1:h.some(f=>f===r&&o?!0:r===f)})),this.subscriptions.push(this.keydownSequence$.subscribe(),this.keydownCombo$.subscribe())}isFullMatch({command:i,events:n}){return i?i.sequence.some(r=>r.length===n.length+1):!1}get shortcuts(){return this._shortcuts}_characterFromEvent(i){return typeof i.which!="number"&&(i.which=i.keyCode),e_[i.which]?[e_[i.which],i.shiftKey]:t_[i.which]?[t_[i.which],i.shiftKey]:eH[i.which]?[eH[i.which],i.shiftKey]:String.fromCharCode(i.which).toLowerCase()!==i.key?[String.fromCharCode(i.which).toLowerCase(),i.shiftKey]:[i.key,i.shiftKey]}characterFromEvent(i){let[n,r]=this._characterFromEvent(i);return r&&Lw[n]?[Lw[n],r]:[n,r]}ngOnDestroy(){this.subscriptions.forEach(i=>i.unsubscribe())}isSequence(i){return!i.some(n=>n.includes("+")||n.length===1)}add(i){i=Array.isArray(i)?i:[i];let n=this.parseCommand(i);return n.forEach(r=>{if(r.isSequence){this._sequences.push(r);return}this._shortcuts.push(r)}),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),n.map(r=>r.id)}remove(i){return i=Array.isArray(i)?i:[i],this._shortcuts=this._shortcuts.filter(n=>!i.includes(n.id)),this._sequences=this._sequences.filter(n=>!i.includes(n.id)),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),this}select(i){return this.pressed$.pipe(Ge(({event:n,key:r})=>(r=Array.isArray(r)?r:[r],!!r.find(s=>s===i))))}modifiersOn(i){return["metaKey","altKey","ctrlKey"].some(n=>i[n])}parseCommand(i){return(Array.isArray(i)?i:[i]).map(r=>{let s=Array.isArray(r.key)?r.key:[r.key],o=Math.max(...s.map(c=>c.split(" ").filter(Xg).length)),l=s.map(c=>this.getKeys(c.split(" ").filter(Xg))),a=this.isSequence(s),u=a?s.map(c=>c.split(" ").filter(Xg).map(d=>d.trim())):[];return ee(b({},r),{isSequence:a,sequence:a?u:[],allowIn:r.allowIn||[],key:s,id:`${x5e++}`,throttle:E5e(r.throttleTime)?this.throttleTime:r.throttleTime,priority:o,predicates:l})})}}return t.TIMEOUT_SEQUENCE=1e3,t.\u0275fac=function(i){return new(i||t)(x(Ne))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n_=(()=>{class t{constructor(i){this.keyboard=i,this.shortcuts=[],this.clearIds=[],this._disabled=!1}set disabled(i){this._disabled=i,this.clearIds&&(this.keyboard.remove(this.clearIds),this.clearIds=[]),!i&&(this.clearIds=this.keyboard.add(this.shortcuts))}select(i){return this.keyboard.select(i)}ngOnChanges(i){!i.shortcuts||!i.shortcuts.currentValue||(this.clearIds&&this.keyboard.remove(this.clearIds),this._disabled||setTimeout(()=>this.clearIds=this.keyboard.add(i.shortcuts.currentValue)))}ngOnDestroy(){this.keyboard.remove(this.clearIds)}}return t.\u0275fac=function(i){return new(i||t)(I(Tp))},t.\u0275cmp=Me({type:t,selectors:[["ng-keyboard-shortcuts"]],inputs:{shortcuts:"shortcuts",disabled:"disabled"},features:[In],decls:0,vars:0,template:function(i,n){},encapsulation:2}),t})(),A5e=(()=>{class t{constructor(i){this.keyboard=i,this.shortcuts$=this.keyboard.shortcuts$.pipe(st(n=>n.filter(r=>!!r.label&&!!r.description).map(({key:r,label:s,description:o})=>({key:r,label:s,description:o}))))}}return t.\u0275fac=function(i){return new(i||t)(x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),D5e=(()=>{class t{constructor(i){this.keyboardService=i}select(i){return this.keyboardService.select(i)}}return t.\u0275fac=function(i){return new(i||t)(x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var O5e=(()=>{class t{constructor(i,n){this.ngZone=i,this.keyboard=n}supports(i){return i.split(".").includes("shortcut")}addEventListener(i,n,r){let s=n.split("."),o=s.includes("prevent");if(s.length===0)throw new Error("please provide a shortcut");let[,l,a,u]=s,c=this.keyboard.add({key:l,command(d){r(d)},description:a,preventDefault:o,label:u});return()=>{this.keyboard.remove(c)}}}return t.\u0275fac=function(i){return new(i||t)(x(le),x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();var tH=(()=>{class t{static forRoot(){return{ngModule:t,providers:[Tp,A5e,D5e,{multi:!0,provide:jc,useClass:O5e}]}}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({imports:[[tr]]}),t})();(function(){typeof Element>"u"||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){let e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}))})();Array.prototype.flat||(Array.prototype.flat=function(t){var e=[];return function i(n,r){for(let s of n)Array.isArray(s)&&r>0?i(s,r-1):e.push(s)}(this,Math.floor(t)||1),e});Array.prototype.flatMap||(Array.prototype.flatMap=function(){return Array.prototype.map.apply(this,arguments).flat(1)});var Fw=new Z("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),iH=new Z("ngx-window",{providedIn:"root",factory:()=>{let{defaultView:t}=Y(Ne);if(!t)throw new Error("Window is not available");return t}});function R5e(t){return t?t.dataLayer=t.dataLayer||[]:null}var M5e=new Z("ngx-data-layer",{providedIn:"root",factory:()=>R5e(Y(iH))});function k5e(t,e){return t?t.gtag=t.gtag||function(){e.push(arguments)}:null}var rH=new Z("ngx-gtag-fn",{providedIn:"root",factory:()=>k5e(Y(iH),Y(M5e))}),Xa=(()=>{class t{constructor(i,n,r){this.settings=i,this._document=n,this._gtag=r}get document(){return this._document}throw(i){(this.settings.enableTracing||c2())&&console&&console.error&&console.error(i)}toKeyValue(i){return i.size>0?Array.from(i).reduce((n,[r,s])=>Object.defineProperty(n,r,{value:s,enumerable:!0}),{}):void 0}gtag(...i){try{this._gtag(...i.filter(n=>n!==void 0))}catch(n){this.throw(n)}}event(i,n,r,s,o,l){try{let a=new Map;n&&a.set("event_category",n),r&&a.set("event_label",r),s&&a.set("value",s),o!==void 0&&a.set("interaction",o),l&&Object.entries(l).map(([c,d])=>a.set(c,d));let u=this.toKeyValue(a);u?this.gtag("event",i,u):this.gtag("event",i)}catch(a){this.throw(a)}}pageView(i,n,r,s){try{let o=new Map([["page_path",i]]);n&&o.set("page_title",n),(r||this.document)&&o.set("page_location",r||this.document.location.href),s&&Object.entries(s).map(([l,a])=>o.set(l,a)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(o))}catch(o){this.throw(o)}}appView(i,n,r,s,o){try{let l=new Map([["screen_name",i],["app_name",n]]);r&&l.set("app_id",r),s&&l.set("app_version",s),o&&l.set("app_installer_id",o),this.gtag("event","screen_view",this.toKeyValue(l))}catch(l){this.throw(l)}}set(...i){try{this._gtag("set",...i)}catch(n){this.throw(n)}}exception(i,n){try{let r=new Map;i&&r.set("description",i),n&&r.set("fatal",n),this.toKeyValue(r)?this.gtag("event","exception",this.toKeyValue(r)):this.gtag("event","exception")}catch(r){this.throw(r)}}}return t.\u0275fac=function(i){return new(i||t)(x(Fw),x(Ne),x(rH))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var N5e={provide:u2,multi:!0,useFactory:P5e,deps:[Fw,rH,Ne]};function P5e(t,e,i){return()=>K(this,null,function*(){if(!t.trackingCode){c2()||console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule.");return}if(!e){c2()||console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface.");return}i||c2()||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),t.uri=t.uri||`https://www.googletagmanager.com/gtag/js?id=${t.trackingCode}`,t.initCommands=t?.initCommands??[],t.initCommands.find(s=>s.command==="config")||t.initCommands.unshift({command:"config",values:[t.trackingCode]}),t.initCommands.find(s=>s.command==="js")||t.initCommands.unshift({command:"js",values:[new Date]});for(let s of t.initCommands)e(s.command,...s.values);let n=i.createElement("script");n.async=!0,n.src=t.uri,t.nonce&&n.setAttribute("nonce",t.nonce),i.getElementsByTagName("head")[0].appendChild(n)})}var eUe=new Z("ngx-google-analytics-routing-settings",{factory:()=>({})});var sH=(()=>{class t{static forRoot(i,n=[],r,s,o){return{ngModule:t,providers:[{provide:Fw,useValue:{trackingCode:i,initCommands:n,uri:r,enableTracing:s,nonce:o}},N5e]}}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({}),t})();var wp="Service workers are disabled or not supported by this browser";function L5e(t){return io(()=>sa(new Error(t)))}var td=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=L5e(wp);else{let n=ai(e,"controllerchange").pipe(st(()=>e.controller)),r=io(()=>pn(e.controller)),s=no(r,n);this.worker=s.pipe(Ge(c=>!!c)),this.registration=this.worker.pipe(Ai(()=>e.getRegistration()));let u=ai(e,"message").pipe(st(c=>c.data)).pipe(Ge(c=>c&&c.type)).pipe(bv());u.connect(),this.events=u}}postMessage(e,i){return this.worker.pipe(en(1),Mn(n=>{n.postMessage(b({action:e},i))})).toPromise().then(()=>{})}postMessageWithOperation(e,i,n){let r=this.waitForOperationCompleted(n),s=this.postMessage(e,i);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let i;return typeof e=="string"?i=n=>n.type===e:i=n=>e.includes(n.type),this.events.pipe(Ge(i))}nextEventOfType(e){return this.eventsOfType(e).pipe(en(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ge(i=>i.nonce===e),en(1),st(i=>{if(i.result!==void 0)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},uH=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new te,!n.isEnabled){this.messages=Lu,this.notificationClicks=Lu,this.subscription=Lu;return}this.messages=this.sw.eventsOfType("PUSH").pipe(st(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(st(s=>s.data)),this.pushManager=this.sw.registration.pipe(st(s=>s.pushManager));let r=this.pushManager.pipe(Ai(s=>s.getSubscription()));this.subscription=qi(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(wp));let r={userVisibleOnly:!0},s=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let l=0;ll.subscribe(r)),en(1)).toPromise().then(l=>(this.subscriptionChanges.next(l),l))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(wp));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(en(1),Ai(n)).toPromise()}decodeBase64(n){return atob(n)}};e.\u0275fac=function(r){return new(r||e)(x(td))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),r_=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Lu,this.unrecoverable=Lu;return}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(wp));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(wp));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}};e.\u0275fac=function(r){return new(r||e)(x(td))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();var oH=new Z("");function F5e(t,e,i,n){return()=>{if(!(hh(n)&&"serviceWorker"in navigator&&i.enabled!==!1))return;let r=t.get(le),s=t.get(Ji);r.runOutsideAngular(()=>{let l=navigator.serviceWorker,a=()=>l.controller?.postMessage({action:"INITIALIZE"});l.addEventListener("controllerchange",a),s.onDestroy(()=>{l.removeEventListener("controllerchange",a)})});let o;if(typeof i.registrationStrategy=="function")o=i.registrationStrategy();else{let[l,...a]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(l){case"registerImmediately":o=pn(null);break;case"registerWithDelay":o=lH(+a[0]||0);break;case"registerWhenStable":o=a[0]?qi(aH(t),lH(+a[0])):aH(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}r.runOutsideAngular(()=>o.pipe(en(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:i.scope}).catch(l=>console.error("Service worker registration failed with:",l))))}}function lH(t){return pn(null).pipe(vv(t))}function aH(t){return t.get(Ji).isStable.pipe(Ge(i=>i))}function V5e(t,e){return new td(hh(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var Sp=class{};function B5e(t,e={}){return Pr([uH,r_,{provide:oH,useValue:t},{provide:Sp,useValue:e},{provide:td,useFactory:V5e,deps:[Sp,Jn]},{provide:u2,useFactory:F5e,deps:[ze,oH,Sp,Jn],multi:!0}])}var cH=(()=>{let e=class e{static register(n,r={}){return{ngModule:e,providers:[B5e(n,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[uH,r_]});let t=e;return t})();var xp={production:!0,firebase:{apiKey:"AIzaSyD_6fjI7Vsm4RQS6EJZSZ_an7Zehjz9YwQ",authDomain:"portugol-webstudio.firebaseapp.com",projectId:"portugol-webstudio",storageBucket:"portugol-webstudio.appspot.com",messagingSenderId:"845512624544",appId:"1:845512624544:web:b1d4787cafd265429dfcc5",measurementId:"G-BM3QGZS096"}};var _i=class t extends Error{constructor(e,i,n,r,s,o){super(e),this.message=e,this.context=i,this.startLine=n,this.startCol=r,this.endLine=s,this.endCol=o}static fromContext(e,i){let n=e;if(!e.hasOwnProperty("start")&&!e.hasOwnProperty("stop")&&e.parent&&(n=e.parent),n.hasOwnProperty("start")&&n.hasOwnProperty("stop")&&typeof n.start=="object"&&typeof n.stop=="object"){let{start:s,stop:o}=n,{line:l,column:a}=s,{line:u,column:c}=o;return l===u&&a===c&&(c+=e.getText().length-1),new t(i,e,l,a,u,c)}let r=e.getPayload();if(r&&r.hasOwnProperty("column")&&r.hasOwnProperty("line")){let{line:s,column:o}=r;return new t(i,e,s,o,s,o+e.getText().length)}return new t(i,e,1,1,1,2+e.getText().length)}},nd=class{constructor(){this.errors=[]}syntaxError(e,i,n,r,s,o){let l=i&&i.text?r+i.text.length:r;this.errors.push(new _i(s,o?.ctx||i||null,n,r,n,l))}getErrors(){return this.errors}reset(){this.errors=[]}reportAmbiguity(e,i,n,r,s,o,l){}reportAttemptingFullContext(e,i,n,r,s,o){}reportContextSensitivity(e,i,n,r,s,o){}};var j5e=Object.defineProperty,k=(t,e)=>j5e(t,"name",{value:e,configurable:!0}),o_;(t=>{t.EOF=-1,t.UNKNOWN_SOURCE_NAME=""})(o_||(o_={}));var Q;(t=>{t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=o_.EOF,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1,t.MIN_USER_CHANNEL_VALUE=2})(Q||(Q={}));var H5e=k(t=>{let e=t;return e.tokenSource!==void 0&&e.channel!==void 0},"isToken"),jn,ld,kp,hn=(jn=class{constructor(e,i){T(this,"start");T(this,"stop");Ee(this,kp);this.start=e,this.stop=i,ie(this,kp,Math.imul(651+e,31)+i)}static of(e,i){return e!==i||e<0||e>jn.INTERVAL_POOL_MAX_VALUE?new jn(e,i):(y(jn,ld)[e]||(y(jn,ld)[e]=new jn(e,e)),y(jn,ld)[e])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return y(this,kp)}startsBeforeDisjoint(e){return this.start=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(e){return jn.of(Math.min(this.start,e.start),Math.max(this.stop,e.stop))}intersection(e){return jn.of(Math.max(this.start,e.start),Math.min(this.stop,e.stop))}differenceNotProperlyContained(e){let i=null;return e.startsBeforeNonDisjoint(this)?i=jn.of(Math.max(this.start,e.stop+1),this.stop):e.startsAfterNonDisjoint(this)&&(i=jn.of(this.start,e.start-1)),i}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop0){let o=s.charAt(0);if(o==="'"){n[r]=null;continue}else if(o.toUpperCase()===o){i[r]=null;continue}}i[r]=null,n[r]=null}}return new bi(i,n,e)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e=0&&e=0&&e{var e,i;return e=class{constructor(){}static initialize(r=y(e,i)){return r}static updateFromComparable(r,s){return this.update(r,s?.hashCode()??0)}static update(r,s){return s=Math.imul(s,z5e),s=s<>>32-dH,s=Math.imul(s,$5e),r=r^s,r=r<>>32-hH,r=Math.imul(r,G5e)+W5e,r}},i=new WeakMap,k(e,"MurmurHash"),Ee(e,i,701),T(e,"finish",(r,s)=>(r^=s*4,r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),r^=r>>>16,r)),T(e,"hashCode",(r,s)=>e.finish(e.update(s??y(e,i),r),1)),e})(),ye,Uo,vi,Ks=(vi=class{constructor(e){Ee(this,ye,[]);Ee(this,Uo);e&&this.addSet(e)}static of(e,i){let n=new vi;return n.addRange(e,i),n}[Symbol.iterator](){return y(this,ye)[Symbol.iterator]()}get(e){return y(this,ye)[e]}get minElement(){return y(this,ye).length===0?Q.INVALID_TYPE:y(this,ye)[0].start}get maxElement(){return y(this,ye).length===0?Q.INVALID_TYPE:y(this,ye)[y(this,ye).length-1].stop}clear(){ie(this,Uo,void 0),ie(this,ye,[])}addOne(e){this.addInterval(new hn(e,e))}addRange(e,i){this.addInterval(new hn(e,i))}addInterval(e){if(ie(this,Uo,void 0),y(this,ye).length===0)y(this,ye).push(e);else{for(let i=0;ithis.addInterval(i),this),this}complementWithVocabulary(e){let i=new vi;return!e||e.length===0?i:(i.addSet(e),i.subtract(this))}complement(e,i){let n=new vi;return n.addInterval(new hn(e,i)),n.subtract(this)}or(e){let i=new vi;return i.addSet(this),e.forEach(n=>i.addSet(n)),i}and(e){if(e.length===0)return new vi;let i=y(this,ye),n=y(e,ye),r,s=i.length,o=n.length,l=0,a=0;for(;ls.stop){n++;continue}let l,a;o.start>s.start&&(l=new hn(s.start,o.start-1)),o.stope)r=s-1;else return!0}return!1}removeRange(e){if(ie(this,Uo,void 0),e.start===e.stop)this.removeOne(e.start);else if(y(this,ye)!==null){let i=0;for(let n of y(this,ye)){if(e.stop<=n.start)return;if(e.start>n.start&&e.stop=n.stop?(y(this,ye).splice(i,1),i=i-1):e.start1&&(i+="{");for(let n=0;n":e?i+="'"+String.fromCodePoint(s)+"'":i+=s:e?i+="'"+String.fromCodePoint(s)+"'..'"+String.fromCodePoint(o)+"'":i+=s+".."+o,n1&&(i+="}"),i}toStringWithVocabulary(e){if(y(this,ye).length===0)return"{}";let i="";this.length>1&&(i+="{");for(let n=0;n":i+=this.elementName(e,s);else for(let l=s;l<=o;++l)l>s&&(i+=", "),i+=this.elementName(e,l);n1&&(i+="}"),i}toStringWithRuleNames(e){if(y(this,ye).length===0)return"{}";let i="";this.length>1&&(i+="{");let n=Ys.fromTokenNames(e);for(let r=0;r":i+=this.elementName(n,o);else for(let a=o;a<=l;++a)a>o&&(i+=", "),i+=this.elementName(n,a);r1&&(i+="}"),i}toArray(){let e=[];for(let i of y(this,ye))for(let n=i.start;n<=i.stop;n++)e.push(n);return e}get length(){let e=0;if(y(this,ye).length===1){let n=y(this,ye)[0];return n.stop-n.start+1}for(let n of y(this,ye))e+=n.length;return e}elementName(e,i){return i===Q.EOF?"":i===Q.EPSILON?"":e.getDisplayName(i)}},ye=new WeakMap,Uo=new WeakMap,k(vi,"IntervalSet"),vi),Ie=(()=>{var e;return e=class{target;constructor(n){this.target=n}get isEpsilon(){return!1}get label(){return null}},k(e,"Transition"),T(e,"INVALID",0),T(e,"EPSILON",1),T(e,"RANGE",2),T(e,"RULE",3),T(e,"PREDICATE",4),T(e,"ATOM",5),T(e,"ACTION",6),T(e,"SET",7),T(e,"NOT_SET",8),T(e,"WILDCARD",9),T(e,"PRECEDENCE",10),e})(),ad,Zw=(ad=class extends Ie{set;constructor(e,i){super(e),i?this.set=i:this.set=Ks.of(Q.INVALID_TYPE,Q.INVALID_TYPE)}get transitionType(){return Ie.SET}get label(){return this.set}matches(e,i,n){return this.set.contains(e)}toString(){return this.set.toString()}},k(ad,"SetTransition"),ad),ud,Xw=(ud=class extends Zw{get transitionType(){return Ie.NOT_SET}matches(e,i,n){return e>=i&&e<=n&&!super.matches(e,i,n)}toString(){return"~"+super.toString()}},k(ud,"NotSetTransition"),ud),wt=(()=>{var e,i;return e=class{constructor(r){Ee(this,i);ie(this,i,r)}static calculateEmptyHashCode(){let r=ge.initialize(31);return r=ge.finish(r,0),r}static calculateHashCodeSingle(r,s){let o=ge.initialize(31);return o=ge.updateFromComparable(o,r),o=ge.update(o,s),o=ge.finish(o,2),o}static calculateHashCodeList(r,s){let o=ge.initialize(31);for(let l of r)o=ge.updateFromComparable(o,l);for(let l of s)o=ge.update(o,l);return o=ge.finish(o,2*r.length),o}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return y(this,i)}toString(r){return""}},i=new WeakMap,k(e,"PredictionContext"),T(e,"EMPTY_RETURN_STATE",2147483647),T(e,"EMPTY"),T(e,"traceATNSimulator",!1),e})();var q5e=k(t=>t===null?"null":t,"valueToString"),sd=k(t=>Array.isArray(t)?"["+t.map(q5e).join(", ")+"]":"null","arrayToString"),c_=k((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i{if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i(t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xB7")),t),"escapeWhitespace"),p3,bu=(p3=class extends wt{parents=[];returnStates=[];constructor(e,i){return super(wt.calculateHashCodeList(e,i)),this.parents=e,this.returnStates=i,this}isEmpty(){return this.returnStates[0]===wt.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(e){return this===e?!0:!(e instanceof p3)||this.hashCode()!==e.hashCode()?!1:K5e(this.returnStates,e.returnStates)&&c_(this.parents,e.parents)}toString(){if(this.isEmpty())return"[]";let e=[];for(let i=0;i":this.symbol?.text??""}toStringTree(){return this.toString()}},k(cd,"TerminalNode"),cd),dd,Rp=(dd=class extends qo{accept(e){return e.visitErrorNode(this)}},k(dd,"ErrorNode"),dd),lr,yu=(lr=class{static toStringTree(e,i,n){i=i??null,n=n??null,n!==null&&(i=n.ruleNames);let r=lr.getNodeText(e,i);r=Y5e(r,!1);let s=e.getChildCount();if(s===0)return r;let o="("+r+" ";s>0&&(r=lr.toStringTree(e.getChild(0),i),o=o.concat(r));for(let l=1;l{i instanceof Rp&&(this.children.push(i),i.parent=this)})}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){let i=new qo(e);return this.children.push(i),i.parent=this,i}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,i){if(e<0||e>=this.children.length)return null;if(!i)return this.children[e];for(let n of this.children)if(n instanceof i){if(e===0)return n;e-=1}return null}getToken(e,i){if(i<0||i>=this.children.length)return null;for(let n of this.children)if("symbol"in n&&n.symbol?.type===e){if(i===0)return n;i-=1}return null}getTokens(e){let i=[];for(let n of this.children)"symbol"in n&&n.symbol?.type===e&&i.push(n);return i}getRuleContext(e,i){return this.getChild(e,i)}getRuleContexts(e){let i=[];for(let n of this.children)n instanceof e&&i.push(n);return i}getChildCount(){return this.children.length}getSourceInterval(){return this.start===null||this.stop===null?hn.INVALID_INTERVAL:new hn(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return y(this,Ja)}set parent(e){ie(this,Ja,e)}depth(){let e=0,i=this;for(;i!==null;)i=i.parent,e+=1;return e}isEmpty(){return this.invokingState===-1}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return this.children.length===0?"":this.children.map(e=>e.getText()).join("")}getAltNumber(){return Mt.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length===1?yu.toStringTree(this,null,e[0]):yu.toStringTree(this,e[0],e[1])}toString(e,i){e=e??null,i=i??null;let n=this,r="[";for(;n!==null&&n!==i;){if(e===null)n.isEmpty()||(r+=n.invokingState);else{let s=n.ruleIndex,o=s>=0&&sy(this,Fl)&&this.expand();let i=this.getBucket(e),n=y(this,_n)[i];if(!n)return n=[e],y(this,_n)[i]=n,++X_(this,$s)._,e;for(let r of n)if(y(this,jo).equals(r,e))return r;return n.push(e),++X_(this,$s)._,e}get(e){if(e==null)return e;let i=this.getBucket(e),n=y(this,_n)[i];if(n){for(let r of n)if(y(this,jo).equals(r,e))return r}}hashCode(){let e=ge.initialize();for(let i of y(this,_n))if(i!=null)for(let n of i){if(n==null)break;e=ge.update(e,y(this,jo).hashCode(n))}return e=ge.finish(e,this.size),e}equals(e){return e===this?!0:!(e instanceof si)||e.size!==this.size?!1:this.containsAll(e)}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return e==null?!1:this.get(e)!==void 0}*[Symbol.iterator](){yield*$i(this.toArray())}toArray(){let e=new Array(this.size),i=0;for(let n of y(this,_n))if(n!=null)for(let r of n){if(r==null)break;e[i++]=r}return e}containsAll(e){if(e instanceof si){for(let i of y(e,_n))if(i!=null)for(let n of i){if(n==null)break;if(!this.containsFast(n))return!1}}else for(let i of e)if(!this.containsFast(i))return!1;return!0}addAll(e){let i=!1;for(let n of e)this.getOrAdd(n)!==n&&(i=!0);return i}clear(){ie(this,_n,this.createBuckets(y(si,Z2))),ie(this,$s,0),ie(this,Fl,Math.floor(y(si,Z2)*y(si,hd)))}toString(){if(this.size===0)return"{}";let e="{",i=!0;for(let n of y(this,_n))if(n!=null)for(let r of n){if(r==null)break;i?i=!1:e+=", ",e+=r.toString()}return e+="}",e}toTableString(){let e="";for(let i of y(this,_n)){if(i==null){e+=`null +--`+a+"--",f=Hm.getBlob(d,n,h);if(f===null)throw c2e();let p={name:u.fullPath},v=eB(s,t.host,t._protocol),E="POST",C=t.maxUploadRetryTime,P=new zm(v,E,z2e(t,i),C);return P.urlParams=p,P.headers=o,P.body=f.uploadData(),P.errorHandler=sB(e),P}var AMe=256*1024;var WV=null,$m=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=D0.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=D0.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=D0.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,i,n,r){if(this.sent_)throw Ff("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(i,e,!0),r!==void 0)for(let s in r)r.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,r[s].toString());return n!==void 0?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Ff("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Ff("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw Ff("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Ff("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}},ZT=class extends $m{initXhr(){this.xhr_.responseType="text"}};function Y2e(){return WV?WV():new ZT}var XT=class extends $m{initXhr(){this.xhr_.responseType="blob"}};function Z2e(){return new XT}var O0=class t{constructor(e,i){this._service=e,i instanceof Ls?this._location=i:this._location=Ls.makeFromUrl(i,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,i){return new t(e,i)}get root(){let e=new Ls(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return rB(this._location.path)}get storage(){return this._service}get parent(){let e=k2e(this._location.path);if(e===null)return null;let i=new Ls(this._location.bucket,e);return new t(this._service,i)}_throwIfRoot(e){if(this._location.path==="")throw h2e(e)}};function X2e(t,e){t._throwIfRoot("getBlob");let i=G2e(t.storage,t._location,e);return t.storage.makeRequestWithTokens(i,Z2e).then(n=>e!==void 0?n.slice(0,e):n)}function Q2e(t,e,i){t._throwIfRoot("uploadBytes");let n=K2e(t.storage,t._location,F2e(),new Hm(e,!0),i);return t.storage.makeRequestWithTokens(n,Y2e).then(r=>({metadata:r,ref:t}))}function J2e(t,e,i=Fs.RAW,n){t._throwIfRoot("uploadString");let r=tB(i,e),s=Object.assign({},n);return s.contentType==null&&r.contentType!=null&&(s.contentType=r.contentType),Q2e(t,r.data,s)}function e3e(t,e){let i=N2e(t._location.path,e),n=new Ls(t._location.bucket,i);return new O0(t.storage,n)}function t3e(t){return/^[A-Za-z]+:\/\//.test(t)}function n3e(t,e){return new O0(t,e)}function oB(t,e){if(t instanceof Uf){let i=t;if(i._bucket==null)throw u2e();let n=new O0(i,i._bucket);return e!=null?oB(n,e):n}else return e!==void 0?e3e(t,e):t}function i3e(t,e){if(e&&t3e(e)){if(t instanceof Uf)return n3e(t,e);throw qT("To use ref(service, url), the first argument must be a Storage instance.")}else return oB(t,e)}function qV(t,e){let i=e?.[XV];return i==null?null:Ls.makeFromBucketSpec(i,t)}function r3e(t,e,i,n={}){t.host=`${e}:${i}`,t._protocol="http";let{mockUserToken:r}=n;r&&(t._overrideAuthToken=typeof r=="string"?r:iV(r,t.app.options.projectId))}var Uf=class{constructor(e,i,n,r,s){this.app=e,this._authProvider=i,this._appCheckProvider=n,this._url=r,this._firebaseVersion=s,this._bucket=null,this._host=ZV,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Que,this._maxUploadRetryTime=Jue,this._requests=new Set,r!=null?this._bucket=Ls.makeFromBucketSpec(r,this._host):this._bucket=qV(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=Ls.makeFromBucketSpec(this._url,e):this._bucket=qV(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){GV("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){GV("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}_getAuthToken(){return K(this,null,function*(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let i=yield e.getToken();if(i!==null)return i.accessToken}return null})}_getAppCheckToken(){return K(this,null,function*(){let e=this._appCheckProvider.getImmediate({optional:!0});return e?(yield e.getToken()).token:null})}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new O0(this,e)}_makeRequest(e,i,n,r,s=!0){if(this._deleted)return new KT(QV());{let o=I2e(e,this._appId,n,r,i,this._firebaseVersion,s);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}makeRequestWithTokens(e,i){return K(this,null,function*(){let[n,r]=yield Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,i,n,r).getPromise()})}},KV="@firebase/storage",YV="0.12.6";var lB="storage";function aB(t,e,i,n){return t=Ro(t),J2e(t,e,i,n)}function uB(t,e){return t=Ro(t),i3e(t,e)}function cB(t=xf(),e){t=Ro(t);let n=xT(t,lB).getImmediate({identifier:e}),r=tV("storage");return r&&dB(n,...r),n}function dB(t,e,i,n={}){r3e(t,e,i,n)}function hB(t,e){return t=Ro(t),X2e(t,e)}function s3e(t,{instanceIdentifier:e}){let i=t.getProvider("app").getImmediate(),n=t.getProvider("auth-internal"),r=t.getProvider("app-check-internal");return new Uf(i,n,r,e,S0)}function o3e(){ja(new es(lB,s3e,"PUBLIC").setMultipleInstances(!0)),ii(KV,YV,""),ii(KV,YV,"esm2017")}o3e();var Al=class{constructor(e){return e}},fB="storage",eS=class{constructor(){return Df(fB)}};var tS=new Z("angularfire2.storage-instances");function l3e(t,e){let i=OT(fB,t,e);return i&&new Al(i)}function a3e(t){return(e,i)=>{let n=e.runOutsideAngular(()=>t(i));return new Al(n)}}var u3e={provide:eS,deps:[[new Xi,tS]]},c3e={provide:Al,useFactory:l3e,deps:[[new Xi,tS],D2]};function pB(t,...e){return ii("angularfire",x0.full,"gcs"),Pr([c3e,u3e,{provide:tS,useFactory:a3e(t),multi:!0,deps:[le,ze,Of,Rf,[new Xi,Bm],[new Xi,Af],...e]}])}var mB=Ha(hB,!0);var gB=Ha(cB,!0);var Gm=Ha(uB,!0);var _B=Ha(aB,!0);var wB=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(I(Pi),I(Te))},e.\u0275dir=Ce({type:e});let t=e;return t})(),d3e=(()=>{let e=class e extends wB{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,features:[At]});let t=e;return t})(),Zm=new Z("");var h3e={provide:Zm,useExisting:vs(()=>xB),multi:!0};function f3e(){let t=Co()?Co().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p3e=new Z(""),xB=(()=>{let e=class e extends wB{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!f3e())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(I(Pi),I(Te),I(p3e,8))},e.\u0275dir=Ce({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&be("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[mn([h3e]),At]});let t=e;return t})();var oS=new Z(""),m3e=new Z("");function AB(t){return t!=null}function DB(t){return ah(t)?Wi(t):t}function OB(t){let e={};return t.forEach(i=>{e=i!=null?b(b({},e),i):e}),Object.keys(e).length===0?null:e}function RB(t,e){return e.map(i=>i(t))}function g3e(t){return!t.validate}function MB(t){return t.map(e=>g3e(e)?e:i=>e.validate(i))}function _3e(t){if(!t)return null;let e=t.filter(AB);return e.length==0?null:function(i){return OB(RB(i,e))}}function kB(t){return t!=null?_3e(MB(t)):null}function v3e(t){if(!t)return null;let e=t.filter(AB);return e.length==0?null:function(i){let n=RB(i,e).map(DB);return pv(n).pipe(st(OB))}}function NB(t){return t!=null?v3e(MB(t)):null}function bB(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function b3e(t){return t._rawValidators}function y3e(t){return t._rawAsyncValidators}function nS(t){return t?Array.isArray(t)?t:[t]:[]}function qm(t,e){return Array.isArray(t)?t.includes(e):t===e}function yB(t,e){let i=nS(e);return nS(t).forEach(r=>{qm(i,r)||i.push(r)}),i}function EB(t,e){return nS(e).filter(i=>!qm(t,i))}var Km=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=kB(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=NB(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},iS=class extends Km{get formDirective(){return null}get path(){return null}},Gf=class extends Km{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},rS=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},E3e={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},hke=ee(b({},E3e),{"[class.ng-submitted]":"isSubmitted"}),Xm=(()=>{let e=class e extends rS{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(Gf,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&ut("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[At]});let t=e;return t})();var jf="VALID",Wm="INVALID",R0="PENDING",Hf="DISABLED",k0=class{},Ym=class extends k0{constructor(e,i){super(),this.value=e,this.source=i}},zf=class extends k0{constructor(e,i){super(),this.pristine=e,this.source=i}},$f=class extends k0{constructor(e,i){super(),this.touched=e,this.source=i}},M0=class extends k0{constructor(e,i){super(),this.status=e,this.source=i}};function C3e(t){return(Qm(t)?t.validators:t)||null}function I3e(t){return Array.isArray(t)?kB(t):t||null}function T3e(t,e){return(Qm(e)?e.asyncValidators:t)||null}function S3e(t){return Array.isArray(t)?NB(t):t||null}function Qm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var sS=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=$9(()=>this.statusReactive()),this.statusReactive=ba(void 0),this._pristine=$9(()=>this.pristineReactive()),this.pristineReactive=ba(!0),this._touched=$9(()=>this.touchedReactive()),this.touchedReactive=ba(!1),this._events=new te,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Eo(this.statusReactive)}set status(e){Eo(()=>this.statusReactive.set(e))}get valid(){return this.status===jf}get invalid(){return this.status===Wm}get pending(){return this.status==R0}get disabled(){return this.status===Hf}get enabled(){return this.status!==Hf}get pristine(){return Eo(this.pristineReactive)}set pristine(e){Eo(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Eo(this.touchedReactive)}set touched(e){Eo(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(yB(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(yB(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(EB(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(EB(e,this._rawAsyncValidators))}hasValidator(e){return qm(this._rawValidators,e)}hasAsyncValidator(e){return qm(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ee(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new $f(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new $f(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ee(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new zf(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new zf(!0,n))}markAsPending(e={}){this.status=R0;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new M0(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ee(b({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Hf,this.errors=null,this._forEachChild(r=>{r.disable(ee(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ym(this.value,n)),this._events.next(new M0(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ee(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=jf,this._forEachChild(n=>{n.enable(ee(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ee(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jf||this.status===R0)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ym(this.value,i)),this._events.next(new M0(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ee(b({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hf:jf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=R0,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=DB(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new M0(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new Se,this.statusChanges=new Se}_calculateStatus(){return this._allControlsDisabled()?Hf:this.errors?Wm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(R0)?R0:this._anyControlsHaveStatus(Wm)?Wm:jf}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new zf(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new $f(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Qm(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=I3e(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=S3e(this._rawAsyncValidators)}};var PB=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>lS}),lS="always";function w3e(t,e){return[...e.path,t]}function x3e(t,e,i=lS){D3e(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),O3e(t,e),M3e(t,e),R3e(t,e),A3e(t,e)}function CB(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function A3e(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function D3e(t,e){let i=b3e(t);e.validator!==null?t.setValidators(bB(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=y3e(t);e.asyncValidator!==null?t.setAsyncValidators(bB(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();CB(e._rawValidators,r),CB(e._rawAsyncValidators,r)}function O3e(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&LB(t,e)})}function R3e(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&LB(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function LB(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function M3e(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function k3e(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function N3e(t){return Object.getPrototypeOf(t.constructor)===d3e}function P3e(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===xB?i=s:N3e(s)?n=s:r=s}),r||n||i||null}function IB(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function TB(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var aS=class extends sS{constructor(e=null,i,n){super(C3e(i),T3e(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qm(i)&&(i.nonNullable||i.initialValueIsDefault)&&(TB(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){IB(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){IB(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){TB(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var L3e={provide:Gf,useExisting:vs(()=>Wf)},SB=Promise.resolve(),Wf=(()=>{let e=class e extends Gf{constructor(n,r,s,o,l,a){super(),this._changeDetectorRef=l,this.callSetDisabledState=a,this.control=new aS,this._registered=!1,this.name="",this.update=new Se,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=P3e(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),k3e(n,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(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){x3e(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()&&this.name}_updateValue(n){SB.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Ut(r);SB.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?w3e(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(I(iS,9),I(oS,10),I(m3e,10),I(Zm,10),I(Wt,8),I(PB,8))},e.\u0275dir=Ce({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[mn([L3e]),At,In]});let t=e;return t})();var F3e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var FB=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:PB,useValue:n.callSetDisabledState??lS}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[F3e]});let t=e;return t})();var cS;try{cS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cS=!1}var St=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?hh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||cS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(x(Jn))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qf;function V3e(){if(qf==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>qf=!0}))}finally{qf=qf||!1}return qf}function ko(t){return V3e()?t:!!t.capture}var Vs=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Vs||{}),Jm,M2;function eg(){if(M2==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return M2=!1,M2;if("scrollBehavior"in document.documentElement.style)M2=!0;else{let t=Element.prototype.scrollTo;t?M2=!/\{\s*\[native code\]\s*\}/.test(t.toString()):M2=!1}}return M2}function N0(){if(typeof document!="object"||!document)return Vs.NORMAL;if(Jm==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),Jm=Vs.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Jm=t.scrollLeft===0?Vs.NEGATED:Vs.INVERTED),t.remove()}return Jm}var uS;function B3e(){if(uS==null){let t=typeof document<"u"?document.head:null;uS=!!(t&&(t.createShadowRoot||t.attachShadow))}return uS}function BB(t){if(B3e()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Kf(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function ts(t){return t.composedPath?t.composedPath()[0]:t.target}function Yf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function No(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function tg(t){return t!=null&&`${t}`!="false"}function Po(t,e=0){return U3e(t)?Number(t):e}function U3e(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function P0(t){return Array.isArray(t)?t:[t]}function Rn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Bs(t){return t instanceof Te?t.nativeElement:t}function j3e(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),H3e=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=Y(le)}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=Bs(n);return new Ae(s=>{let l=this._observeElement(r).pipe(st(a=>a.filter(u=>!j3e(u))),Ge(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{s.next(a)})});return()=>{l.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let r=new te,s=this._mutationObserverFactory.create(o=>r.next(o));s&&s.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:s,stream:r,count:1})}return this._observedElements.get(n).stream})}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){let{observer:r,stream:s}=this._observedElements.get(n);r&&r.disconnect(),s.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(r){return new(r||e)(x(UB))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jB=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=Po(n),this._subscribe()}constructor(n,r){this._contentObserver=n,this._elementRef=r,this.event=new Se,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(Ki(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(H3e),I(Te))},e.\u0275dir=Ce({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ut],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ln]});let t=e;return t})(),HB=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[UB]});let t=e;return t})();var zB=new Set,k2,z3e=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):G3e}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&$3e(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(x(St),x(Z5,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $3e(t,e){if(!zB.has(t))try{k2||(k2=document.createElement("style"),e&&k2.setAttribute("nonce",e),k2.setAttribute("type","text/css"),document.head.appendChild(k2)),k2.sheet&&(k2.sheet.insertRule(`@media ${t} {body{ }}`,0),zB.add(t))}catch(i){console.error(i)}}function G3e(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var L0=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new te}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return $B(P0(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=$B(P0(n)).map(l=>this._registerQuery(l).observable),o=fv(s);return o=no(o.pipe(en(1)),o.pipe(Fu(1),Ki(0))),o.pipe(st(l=>{let a={matches:!1,breakpoints:{}};return l.forEach(({matches:u,query:c})=>{a.matches=a.matches||u,a.breakpoints[c]=u}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new Ae(l=>{let a=u=>this._zone.run(()=>l.next(u));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(Or(r),st(({matches:l})=>({query:n,matches:l})),yt(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(x(z3e),x(le))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $B(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var GB={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var XB=" ";function cce(t,e,i){let n=sg(t,e);i=i.trim(),!n.some(r=>r.trim()===i)&&(n.push(i),t.setAttribute(e,n.join(XB)))}function dce(t,e,i){let n=sg(t,e);i=i.trim();let r=n.filter(s=>s!==i);r.length?t.setAttribute(e,r.join(XB)):t.removeAttribute(e)}function sg(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var QB="cdk-describedby-message",ng="cdk-describedby-host",fS=0,JB=(()=>{let e=class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${fS++}`,this._document=n,this._id=Y(_c)+"-"+fS++}describe(n,r,s){if(!this._canBeDescribed(n,r))return;let o=dS(r,s);typeof r!="string"?(qB(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(n,o)||this._addMessageReference(n,o)}removeDescription(n,r,s){if(!r||!this._isElementNode(n))return;let o=dS(r,s);if(this._isElementDescribedByMessage(n,o)&&this._removeMessageReference(n,o),typeof r=="string"){let l=this._messageRegistry.get(o);l&&l.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ng}="${this._id}"]`);for(let r=0;rs.indexOf(QB)!=0);n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){let s=this._messageRegistry.get(r);cce(n,"aria-describedby",s.messageElement.id),n.setAttribute(ng,this._id),s.referenceCount++}_removeMessageReference(n,r){let s=this._messageRegistry.get(r);s.referenceCount--,dce(n,"aria-describedby",s.messageElement.id),n.removeAttribute(ng)}_isElementDescribedByMessage(n,r){let s=sg(n,"aria-describedby"),o=this._messageRegistry.get(r),l=o&&o.messageElement.id;return!!l&&s.indexOf(l)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&typeof r=="object")return!0;let s=r==null?"":`${r}`.trim(),o=n.getAttribute("aria-label");return s?!o||o.trim()!==s:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(St))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dS(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function qB(t,e){t.id||(t.id=`${QB}-${e}-${fS++}`)}var pS=class{constructor(e,i){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new te,this._typeaheadSubscription=kt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new te,this.change=new te,e instanceof pa?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):O9(e)&&(this._effectRef=Ur(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mn(i=>this._pressedLetters.push(i)),Ki(e),Ge(()=>this._pressedLetters.length>0),st(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return O9(this._items)?this._items():this._items instanceof pa?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let i=e.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}};var og=class extends pS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Zf=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return fce(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=hce(Ece(n));if(r&&(KB(r)===-1||!this.isVisible(r)))return!1;let s=n.nodeName.toLowerCase(),o=KB(n);return n.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!bce(n)?!1:s==="audio"?n.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return yce(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(r){return new(r||e)(x(St))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hce(t){try{return t.frameElement}catch{return null}}function fce(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function pce(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function mce(t){return _ce(t)&&t.type=="hidden"}function gce(t){return vce(t)&&t.hasAttribute("href")}function _ce(t){return t.nodeName.toLowerCase()=="input"}function vce(t){return t.nodeName.toLowerCase()=="a"}function eU(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function KB(t){if(!eU(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function bce(t){let e=t.nodeName.toLowerCase(),i=e==="input"&&t.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function yce(t){return mce(t)?!1:pce(t)||gce(t)||t.hasAttribute("contenteditable")||eU(t)}function Ece(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var mS=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,n,r,s=!1,o){this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let n=this._getFirstTabbableElement(i);return n?.focus(e),!!n}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let n=0;n=0;n--){let r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Es(e,{injector:this._injector}):setTimeout(e)}},lg=(()=>{let e=class e{constructor(n,r,s){this._checker=n,this._ngZone=r,this._injector=Y(ze),this._document=s}create(n,r=!1){return new mS(n,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(x(Zf),x(le),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gS(t){return t.buttons===0||t.detail===0}function _S(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Cce=new Z("cdk-input-modality-detector-options"),Ice={ignoreKeys:[18,17,224,91,16]},tU=650,F0=ko({passive:!0,capture:!0}),Tce=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new Ci(null),this._lastTouchMs=0,this._onKeydown=l=>{this._options?.ignoreKeys?.some(a=>a===l.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ts(l))},this._onMousedown=l=>{Date.now()-this._lastTouchMs{if(_S(l)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ts(l)},this._options=b(b({},Ice),o),this.modalityDetected=this._modality.pipe(Fu(1)),this.modalityChanged=this.modalityDetected.pipe(rl()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,F0),s.addEventListener("mousedown",this._onMousedown,F0),s.addEventListener("touchstart",this._onTouchstart,F0)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,F0),document.removeEventListener("mousedown",this._onMousedown,F0),document.removeEventListener("touchstart",this._onTouchstart,F0))}};e.\u0275fac=function(r){return new(r||e)(x(St),x(le),x(Ne),x(Cce,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Sce=new Z("liveAnnouncerElement",{providedIn:"root",factory:wce});function wce(){return null}var xce=new Z("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ace=0,nU=(()=>{let e=class e{constructor(n,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=n||this._createLiveElement()}announce(n,...r){let s=this._defaultOptions,o,l;return r.length===1&&typeof r[0]=="number"?l=r[0]:[o,l]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),l==null&&s&&(l=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof l=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),l)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let e=class e{constructor(n,r,s,o,l){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new te,this._rootNodeFocusAndBlurListener=a=>{let u=ts(a);for(let c=u;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=l?.detectionMode||rg.IMMEDIATE}monitor(n,r=!1){let s=Bs(n);if(!this._platform.isBrowser||s.nodeType!==1)return pn();let o=BB(s)||this._getDocument(),l=this._elementInfo.get(s);if(l)return r&&(l.checkChildren=!0),l.subject;let a={checkChildren:r,subject:new te,rootNode:o};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=Bs(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=Bs(n),l=this._getDocument().activeElement;o===l?this._getClosestElementsInfo(o).forEach(([a,u])=>this._originChanged(a,r,u)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===rg.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===rg.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?tU:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=ts(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,ig),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,ig)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ig),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ig),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let l=0;l{let e=class e{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new Se}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Ol))},e.\u0275dir=Ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),N2=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(N2||{}),YB="cdk-high-contrast-black-on-white",ZB="cdk-high-contrast-white-on-black",hS="cdk-high-contrast-active",vS=(()=>{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=Y(L0).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return N2.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return N2.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return N2.BLACK_ON_WHITE}return N2.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(hS,YB,ZB),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===N2.BLACK_ON_WHITE?n.add(hS,YB):r===N2.WHITE_ON_BLACK&&n.add(hS,ZB)}}};e.\u0275fac=function(r){return new(r||e)(x(St),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ag=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(x(vS))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[HB]});let t=e;return t})();var Oce=new Z("cdk-dir-doc",{providedIn:"root",factory:Rce});function Rce(){return Y(Ne)}var Mce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function kce(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Mce.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Tr=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new Se,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=kce(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(x(Oce,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var $a=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();function Nce(){return!0}var Pce=new Z("mat-sanity-checks",{providedIn:"root",factory:Nce}),cn=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return Yf()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(x(vS),x(Pce,8),x(Ne))},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[$a,$a]});let t=e;return t})();var ns=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(ns||{}),ES=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=ns.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},rU=ko({passive:!0,capture:!0}),CS=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=ts(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rU)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rU)))}},sU={enterDuration:225,exitDuration:150},Lce=800,oU=ko({passive:!0,capture:!0}),lU=["mousedown","touchstart"],aU=["mouseup","mouseleave","touchend","touchcancel"],Qf=class Qf{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bs(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=b(b({},sU),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||Fce(e,i,r),l=e-r.left,a=i-r.top,u=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-o}px`,c.style.top=`${a-o}px`,c.style.height=`${o*2}px`,c.style.width=`${o*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let d=window.getComputedStyle(c),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,v=new ES(this,c,n,p);c.style.transform="scale3d(1, 1, 1)",v.state=ns.FADING_IN,n.persistent||(this._mostRecentTransientRipple=v);let E=null;return!p&&(u||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let C=()=>{E&&(E.fallbackTimer=null),clearTimeout(U),this._finishRippleTransition(v)},P=()=>this._destroyRipple(v),U=setTimeout(P,u+100);c.addEventListener("transitionend",C),c.addEventListener("transitioncancel",P),E={onTransitionEnd:C,onTransitionCancel:P,fallbackTimer:U}}),this._activeRipples.set(v,E),(p||!u)&&this._finishRippleTransition(v),v}fadeOutRipple(e){if(e.state===ns.FADING_OUT||e.state===ns.HIDDEN)return;let i=e.element,n=b(b({},sU),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=ns.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=Bs(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,lU.forEach(n=>{Qf._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{aU.forEach(i=>{this._triggerElement.addEventListener(i,this,oU)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===ns.FADING_IN?this._startFadeOutTransition(e):e.state===ns.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=ns.VISIBLE,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=ns.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel),i.fallbackTimer!==null&&clearTimeout(i.fallbackTimer)),e.element.remove()}_onMousedown(e){let i=gS(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===ns.VISIBLE||e.config.terminateOnPointerUp&&e.state===ns.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(lU.forEach(i=>Qf._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(aU.forEach(i=>e.removeEventListener(i,this,oU)),this._pointerUpEventsRegistered=!1))}};Qf._eventManager=new CS;var IS=Qf;function Fce(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var TS=new Z("mat-ripple-global-options"),is=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,l){this._elementRef=n,this._animationMode=l,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new IS(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:b(b(b({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,b(b({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(le),I(St),I(TS,8),I(Tn,8))},e.\u0275dir=Ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&ut("mat-ripple-unbounded",s.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),dg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var uU={capture:!0},cU=["focus","mousedown","mouseenter","touchstart"],bS="mat-ripple-loader-uninitialized",yS="mat-ripple-loader-class-name",dU="mat-ripple-loader-centered",cg="mat-ripple-loader-disabled",hU=(()=>{let e=class e{constructor(){this._document=Y(Ne,{optional:!0}),this._animationMode=Y(Tn,{optional:!0}),this._globalRippleOptions=Y(TS,{optional:!0}),this._platform=Y(St),this._ngZone=Y(le),this._hosts=new Map,this._onInteraction=n=>{let r=ts(n);if(r instanceof HTMLElement){let s=r.closest(`[${bS}="${this._globalRippleOptions?.namespace??""}"]`);s&&this._createRipple(s)}},this._ngZone.runOutsideAngular(()=>{for(let n of cU)this._document?.addEventListener(n,this._onInteraction,uU)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of cU)this._document?.removeEventListener(r,this._onInteraction,uU)}configureRipple(n,r){n.setAttribute(bS,this._globalRippleOptions?.namespace??""),(r.className||!n.hasAttribute(yS))&&n.setAttribute(yS,r.className||""),r.centered&&n.setAttribute(dU,""),r.disabled&&n.setAttribute(cg,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let s=this._hosts.get(n);if(s){s.disabled=r;return}r?n.setAttribute(cg,""):n.removeAttribute(cg)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",n.getAttribute(yS)),n.append(s);let o=new is(new Te(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(dU),o.disabled=n.hasAttribute(cg),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(bS),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vce=["mat-button",""],Bce=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Uce=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var jce=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Hce=["mat-icon-button",""],zce=["*"];var $ce=new Z("MAT_BUTTON_CONFIG");var Gce=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],fU=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,r,s,o){this._elementRef=n,this._platform=r,this._ngZone=s,this._animationMode=o,this._focusMonitor=Y(Ol),this._rippleLoader=Y(hU),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let l=Y($ce,{optional:!0}),a=n.nativeElement,u=a.classList;this.disabledInteractive=l?.disabledInteractive??!1,this.color=l?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:d}of Gce)a.hasAttribute(c)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",r){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Xy()},e.\u0275dir=Ce({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ut],disabled:[2,"disabled","disabled",Ut],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ut],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ut]},features:[ln]});let t=e;return t})();var Ga=(()=>{let e=class e extends fU{constructor(n,r,s,o){super(n,r,s,o)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(St),I(le),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,s){r&2&&(Tt("disabled",s._getDisabledAttribute())("aria-disabled",s._getAriaDisabled()),Vr(s.color?"mat-"+s.color:""),ut("mat-mdc-button-disabled",s.disabled)("mat-mdc-button-disabled-interactive",s.disabledInteractive)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[At,ot],attrs:Vce,ngContentSelectors:Uce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,s){r&1&&(ei(Bce),pe(0,"span",0),Ln(1),R(2,"span",1),Ln(3,1),F(),Ln(4,2),pe(5,"span",2)(6,"span",3)),r&2&&ut("mdc-button__ripple",!s._isFab)("mdc-fab__ripple",s._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color);background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow);height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color);background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight);border-radius:var(--mdc-outlined-button-container-shape);border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color);border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var V0=(()=>{let e=class e extends fU{constructor(n,r,s,o){super(n,r,s,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(St),I(le),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,s){r&2&&(Tt("disabled",s._getDisabledAttribute())("aria-disabled",s._getAriaDisabled()),Vr(s.color?"mat-"+s.color:""),ut("mat-mdc-button-disabled",s.disabled)("mat-mdc-button-disabled-interactive",s.disabledInteractive)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-unthemed",!s.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[At,ot],attrs:Hce,ngContentSelectors:zce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,s){r&1&&(ei(),pe(0,"span",0),Ln(1),pe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',jce],encapsulation:2,changeDetection:0});let t=e;return t})();var B0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,dg,cn]});let t=e;return t})();var fg=class{};function pU(t){return t&&typeof t.connect=="function"&&!(t instanceof ku)}var pg=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,i,n=!0,r){this._multiple=e,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new te,i&&i.length&&(e?i.forEach(s=>this._markSelected(s)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...e){this._verifyValueAssignment(e);let i=this.selected,n=new Set(e);e.forEach(s=>this._markSelected(s)),i.filter(s=>!n.has(this._getConcreteValue(s,n))).forEach(s=>this._unmarkSelected(s));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let i=this._hasQueuedChanges();return e&&this._emitChangeEvent(),i}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,i){if(this.compareWith){i=i??this._selection;for(let n of i)if(this.compareWith(e,n))return n;return e}else return e}};var Wce=20,U0=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this._platform=r,this._scrolled=new te,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=Wce){return this._platform.isBrowser?new Ae(r=>{this._globalSubscription||this._addGlobalListener();let s=n>0?this._scrolled.pipe(a8(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):pn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let s=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Ge(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let s=Bs(r),o=n.getElementRef().nativeElement;do if(s==o)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return ai(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(x(le),x(St),x(Ne,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ep=(()=>{let e=class e{constructor(n,r,s,o){this.elementRef=n,this.scrollDispatcher=r,this.ngZone=s,this.dir=o,this._destroyed=new te,this._elementScrolled=new Ae(l=>this.ngZone.runOutsideAngular(()=>ai(this.elementRef.nativeElement,"scroll").pipe(yt(this._destroyed)).subscribe(l)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(n){let r=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=s?n.end:n.start),n.right==null&&(n.right=s?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),s&&N0()!=Vs.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),N0()==Vs.INVERTED?n.left=n.right:N0()==Vs.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;eg()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",s="right",o=this.elementRef.nativeElement;if(n=="top")return o.scrollTop;if(n=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let l=this.dir&&this.dir.value=="rtl";return n=="start"?n=l?s:r:n=="end"&&(n=l?r:s),l&&N0()==Vs.INVERTED?n==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:l&&N0()==Vs.NEGATED?n==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(U0),I(le),I(Tr,8))},e.\u0275dir=Ce({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let t=e;return t})(),qce=20,P2=(()=>{let e=class e{constructor(n,r,s){this._platform=n,this._change=new te,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(n.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+s,right:n.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),s=n.documentElement,o=s.getBoundingClientRect(),l=-o.top||n.body.scrollTop||r.scrollY||s.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||s.scrollLeft||0;return{top:l,left:a}}change(n=qce){return n>0?this._change.pipe(a8(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(x(St),x(le),x(Ne,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})(),SS=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[$a,mg,$a,mg]});let t=e;return t})();var tp=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Us=class extends tp{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},js=class extends tp{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},xS=class extends tp{constructor(e){super(),this.element=e instanceof Te?e.nativeElement:e}},Wa=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Us)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof js)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof xS)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var gg=class extends Wa{constructor(e,i,n,r,s){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{this._document;let l=o.element;l.parentNode;let a=this._document.createComment("dom-portal");l.parentNode.insertBefore(a,l),this.outletElement.appendChild(l),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(l,a)})},this._document=s}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||ze.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);r!==-1&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var mU=(()=>{let e=class e extends js{constructor(n,r){super(n,r)}};e.\u0275fac=function(r){return new(r||e)(I(xt),I(Bt))},e.\u0275dir=Ce({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[At]});let t=e;return t})();var rs=(()=>{let e=class e extends Wa{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new Se,this.attachDomPortal=o=>{this._document;let l=o.element;l.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),l.parentNode.insertBefore(a,l),this._getRootNode().appendChild(l),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(l,a)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),l=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),super.setDisposeFn(()=>l.destroy()),this._attachedPortal=n,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(I(pr),I(Bt),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[At]});let t=e;return t})();var Rl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var gU=eg(),AS=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Rn(-this._previousScrollPosition.left),e.style.top=Rn(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,n=e.style,r=i.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),gU&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gU&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}};var DS=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ge(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},_g=class{enable(){}disable(){}attach(){}};function OS(t,e){return e.some(i=>{let n=t.bottomi.bottom,s=t.righti.right;return n||r||s||o})}function _U(t,e){return e.some(i=>{let n=t.topi.bottom,s=t.lefti.right;return n||r||s||o})}var RS=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();OS(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Kce=(()=>{let e=class e{constructor(n,r,s,o){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new _g,this.close=l=>new DS(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new AS(this._viewportRuler,this._document),this.reposition=l=>new RS(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=o}};e.\u0275fac=function(r){return new(r||e)(x(U0),x(P2),x(le),x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),F2=class{constructor(e){if(this.scrollStrategy=new _g,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let n of i)e[n]!==void 0&&(this[n]=e[n])}}};var MS=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var IU=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(x(Ne))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yce=(()=>{let e=class e extends IU{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=s=>{let o=this._attachedOverlays;for(let l=o.length-1;l>-1;l--)if(o[l]._keydownEvents.observers.length>0){let a=o[l]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(s)):a.next(s);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(le,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Zce=(()=>{let e=class e extends IU{constructor(n,r,s){super(n),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ts(o)},this._clickListener=o=>{let l=ts(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let c=u.length-1;c>-1;c--){let d=u[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(vU(d.overlayElement,l)||vU(d.overlayElement,a))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(n){if(super.add(n),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(St),x(le,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vU(t,e){let i=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===t)return!0;n=i&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var j0=(()=>{let e=class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||Yf()){let s=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new te,this._outsidePointerEvents=new te,this._renders=new te,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Eo(()=>uE(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Es(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=b(b({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ee(b({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Rn(this._config.width),e.height=Rn(this._config.height),e.minWidth=Rn(this._config.minWidth),e.minHeight=Rn(this._config.minHeight),e.maxWidth=Rn(this._config.maxWidth),e.maxHeight=Rn(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){let r=P0(i||[]).filter(s=>!!s);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(yt(qi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},bU="cdk-overlay-connected-position-bounding-box",Xce=/([A-Za-z%]+)$/,kS=class{get positions(){return this._preferredPositions}constructor(e,i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new te,this._resizeSubscription=kt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(bU),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[],o;for(let l of this._preferredPositions){let a=this._getOriginPoint(e,r,l),u=this._getOverlayPoint(a,i,l),c=this._getOverlayFit(u,i,n,l);if(c.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(l,a);return}if(this._canFitWithFlexibleDimensions(c,u,n)){s.push({position:l,origin:a,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(a,l)});continue}(!o||o.overlayFit.visibleAreaa&&(a=c,l=u)}this._isPushed=!1,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&L2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bU),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:l}i.left<0&&(r-=i.left);let s;return n.originY=="center"?s=e.top+e.height/2:s=n.originY=="top"?e.top:e.bottom,i.top<0&&(s-=i.top),{x:r,y:s}}_getOverlayPoint(e,i,n){let r;n.overlayX=="center"?r=-i.width/2:n.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let s;return n.overlayY=="center"?s=-i.height/2:s=n.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,i,n,r){let s=EU(i),{x:o,y:l}=e,a=this._getOffset(r,"x"),u=this._getOffset(r,"y");a&&(o+=a),u&&(l+=u);let c=0-o,d=o+s.width-n.width,h=0-l,f=l+s.height-n.height,p=this._subtractOverflows(s.width,c,d),v=this._subtractOverflows(s.height,h,f),E=p*v;return{visibleArea:E,isCompletelyWithinViewport:s.width*s.height===E,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){let r=n.bottom-i.y,s=n.right-i.x,o=yU(this._overlayRef.getConfig().minHeight),l=yU(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportVertically||o!=null&&o<=r,u=e.fitsInViewportHorizontally||l!=null&&l<=s;return a&&u}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=EU(i),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),l=Math.max(e.y+r.height-s.height,0),a=Math.max(s.top-n.top-e.y,0),u=Math.max(s.left-n.left-e.x,0),c=0,d=0;return r.width<=s.width?c=u||-o:c=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}let a=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,u=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,c,d,h;if(u)h=n.width-e.x+this._viewportMargin*2,c=e.x-this._viewportMargin;else if(a)d=e.x,c=n.right-e.x;else{let f=Math.min(n.right-e.x+n.left,e.x),p=this._lastBoundingBoxSize.width;c=f*2,d=e.x-f,c>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:l,right:h,width:c,height:s}}_setBoundingBoxStyles(e,i){let n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Rn(n.height),r.top=Rn(n.top),r.bottom=Rn(n.bottom),r.width=Rn(n.width),r.left=Rn(n.left),r.right=Rn(n.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=Rn(s)),o&&(r.maxWidth=Rn(o))}this._lastBoundingBoxSize=n,L2(this._boundingBox.style,r)}_resetBoundingBoxStyles(){L2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){L2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let c=this._viewportRuler.getViewportScrollPosition();L2(n,this._getExactOverlayY(i,e,c)),L2(n,this._getExactOverlayX(i,e,c))}else n.position="static";let l="",a=this._getOffset(i,"x"),u=this._getOffset(i,"y");a&&(l+=`translateX(${a}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),o.maxHeight&&(r?n.maxHeight=Rn(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Rn(o.maxWidth):s&&(n.maxWidth="")),L2(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},s=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(s.y+this._overlayRect.height)}px`}else r.top=Rn(s.y);return r}_getExactOverlayX(e,i,n){let r={left:"",right:""},s=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let l=this._document.documentElement.clientWidth;r.right=`${l-(s.x+this._overlayRect.width)}px`}else r.left=Rn(s.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_U(e,n),isOriginOutsideView:OS(e,n),isOverlayClipped:_U(i,n),isOverlayOutsideView:OS(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&P0(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Te)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}};function L2(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function yU(t){if(typeof t!="number"&&t!=null){let[e,i]=t.split(Xce);return!i||i==="px"?parseFloat(e):null}return t||null}function EU(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function Qce(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var CU="cdk-global-overlay-wrapper",NS=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(CU),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:l}=n,a=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),u=(s==="100%"||s==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",p="",v="";a?v="flex-start":c==="center"?(v="center",h?p=d:f=d):h?c==="left"||c==="end"?(v="flex-end",f=d):(c==="right"||c==="start")&&(v="flex-start",p=d):c==="left"||c==="start"?(v="flex-start",f=d):(c==="right"||c==="end")&&(v="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=a?"0":f,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=a?"0":p,i.justifyContent=v,i.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(CU),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Jce=(()=>{let e=class e{constructor(n,r,s,o){this._viewportRuler=n,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new NS}flexibleConnectedTo(n){return new kS(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(x(P2),x(Ne),x(St),x(j0))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e0e=0,ri=(()=>{let e=class e{constructor(n,r,s,o,l,a,u,c,d,h,f,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=l,this._injector=a,this._ngZone=u,this._document=c,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(n){let r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),l=new F2(n);return l.direction=l.direction||this._directionality.value,new Ml(o,r,s,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Oi))}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=`cdk-overlay-${e0e++}`,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Ji)),new gg(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(x(Kce),x(j0),x(pr),x(Jce),x(Yce),x(ze),x(le),x(Ne),x(Tr),x(ch),x(Zce),x(Tn,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var t0e=new Z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.reposition()}});function n0e(t){return()=>t.scrollStrategies.reposition()}var i0e={provide:t0e,deps:[ri],useFactory:n0e},qa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[ri,i0e],imports:[$a,Rl,SS,SS]});let t=e;return t})();function r0e(t,e){}var V2=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var LS=(()=>{let e=class e extends Wa{constructor(n,r,s,o,l,a,u,c){super(),this._elementRef=n,this._focusTrapFactory=r,this._config=o,this._interactivityChecker=l,this._ngZone=a,this._overlayRef=u,this._focusMonitor=c,this._platform=Y(St),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=Y(Wt),this._injector=Y(ze),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._document=s,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let s=()=>{n.removeEventListener("blur",s),n.removeEventListener("mousedown",s),n.removeAttribute("tabindex")};n.addEventListener("blur",s),n.addEventListener("mousedown",s)})),n.focus(r)}_focusByCssSelector(n,r){let s=this._elementRef.nativeElement.querySelector(n);s&&this._forceFocus(s,r)}_trapFocus(){this._isDestroyed||Es(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let s=Kf(),o=this._elementRef.nativeElement;(!s||s===this._document.body||s===o||o.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let n=this._elementRef.nativeElement,r=Kf();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Kf()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(lg),I(Ne,8),I(V2),I(Zf),I(le),I(Ml),I(Ol))},e.\u0275cmp=Me({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,s){if(r&1&&Et(rs,7),r&2){let o;nt(o=it())&&(s._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,s){r&2&&Tt("id",s._config.id||null)("role",s._config.role)("aria-modal",s._config.ariaModal)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null)},standalone:!0,features:[At,ot],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,s){r&1&&ke(0,r0e,0,0,"ng-template",0)},dependencies:[rs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let t=e;return t})(),np=class{constructor(e,i){this.overlayRef=e,this.config=i,this.closed=new te,this.disableClose=i.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!No(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{i.closeOnOverlayDetachments!==!1&&this.close()})}close(e,i){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",i=""){return this.overlayRef.updateSize({width:e,height:i}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},s0e=new Z("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.block()}}),o0e=new Z("DialogData"),l0e=new Z("DefaultDialogConfig");var a0e=0,FS=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(n,r,s,o,l,a){this._overlay=n,this._injector=r,this._defaultOptions=s,this._parentDialog=o,this._overlayContainer=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this._ariaHiddenElements=new Map,this.afterAllClosed=io(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Or(void 0))),this._scrollStrategy=a}open(n,r){let s=this._defaultOptions||new V2;r=b(b({},s),r),r.id=r.id||`cdk-dialog-${a0e++}`,r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),l=this._overlay.create(o),a=new np(l,r),u=this._attachContainer(l,a,r);return a.containerInstance=u,this._attachDialogContent(n,a,u,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){PS(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){PS(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),PS(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new F2({positionStrategy:n.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,s){let o=s.injector||s.viewContainerRef?.injector,l=[{provide:V2,useValue:s},{provide:np,useValue:r},{provide:Ml,useValue:n}],a;s.container?typeof s.container=="function"?a=s.container:(a=s.container.type,l.push(...s.container.providers(s))):a=LS;let u=new Us(a,s.viewContainerRef,ze.create({parent:o||this._injector,providers:l}),s.componentFactoryResolver);return n.attach(u).instance}_attachDialogContent(n,r,s,o){if(n instanceof xt){let l=this._createInjector(o,r,s,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=b(b({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),s.attachTemplatePortal(new js(n,null,a,l))}else{let l=this._createInjector(o,r,s,this._injector),a=s.attachComponentPortal(new Us(n,o.viewContainerRef,l,o.componentFactoryResolver));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,s,o){let l=n.injector||n.viewContainerRef?.injector,a=[{provide:o0e,useValue:n.data},{provide:np,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,s)):a.push(...n.providers)),n.direction&&(!l||!l.get(Tr,null,{optional:!0}))&&a.push({provide:Tr,useValue:{value:n.direction,change:pn()}}),ze.create({parent:l||o,providers:a})}_removeOpenDialog(n,r){let s=this.openDialogs.indexOf(n);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let n=this._overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let s=r.length-1;s>-1;s--){let o=r[s];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(ze),x(l0e,8),x(e,12),x(j0),x(s0e))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PS(t,e){let i=t.length;for(;i--;)e(t[i])}var TU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[FS],imports:[qa,Rl,ag,Rl]});let t=e;return t})();var ct=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ct||{}),Lo="*";function bg(t,e){return{type:ct.Trigger,name:t,definitions:e,options:{}}}function B2(t,e=null){return{type:ct.Animate,styles:e,timings:t}}function SU(t,e=null){return{type:ct.Sequence,steps:t,options:e}}function Sr(t){return{type:ct.Style,styles:t,offset:null}}function U2(t,e,i){return{type:ct.State,name:t,styles:e,options:i}}function j2(t,e,i=null){return{type:ct.Transition,expr:t,animation:e,options:i}}var Ka=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rp=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,l)=>Math.max(o,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},yg="!";function u0e(t,e){}var sp=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},VS="mdc-dialog--open",wU="mdc-dialog--opening",xU="mdc-dialog--closing",c0e=150,d0e=75,h0e=(()=>{let e=class e extends LS{constructor(n,r,s,o,l,a,u,c,d){super(n,r,s,o,l,a,u,d),this._animationMode=c,this._animationStateChanged=new Se,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DU(this._config.enterAnimationDuration)??c0e:0,this._exitAnimationDuration=this._animationsEnabled?DU(this._config.exitAnimationDuration)??d0e:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(AU,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(wU,VS)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(VS),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(VS),this._animationsEnabled?(this._hostElement.style.setProperty(AU,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(xU)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(n){this._actionSectionCount+=n,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(wU,xU)}_waitForAnimationToComplete(n,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,n)}_requestAnimationFrame(n){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(n):n()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(n){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(n){let r=super.attachComponentPortal(n);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(lg),I(Ne,8),I(sp),I(Zf),I(le),I(Ml),I(Tn,8),I(Ol))},e.\u0275cmp=Me({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,s){r&2&&(Nc("id",s._config.id),Tt("aria-modal",s._config.ariaModal)("role",s._config.role)("aria-labelledby",s._config.ariaLabel?null:s._ariaLabelledByQueue[0])("aria-label",s._config.ariaLabel)("aria-describedby",s._config.ariaDescribedBy||null),ut("_mat-animation-noopable",!s._animationsEnabled)("mat-mdc-dialog-container-with-actions",s._actionSectionCount>0))},standalone:!0,features:[At,ot],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,s){r&1&&(R(0,"div",0)(1,"div",1),ke(2,u0e,0,0,"ng-template",2),F()())},dependencies:[rs],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let t=e;return t})(),AU="--mat-dialog-transition-duration";function DU(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Po(t.substring(0,t.length-2)):t.endsWith("s")?Po(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Eg=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Eg||{}),op=class{constructor(e,i,n){this._ref=e,this._containerInstance=n,this._afterOpened=new te,this._beforeClosed=new te,this._state=Eg.OPEN,this.disableClose=i.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ge(r=>r.state==="opened"),en(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ge(r=>r.state==="closed"),en(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),qi(this.backdropClick(),this.keydownEvents().pipe(Ge(r=>r.keyCode===27&&!this.disableClose&&!No(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),OU(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Ge(i=>i.state==="closing"),en(1)).subscribe(i=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Eg.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",i=""){return this._ref.updateSize(e,i),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=Eg.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function OU(t,e,i){return t._closeInteractionType=e,t.close(i)}var f0e=new Z("MatMdcDialogData"),p0e=new Z("mat-mdc-dialog-default-options"),m0e=new Z("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.block()}});var g0e=0,lp=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(n,r,s,o,l,a,u,c){this._overlay=n,this._defaultOptions=o,this._scrollStrategy=l,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te,this._afterOpenedAtThisLevel=new te,this.dialogConfigClass=sp,this.afterAllClosed=io(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Or(void 0))),this._dialog=r.get(FS),this._dialogRefConstructor=op,this._dialogContainerType=h0e,this._dialogDataToken=f0e}open(n,r){let s;r=b(b({},this._defaultOptions||new sp),r),r.id=r.id||`mat-mdc-dialog-${g0e++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(n,ee(b({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:V2,useValue:r}]},templateContext:()=>({dialogRef:s}),providers:(l,a,u)=>(s=new this._dialogRefConstructor(l,r,u),s.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:s}])}));return s.componentRef=o.componentRef,s.componentInstance=o.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(s);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(n){let r=n.length;for(;r--;)n[r].close()}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(ze),x(ch,8),x(p0e,8),x(m0e),x(e,12),x(j0),x(Tn,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_0e=0,RU=(()=>{let e=class e{constructor(n,r,s){this.dialogRef=n,this._elementRef=r,this._dialog=s,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=NU(this._elementRef,this._dialog.openDialogs))}ngOnChanges(n){let r=n._matDialogClose||n._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(n){OU(this.dialogRef,n.screenX===0&&n.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(I(op,8),I(Te),I(lp))},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,s){r&1&&be("click",function(l){return s._onButtonClick(l)}),r&2&&Tt("aria-label",s.ariaLabel||null)("type",s.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[In]});let t=e;return t})(),v0e=(()=>{let e=class e{constructor(n,r,s){this._dialogRef=n,this._elementRef=r,this._dialog=s}ngOnInit(){this._dialogRef||(this._dialogRef=NU(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(I(op,8),I(Te),I(lp))},e.\u0275dir=Ce({type:e,standalone:!0});let t=e;return t})(),MU=(()=>{let e=class e extends v0e{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${_0e++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,s){r&2&&Nc("id",s.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[At]});let t=e;return t})(),kU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[dE([ep])]});let t=e;return t})();function NU(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-mdc-dialog-container");)i=i.parentElement;return i?e.find(n=>n.id===i.id):null}var PU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[lp],imports:[TU,qa,Rl,cn,cn]});let t=e;return t})();var FU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var b0e=["determinateSpinner"];function y0e(t,e){if(t&1&&(m9(),R(0,"svg",11),pe(1,"circle",12),F()),t&2){let i=ne();Tt("viewBox",i._viewBox()),G(),an("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeCircumference()/2,"px")("stroke-width",i._circleStrokeWidth(),"%"),Tt("r",i._circleRadius())}}var E0e=new Z("mat-progress-spinner-default-options",{providedIn:"root",factory:C0e});function C0e(){return{diameter:VU}}var VU=100,I0e=10,BU=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}constructor(n,r,s){this._elementRef=n,this._defaultColor="primary",this._value=0,this._diameter=VU,this._noopAnimations=r==="NoopAnimations"&&!!s&&!s._forceAnimations,this.mode=n.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",s&&(s.color&&(this.color=this._defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,n||0))}get diameter(){return this._diameter}set diameter(n){this._diameter=n||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(n){this._strokeWidth=n||0}_circleRadius(){return(this.diameter-I0e)/2}_viewBox(){let n=this._circleRadius()*2+this.strokeWidth;return`0 0 ${n} ${n}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Tn,8),I(E0e))},e.\u0275cmp=Me({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,s){if(r&1&&Et(b0e,5),r&2){let o;nt(o=it())&&(s._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,s){r&2&&(Tt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",s.mode==="determinate"?s.value:null)("mode",s.mode),Vr("mat-"+s.color),an("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),ut("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate",s.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",er],diameter:[2,"diameter","diameter",er],strokeWidth:[2,"strokeWidth","strokeWidth",er]},exportAs:["matProgressSpinner"],standalone:!0,features:[ln,ot],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,s){if(r&1&&(ke(0,y0e,2,8,"ng-template",null,0,a2),R(2,"div",2,1),m9(),R(4,"svg",3),pe(5,"circle",4),F()(),Ly(),R(6,"div",5)(7,"div",6)(8,"div",7),Dn(9,8),F(),R(10,"div",9),Dn(11,8),F(),R(12,"div",10),Dn(13,8),F()()()),r&2){let o=Br(1);G(4),Tt("viewBox",s._viewBox()),G(),an("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),Tt("r",s._circleRadius()),G(4),J("ngTemplateOutlet",o),G(2),J("ngTemplateOutlet",o),G(2),J("ngTemplateOutlet",o)}},dependencies:[Y9],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});let t=e;return t})();var UU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[tr,cn]});let t=e;return t})();function S0e(t,e){if(t&1){let i=mt();R(0,"div",1)(1,"button",2),be("click",function(){ae(i);let r=ne();return ue(r.action())}),k(2),F()()}if(t&2){let i=ne();G(2),Ca(" ",i.data.action," ")}}var w0e=["label"];function x0e(t,e){}var A0e=Math.pow(2,31)-1,ap=class{constructor(e,i){this._overlayRef=i,this._afterDismissed=new te,this._afterOpened=new te,this._onAction=new te,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,A0e))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},jU=new Z("MatSnackBarData"),H0=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},D0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),O0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),R0e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),HU=(()=>{let e=class e{constructor(n,r){this.snackBarRef=n,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(I(ap),I(jU))},e.\u0275cmp=Me({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[ot],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,s){r&1&&(R(0,"div",0),k(1),F(),ke(2,S0e,3,1,"div",1)),r&2&&(G(),Ca(" ",s.data.message,` +`),G(),Pn(s.hasAction?2:-1))},dependencies:[Ga,D0e,O0e,R0e],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),M0e={snackBarState:bg("state",[U2("void, hidden",Sr({transform:"scale(0.8)",opacity:0})),U2("visible",Sr({transform:"scale(1)",opacity:1})),j2("* => visible",B2("150ms cubic-bezier(0, 0, 0.2, 1)")),j2("* => void, * => hidden",B2("75ms cubic-bezier(0.4, 0.0, 1, 1)",Sr({opacity:0})))])},k0e=0,N0e=(()=>{let e=class e extends Wa{constructor(n,r,s,o,l){super(),this._ngZone=n,this._elementRef=r,this._changeDetectorRef=s,this._platform=o,this.snackBarConfig=l,this._document=Y(Ne),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new te,this._onExit=new te,this._onEnter=new te,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${k0e++}`,this.attachDomPortal=a=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),u},l.politeness==="assertive"&&!l.announcementMessage?this._live="assertive":l.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(n){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._afterPortalAttached(),r}attachTemplatePortal(n){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._afterPortalAttached(),r}onAnimationEnd(n){let{fromState:r,toState:s}=n;if((s==="void"&&r!=="void"||s==="hidden")&&this._completeExit(),s==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let n=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(l=>n.classList.add(l)):n.classList.add(r)),this._exposeToModals();let s=this._label.nativeElement,o="mdc-snackbar__label";s.classList.toggle(o,!s.querySelector(`.${o}`))}_exposeToModals(){let n=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let r=n.getAttribute("aria-owns");if(r){let s=r.replace(this._liveElementId,"").trim();s.length>0?n.setAttribute("aria-owns",s):n.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(n&&r){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(s=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Te),I(Wt),I(St),I(H0))},e.\u0275cmp=Me({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,s){if(r&1&&(Et(rs,7),Et(w0e,7)),r&2){let o;nt(o=it())&&(s._portalOutlet=o.first),nt(o=it())&&(s._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,s){r&1&&F9("@state.done",function(l){return s.onAnimationEnd(l)}),r&2&&L9("@state",s._animationState)},standalone:!0,features:[At,ot],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,s){r&1&&(R(0,"div",1)(1,"div",2,0)(3,"div",3),ke(4,x0e,0,0,"ng-template",4),F(),pe(5,"div"),F()()),r&2&&(G(5),Tt("aria-live",s._live)("role",s._role)("id",s._liveElementId))},dependencies:[rs],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[M0e.snackBarState]}});let t=e;return t})();function P0e(){return new H0}var L0e=new Z("mat-snack-bar-default-options",{providedIn:"root",factory:P0e}),up=(()=>{let e=class e{get _openedSnackBarRef(){let n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}constructor(n,r,s,o,l,a){this._overlay=n,this._live=r,this._injector=s,this._breakpointObserver=o,this._parentSnackBar=l,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=HU,this.snackBarContainerComponent=N0e,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",s){let o=b(b({},this._defaultConfig),s);return o.data={message:n,action:r},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){let s=r&&r.viewContainerRef&&r.viewContainerRef.injector,o=ze.create({parent:s||this._injector,providers:[{provide:H0,useValue:r}]}),l=new Us(this.snackBarContainerComponent,r.viewContainerRef,o),a=n.attach(l);return a.instance.snackBarConfig=r,a.instance}_attach(n,r){let s=b(b(b({},new H0),this._defaultConfig),r),o=this._createOverlay(s),l=this._attachSnackBarContainer(o,s),a=new ap(l,o);if(n instanceof xt){let u=new js(n,null,{$implicit:s.data,snackBarRef:a});a.instance=l.attachTemplatePortal(u)}else{let u=this._createInjector(s,a),c=new Us(n,void 0,u),d=l.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe(GB.HandsetPortrait).pipe(yt(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),s.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(a,s),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration))}_createOverlay(n){let r=new F2;r.direction=n.direction;let s=this._overlay.position().global(),o=n.direction==="rtl",l=n.horizontalPosition==="left"||n.horizontalPosition==="start"&&!o||n.horizontalPosition==="end"&&o,a=!l&&n.horizontalPosition!=="center";return l?s.left("0"):a?s.right("0"):s.centerHorizontally(),n.verticalPosition==="top"?s.top("0"):s.bottom("0"),r.positionStrategy=s,this._overlay.create(r)}_createInjector(n,r){let s=n&&n.viewContainerRef&&n.viewContainerRef.injector;return ze.create({parent:s||this._injector,providers:[{provide:ap,useValue:r},{provide:jU,useValue:n.data}]})}};e.\u0275fac=function(r){return new(r||e)(x(ri),x(nU),x(ze),x(L0),x(e,12),x(L0e))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[up],imports:[qa,Rl,B0,cn,HU,cn]});let t=e;return t})();var BS=class{constructor(e){this._box=e,this._destroyed=new te,this._resizeSubject=new te,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(i=>this._resizeSubject.next(i)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Ae(i=>{let n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Ge(i=>i.some(n=>n.target===e)),d8({bufferSize:1,refCount:!0}),yt(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},GU=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=Y(le),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let s=r?.box||"content-box";return this._observers.has(s)||this._observers.set(s,new BS(s)),this._observers.get(s).observe(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zS=["*"];function B0e(t,e){t&1&&Ln(0)}var U0e=["tabListContainer"],j0e=["tabList"],H0e=["tabListInner"],z0e=["nextPaginator"],$0e=["previousPaginator"],G0e=t=>({animationDuration:t}),W0e=(t,e)=>({value:t,params:e});function q0e(t,e){}var K0e=["tabBodyWrapper"],Y0e=["tabHeader"];function Z0e(t,e){}function X0e(t,e){if(t&1&&ke(0,Z0e,0,0,"ng-template",12),t&2){let i=ne().$implicit;J("cdkPortalOutlet",i.templateLabel)}}function Q0e(t,e){if(t&1&&k(0),t&2){let i=ne().$implicit;Fn(i.textLabel)}}function J0e(t,e){if(t&1){let i=mt();R(0,"div",7,2),be("click",function(){let r=ae(i),s=r.$implicit,o=r.$index,l=ne(),a=Br(1);return ue(l._handleClick(s,a,o))})("cdkFocusChange",function(r){let s=ae(i).$index,o=ne();return ue(o._tabFocusChanged(r,s))}),pe(2,"span",8)(3,"div",9),R(4,"span",10)(5,"span",11),ke(6,X0e,1,1,null,12)(7,Q0e,1,1),F()()()}if(t&2){let i=e.$implicit,n=e.$index,r=Br(1),s=ne();Vr(i.labelClass),ut("mdc-tab--active",s.selectedIndex===n),J("id",s._getTabLabelId(n))("disabled",i.disabled)("fitInkBarToContent",s.fitInkBarToContent),Tt("tabIndex",s._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(n))("aria-selected",s.selectedIndex===n)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),G(3),J("matRippleTrigger",r)("matRippleDisabled",i.disabled||s.disableRipple),G(3),Pn(i.templateLabel?6:7)}}function ede(t,e){t&1&&Ln(0)}function tde(t,e){if(t&1){let i=mt();R(0,"mat-tab-body",13),be("_onCentered",function(){ae(i);let r=ne();return ue(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){ae(i);let s=ne();return ue(s._setTabBodyWrapperHeight(r))}),F()}if(t&2){let i=e.$implicit,n=e.$index,r=ne();Vr(i.bodyClass),ut("mat-mdc-tab-body-active",r.selectedIndex===n),J("id",r._getTabContentId(n))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),Tt("tabindex",r.contentTabIndex!=null&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))("aria-hidden",r.selectedIndex!==n)}}var nde=new Z("MatTabContent"),ide=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[mn([{provide:nde,useExisting:e}])]});let t=e;return t})(),rde=new Z("MatTabLabel"),KU=new Z("MAT_TAB"),$S=(()=>{let e=class e extends mU{constructor(n,r,s){super(n,r),this._closestTab=s}};e.\u0275fac=function(r){return new(r||e)(I(xt),I(Bt),I(KU,8))},e.\u0275dir=Ce({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[mn([{provide:rde,useExisting:e}]),At]});let t=e;return t})(),YU=new Z("MAT_TAB_GROUP"),GS=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(n){this._setTemplateLabelInput(n)}get content(){return this._contentPortal}constructor(n,r){this._viewContainerRef=n,this._closestTabGroup=r,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new te,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(n){(n.hasOwnProperty("textLabel")||n.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new js(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(n){n&&n._closestTab===this&&(this._templateLabel=n)}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(YU,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab"]],contentQueries:function(r,s,o){if(r&1&&(Ts(o,$S,5),Ts(o,ide,7,xt)),r&2){let l;nt(l=it())&&(s.templateLabel=l.first),nt(l=it())&&(s._explicitContent=l.first)}},viewQuery:function(r,s){if(r&1&&Et(xt,7),r&2){let o;nt(o=it())&&(s._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Ut],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[mn([{provide:KU,useExisting:e}]),ln,In,ot],ngContentSelectors:zS,decls:1,vars:0,template:function(r,s){r&1&&(ei(),ke(0,B0e,1,0,"ng-template"))},encapsulation:2});let t=e;return t})(),US="mdc-tab-indicator--active",WU="mdc-tab-indicator--no-transition",jS=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let i=this._items.find(r=>r.elementRef.nativeElement===e),n=this._currentItem;if(i!==n&&(n?.deactivateInkBar(),i)){let r=n?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}},sde=(()=>{let e=class e{constructor(){this._elementRef=Y(Te),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){this._fitToContent!==n&&(this._fitToContent=n,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){let r=this._elementRef.nativeElement;if(!n||!r.getBoundingClientRect||!this._inkBarContentElement){r.classList.add(US);return}let s=r.getBoundingClientRect(),o=n.width/s.width,l=n.left-s.left;r.classList.add(WU),this._inkBarContentElement.style.setProperty("transform",`translateX(${l}px) scaleX(${o})`),r.getBoundingClientRect(),r.classList.remove(WU),r.classList.add(US),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(US)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let n=this._elementRef.nativeElement.ownerDocument||document,r=this._inkBarElement=n.createElement("span"),s=this._inkBarContentElement=n.createElement("span");r.className="mdc-tab-indicator",s.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",r.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let n=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;n.appendChild(this._inkBarElement)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Ut]},features:[ln]});let t=e;return t})();var ZU=(()=>{let e=class e extends sde{constructor(n){super(),this.elementRef=n,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(r){return new(r||e)(I(Te))},e.\u0275dir=Ce({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,s){r&2&&(Tt("aria-disabled",!!s.disabled),ut("mat-mdc-tab-disabled",s.disabled))},inputs:{disabled:[2,"disabled","disabled",Ut]},standalone:!0,features:[ln,At]});let t=e;return t})(),qU=ko({passive:!0}),ode=650,lde=100,ade=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(n){let r=isNaN(n)?0:n;this._selectedIndex!=r&&(this._selectedIndexChanged=!0,this._selectedIndex=r,this._keyManager&&this._keyManager.updateActiveItem(r))}constructor(n,r,s,o,l,a,u){this._elementRef=n,this._changeDetectorRef=r,this._viewportRuler=s,this._dir=o,this._ngZone=l,this._platform=a,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new te,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new te,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Se,this.indexFocused=new Se,this._sharedResizeObserver=Y(GU),this._injector=Y(ze),l.runOutsideAngular(()=>{ai(n.nativeElement,"mouseleave").pipe(yt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){ai(this._previousPaginator.nativeElement,"touchstart",qU).pipe(yt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ai(this._nextPaginator.nativeElement,"touchstart",qU).pipe(yt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let n=this._dir?this._dir.change:pn("ltr"),r=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ki(32),yt(this._destroyed)),s=this._viewportRuler.change(150).pipe(yt(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new og(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Es(o,{injector:this._injector}),qi(n,s,r,this._items.changes,this._itemsResized()).pipe(yt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return typeof ResizeObserver!="function"?il:this._items.changes.pipe(Or(this._items),Ai(n=>new Ae(r=>this._ngZone.runOutsideAngular(()=>{let s=new ResizeObserver(o=>r.next(o));return n.forEach(o=>s.observe(o.elementRef.nativeElement)),()=>{s.disconnect()}}))),Fu(1),Ge(n=>n.some(r=>r.contentRect.width>0&&r.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(n){if(!No(n))switch(n.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n))}break;default:this._keyManager.onKeydown(n)}}_onContentChanges(){let n=this._elementRef.nativeElement.textContent;n!==this._currentTextContent&&(this._currentTextContent=n||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}_isValidIndex(n){return this._items?!!this._items.toArray()[n]:!0}_setTabFocus(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();let r=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?r.scrollLeft=0:r.scrollLeft=r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let n=this.scrollDistance,r=this._getLayoutDirection()==="ltr"?-n:n;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(n){this._scrollTo(n)}_scrollHeader(n){let r=this._tabListContainer.nativeElement.offsetWidth,s=(n=="before"?-1:1)*r/3;return this._scrollTo(this._scrollDistance+s)}_handlePaginatorClick(n){this._stopInterval(),this._scrollHeader(n)}_scrollToLabel(n){if(this.disablePagination)return;let r=this._items?this._items.toArray()[n]:null;if(!r)return;let s=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:l}=r.elementRef.nativeElement,a,u;this._getLayoutDirection()=="ltr"?(a=o,u=a+l):(u=this._tabListInner.nativeElement.offsetWidth-o,a=u-l);let c=this.scrollDistance,d=this.scrollDistance+s;ad&&(this.scrollDistance+=Math.min(u-d,a-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let n=this._tabListInner.nativeElement.scrollWidth,r=this._elementRef.nativeElement.offsetWidth,s=n-r>=5;s||(this.scrollDistance=0),s!==this._showPaginationControls&&(this._showPaginationControls=s,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let n=this._tabListInner.nativeElement.scrollWidth,r=this._tabListContainer.nativeElement.offsetWidth;return n-r||0}_alignInkBarToSelectedTab(){let n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=n?n.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(n,r){r&&r.button!=null&&r.button!==0||(this._stopInterval(),Xn(ode,lde).pipe(yt(qi(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:s,distance:o}=this._scrollHeader(n);(o===0||o>=s)&&this._stopInterval()}))}_scrollTo(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(P2),I(Tr,8),I(le),I(St),I(Tn,8))},e.\u0275dir=Ce({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Ut],selectedIndex:[2,"selectedIndex","selectedIndex",er]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ln]});let t=e;return t})(),ude=(()=>{let e=class e extends ade{constructor(n,r,s,o,l,a,u){super(n,r,s,o,l,a,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new jS(this._items),super.ngAfterContentInit()}_itemSelected(n){n.preventDefault()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(P2),I(Tr,8),I(le),I(St),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-header"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,ZU,4),r&2){let l;nt(l=it())&&(s._items=l)}},viewQuery:function(r,s){if(r&1&&(Et(U0e,7),Et(j0e,7),Et(H0e,7),Et(z0e,5),Et($0e,5)),r&2){let o;nt(o=it())&&(s._tabListContainer=o.first),nt(o=it())&&(s._tabList=o.first),nt(o=it())&&(s._tabListInner=o.first),nt(o=it())&&(s._nextPaginator=o.first),nt(o=it())&&(s._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(r,s){r&2&&ut("mat-mdc-tab-header-pagination-controls-enabled",s._showPaginationControls)("mat-mdc-tab-header-rtl",s._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",Ut]},standalone:!0,features:[ln,At,ot],ngContentSelectors:zS,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(r,s){if(r&1){let o=mt();ei(),R(0,"button",5,0),be("click",function(){return ae(o),ue(s._handlePaginatorClick("before"))})("mousedown",function(a){return ae(o),ue(s._handlePaginatorPress("before",a))})("touchend",function(){return ae(o),ue(s._stopInterval())}),pe(2,"div",6),F(),R(3,"div",7,1),be("keydown",function(a){return ae(o),ue(s._handleKeydown(a))}),R(5,"div",8,2),be("cdkObserveContent",function(){return ae(o),ue(s._onContentChanges())}),R(7,"div",9,3),Ln(9),F()()(),R(10,"button",10,4),be("mousedown",function(a){return ae(o),ue(s._handlePaginatorPress("after",a))})("click",function(){return ae(o),ue(s._handlePaginatorClick("after"))})("touchend",function(){return ae(o),ue(s._stopInterval())}),pe(12,"div",6),F()}r&2&&(ut("mat-mdc-tab-header-pagination-disabled",s._disableScrollBefore),J("matRippleDisabled",s._disableScrollBefore||s.disableRipple)("disabled",s._disableScrollBefore||null),G(3),ut("_mat-animation-noopable",s._animationMode==="NoopAnimations"),G(7),ut("mat-mdc-tab-header-pagination-disabled",s._disableScrollAfter),J("matRippleDisabled",s._disableScrollAfter||s.disableRipple)("disabled",s._disableScrollAfter||null))},dependencies:[is,jB],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let t=e;return t})(),cde=new Z("MAT_TABS_CONFIG"),dde={translateTab:bg("translateTab",[U2("center, void, left-origin-center, right-origin-center",Sr({transform:"none",visibility:"visible"})),U2("left",Sr({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),U2("right",Sr({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),j2("* => left, * => right, left => center, right => center",B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),j2("void => left-origin-center",[Sr({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),j2("void => right-origin-center",[Sr({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),B2("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},hde=(()=>{let e=class e extends rs{constructor(n,r,s,o){super(n,r,o),this._host=s,this._centeringSub=kt.EMPTY,this._leavingSub=kt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Or(this._host._isCenterPosition(this._host._position))).subscribe(n=>{this._host._content&&n&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(I(pr),I(Bt),I(vs(()=>XU)),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[At]});let t=e;return t})(),XU=(()=>{let e=class e{set position(n){this._positionIndex=n,this._computePositionAnimationState()}constructor(n,r,s){this._elementRef=n,this._dir=r,this._dirChangeSubscription=kt.EMPTY,this._translateTabComplete=new te,this._onCentering=new Se,this._beforeCentering=new Se,this._afterLeavingCenter=new Se,this._onCentered=new Se(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(o=>{this._computePositionAnimationState(o),s.markForCheck()})),this._translateTabComplete.pipe(rl((o,l)=>o.fromState===l.fromState&&o.toState===l.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(n){let r=this._isCenterPosition(n.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(n){return n=="center"||n=="left-origin-center"||n=="right-origin-center"}_computePositionAnimationState(n=this._getLayoutDirection()){this._positionIndex<0?this._position=n=="ltr"?"left":"right":this._positionIndex>0?this._position=n=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(n){let r=this._getLayoutDirection();return r=="ltr"&&n<=0||r=="rtl"&&n>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Tr,8),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-body"]],viewQuery:function(r,s){if(r&1&&Et(rs,5),r&2){let o;nt(o=it())&&(s._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[ot],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1,0),be("@translateTab.start",function(a){return ae(o),ue(s._onTranslateTabStarted(a))})("@translateTab.done",function(a){return ae(o),ue(s._translateTabComplete.next(a))}),ke(2,q0e,0,0,"ng-template",2),F()}r&2&&J("@translateTab",ih(3,W0e,s._position,vE(1,G0e,s.animationDuration)))},dependencies:[hde,ep],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[dde.translateTab]}});let t=e;return t})(),fde=0,pde=!0,QU=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(n){this._fitInkBarToContent=n,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(n){this._indexToSelect=isNaN(n)?null:n}get animationDuration(){return this._animationDuration}set animationDuration(n){let r=n+"";this._animationDuration=/^\d+$/.test(r)?n+"ms":r}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(n){this._contentTabIndex=isNaN(n)?null:n}get backgroundColor(){return this._backgroundColor}set backgroundColor(n){if(!pde)throw new Error("mat-tab-group background color must be set through the Sass theming API");let r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),n&&r.add("mat-tabs-with-background",`mat-background-${n}`),this._backgroundColor=n}constructor(n,r,s,o){this._elementRef=n,this._changeDetectorRef=r,this._animationMode=o,this._tabs=new pa,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=kt.EMPTY,this._tabLabelSubscription=kt.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new Se,this.focusChange=new Se,this.animationDone=new Se,this.selectedTabChange=new Se(!0),this._isServer=!Y(St).isBrowser,this._groupId=fde++,this.animationDuration=s&&s.animationDuration?s.animationDuration:"500ms",this.disablePagination=s&&s.disablePagination!=null?s.disablePagination:!1,this.dynamicHeight=s&&s.dynamicHeight!=null?s.dynamicHeight:!1,s?.contentTabIndex!=null&&(this.contentTabIndex=s.contentTabIndex),this.preserveContent=!!s?.preserveContent,this.fitInkBarToContent=s&&s.fitInkBarToContent!=null?s.fitInkBarToContent:!1,this.stretchTabs=s&&s.stretchTabs!=null?s.stretchTabs:!0}ngAfterContentChecked(){let n=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=n){let r=this._selectedIndex==null;if(!r){this.selectedTabChange.emit(this._createChangeEvent(n));let s=this._tabBodyWrapper.nativeElement;s.style.minHeight=s.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((s,o)=>s.isActive=o===n),r||(this.selectedIndexChange.emit(n),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,s)=>{r.position=s-n,this._selectedIndex!=null&&r.position==0&&!r.origin&&(r.origin=n-this._selectedIndex)}),this._selectedIndex!==n&&(this._selectedIndex=n,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let n=this._clampTabIndex(this._indexToSelect);if(n===this._selectedIndex){let r=this._tabs.toArray(),s;for(let o=0;o{r[n].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(n))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Or(this._allTabs)).subscribe(n=>{this._tabs.reset(n.filter(r=>r._closestTabGroup===this||!r._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(n){let r=this._tabHeader;r&&(r.focusIndex=n)}_focusChanged(n){this._lastFocusedTabIndex=n,this.focusChange.emit(this._createChangeEvent(n))}_createChangeEvent(n){let r=new HS;return r.index=n,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[n]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=qi(...this._tabs.map(n=>n._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(n){return Math.min(this._tabs.length-1,Math.max(n||0,0))}_getTabLabelId(n){return`mat-tab-label-${this._groupId}-${n}`}_getTabContentId(n){return`mat-tab-content-${this._groupId}-${n}`}_setTabBodyWrapperHeight(n){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=n+"px")}_removeTabBodyWrapperHeight(){let n=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=n.clientHeight,n.style.height="",this.animationDone.emit()}_handleClick(n,r,s){r.focusIndex=s,n.disabled||(this.selectedIndex=s)}_getTabIndex(n){let r=this._lastFocusedTabIndex??this.selectedIndex;return n===r?0:-1}_tabFocusChanged(n,r){n&&n!=="mouse"&&n!=="touch"&&(this._tabHeader.focusIndex=r)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Wt),I(cde,8),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tab-group"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,GS,5),r&2){let l;nt(l=it())&&(s._allTabs=l)}},viewQuery:function(r,s){if(r&1&&(Et(K0e,5),Et(Y0e,5)),r&2){let o;nt(o=it())&&(s._tabBodyWrapper=o.first),nt(o=it())&&(s._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(r,s){r&2&&(Vr("mat-"+(s.color||"primary")),an("--mat-tab-animation-duration",s.animationDuration),ut("mat-mdc-tab-group-dynamic-height",s.dynamicHeight)("mat-mdc-tab-group-inverted-header",s.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",s.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Ut],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Ut],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Ut],selectedIndex:[2,"selectedIndex","selectedIndex",er],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",er],disablePagination:[2,"disablePagination","disablePagination",Ut],disableRipple:[2,"disableRipple","disableRipple",Ut],preserveContent:[2,"preserveContent","preserveContent",Ut],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[mn([{provide:YU,useExisting:e}]),ln,ot],ngContentSelectors:zS,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(r,s){if(r&1){let o=mt();ei(),R(0,"mat-tab-header",3,0),be("indexFocused",function(a){return ae(o),ue(s._focusChanged(a))})("selectFocusedIndex",function(a){return ae(o),ue(s.selectedIndex=a)}),o2(2,J0e,8,17,"div",4,P9),F(),ke(4,ede,1,0),R(5,"div",5,1),o2(7,tde,1,13,"mat-tab-body",6,P9),F()}r&2&&(J("selectedIndex",s.selectedIndex||0)("disableRipple",s.disableRipple)("disablePagination",s.disablePagination),G(2),l2(s._tabs),G(2),Pn(s._isServer?4:-1),G(),ut("_mat-animation-noopable",s._animationMode==="NoopAnimations"),G(2),l2(s._tabs))},dependencies:[ude,ZU,iU,is,rs,XU],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color);border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let t=e;return t})(),HS=class{};var JU=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[cn,cn]});let t=e;return t})();var gde=["tooltip"],nj=20;var ij=new Z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(ri);return()=>t.scrollStrategies.reposition({scrollThrottle:nj})}});function _de(t){return()=>t.scrollStrategies.reposition({scrollThrottle:nj})}var vde={provide:ij,deps:[ri],useFactory:_de};function bde(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var yde=new Z("mat-tooltip-default-options",{providedIn:"root",factory:bde});var ej="tooltip-panel",tj=ko({passive:!0}),Ede=8,Cde=8,Ide=24,Tde=200,Cg=(()=>{let e=class e{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=tg(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=tg(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=Po(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=Po(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=n!=null?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,s,o,l,a,u,c,d,h,f,p){this._overlay=n,this._elementRef=r,this._scrollDispatcher=s,this._viewContainerRef=o,this._ngZone=l,this._platform=a,this._ariaDescriber=u,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Sde,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new te,this._injector=Y(ze),this._scrollStrategy=d,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Ede}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yt(this._destroyed)).subscribe(n=>{n?n==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,s])=>{n.removeEventListener(r,s,tj)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(r);this._detach(),this._portal=this._portal||new Us(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=s.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(n)}hide(n=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&o._origin instanceof Te)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?n||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return s.positionChanges.pipe(yt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${ej}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(yt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!No(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(n){let r=n.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();r.withPositions([this._addOffset(b(b({},s.main),o.main)),this._addOffset(b(b({},s.fallback),o.fallback))])}_addOffset(n){let r=Cde,s=!this._dir||this._dir.value=="ltr";return n.originY==="top"?n.offsetY=-r:n.originY==="bottom"?n.offsetY=r:n.originX==="start"?n.offsetX=s?-r:r:n.originX==="end"&&(n.offsetX=s?r:-r),n}_getOrigin(){let n=!this._dir||this._dir.value=="ltr",r=this.position,s;r=="above"||r=="below"?s={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&n||r=="right"&&!n?s={originX:"start",originY:"center"}:(r=="after"||r=="right"&&n||r=="left"&&!n)&&(s={originX:"end",originY:"center"});let{x:o,y:l}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:l}}}_getOverlayPosition(){let n=!this._dir||this._dir.value=="ltr",r=this.position,s;r=="above"?s={overlayX:"center",overlayY:"bottom"}:r=="below"?s={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&n||r=="right"&&!n?s={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&n||r=="left"&&!n)&&(s={overlayX:"start",overlayY:"center"});let{x:o,y:l}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:l}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Es(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):n==="end"?n="start":n==="start"&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){let{overlayY:r,originX:s,originY:o}=n,l;if(r==="center"?this._dir&&this._dir.value==="rtl"?l=s==="end"?"left":"right":l=s==="start"?"left":"right":l=r==="bottom"&&o==="top"?"above":"below",l!==this._currentPosition){let a=this._overlayRef;if(a){let u=`${this._cssClassPrefix}-${ej}-`;a.removePanelClass(u+this._currentPosition),a.addPanelClass(u+l)}this._currentPosition=l}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{this._setupPointerExitEventsIfNeeded();let r;n.x!==void 0&&n.y!==void 0&&(r=n),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{let r=n.targetTouches?.[0],s=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{let s=r.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,s])=>{this._elementRef.nativeElement.addEventListener(r,s,tj)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(n.clientX,n.clientY),s=this._elementRef.nativeElement;r!==s&&!s.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let n=this.touchGestures;if(n!=="off"){let r=this._elementRef.nativeElement,s=r.style;(n==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(n==="on"||!r.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(r){return new(r||e)(I(ri),I(Te),I(U0),I(Bt),I(le),I(St),I(JB),I(Ol),I(ij),I(Tr),I(yde,8),I(Ne))},e.\u0275dir=Ce({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,s){r&2&&ut("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),Sde=(()=>{let e=class e{constructor(n,r,s){this._changeDetectorRef=n,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new te,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=s==="NoopAnimations"}show(n){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>Ide&&n.width>=Tde}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){let r=this._tooltip.nativeElement,s=this._showAnimation,o=this._hideAnimation;if(r.classList.remove(n?o:s),r.classList.add(n?s:o),this._isVisible!==n&&(this._isVisible=n,this._changeDetectorRef.markForCheck()),n&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let l=getComputedStyle(r);(l.getPropertyValue("animation-duration")==="0s"||l.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}};e.\u0275fac=function(r){return new(r||e)(I(Wt),I(Te),I(Tn,8))},e.\u0275cmp=Me({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,s){if(r&1&&Et(gde,7),r&2){let o;nt(o=it())&&(s._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,s){r&1&&be("mouseleave",function(l){return s._handleMouseLeave(l)}),r&2&&an("zoom",s.isVisible()?1:null)},standalone:!0,features:[ot],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1,0),be("animationend",function(a){return ae(o),ue(s._handleAnimationEnd(a))}),R(2,"div",2),k(3),F()()}r&2&&(ut("mdc-tooltip--multiline",s._isMultiline),J("ngClass",s.tooltipClass),G(3),Fn(s.message))},dependencies:[Fc],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let t=e;return t})();var rj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[vde],imports:[ag,tr,qa,cn,cn,mg]});let t=e;return t})();var WS=class{constructor(){this.expansionModel=new pg(!0)}toggle(e){this.expansionModel.toggle(this._trackByValue(e))}expand(e){this.expansionModel.select(this._trackByValue(e))}collapse(e){this.expansionModel.deselect(this._trackByValue(e))}isExpanded(e){return this.expansionModel.isSelected(this._trackByValue(e))}toggleDescendants(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}collapseAll(){this.expansionModel.clear()}expandDescendants(e){let i=[e];i.push(...this.getDescendants(e)),this.expansionModel.select(...i.map(n=>this._trackByValue(n)))}collapseDescendants(e){let i=[e];i.push(...this.getDescendants(e)),this.expansionModel.deselect(...i.map(n=>this._trackByValue(n)))}_trackByValue(e){return this.trackBy?this.trackBy(e):e}};var z0=class extends WS{constructor(e,i){super(),this.getChildren=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();let e=this.dataNodes.reduce((i,n)=>[...i,...this.getDescendants(n),n],[]);this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}getDescendants(e){let i=[];return this._getDescendants(i,e),i.splice(1)}_getDescendants(e,i){e.push(i);let n=this.getChildren(i);Array.isArray(n)?n.forEach(r=>this._getDescendants(e,r)):Pu(n)&&n.pipe(en(1),Ge(Boolean)).subscribe(r=>{for(let s of r)this._getDescendants(e,s)})}},dp=new Z("CDK_TREE_NODE_OUTLET_NODE"),cp=(()=>{let e=class e{constructor(n,r){this.viewContainer=n,this._node=r}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(dp,8))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0});let t=e;return t})(),qS=class{constructor(e){this.$implicit=e}},Ig=(()=>{let e=class e{constructor(n){this.template=n}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]},standalone:!0});let t=e;return t})();var Nl=(()=>{let e=class e{get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}constructor(n,r){this._differs=n,this._changeDetectorRef=r,this._onDestroy=new te,this._levels=new Map,this.viewChange=new Ci({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){let n=this._nodeDefs.filter(r=>!r.when);n.length>1,this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;pU(this._dataSource)?n=this._dataSource.connect(this):Pu(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=pn(this._dataSource)),n&&(this._dataSubscription=n.pipe(yt(this._onDestroy)).subscribe(r=>this.renderNodeChanges(r)))}renderNodeChanges(n,r=this._dataDiffer,s=this._nodeOutlet.viewContainer,o){let l=r.diff(n);l&&(l.forEachOperation((a,u,c)=>{if(a.previousIndex==null)this.insertNode(n[c],c,s,o);else if(c==null)s.remove(u),this._levels.delete(a.item);else{let d=s.get(u);s.move(d,c)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,r){if(this._nodeDefs.length===1)return this._nodeDefs.first;let s=this._nodeDefs.find(o=>o.when&&o.when(r,n))||this._defaultNodeDef;return s}insertNode(n,r,s,o){let l=this._getNodeDef(n,r),a=new qS(n);this.treeControl.getLevel?a.level=this.treeControl.getLevel(n):typeof o<"u"&&this._levels.has(o)?a.level=this._levels.get(o)+1:a.level=0,this._levels.set(n,a.level),(s||this._nodeOutlet.viewContainer).createEmbeddedView(l.template,a,r),kl.mostRecentTreeNode&&(kl.mostRecentTreeNode.data=n)}};e.\u0275fac=function(r){return new(r||e)(I(gl),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["cdk-tree"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,Ig,5),r&2){let l;nt(l=it())&&(s._nodeDefs=l)}},viewQuery:function(r,s){if(r&1&&Et(cp,7),r&2){let o;nt(o=it())&&(s._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],standalone:!0,features:[ot],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,s){r&1&&Dn(0,0)},dependencies:[cp],encapsulation:2});let t=e;return t})(),kl=(()=>{let e=class e{get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(n,r){this._elementRef=n,this._tree=r,this._destroyed=new te,this._dataChanges=new te,this._changeDetectorRef=Y(Wt),e.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=wde(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`),this._tree.treeControl.expansionModel.changed.pipe(st(()=>this.isExpanded),rl()).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}};e.mostRecentTreeNode=null,e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl))},e.\u0275dir=Ce({type:e,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,s){r&2&&Tt("aria-expanded",s.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"],standalone:!0});let t=e;return t})();function wde(t){let e=t.parentElement;for(;e&&!xde(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?er(e.getAttribute("aria-level")):0:-1}function xde(t){let e=t.classList;return!!(e?.contains("cdk-nested-tree-node")||e?.contains("cdk-tree"))}var KS=(()=>{let e=class e extends kl{constructor(n,r,s){super(n,r),this._differs=s}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;let n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):Pu(n)&&n.pipe(yt(this._destroyed)).subscribe(r=>this.updateChildrenNodes(r)),this.nodeOutlet.changes.pipe(yt(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){let r=this._getNodeOutlet();if(n&&(this._children=n),r&&this._children){let s=r.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,s,this._data)}else this._dataDiffer.diff([])}_clear(){let n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){let n=this.nodeOutlet;return n&&n.find(r=>!r._node||r._node===this)}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),I(gl))},e.\u0275dir=Ce({type:e,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,cp,5),r&2){let l;nt(l=it())&&(s.nodeOutlet=l)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],standalone:!0,features:[mn([{provide:kl,useExisting:e},{provide:dp,useExisting:e}]),At]});let t=e;return t})();var YS=(()=>{let e=class e{constructor(n,r){this._tree=n,this._treeNode=r,this.recursive=!1}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(I(Nl),I(kl))},e.\u0275dir=Ce({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,s){r&1&&be("click",function(l){return s._toggle(l)})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",Ut]},standalone:!0,features:[ln]});let t=e;return t})();var oj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();var Tg=(()=>{let e=class e extends kl{constructor(n,r,s){super(n,r),this.disabled=!1,this.tabIndex=Number(s)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),va("tabindex"))},e.\u0275dir=Ce({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{disabled:[2,"disabled","disabled",Ut],tabIndex:[2,"tabIndex","tabIndex",n=>n==null?0:er(n)]},exportAs:["matTreeNode"],standalone:!0,features:[mn([{provide:kl,useExisting:e}]),ln,At]});let t=e;return t})(),Sg=(()=>{let e=class e extends Ig{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},standalone:!0,features:[mn([{provide:Ig,useExisting:e}]),At]});let t=e;return t})(),wg=(()=>{let e=class e extends KS{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(n){this._tabIndex=n??0}constructor(n,r,s,o){super(n,r,s),this.disabled=!1,this.tabIndex=Number(o)||0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}};e.\u0275fac=function(r){return new(r||e)(I(Te),I(Nl),I(gl),va("tabindex"))},e.\u0275dir=Ce({type:e,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",Ut],tabIndex:"tabIndex"},exportAs:["matNestedTreeNode"],standalone:!0,features:[mn([{provide:KS,useExisting:e},{provide:kl,useExisting:e},{provide:dp,useExisting:e}]),ln,At]});let t=e;return t})();var $0=(()=>{let e=class e{constructor(n,r){this.viewContainer=n,this._node=r}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(dp,8))},e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeOutlet",""]],standalone:!0,features:[mn([{provide:cp,useExisting:e}])]});let t=e;return t})(),xg=(()=>{let e=class e extends Nl{constructor(){super(...arguments),this._nodeOutlet=void 0}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275cmp=Me({type:e,selectors:[["mat-tree"]],viewQuery:function(r,s){if(r&1&&Et($0,7),r&2){let o;nt(o=it())&&(s._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],standalone:!0,features:[mn([{provide:Nl,useExisting:e}]),At,ot],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,s){r&1&&Dn(0,0)},dependencies:[$0],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color)}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color);font-family:var(--mat-tree-node-text-font);font-size:var(--mat-tree-node-text-size);font-weight:var(--mat-tree-node-text-weight)}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});let t=e;return t})(),Ag=(()=>{let e=class e extends YS{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=po(e)))(s||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[mn([{provide:YS,useExisting:e}]),At]});let t=e;return t})();var lj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[oj,cn,cn]});let t=e;return t})();var G0=class extends fg{constructor(){super(...arguments),this._data=new Ci([])}get data(){return this._data.value}set data(e){this._data.next(e)}connect(e){return qi(e.viewChange,this._data).pipe(st(()=>this.data))}disconnect(){}};function uj(t){return new se(3e3,!1)}function Dde(){return new se(3100,!1)}function Ode(){return new se(3101,!1)}function Rde(t){return new se(3001,!1)}function Mde(t){return new se(3003,!1)}function kde(t){return new se(3004,!1)}function Nde(t,e){return new se(3005,!1)}function Pde(){return new se(3006,!1)}function Lde(){return new se(3007,!1)}function Fde(t,e){return new se(3008,!1)}function Vde(t){return new se(3002,!1)}function Bde(t,e,i,n,r){return new se(3010,!1)}function Ude(){return new se(3011,!1)}function jde(){return new se(3012,!1)}function Hde(){return new se(3200,!1)}function zde(){return new se(3202,!1)}function $de(){return new se(3013,!1)}function Gde(t){return new se(3014,!1)}function Wde(t){return new se(3015,!1)}function qde(t){return new se(3016,!1)}function Kde(t,e){return new se(3404,!1)}function Yde(t){return new se(3502,!1)}function Zde(t){return new se(3503,!1)}function Xde(){return new se(3300,!1)}function Qde(t){return new se(3504,!1)}function Jde(t){return new se(3301,!1)}function e1e(t,e){return new se(3302,!1)}function t1e(t){return new se(3303,!1)}function n1e(t,e){return new se(3400,!1)}function i1e(t){return new se(3401,!1)}function r1e(t){return new se(3402,!1)}function s1e(t,e){return new se(3505,!1)}function Ya(t){switch(t.length){case 0:return new Ka;case 1:return t[0];default:return new rp(t)}}function Ij(t,e,i=new Map,n=new Map){let r=[],s=[],o=-1,l=null;if(e.forEach(a=>{let u=a.get("offset"),c=u==o,d=c&&l||new Map;a.forEach((h,f)=>{let p=f,v=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),v){case yg:v=i.get(f);break;case Lo:v=n.get(f);break;default:v=t.normalizeStyleValue(f,p,v,r);break}d.set(p,v)}),c||s.push(d),l=d,o=u}),r.length)throw Yde(r);return s}function vw(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&ZS(i,"start",t)));break;case"done":t.onDone(()=>n(i&&ZS(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&ZS(i,"destroy",t)));break}}function ZS(t,e,i){let n=i.totalTime,r=!!i.disabled,s=bw(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function bw(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function xr(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function cj(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var o1e=typeof document>"u"?null:document.documentElement;function yw(t){let e=t.parentNode||t.host||null;return e===o1e?null:e}function l1e(t){return t.substring(1,6)=="ebkit"}var H2=null,dj=!1;function a1e(t){H2||(H2=u1e()||{},dj=H2.style?"WebkitAppearance"in H2.style:!1);let e=!0;return H2.style&&!l1e(t)&&(e=t in H2.style,!e&&dj&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in H2.style)),e}function u1e(){return typeof document<"u"?document.body:null}function Tj(t,e){for(;e;){if(e===t)return!0;e=yw(e)}return!1}function Sj(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var Ew=(()=>{let e=class e{validateStyleProperty(n){return a1e(n)}containsElement(n,r){return Tj(n,r)}getParentElement(n){return yw(n)}query(n,r,s){return Sj(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,l,a=[],u){return new Ka(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),Sw=class Sw{};Sw.NOOP=new Ew;var G2=Sw,W2=class{};var c1e=1e3,wj="{{",d1e="}}",xj="ng-enter",nw="ng-leave",Dg="ng-trigger",Ng=".ng-trigger",hj="ng-animating",iw=".ng-animating";function Pl(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:rw(parseFloat(e[1]),e[2])}function rw(t,e){switch(e){case"s":return t*c1e;default:return t}}function Pg(t,e,i){return t.hasOwnProperty("duration")?t:h1e(t,e,i)}function h1e(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let l=t.match(n);if(l===null)return e.push(uj(t)),{duration:0,delay:0,easing:""};r=rw(parseFloat(l[1]),l[2]);let a=l[3];a!=null&&(s=rw(parseFloat(a),l[4]));let u=l[5];u&&(o=u)}else r=t;if(!i){let l=!1,a=e.length;r<0&&(e.push(Dde()),l=!0),s<0&&(e.push(Ode()),l=!0),l&&e.splice(a,0,uj(t))}return{duration:r,delay:s,easing:o}}function f1e(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Fo(t,e,i){e.forEach((n,r)=>{let s=Cw(r);i&&!i.has(r)&&i.set(r,t.style[s]),t.style[s]=n})}function $2(t,e){e.forEach((i,n)=>{let r=Cw(n);t.style[r]=""})}function hp(t){return Array.isArray(t)?t.length==1?t[0]:SU(t):t}function p1e(t,e,i){let n=e.params||{},r=Aj(t);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||i.push(Rde(s))})}var sw=new RegExp(`${wj}\\s*(.+?)\\s*${d1e}`,"g");function Aj(t){let e=[];if(typeof t=="string"){let i;for(;i=sw.exec(t);)e.push(i[1]);sw.lastIndex=0}return e}function pp(t,e,i){let n=`${t}`,r=n.replace(sw,(s,o)=>{let l=e[o];return l==null&&(i.push(Mde(o)),l=""),l.toString()});return r==n?t:r}var m1e=/-+([a-z0-9])/g;function Cw(t){return t.replace(m1e,(...e)=>e[1].toUpperCase())}function g1e(t,e){return t===0||e===0}function _1e(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(l,Iw(t,l)))}}return e}function wr(t,e,i){switch(e.type){case ct.Trigger:return t.visitTrigger(e,i);case ct.State:return t.visitState(e,i);case ct.Transition:return t.visitTransition(e,i);case ct.Sequence:return t.visitSequence(e,i);case ct.Group:return t.visitGroup(e,i);case ct.Animate:return t.visitAnimate(e,i);case ct.Keyframes:return t.visitKeyframes(e,i);case ct.Style:return t.visitStyle(e,i);case ct.Reference:return t.visitReference(e,i);case ct.AnimateChild:return t.visitAnimateChild(e,i);case ct.AnimateRef:return t.visitAnimateRef(e,i);case ct.Query:return t.visitQuery(e,i);case ct.Stagger:return t.visitStagger(e,i);default:throw kde(e.type)}}function Iw(t,e){return window.getComputedStyle(t)[e]}var v1e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Lg=class extends W2{normalizePropertyName(e,i){return Cw(e)}normalizeStyleValue(e,i,n,r){let s="",o=n.toString().trim();if(v1e.has(i)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&l[1].length==0&&r.push(Nde(e,n))}return o+s}};var Fg="*";function b1e(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>y1e(n,i,e)):i.push(t),i}function y1e(t,e,i){if(t[0]==":"){let a=E1e(t,i);if(typeof a=="function"){e.push(a);return}t=a}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(Wde(t)),e;let r=n[1],s=n[2],o=n[3];e.push(fj(r,o));let l=r==Fg&&o==Fg;s[0]=="<"&&!l&&e.push(fj(o,r))}function E1e(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var Og=new Set(["true","1"]),Rg=new Set(["false","0"]);function fj(t,e){let i=Og.has(t)||Rg.has(t),n=Og.has(e)||Rg.has(e);return(r,s)=>{let o=t==Fg||t==r,l=e==Fg||e==s;return!o&&i&&typeof r=="boolean"&&(o=r?Og.has(t):Rg.has(t)),!l&&n&&typeof s=="boolean"&&(l=s?Og.has(e):Rg.has(e)),o&&l}}var Dj=":self",C1e=new RegExp(`s*${Dj}s*,?`,"g");function Oj(t,e,i,n){return new ow(t).build(e,i,n)}var pj="",ow=class{constructor(e){this._driver=e}build(e,i,n){let r=new lw(i);return this._resetContextStyleTimingState(r),wr(this,hp(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=pj,e.collectedStyles=new Map,e.collectedStyles.set(pj,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Pde()),e.definitions.forEach(l=>{if(this._resetContextStyleTimingState(i),l.type==ct.State){let a=l,u=a.name;u.toString().split(/\s*,\s*/).forEach(c=>{a.name=c,s.push(this.visitState(a,i))}),a.name=u}else if(l.type==ct.Transition){let a=this.visitTransition(l,i);n+=a.queryCount,r+=a.depCount,o.push(a)}else i.errors.push(Lde())}),{type:ct.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(l=>{l instanceof Map&&l.forEach(a=>{Aj(a).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}),s.size&&i.errors.push(Fde(e.name,[...s.values()]))}return{type:ct.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=wr(this,hp(e.animation),i),r=b1e(e.expr,i.errors);return{type:ct.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:z2(e.options)}}visitSequence(e,i){return{type:ct.Sequence,steps:e.steps.map(n=>wr(this,n,i)),options:z2(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,s=e.steps.map(o=>{i.currentTime=n;let l=wr(this,o,i);return r=Math.max(r,i.currentTime),l});return i.currentTime=r,{type:ct.Group,steps:s,options:z2(e.options)}}visitAnimate(e,i){let n=w1e(e.timings,i.errors);i.currentAnimateTimings=n;let r,s=e.styles?e.styles:Sr({});if(s.type==ct.Keyframes)r=this.visitKeyframes(s,i);else{let o=e.styles,l=!1;if(!o){l=!0;let u={};n.easing&&(u.easing=n.easing),o=Sr(u)}i.currentTime+=n.duration+n.delay;let a=this.visitStyle(o,i);a.isEmptyStep=l,r=a}return i.currentAnimateTimings=null,{type:ct.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let l of r)typeof l=="string"?l===Lo?n.push(l):i.errors.push(Vde(l)):n.push(new Map(Object.entries(l)));let s=!1,o=null;return n.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(o=l.get("easing"),l.delete("easing")),!s)){for(let a of l.values())if(a.toString().indexOf(wj)>=0){s=!0;break}}}),{type:ct.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,s=i.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((l,a)=>{let u=i.collectedStyles.get(i.currentQuerySelector),c=u.get(a),d=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(i.errors.push(Bde(a,c.startTime,c.endTime,s,r)),d=!1),s=c.startTime),d&&u.set(a,{startTime:s,endTime:r}),i.options&&p1e(l,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:ct.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Ude()),n;let r=1,s=0,o=[],l=!1,a=!1,u=0,c=e.steps.map(C=>{let P=this._makeStyleAst(C,i),U=P.offset!=null?P.offset:S1e(P.styles),L=0;return U!=null&&(s++,L=P.offset=U),a=a||L<0||L>1,l=l||L0&&s{let U=h>0?P==f?1:h*P:o[P],L=U*E;i.currentTime=p+v.delay+L,v.duration=L,this._validateStyleAst(C,i),C.offset=U,n.styles.push(C)}),n}visitReference(e,i){return{type:ct.Reference,animation:wr(this,hp(e.animation),i),options:z2(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:ct.AnimateChild,options:z2(e.options)}}visitAnimateRef(e,i){return{type:ct.AnimateRef,animation:this.visitReference(e.animation,i),options:z2(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=I1e(e.selector);i.currentQuerySelector=n.length?n+" "+s:s,xr(i.collectedStyles,i.currentQuerySelector,new Map);let l=wr(this,hp(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:ct.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:l,originalSelector:e.selector,options:z2(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push($de());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Pg(e.timings,i.errors,!0);return{type:ct.Stagger,animation:wr(this,hp(e.animation),i),timings:n,options:null}}};function I1e(t){let e=!!t.split(/\s*,\s*/).find(i=>i==Dj);return e&&(t=t.replace(C1e,"")),t=t.replace(/@\*/g,Ng).replace(/@\w+/g,i=>Ng+"-"+i.slice(1)).replace(/:animating/g,iw),[t,e]}function T1e(t){return t?b({},t):null}var lw=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function S1e(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function w1e(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=Pg(t,e).duration;return XS(s,0,"")}let i=t;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=XS(0,0,"");return s.dynamic=!0,s.strValue=i,s}let r=Pg(i,e);return XS(r.duration,r.delay,r.easing)}function z2(t){return t?(t=b({},t),t.params&&(t.params=T1e(t.params))):t={},t}function XS(t,e,i){return{duration:t,delay:e,easing:i}}function Tw(t,e,i,n,r,s,o=null,l=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:l}}var mp=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},x1e=1,A1e=":enter",D1e=new RegExp(A1e,"g"),O1e=":leave",R1e=new RegExp(O1e,"g");function Rj(t,e,i,n,r,s=new Map,o=new Map,l,a,u=[]){return new aw().buildKeyframes(t,e,i,n,r,s,o,l,a,u)}var aw=class{buildKeyframes(e,i,n,r,s,o,l,a,u,c=[]){u=u||new mp;let d=new uw(e,i,u,r,s,c,[]);d.options=a;let h=a.delay?Pl(a.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,a),wr(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&l.size){let p;for(let v=f.length-1;v>=0;v--){let E=f[v];if(E.element===i){p=E;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([l],null,d.errors,a)}return f.length?f.map(p=>p.buildKeyframes()):[Tw(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Pl(pp(s,r?.params??{},i.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,i,n){let s=i.currentTimeline.currentTime,o=n.duration!=null?Pl(n.duration):null,l=n.delay!=null?Pl(n.delay):null;return o!==0&&e.forEach(a=>{let u=i.appendInstructionToTimeline(a,o,l);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,i){i.updateOptions(e.options,!0),wr(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,s=e.options;if(s&&(s.params||s.delay)&&(r=i.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==ct.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Vg);let o=Pl(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>wr(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,s=e.options&&e.options.delay?Pl(e.options.delay):0;e.steps.forEach(o=>{let l=i.createSubContext(e.options);s&&l.delayNextStep(s),wr(this,o,l),r=Math.max(r,l.currentTimeline.currentTime),n.push(l.currentTimeline)}),n.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?pp(n,i.params,i.errors):n;return Pg(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==ct.Keyframes?this.visitKeyframes(s,i):(i.incrementTime(n.duration),this.visitStyle(s,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,s=n.duration,l=i.createSubContext().currentTimeline;l.easing=n.easing,e.styles.forEach(a=>{let u=a.offset||0;l.forwardTime(u*s),l.setStyles(a.styles,a.easing,i.errors,i.options),l.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(l),i.transformIntoNewTimeline(r+s),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},s=r.delay?Pl(r.delay):0;s&&(i.previousNode.type===ct.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Vg);let o=n,l=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=l.length;let a=null;l.forEach((u,c)=>{i.currentQueryIndex=c;let d=i.createSubContext(e.options,u);s&&d.delayNextStep(s),u===i.element&&(a=d.currentTimeline),wr(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;o=Math.max(o,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),a&&(i.currentTimeline.mergeTimelineCollectedStyles(a),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),l=o*(i.currentQueryTotal-1),a=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=l-a;break;case"full":a=n.currentStaggerTime;break}let c=i.currentTimeline;a&&c.delayNextStep(a);let d=c.currentTime;wr(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},Vg={},uw=class t{constructor(e,i,n,r,s,o,l,a){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Bg(this._driver,i,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Pl(n.duration)),n.delay!=null&&(r.delay=Pl(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(l=>{(!i||!o.hasOwnProperty(l))&&(o[l]=pp(s[l],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Vg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new cw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,s,o){let l=[];if(r&&l.push(this.element),e.length>0){e=e.replace(D1e,"."+this._enterClassName),e=e.replace(R1e,"."+this._leaveClassName);let a=n!=1,u=this._driver.query(this.element,e,a);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push(...u)}return!s&&l.length==0&&o.push(Gde(i)),l}},Bg=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=x1e,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Lo),this._currentKeyframe.set(i,Lo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let s=r&&r.params||{},o=M1e(e,this._globalTimelineStyles);for(let[l,a]of o){let u=pp(a,s,n);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Lo),this._updateStyle(l,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,a)=>{let u=new Map([...this._backFill,...l]);u.forEach((c,d)=>{c===yg?e.add(d):c===Lo&&i.add(d)}),n||u.set("offset",a/this.duration),r.push(u)});let s=[...e.values()],o=[...i.values()];if(n){let l=r[0],a=new Map(l);l.set("offset",0),a.set("offset",1),r=[l,a]}return Tw(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},cw=class extends Bg{constructor(e,i,n,r,s,o,l=!1){super(e,i,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=n+i,l=i/o,a=new Map(e[0]);a.set("offset",0),s.push(a);let u=new Map(e[0]);u.set("offset",mj(l)),s.push(u);let c=e.length-1;for(let d=1;d<=c;d++){let h=new Map(e[d]),f=h.get("offset"),p=i+f*n;h.set("offset",mj(p/o)),s.push(h)}n=o,i=0,r="",e=s}return Tw(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function mj(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function M1e(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)i.set(s,Lo)}else for(let[s,o]of r)i.set(s,o)}),i}function gj(t,e,i,n,r,s,o,l,a,u,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:l,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var QS={},Ug=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return k1e(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,s,o,l,a,u,c){let d=[],h=this.ast.options&&this.ast.options.params||QS,f=l&&l.params||QS,p=this.buildStyles(n,f,d),v=a&&a.params||QS,E=this.buildStyles(r,v,d),C=new Set,P=new Map,U=new Map,L=r==="void",de={params:Mj(v,h),delay:this.ast.options?.delay},V=c?[]:Rj(e,i,this.ast.animation,s,o,p,E,de,u,d),j=0;return V.forEach(me=>{j=Math.max(me.duration+me.delay,j)}),d.length?gj(i,this._triggerName,n,r,L,p,E,[],[],P,U,j,d):(V.forEach(me=>{let We=me.element,_e=xr(P,We,new Set);me.preStyleProps.forEach(qe=>_e.add(qe));let Ue=xr(U,We,new Set);me.postStyleProps.forEach(qe=>Ue.add(qe)),We!==i&&C.add(We)}),gj(i,this._triggerName,n,r,L,p,E,V,[...C.values()],P,U,j))}};function k1e(t,e,i,n,r){return t.some(s=>s(e,i,n,r))}function Mj(t,e){let i=b({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}var dw=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=Mj(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,l)=>{o&&(o=pp(o,r,i));let a=this.normalizer.normalizePropertyName(l,i);o=this.normalizer.normalizeStyleValue(l,a,o,i),n.set(l,o)})}),n}};function N1e(t,e,i){return new hw(t,e,i)}var hw=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new dw(r.style,s,n))}),_j(this.states,"true","1"),_j(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new Ug(e,r,this.states))}),this.fallbackTransition=P1e(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(o=>o.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function P1e(t,e,i){let n=[(o,l)=>!0],r={type:ct.Sequence,steps:[],options:null},s={type:ct.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Ug(t,s,e)}function _j(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var L1e=new mp,fw=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],s=Oj(this._driver,i,n,r);if(n.length)throw Zde(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,i,n){let r=e.element,s=Ij(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],s=this._animations.get(e),o,l=new Map;if(s?(o=Rj(this._driver,i,s,xj,nw,new Map,new Map,n,L1e,r),o.forEach(c=>{let d=xr(l,c.element,new Map);c.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(Xde()),o=[]),r.length)throw Qde(r);l.forEach((c,d)=>{c.forEach((h,f)=>{c.set(f,this._driver.computeStyle(d,f,Lo))})});let a=o.map(c=>{let d=l.get(c.element);return this._buildPlayer(c,new Map,d)}),u=Ya(a);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Jde(e);return i}listen(e,i,n,r){let s=bw(i,"","","");return vw(this._getPlayer(e),n,s,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,i,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},vj="ng-animate-queued",F1e=".ng-animate-queued",JS="ng-animate-disabled",V1e=".ng-animate-disabled",B1e="ng-star-inserted",U1e=".ng-star-inserted",j1e=[],kj={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},H1e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hs="__ng_removed",gp=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=$1e(r),n){let s=e,{value:o}=s,l=el(s,["value"]);this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},fp="void",ew=new gp(fp),pw=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ss(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw e1e(n,i);if(n==null||n.length==0)throw t1e(i);if(!G1e(n))throw n1e(n,i);let s=xr(this._elementListeners,e,[]),o={name:i,phase:n,callback:r};s.push(o);let l=xr(this._engine.statesByElement,e,new Map);return l.has(i)||(ss(e,Dg),ss(e,Dg+"-"+i),l.set(i,ew)),()=>{this._engine.afterFlush(()=>{let a=s.indexOf(o);a>=0&&s.splice(a,1),this._triggers.has(i)||l.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw i1e(e);return i}trigger(e,i,n,r=!0){let s=this._getTrigger(i),o=new _p(this.id,i,e),l=this._engine.statesByElement.get(e);l||(ss(e,Dg),ss(e,Dg+"-"+i),this._engine.statesByElement.set(e,l=new Map));let a=l.get(i),u=new gp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),l.set(i,u),a||(a=ew),!(u.value===fp)&&a.value===u.value){if(!K1e(a.params,u.params)){let v=[],E=s.matchStyles(a.value,a.params,v),C=s.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{$2(e,E),Fo(e,C)})}return}let h=xr(this._engine.playersByElement,e,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let f=s.matchTransition(a.value,u.value,e,u.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:a,toState:u,player:o,isFallbackTransition:p}),p||(ss(e,vj),o.onStart(()=>{W0(e,vj)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);let E=this._engine.playersByElement.get(e);if(E){let C=E.indexOf(o);C>=0&&E.splice(C,1)}}),this.players.push(o),h.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,Ng,!0);n.forEach(r=>{if(r[Hs])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let l=[];if(s.forEach((a,u)=>{if(o.set(u,a.value),this._triggers.has(u)){let c=this.trigger(e,u,fp,r);c&&l.push(c)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),n&&Ya(l).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let a=this._triggers.get(o).fallbackTransition,u=n.get(o)||ew,c=new gp(fp),d=new _p(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:a,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let s=e[Hs];(!s||s===kj)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){ss(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(l=>{if(l.name==n.triggerName){let a=bw(s,n.triggerName,n.fromState.value,n.toState.value);a._data=e,vw(n.player,l.phase,a,l.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mw=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new pw(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,l=this.driver.getParentElement(i);for(;l;){let a=r.get(l);if(a){let u=n.indexOf(a);n.splice(u+1,0,e),o=!0;break}l=this.driver.getParentElement(l)}o||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&i.add(s)}}return i}trigger(e,i,n,r){if(Mg(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Mg(i))return;let s=i[Hs];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ss(e,JS)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),W0(e,JS))}removeNode(e,i,n){if(Mg(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,s){this.collectedLeaveElements.push(i),i[Hs]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,i,n,r,s){return Mg(i)?this._fetchNamespace(e).listen(i,n,r,s):()=>{}}_buildInstruction(e,i,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,s)}destroyInnerAnimations(e){let i=this.driver.query(e,Ng,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,iw,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ya(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Hs];if(i&&i.setForRemoval){if(e[Hs]=kj,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(JS)&&this.markElementAsDisabled(e,!1),this.driver.query(e,V1e,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?Ya(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw r1e(e)}_flushAnimations(e,i){let n=new mp,r=[],s=new Map,o=[],l=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(X=>{c.add(X);let ve=this.driver.query(X,F1e,!0);for(let he=0;he{let he=xj+v++;p.set(ve,he),X.forEach(Ye=>ss(Ye,he))});let E=[],C=new Set,P=new Set;for(let X=0;XC.add(Ye)):P.add(ve))}let U=new Map,L=Ej(h,Array.from(C));L.forEach((X,ve)=>{let he=nw+v++;U.set(ve,he),X.forEach(Ye=>ss(Ye,he))}),e.push(()=>{f.forEach((X,ve)=>{let he=p.get(ve);X.forEach(Ye=>W0(Ye,he))}),L.forEach((X,ve)=>{let he=U.get(ve);X.forEach(Ye=>W0(Ye,he))}),E.forEach(X=>{this.processLeaveNode(X)})});let de=[],V=[];for(let X=this._namespaceList.length-1;X>=0;X--)this._namespaceList[X].drainQueuedTransitions(i).forEach(he=>{let Ye=he.player,Ft=he.element;if(de.push(Ye),this.collectedEnterElements.length){let En=Ft[Hs];if(En&&En.setForMove){if(En.previousTriggersValues&&En.previousTriggersValues.has(he.triggerName)){let cr=En.previousTriggersValues.get(he.triggerName),li=this.statesByElement.get(he.element);if(li&&li.has(he.triggerName)){let ds=li.get(he.triggerName);ds.value=cr,li.set(he.triggerName,ds)}}Ye.destroy();return}}let Ei=!d||!this.driver.containsElement(d,Ft),Yn=U.get(Ft),zi=p.get(Ft),Vt=this._buildInstruction(he,n,zi,Yn,Ei);if(Vt.errors&&Vt.errors.length){V.push(Vt);return}if(Ei){Ye.onStart(()=>$2(Ft,Vt.fromStyles)),Ye.onDestroy(()=>Fo(Ft,Vt.toStyles)),r.push(Ye);return}if(he.isFallbackTransition){Ye.onStart(()=>$2(Ft,Vt.fromStyles)),Ye.onDestroy(()=>Fo(Ft,Vt.toStyles)),r.push(Ye);return}let ea=[];Vt.timelines.forEach(En=>{En.stretchStartingKeyframe=!0,this.disabledNodes.has(En.element)||ea.push(En)}),Vt.timelines=ea,n.append(Ft,Vt.timelines);let Du={instruction:Vt,player:Ye,element:Ft};o.push(Du),Vt.queriedElements.forEach(En=>xr(l,En,[]).push(Ye)),Vt.preStyleProps.forEach((En,cr)=>{if(En.size){let li=a.get(cr);li||a.set(cr,li=new Set),En.forEach((ds,ta)=>li.add(ta))}}),Vt.postStyleProps.forEach((En,cr)=>{let li=u.get(cr);li||u.set(cr,li=new Set),En.forEach((ds,ta)=>li.add(ta))})});if(V.length){let X=[];V.forEach(ve=>{X.push(s1e(ve.triggerName,ve.errors))}),de.forEach(ve=>ve.destroy()),this.reportError(X)}let j=new Map,me=new Map;o.forEach(X=>{let ve=X.element;n.has(ve)&&(me.set(ve,ve),this._beforeAnimationBuild(X.player.namespaceId,X.instruction,j))}),r.forEach(X=>{let ve=X.element;this._getPreviousPlayers(ve,!1,X.namespaceId,X.triggerName,null).forEach(Ye=>{xr(j,ve,[]).push(Ye),Ye.destroy()})});let We=E.filter(X=>Cj(X,a,u)),_e=new Map;yj(_e,this.driver,P,u,Lo).forEach(X=>{Cj(X,a,u)&&We.push(X)});let qe=new Map;f.forEach((X,ve)=>{yj(qe,this.driver,new Set(X),a,yg)}),We.forEach(X=>{let ve=_e.get(X),he=qe.get(X);_e.set(X,new Map([...ve?.entries()??[],...he?.entries()??[]]))});let Rt=[],Nt=[],Gt={};o.forEach(X=>{let{element:ve,player:he,instruction:Ye}=X;if(n.has(ve)){if(c.has(ve)){he.onDestroy(()=>Fo(ve,Ye.toStyles)),he.disabled=!0,he.overrideTotalTime(Ye.totalTime),r.push(he);return}let Ft=Gt;if(me.size>1){let Yn=ve,zi=[];for(;Yn=Yn.parentNode;){let Vt=me.get(Yn);if(Vt){Ft=Vt;break}zi.push(Yn)}zi.forEach(Vt=>me.set(Vt,Ft))}let Ei=this._buildAnimation(he.namespaceId,Ye,j,s,qe,_e);if(he.setRealPlayer(Ei),Ft===Gt)Rt.push(he);else{let Yn=this.playersByElement.get(Ft);Yn&&Yn.length&&(he.parentPlayer=Ya(Yn)),r.push(he)}}else $2(ve,Ye.fromStyles),he.onDestroy(()=>Fo(ve,Ye.toStyles)),Nt.push(he),c.has(ve)&&r.push(he)}),Nt.forEach(X=>{let ve=s.get(X.element);if(ve&&ve.length){let he=Ya(ve);X.setRealPlayer(he)}}),r.forEach(X=>{X.parentPlayer?X.syncPlayerEvents(X.parentPlayer):X.destroy()});for(let X=0;X!Ei.destroyed);Ft.length?W1e(this,ve,Ft):this.processLeaveNode(ve)}return E.length=0,Rt.forEach(X=>{this.players.push(X),X.onDone(()=>{X.destroy();let ve=this.players.indexOf(X);this.players.splice(ve,1)}),X.play()}),Rt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,s){let o=[];if(i){let l=this.playersByQueriedElement.get(e);l&&(o=l)}else{let l=this.playersByElement.get(e);if(l){let a=!s||s==fp;l.forEach(u=>{u.queued||!a&&u.triggerName!=r||o.push(u)})}}return(n||r)&&(o=o.filter(l=>!(n&&n!=l.namespaceId||r&&r!=l.triggerName))),o}_beforeAnimationBuild(e,i,n){let r=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,l=i.isRemovalTransition?void 0:r;for(let a of i.timelines){let u=a.element,c=u!==s,d=xr(n,u,[]);this._getPreviousPlayers(u,c,o,l,i.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}$2(s,i.fromStyles)}_buildAnimation(e,i,n,r,s,o){let l=i.triggerName,a=i.element,u=[],c=new Set,d=new Set,h=i.timelines.map(p=>{let v=p.element;c.add(v);let E=v[Hs];if(E&&E.removedBeforeQueried)return new Ka(p.duration,p.delay);let C=v!==a,P=q1e((n.get(v)||j1e).map(j=>j.getRealPlayer())).filter(j=>{let me=j;return me.element?me.element===v:!1}),U=s.get(v),L=o.get(v),de=Ij(this._normalizer,p.keyframes,U,L),V=this._buildPlayer(p,de,P);if(p.subTimeline&&r&&d.add(v),C){let j=new _p(e,l,v);j.setRealPlayer(V),u.push(j)}return V});u.forEach(p=>{xr(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>z1e(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>ss(p,hj));let f=Ya(h);return f.onDestroy(()=>{c.forEach(p=>W0(p,hj)),Fo(a,i.toStyles)}),d.forEach(p=>{xr(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Ka(e.duration,e.delay)}},_p=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Ka,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>vw(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){xr(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function z1e(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function $1e(t){return t??null}function Mg(t){return t&&t.nodeType===1}function G1e(t){return t=="start"||t=="done"}function bj(t,e){let i=t.style.display;return t.style.display=e??"none",i}function yj(t,e,i,n,r){let s=[];i.forEach(a=>s.push(bj(a)));let o=[];n.forEach((a,u)=>{let c=new Map;a.forEach(d=>{let h=e.computeStyle(u,d,r);c.set(d,h),(!h||h.length==0)&&(u[Hs]=H1e,o.push(u))}),t.set(u,c)});let l=0;return i.forEach(a=>bj(a,s[l++])),o}function Ej(t,e){let i=new Map;if(t.forEach(l=>i.set(l,[])),e.length==0)return i;let n=1,r=new Set(e),s=new Map;function o(l){if(!l)return n;let a=s.get(l);if(a)return a;let u=l.parentNode;return i.has(u)?a=u:r.has(u)?a=n:a=o(u),s.set(l,a),a}return e.forEach(l=>{let a=o(l);a!==n&&i.get(a).push(l)}),i}function ss(t,e){t.classList?.add(e)}function W0(t,e){t.classList?.remove(e)}function W1e(t,e,i){Ya(i).onDone(()=>t.processLeaveNode(e))}function q1e(t){let e=[];return Nj(t,e),e}function Nj(t,e){for(let i=0;ir.add(s)):e.set(t,n),i.delete(t),!0}var K0=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new mw(e.body,i,n),this._timelineEngine=new fw(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,r,s){let o=e+"-"+r,l=this._triggerCache[o];if(!l){let a=[],u=[],c=Oj(this._driver,s,a,u);if(a.length)throw Kde(r,a);u.length&&void 0,l=N1e(r,c,this._normalizer),this._triggerCache[o]=l}this._transitionEngine.registerTrigger(i,r,l)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[s,o]=cj(n),l=r;this._timelineEngine.command(s,i,o,l)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,s){if(n.charAt(0)=="@"){let[o,l]=cj(n);return this._timelineEngine.listen(o,i,l,s)}return this._transitionEngine.listen(e,i,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Y1e(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=tw(e[0]),e.length>1&&(n=tw(e[e.length-1]))):e instanceof Map&&(i=tw(e)),i||n?new gw(t,i,n):null}var q0=class q0{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=q0.initialStylesByElement.get(e);r||q0.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Fo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fo(this._element,this._initialStyles),this._endStyles&&(Fo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(q0.initialStylesByElement.delete(this._element),this._startStyles&&($2(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($2(this._element,this._endStyles),this._endStyles=null),Fo(this._element,this._initialStyles),this._state=3)}};q0.initialStylesByElement=new WeakMap;var gw=q0;function tw(t){let e=null;return t.forEach((i,n)=>{Z1e(n)&&(e=e||new Map,e.set(n,i))}),e}function Z1e(t){return t==="display"||t==="position"}var jg=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Iw(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Hg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return Tj(e,i)}getParentElement(e){return yw(e)}query(e,i,n){return Sj(e,i,n)}computeStyle(e,i,n){return Iw(e,i)}animate(e,i,n,r,s,o=[]){let l=r==0?"both":"forwards",a={duration:n,delay:r,fill:l};s&&(a.easing=s);let u=new Map,c=o.filter(f=>f instanceof jg);g1e(n,r)&&c.forEach(f=>{f.currentSnapshot.forEach((p,v)=>u.set(v,p))});let d=f1e(i).map(f=>new Map(f));d=_1e(e,d,u);let h=Y1e(e,d);return new jg(e,d,a,h)}};var kg="@",Pj="@.disabled",zg=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==kg&&i==Pj?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},_w=class extends zg{constructor(e,i,n,r,s){super(i,n,r,s),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==kg?i.charAt(1)=="."&&i==Pj?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==kg){let r=X1e(e),s=i.slice(1),o="";return s.charAt(0)!=kg&&([s,o]=Q1e(s)),this.engine.listen(this.namespaceId,r,s,o,l=>{let a=l._data||-1;this.factory.scheduleListenerCallback(a,n,l)})}return this.delegate.listen(e,i,n)}};function X1e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Q1e(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var $g=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let u=this._rendererCache,c=u.get(r);if(!c){let d=()=>u.delete(r);c=new zg(n,r,this.engine,d),u.set(r,c)}return c}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,o,e,u.name,u)};return i.data.animation.forEach(l),new _w(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,l]=s;o(l)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var e4e=(()=>{let e=class e extends K0{constructor(n,r,s){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(x(Ne),x(G2),x(W2))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function t4e(){return new Lg}function n4e(t,e,i){return new $g(t,e,i)}var Fj=[{provide:W2,useFactory:t4e},{provide:K0,useClass:e4e},{provide:ma,useFactory:n4e,deps:[e7,K0,le]}],Lj=[{provide:G2,useFactory:()=>new Hg},{provide:Tn,useValue:"BrowserAnimations"},...Fj],i4e=[{provide:G2,useClass:Ew},{provide:Tn,useValue:"NoopAnimations"},...Fj],Vj=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?i4e:Lj}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:Lj,imports:[n7]});let t=e;return t})();var r4e=["editor"];var s4e="MONACO_PATH",ww=(()=>{class t{constructor(i,n){if(this.ngZone=i,this.monacoPathConfig=n,this.isMonacoLoaded$=new Ci(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized){i.run(()=>this.isMonacoLoaded$.next(!0));return}window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco()}set monacoPath(i){i&&(this._monacoPath=i)}loadMonaco(){let i=()=>{let o=this._monacoPath;window.amdRequire=window.require;let l=!!this.nodeRequire,a=o.includes("http");l&&(window.require=this.nodeRequire,a||(o=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:o}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},u=>console.error("Error loading monaco-editor: ",u))};if(!!window.amdRequire)return i();!!window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);let s=document.createElement("script");s.type="text/javascript",s.src=`${this._monacoPath}/loader.js`,s.addEventListener("load",i),document.body.appendChild(s)}addElectronFixScripts(){let i=document.createElement("script"),n=document.createTextNode("self.module = undefined;"),r=document.createTextNode("self.process.browser = true;");i.appendChild(n),i.appendChild(r),document.body.appendChild(i)}}return t.\u0275fac=function(i){return new(i||t)(x(le),x(s4e,8))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Y0=(()=>{class t{constructor(i){this.monacoLoader=i,this.init=new Se,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Ge(i=>i),en(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(i){if(this.editor&&i.options&&!i.options.firstChange){let n=i.options.currentValue,{language:r,theme:s}=n,o=el(n,["language","theme"]),{language:l,theme:a}=i.options.previousValue;l!==r&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),a!==s&&monaco.editor.setTheme(s),this.editor.updateOptions(o)}if(this.editor&&i.uri){let r=i.uri.currentValue,s=i.uri.previousValue;if(s&&!r||!s&&r||r&&s&&r.path!==s.path){let o=this.editor.getValue();this.modelUriInstance&&this.modelUriInstance.dispose();let l;r&&(l=monaco.editor.getModels().find(a=>a.uri.path===r.path)),this.modelUriInstance=l||monaco.editor.createModel(o,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(i){this.value=i,this.editor&&i?this.editor.setValue(i):this.editor&&this.editor.setValue("")}registerOnChange(i){this.propagateChange=i}registerOnTouched(i){this.onTouched=i}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(i){this.onErrorStatusChange=i}initEditor(){let i={value:[this.value].join(` +`),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?b(b({},i),this.options):i),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{let i=this.modelMarkers.map(({message:r})=>r).join("|");this.parsedError!==i&&(this.parsedError=i,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return t.\u0275fac=function(i){return new(i||t)(I(ww))},t.\u0275cmp=Me({type:t,selectors:[["ngx-monaco-editor"]],viewQuery:function(i,n){if(i&1&&Et(r4e,7),i&2){let r;nt(r=it())&&(n.editorContent=r.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[mn([{provide:Zm,useExisting:vs(()=>t),multi:!0},{provide:oS,useExisting:vs(()=>t),multi:!0}]),In],decls:4,vars:0,consts:[["container",""],["editor",""],["fxFlex","",1,"editor-container"],[1,"monaco-editor"]],template:function(i,n){i&1&&(R(0,"div",2,0),pe(2,"div",3,1),F())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),t})();var Bj=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({imports:[[]]}),t})();var xw=class{constructor(e){this.options=e,e.vcr?this.ref=e.vcr.createComponent(e.component,{index:e.vcr.length,injector:e.injector||e.vcr.injector}):(this.ref=Qk(e.component,{elementInjector:e.injector,environmentInjector:e.environmentInjector}),e.appRef.attachView(this.ref.hostView))}setInput(e,i){return this.ref.setInput(e,i),this}setInputs(e){return Object.keys(e).forEach(i=>{this.ref.setInput(i,e[i])}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(e){return this.options.contextSignal?.set(e),this}appendTo(e){return e.appendChild(this.getElement()),this}removeFrom(e){return e.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null}};function vp(t){return t instanceof xt}function q2(t){return typeof t=="function"}function Uj(t){return typeof t=="string"}var Aw=class{constructor(e){this.args=e,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:e.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},e.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref))}detectChanges(){return this.ref.detectChanges(),this}getElement(){let e=this.ref.rootNodes;return e.length===1&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),this.element.append(...e)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null}updateContext(e){return Object.assign(this.ref.context,e),this}},Dw=class{constructor(e){this.value=e}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},o4e=new Z("Component context"),Ow=(()=>{let e=class e{constructor(){this.injector=Y(ze),this.appRef=Y(Ji),this.environmentInjector=Y(Oi)}createComponent(n,r={}){let s=r.injector??this.injector,o;return r.context&&(o=ba(r.context),s=ze.create({providers:[{provide:o4e,useValue:o.asReadonly()}],parent:s})),new xw({component:n,vcr:r.vcr,injector:s,appRef:this.appRef,environmentInjector:r.environmentInjector||this.environmentInjector,contextSignal:o})}createTemplate(n,r={}){return new Aw({vcr:r.vcr,appRef:this.appRef,tpl:n,context:r.context,injector:r.injector})}createView(n,r={}){if(vp(n))return this.createTemplate(n,r);if(q2(n))return this.createComponent(n,r);if(Uj(n))return new Dw(n);throw"Type of content is not supported"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var l4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["dynamic-view"]],inputs:{content:"content"},standalone:!0,features:[ot],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(r,s){r&1&&pe(0,"div",0),r&2&&J("innerHTML",s.content,Gy)},encapsulation:2});let t=e;return t})(),Rw=(()=>{let e=class e{constructor(){this.defaultTpl=Y(xt),this.vcr=Y(Bt),this.viewService=Y(Ow)}ngOnInit(){this.resolveContentType()}ngOnChanges(n){let r=n.view&&!n.view.isFirstChange(),s=n.context&&!n.context.isFirstChange(),o=n.inputs&&!n.inputs.isFirstChange();r?this.resolveContentType():s?this.viewRef.updateContext(this.context):q2(this.view)&&o&&this.viewRef.setInputs(this.inputs||{})}resolveContentType(){this.viewRef?.destroy(),Uj(this.view)?(this.viewRef=this.viewService.createComponent(l4e,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):q2(this.view)?(this.viewRef=this.viewService.createComponent(this.view,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context}),this.inputs&&this.viewRef.setInputs(this.inputs)):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["","dynamicView",""]],inputs:{view:[0,"dynamicView","view"],injector:[0,"dynamicViewInjector","injector"],context:[0,"dynamicViewContext","context"],inputs:[0,"dynamicViewInputs","inputs"]},standalone:!0,features:[In]});let t=e;return t})();var u4e=(t,e)=>({"border-color":t,"border-right-color":e});function c4e(t,e){if(t&1&&(k(0,` + `),pe(1,"hot-toast-loader",1),k(2,` + `)),t&2){let i=ne(2);G(),J("theme",i.theme)}}function d4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),pe(3,"hot-toast-error",1),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function h4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),pe(3,"hot-toast-checkmark",1),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function f4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),pe(3,"hot-toast-warning",1),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function p4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),pe(3,"hot-toast-info",1),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(3);G(3),J("theme",i.theme)}}function m4e(t,e){if(t&1&&(k(0,` + `),R(1,"div",2),k(2,` + `),R(3,"div"),k(4,` + `),ke(5,d4e,6,1)(6,h4e,6,1)(7,f4e,6,1)(8,p4e,6,1),k(9,` + `),F(),k(10,` + `),F(),k(11,` + `)),t&2){let i,n=ne(2);G(5),Pn((i=n.type)==="error"?5:i==="success"?6:i==="warning"?7:i==="info"?8:-1)}}function g4e(t,e){if(t&1&&(k(0,` +`),R(1,"div",0),k(2,` + `),ke(3,c4e,3,1)(4,m4e,12,1),F(),k(5,` +`)),t&2){let i=ne();G(3),Pn(i.type==="loading"?3:-1),G(),Pn(i.type!=="loading"?4:-1)}}var _4e=["*"],zj=["hotToastBarBase"];function v4e(t,e){if(t&1&&(k(0,` + `),R(1,"hot-toast-animated-icon",7),k(2),F(),k(3,` + `)),t&2){let i=ne(2);G(),J("iconTheme",i.toast.iconTheme),G(),Fn(i.toast.icon)}}function b4e(t,e){t&1&&Dn(0)}function y4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),ke(3,b4e,1,0,"ng-container",8),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(2);G(3),J("dynamicView",i.toast.icon)}}function E4e(t,e){if(t&1&&(k(0," "),ke(1,v4e,4,2)(2,y4e,6,1)),t&2){let i=ne();G(),Pn(i.isIconString?1:2)}}function C4e(t,e){if(t&1&&(k(0,` + `),pe(1,"hot-toast-indicator",9),k(2,` + `)),t&2){let i=ne();G(),J("theme",i.toast.iconTheme)("type",i.toast.type)}}function I4e(t,e){t&1&&Dn(0)}function T4e(t,e){if(t&1){let i=mt();k(0,` + `),R(1,"button",10),be("click",function(){ae(i);let r=ne();return ue(r.close())}),F(),k(2,` + `)}if(t&2){let i=ne();G(),J("ngStyle",i.toast.closeStyle)}}var S4e=(t,e)=>e.id;function w4e(t,e){if(t&1&&(k(0,` + `),R(1,"hot-toast-animated-icon",8),k(2),F(),k(3,` + `)),t&2){let i=ne(2);G(),J("iconTheme",i.toast.iconTheme),G(),Fn(i.toast.icon)}}function x4e(t,e){t&1&&Dn(0)}function A4e(t,e){if(t&1&&(k(0,` + `),R(1,"div"),k(2,` + `),ke(3,x4e,1,0,"ng-container",9),k(4,` + `),F(),k(5,` + `)),t&2){let i=ne(2);G(3),J("dynamicView",i.toast.icon)}}function D4e(t,e){if(t&1&&(k(0," "),ke(1,w4e,4,2)(2,A4e,6,1)),t&2){let i=ne();G(),Pn(i.isIconString?1:2)}}function O4e(t,e){if(t&1&&(k(0,` + `),pe(1,"hot-toast-indicator",10),k(2,` + `)),t&2){let i=ne();G(),J("theme",i.toast.iconTheme)("type",i.toast.type)}}function R4e(t,e){t&1&&Dn(0)}function M4e(t,e){if(t&1){let i=mt();k(0,` + `),R(1,"button",11),be("click",function(){ae(i);let r=ne();return ue(r.toggleToastGroup())}),F(),k(2,` + `)}if(t&2){let i=ne();G(),ut("expanded",i.isExpanded),J("ngStyle",i.toast.group.btnStyle),Tt("aria-label",i.isExpanded?"Collapse":"Expand")}}function k4e(t,e){if(t&1){let i=mt();k(0,` + `),R(1,"button",12),be("click",function(){ae(i);let r=ne();return ue(r.close())}),F(),k(2,` + `)}if(t&2){let i=ne();G(),J("ngStyle",i.toast.closeStyle)}}function N4e(t,e){if(t&1){let i=mt();k(0,` + `),R(1,"hot-toast-group-item",13),be("height",function(r){let s=ae(i).$implicit,o=ne();return ue(o.updateHeight(r,s))})("beforeClosed",function(){let r=ae(i).$implicit,s=ne();return ue(s.beforeClosedGroupItem(r))})("afterClosed",function(r){ae(i);let s=ne();return ue(s.afterClosedGroupItem(r))}),F(),k(2,` + `)}if(t&2){let i=e.$implicit,n=e.$index,r=ne();G(),J("toast",i)("offset",r.calculateOffset(i.id))("toastRef",r.toastRef.groupRefs[n])("toastsAfter",(i.autoClose?r.groupChildrenToasts.length:r.visibleToasts.length)-1-n)("defaultConfig",r.defaultConfig)("isShowingAllToasts",r.isShowingAllToasts)}}function P4e(t,e){}function L4e(t,e){if(t&1){let i=mt();k(0,` + `),R(1,"hot-toast",2),be("showAllToasts",function(r){ae(i);let s=ne(2);return ue(s.showAllToasts(r))})("height",function(r){ae(i);let s=ne().$implicit,o=ne();return ue(o.updateHeight(r,s))})("beforeClosed",function(){ae(i);let r=ne().$implicit,s=ne();return ue(s.beforeClosed(r))})("afterClosed",function(r){ae(i);let s=ne(2);return ue(s.afterClosed(r))})("toggleGroup",function(r){ae(i);let s=ne(2);return ue(s.toggleGroup(r))}),F(),k(2,` + `)}if(t&2){let i=ne(),n=i.$implicit,r=i.$index,s=ne();G(),J("toast",n)("offset",s.calculateOffset(n.id,n.position))("toastRef",s.toastRefs[r])("toastsAfter",(n.autoClose?s.toasts.length:s.getVisibleToasts(n.position).length)-1-r)("defaultConfig",s.defaultConfig)("isShowingAllToasts",s.isShowingAllToasts)}}function F4e(t,e){if(t&1&&(k(0," "),ke(1,P4e,0,0)(2,L4e,3,6)),t&2){let i=e.$implicit;G(),Pn(i.group!=null&&i.group.parent?1:2)}}var jj={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},Z0=800,Wg=350,V4e=8,kw=.05,B4e=1,K2=class{constructor(e){this.toast=e,this.groupRefs=[],this.groupExpanded=!1,this._onClosed=new te,this._onGroupToggle=new te}set data(e){this.toast.data=e}get data(){return this.toast.data}set dispose(e){this._dispose=e}getToast(){return this.toast}appendTo(e,i){let{dispose:n,updateMessage:r,updateToast:s,afterClosed:o,afterGroupToggled:l,afterGroupRefsAttached:a}=e.addToast(this,i);return this.dispose=n,this.updateMessage=r,this.updateToast=s,this.afterClosed=l8(this._onClosed.asObservable(),o),this.afterGroupToggled=l8(this._onGroupToggle.asObservable(),l),this.afterGroupRefsAttached=a,this}close(e={dismissedByAction:!1}){this.groupRefs.forEach(i=>i.close()),this._dispose(),this._onClosed.next({dismissedByAction:e.dismissedByAction,id:this.toast.id}),this._onClosed.complete()}toggleGroup(e={byAction:!1}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:e.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"})}},X0=(t,e)=>{t.style.animation=e},U4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(r,s){r&1&&(pe(0,"div",0),k(1,` +`)),r&2&&J("ngStyle",ih(1,u4e,s.theme==null?null:s.theme.primary,s.theme==null?null:s.theme.secondary))},dependencies:[tr,dh],encapsulation:2,changeDetection:0});let t=e;return t})(),j4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),k(1,` +`)),r&2&&an("--error-primary",s.theme==null?null:s.theme.primary)("--error-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),H4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),k(1,` +`)),r&2&&an("--check-primary",s.theme==null?null:s.theme.primary)("--check-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),z4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),k(1,` +`)),r&2&&an("--warn-primary",s.theme==null?null:s.theme.primary)("--warn-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),$4e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},standalone:!0,features:[ot],decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(r,s){r&1&&(pe(0,"div",0),k(1,` +`)),r&2&&an("--warn-primary",s.theme==null?null:s.theme.primary)("--warn-secondary",s.theme==null?null:s.theme.secondary)},encapsulation:2,changeDetection:0});let t=e;return t})(),$j=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},standalone:!0,features:[ot],decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(r,s){r&1&&ke(0,g4e,6,2),r&2&&Pn(s.type!=="blank"?0:-1)},dependencies:[U4e,j4e,H4e,z4e,$4e],encapsulation:2,changeDetection:0});let t=e;return t})(),Gj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},standalone:!0,features:[ot],ngContentSelectors:_4e,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(r,s){r&1&&(ei(),R(0,"div",0),k(1,` + `),Ln(2),k(3,` +`),F(),k(4,` +`)),r&2&&an("color",s.iconTheme==null?null:s.iconTheme.primary)},encapsulation:2,changeDetection:0});let t=e;return t})(),G4e=(()=>{let e=class e{get toastsAfter(){return this._toastsAfter}set toastsAfter(n){this._toastsAfter=n}constructor(n,r,s,o){this.injector=n,this.renderer=r,this.ngZone=s,this.cdr=o,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new Se,this.beforeClosed=new Se,this.afterClosed=new Se,this.showAllToasts=new Se,this.toggleGroup=new Se,this.isManualClose=!1,this.unlisteners=[],this.softClosed=!1}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-kw+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let n=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",s=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return b(b({transform:r},n),s)}get toastBarBaseStyles(){let n=`hotToastEnterAnimation${this.top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`,s=this.toast.autoClose?`${n}, ${r}`:n;return ee(b({},this.toast.style),{animation:s})}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef.groupRefs}set groupChildrenToastRefs(n){this.toastRef.groupRefs=n}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(n=>n.getToast())}get groupHeight(){return this.visibleToasts.map(n=>n.height).reduce((n,r)=>n+r,0)}get isExpanded(){return this.toastRef.groupExpanded}ngOnChanges(n){n.toast&&!n.toast.firstChange&&n.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}ngOnInit(){vp(this.toast.message)&&(this.context={$implicit:this.toastRef}),q2(this.toast.message)&&(this.toastComponentInjector=ze.create({providers:[{provide:K2,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){let n=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(n.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(n,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(n,"animationend",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){let n=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!0}softOpen(){let n=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!1}close(){this.isManualClose=!0;let n=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(n){return n.animationName.includes("hotToastExitAnimation")}setToastAttributes(){let n=this.toast.attributes;for(let[r,s]of Object.entries(n))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,s)}get visibleToasts(){return this.groupChildrenToasts.filter(n=>n.visible)}};e.\u0275fac=function(r){return new(r||e)(I(ze),I(Pi),I(le),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-group-item"]],viewQuery:function(r,s){if(r&1&&Et(zj,5),r&2){let o;nt(o=it())&&(s.toastBarBase=o.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[In,ot],decls:21,vars:21,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1),k(1,` + `),R(2,"div",2),be("mouseenter",function(){return ae(o),ue(s.handleMouseEnter())})("mouseleave",function(){return ae(o),ue(s.handleMouseLeave())}),k(3,` + `),R(4,"div",3,0),k(6,` + `),R(7,"div",4),k(8,` + `),ke(9,E4e,3,1)(10,C4e,3,2),F(),k(11,` + `),R(12,"div",5),k(13,` + `),ke(14,I4e,1,0,"ng-container",6),k(15,` + `),F(),k(16,` + `),ke(17,T4e,3,1),F(),k(18,` + `),F(),k(19,` +`),F(),k(20,` +`)}r&2&&(an("--hot-toast-scale",s.scale)("--hot-toast-translate-y",s.translateY),J("ngStyle",s.containerPositionStyle)("ngClass","hot-toast-theme-"+s.toast.theme),G(4),an("--hot-toast-animation-state",s.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",s.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",s.exitAnimationDelay),J("ngStyle",s.toastBarBaseStyles)("ngClass",s.toast.className),Tt("aria-live",s.toast.ariaLive)("role",s.toast.role),G(5),Pn(s.toast.icon!==void 0?9:10),G(5),J("dynamicView",s.toast.message)("dynamicViewContext",s.context)("dynamicViewInjector",s.toastComponentInjector),G(3),Pn(s.toast.dismissible?17:-1))},dependencies:[Fc,dh,Gj,$j,Rw],encapsulation:2,changeDetection:0});let t=e;return t})(),Hj=(()=>{let e=class e{get toastsAfter(){return this._toastsAfter}set toastsAfter(n){this._toastsAfter=n,this.defaultConfig?.visibleToasts>0&&(this.toast.autoClose||(n>=this.defaultConfig?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()))}constructor(n,r,s,o){this.injector=n,this.renderer=r,this.ngZone=s,this.cdr=o,this.offset=0,this._toastsAfter=0,this.isShowingAllToasts=!1,this.height=new Se,this.beforeClosed=new Se,this.afterClosed=new Se,this.showAllToasts=new Se,this.toggleGroup=new Se,this.isManualClose=!1,this.isExpanded=!1,this.unlisteners=[],this.softClosed=!1,this.groupRefs=[]}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig.stacking!=="vertical"&&!this.isShowingAllToasts?this.toastsAfter*-kw+1:1}get translateY(){return this.offset*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let n=this.top?{top:0}:{bottom:0},r="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",s=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return b(b({transform:r},n),s)}get toastBarBaseStyles(){let n=`hotToastEnterAnimation${this.top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`,s=this.toast.autoClose?`${n}, ${r}`:n;return ee(b({},this.toast.style),{animation:s})}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs}set groupChildrenToastRefs(n){this.groupRefs=n,this.toastRef.groupRefs=n}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(n=>n.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig.visibleToasts).map(n=>n.height).reduce((n,r)=>n+r,0)}get visibleToasts(){return this.groupChildrenToasts.filter(n=>n.visible)}ngDoCheck(){this.toastRef.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=this.toastRef.groupRefs.slice(),this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded)),this.toastRef.groupExpanded!==this.isExpanded&&(this.isExpanded=this.toastRef.groupExpanded,this.cdr.detectChanges(),this.emiHeightWithGroup(this.isExpanded))}ngOnChanges(n){n.toast&&!n.toast.firstChange&&n.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded)}ngOnInit(){vp(this.toast.message)&&(this.context={$implicit:this.toastRef}),q2(this.toast.message)&&(this.toastComponentInjector=ze.create({providers:[{provide:K2,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){let n=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(n.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(n,"animationstart",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(n,"animationend",r=>{this.isExitAnimation(r)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}softClose(){let n=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!0,this.isExpanded&&this.toggleToastGroup()}softOpen(){let n=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${Wg}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,r=this.toastBarBase.nativeElement;X0(r,n),this.softClosed=!1}close(){this.isManualClose=!0;let n=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${Z0}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,r=this.toastBarBase.nativeElement;X0(r,n)}handleMouseEnter(){this.showAllToasts.emit(!0)}handleMouseLeave(){this.showAllToasts.emit(!1)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(n){return n.animationName.includes("hotToastExitAnimation")}setToastAttributes(){let n=this.toast.attributes;for(let[r,s]of Object.entries(n))this.renderer.setAttribute(this.toastBarBase.nativeElement,r,s)}calculateOffset(n){let r=this.visibleToasts,s=r.findIndex(l=>l.id===n);return s!==-1?r.slice(...this.defaultConfig.reverseOrder?[s+1]:[0,s]).reduce((l,a,u)=>this.defaultConfig.visibleToasts!==0&&us.id===n.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(s=>s.getToast().id!==n.id),this.cdr.detectChanges())}toggleToastGroup(){let n=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:!0,event:n,id:this.toast.id}),this.emiHeightWithGroup(n==="expand")}emiHeightWithGroup(n){requestAnimationFrame(n?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight)}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight)})}};e.\u0275fac=function(r){return new(r||e)(I(ze),I(Pi),I(le),I(Wt))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast"]],viewQuery:function(r,s){if(r&1&&Et(zj,5),r&2){let o;nt(o=it())&&(s.toastBarBase=o.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef",toastsAfter:"toastsAfter",isShowingAllToasts:"isShowingAllToasts"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},standalone:!0,features:[In,ot],decls:27,vars:27,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["role","list",1,"hot-toast-bar-base-group",3,"ngClass"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click","ngStyle"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click","ngStyle"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,s){if(r&1){let o=mt();R(0,"div",1),k(1,` + `),R(2,"div",2),be("mouseenter",function(){return ae(o),ue(s.handleMouseEnter())})("mouseleave",function(){return ae(o),ue(s.handleMouseLeave())}),k(3,` + `),R(4,"div",3,0),k(6,` + `),R(7,"div",4),k(8,` + `),ke(9,D4e,3,1)(10,O4e,3,2),F(),k(11,` + + `),R(12,"div",5),k(13,` + `),ke(14,R4e,1,0,"ng-container",6),k(15,` + `),F(),k(16,` + + `),ke(17,M4e,3,4)(18,k4e,3,1),F(),k(19,` + + `),R(20,"div",7),k(21,` + `),o2(22,N4e,3,6,null,null,S4e),F(),k(24,` + `),F(),k(25,` +`),F(),k(26,` +`)}r&2&&(an("--hot-toast-scale",s.scale)("--hot-toast-translate-y",s.translateY),J("ngStyle",s.containerPositionStyle)("ngClass","hot-toast-theme-"+s.toast.theme),G(2),ut("expanded",s.isExpanded),G(2),an("--hot-toast-animation-state",s.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",s.isShowingAllToasts?"paused":"running")("--hot-toast-exit-animation-delay",s.exitAnimationDelay),J("ngStyle",s.toastBarBaseStyles)("ngClass",s.toast.className),Tt("aria-live",s.toast.ariaLive)("role",s.toast.role),G(5),Pn(s.toast.icon!==void 0?9:10),G(5),J("dynamicView",s.toast.message)("dynamicViewContext",s.context)("dynamicViewInjector",s.toastComponentInjector),G(3),Pn(s.toast.group!=null&&s.toast.group.expandAndCollapsible&&(s.toast.group!=null&&s.toast.group.children)&&s.visibleToasts.length>0?17:-1),G(),Pn(s.toast.dismissible?18:-1),G(2),an("--hot-toast-group-height",s.groupHeight+"px"),J("ngClass",s.toast.group==null?null:s.toast.group.className),G(2),l2(s.groupChildrenToasts))},dependencies:[tr,Fc,dh,Rw,$j,Gj,G4e],encapsulation:2,changeDetection:0});let t=e;return t})(),W4e=(()=>{let e=class e{constructor(n,r){this.cdr=n,this.toastService=r,this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=!1,this._onClosed=new te,this._onGroupToggle=new te,this._onGroupRefAttached=new te,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable()}trackById(n,r){return r.id}getVisibleToasts(n){return this.unGroupedToasts.filter(r=>r.visible&&r.position===n)}get unGroupedToasts(){return this.toasts.filter(n=>n.group?.parent===void 0||n.group?.children===void 0||n.group?.children.length===0)}calculateOffset(n,r){let s=this.getVisibleToasts(r),o=s.findIndex(a=>a.id===n);return o!==-1?s.slice(...this.defaultConfig.reverseOrder?[o+1]:[0,o]).reduce((a,u,c)=>{let d=s.length-1-c;return this.defaultConfig.visibleToasts!==0&&cthis.defaultConfig.visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig.visibleToasts).forEach(l=>{l.autoClose&&this.closeToast(l.id)}),this.cdr.detectChanges(),this.attachGroupRefs(s,n,r),{dispose:()=>{this.closeToast(s.id)},updateMessage:o=>{s.message=o,this.updateToasts(s),this.cdr.detectChanges()},updateToast:o=>{this.updateToasts(s,o),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(s),afterGroupToggled:this.getAfterGroupToggled(s),afterGroupRefsAttached:this.getAfterGroupRefsAttached(s).pipe(st(o=>o.groupRefs))}}attachGroupRefs(n,r,s){return K(this,null,function*(){let o=[];if(n.group){if(n.group.children){o=yield this.createGroupRefs(n,r);let l=this.toastRefs.findIndex(a=>a.getToast().id===n.id);l>-1&&(this.toastRefs[l].groupRefs=o,this.cdr.detectChanges(),this._onGroupRefAttached.next({groupRefs:o,id:n.id}))}else if(n.group.parent&&!s){let a=n.group.parent.getToast(),u=this.toastRefs.findIndex(d=>d.getToast().id===a.id),c=this.toasts.findIndex(d=>d.id===a.id);if(u>-1&&c>-1){this.toastRefs[u].groupRefs.push(r);let d=this.toasts[u].group??{},h=this.toasts[u].group?.children??[];h.push({options:ee(b({},n),{type:n.type,message:n.message})}),d.children=h,this.toasts[u].group=b({},d),this.cdr.detectChanges(),this._onGroupRefAttached.next({groupRefs:o,id:a.id})}}}})}createGroupRefs(n,r){return new Promise(o=>{let a=n.group.children.map(u=>new Promise(c=>{u.options.group={parent:r},setTimeout(()=>{let d=this.toastService.show(u.options.message,u.options,!0);c(d)})}));Promise.all(a).then(u=>o(u))})}closeToast(n){if(n){let r=this.hotToastComponentList.find(s=>s.toast.id===n);r&&r.close()}else this.hotToastComponentList.forEach(r=>r.close())}beforeClosed(n){n.visible=!1}afterClosed(n){this.toasts.findIndex(s=>s.id===n.id)>-1&&(this._onClosed.next(n),this.toasts=this.toasts.filter(s=>s.id!==n.id),this.toastRefs=this.toastRefs.filter(s=>s.getToast().id!==n.id),this.cdr.detectChanges())}toggleGroup(n){let r=this.toastRefs.findIndex(s=>s.getToast().id===n.id);r>-1&&(this._onGroupToggle.next(n),this.toastRefs[r].groupExpanded=n.event==="expand",this.cdr.detectChanges())}hasToast(n){return this.toasts.findIndex(r=>r.id===n)>-1}showAllToasts(n){this.isShowingAllToasts=n}getAfterClosed(n){return this.onClosed$.pipe(Ge(r=>r.id===n.id))}getAfterGroupToggled(n){return this.onGroupToggle$.pipe(Ge(r=>r.id===n.id))}getAfterGroupRefsAttached(n){return this.onGroupRefAttached$.pipe(Ge(r=>r.id===n.id))}updateToasts(n,r){this.toasts=this.toasts.map(s=>b(b({},s),s.id===n.id&&b(b({},n),r)))}};e.\u0275fac=function(r){return new(r||e)(I(Wt),I(Nw))},e.\u0275cmp=Me({type:e,selectors:[["hot-toast-container"]],viewQuery:function(r,s){if(r&1&&Et(Hj,5),r&2){let o;nt(o=it())&&(s.hotToastComponentList=o)}},inputs:{defaultConfig:"defaultConfig"},standalone:!0,features:[ot],decls:11,vars:0,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(r,s){r&1&&(R(0,"div",0),k(1,` + `),R(2,"div",1),k(3,` + `),R(4,"div"),k(5,` + `),o2(6,F4e,3,1,null,null,s.trackById,!0),F(),k(8,` + `),F(),k(9,` +`),F(),k(10,` +`)),r&2&&(G(6),l2(s.toasts))},dependencies:[Hj],encapsulation:2,changeDetection:0});let t=e;return t})(),bp=class{constructor(){this.reverseOrder=!1,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}},q4e=t=>typeof t=="function",K4e=t=>typeof t=="function"&&t.decorators&&t.decorators.some(e=>e.type===Uk),Y4e=(t,e)=>K4e(t)?t:q4e(t)?t(e):t,Mw=class{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=!1}},Nw=(()=>{let e=class e{constructor(n,r,s){this._viewService=n,this.platformId=r,this._isInitialized=!1,this._defaultGlobalConfig=new bp,this._defaultPersistConfig=new Mw,s&&(this._defaultGlobalConfig=b(b({},this._defaultGlobalConfig),s))}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(n){this._defaultGlobalConfig=b(b({},this._defaultGlobalConfig),n),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig)}show(n,r,s){return this.createToast({message:n||this._defaultGlobalConfig.blank.content,type:r?.type??"blank",options:b(b({},this._defaultGlobalConfig),r),skipAttachToParent:s})}error(n,r){return this.createToast({message:n||this._defaultGlobalConfig.error.content,type:"error",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),r)})}success(n,r){return this.createToast({message:n||this._defaultGlobalConfig.success.content,type:"success",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),r)})}loading(n,r){return this.createToast({message:n||this._defaultGlobalConfig.loading.content,type:"loading",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),r)})}warning(n,r){return this.createToast({message:n||this._defaultGlobalConfig.warning.content,type:"warning",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),r)})}info(n,r){return this.createToast({message:n||this._defaultGlobalConfig.info.content,type:"info",options:b(b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),r)})}observe(n){return r=>{let s,o=0,l=n.loading??this._defaultGlobalConfig.loading?.content,a=n.success??this._defaultGlobalConfig.success?.content,u=n.error??this._defaultGlobalConfig.error?.content;return io(()=>(l&&(s=this.createLoadingToast(l),o=Date.now()),r.pipe(Mn(b(b({},a&&{next:c=>{s=this.createOrUpdateToast(n,c,s,"success",o===0?o:Date.now()-o)}}),u&&{error:c=>{s=this.createOrUpdateToast(n,c,s,"error",o===0?o:Date.now()-o)}})))))}}close(n){this._componentRef&&this._componentRef.ref.instance.closeToast(n)}init(){Uc(this.platformId)||(this._componentRef=this._viewService.createComponent(W4e).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body))}createOrUpdateToast(n,r,s,o,l){try{let a=null,u={};if({content:a,options:u}=this.getContentAndOptions(o,n[o]||(this._defaultGlobalConfig[o]?this._defaultGlobalConfig[o].content:"")),a=Y4e(a,r),s){u.data&&(s.data=u.data),s.updateMessage(a);let c=b(b({type:o,duration:l+jj[o]},u),u.duration&&{duration:l+u.duration});s.updateToast(c)}else this.createToast({message:a,type:o,options:u});return s}catch(a){console.error(a)}}createToast({message:n,type:r,options:s,observableMessages:o,skipAttachToParent:l}){this._isInitialized||(this._isInitialized=!0,this.init());let a=Date.now(),u=s?.id??a.toString();if(!this.isDuplicate(u)&&(!s.persist?.enabled||s.persist?.enabled&&this.handleStorageValue(u,s))){let c=b({ariaLive:s?.ariaLive??"polite",createdAt:a,duration:s?.duration??jj[r],id:u,message:n,role:s?.role??"status",type:r,visible:!0,observableMessages:o??void 0},s);return new K2(c).appendTo(this._componentRef.ref.instance,l)}}isDuplicate(n){return this._componentRef.ref.instance.hasToast(n)}handleStorageValue(n,r){let s=1,o=b(b({},this._defaultPersistConfig),r.persist),l=o.storage==="local"?localStorage:sessionStorage,a=o.key.replace(/\${id}/g,n),u=l.getItem(a);return u?(u=parseInt(u,10),u>0?s=u-1:s=u):s=o.count,l.setItem(a,s.toString()),s}getContentAndOptions(n,r){var l;let s,o=b(b({},this._defaultGlobalConfig),this._defaultGlobalConfig[n]);if(typeof r=="string"||vp(r)||q2(r))s=r;else{let a;l=r,{content:s}=l,a=el(l,["content"]),o=b(b({},o),a)}return{content:s,options:o}}createLoadingToast(n){let r=null,s={};return{content:r,options:s}=this.getContentAndOptions("loading",n),this.loading(r,s)}};e.\u0275fac=function(r){return new(r||e)(x(Ow),x(Jn),x(bp,8))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Wj(t){return Pr([{provide:bp,useValue:t}])}var X4e=["gutterEls"],Q4e=["*"],J4e=(t,e,i,n,r,s)=>({areaBefore:t,areaAfter:e,gutterNum:i,first:n,last:r,isDragged:s});function e5e(t,e){t&1&&Dn(0)}function t5e(t,e){if(t&1&&(ya(0),ke(1,e5e,1,0,"ng-container",7),Ea()),t&2){let i=e.$implicit,n=ne(3),r=n.$implicit,s=n.index,o=n.first,l=ne();G(),J("ngTemplateOutlet",l.customGutter.template)("ngTemplateOutletContext",bE(3,J4e,r,l.displayedAreas[s+1],s+1,o,s===l.displayedAreas.length-2,l.draggedGutterNum===s+1))("ngTemplateOutletInjector",i)}}function n5e(t,e){if(t&1&&(ya(0),ke(1,t5e,2,10,"ng-container",6),Ea()),t&2){let i=ne(2).index;G(),J("asSplitGutterDynamicInjector",i+1)}}function i5e(t,e){t&1&&pe(0,"div",8)}function r5e(t,e){if(t&1){let i=mt();R(0,"div",4,0),be("keydown",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startKeyboardDrag(r,s*2+1,s+1))})("mousedown",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startMouseDrag(r,s*2+1,s+1))})("touchstart",function(r){ae(i);let s=ne().index,o=ne();return ue(o.startMouseDrag(r,s*2+1,s+1))})("mouseup",function(r){ae(i);let s=ne().index,o=ne();return ue(o.clickGutter(r,s+1))})("touchend",function(r){ae(i);let s=ne().index,o=ne();return ue(o.clickGutter(r,s+1))}),ke(2,n5e,2,1,"ng-container",5)(3,i5e,1,0,"ng-template",null,1,a2),F()}if(t&2){let i=Br(4),n=ne(),r=n.$implicit,s=n.index,o=ne();an("flex-basis",o.gutterSize,"px")("order",s*2+1),ut("as-dragged",o.draggedGutterNum===s+1),Tt("aria-label",o.gutterAriaLabel)("aria-orientation",o.direction)("aria-valuemin",r.minSize)("aria-valuemax",r.maxSize)("aria-valuenow",r.size==="*"?null:r.size)("aria-valuetext",o.getAriaAreaSizeText(r.size)),G(2),J("ngIf",o.customGutter==null?null:o.customGutter.template)("ngIfElse",i)}}function s5e(t,e){if(t&1&&ke(0,r5e,5,14,"div",3),t&2){let i=e.last;J("ngIf",i===!1)}}function yp(t){if(t.changedTouches!==void 0&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(t.clientX!==void 0&&t.clientY!==void 0)return{x:t.clientX,y:t.clientY};if(t.currentTarget!==void 0){let e=t.currentTarget;return{x:e.offsetLeft,y:e.offsetTop}}return null}function qj(t,e,i){return Math.abs(t.x-e.x)<=i&&Math.abs(t.y-e.y)<=i}function o5e(t,e){if(e==="horizontal")switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if(e==="vertical")switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}let i=t.currentTarget,n=t.key==="PageUp"||t.key==="PageDown"?50*10:50,r=i.offsetLeft,s=i.offsetTop;switch(t.key){case"ArrowLeft":r-=n;break;case"ArrowRight":r+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":e==="vertical"?s-=n:r+=n;break;case"PageDown":e==="vertical"?s+=n:r-=n;break;default:return null}return{x:r,y:s}}function Kj(t,e){let i=t.nativeElement.getBoundingClientRect();return e==="horizontal"?i.width:i.height}function Ep(t){return typeof t=="boolean"?t:t!=="false"}function Za(t,e){return t==null?e:(t=Number(t),!isNaN(t)&&t>=0?t:e)}function Yj(t,e){if(t==="percent"){let i=e.reduce((r,s)=>s!=="*"?r+s:r,0),n=e.filter(r=>r==="*");return n.length>1?!1:(n.length===1||i>99.9)&&i<100.1}if(t==="pixel")return e.filter(i=>i==="*").length===1}function qg(t){return t.size==="*"?null:t.component.lockSize===!0?t.size:t.component.minSize===null?null:t.component.minSize}function Kg(t){return t.size==="*"?null:t.component.lockSize===!0?t.size:t.component.maxSize===null?null:t.component.maxSize{let o=l5e(t,s,r.remain,n);return r.list.push(o),r.remain=o.pixelRemain,r},{remain:i,list:[]})}function l5e(t,e,i,n){if(i===0)return{areaSnapshot:e,pixelAbsorb:0,percentAfterAbsorption:e.sizePercentAtStart,pixelRemain:0};if(e.sizePixelAtStart===0&&i<0)return{areaSnapshot:e,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:i};if(t==="percent")return a5e(e,i,n);if(t==="pixel")return u5e(e,i)}function a5e(t,e,i){let r=(t.sizePixelAtStart+e)/i*100;if(e>0){if(t.area.maxSize!==null&&r>t.area.maxSize){let s=t.area.maxSize/100*i;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+e-s}}return{areaSnapshot:t,pixelAbsorb:e,percentAfterAbsorption:r>100?100:r,pixelRemain:0}}else if(e<0){if(t.area.minSize!==null&&r0)return t.area.maxSize!==null&&i>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:i-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:e,percentAfterAbsorption:-1,pixelRemain:0};if(e<0)return t.area.minSize!==null&&i{let e=class e{constructor(n){this.template=n,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging(n,r){return this.gutterToExcludeDragElementMap.has(r)&&this.gutterToExcludeDragElementMap.get(r).some(o=>o.nativeElement.contains(n))?!1:this.gutterToHandleElementMap.has(r)?this.gutterToHandleElementMap.get(r).some(s=>s.nativeElement.contains(n)):!0}addToMap(n,r,s){n.has(r)?n.get(r).push(s):n.set(r,[s])}removedFromMap(n,r,s){let o=n.get(r);o.splice(o.indexOf(s),1),o.length===0&&n.delete(r)}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","asSplitGutter",""]]});let t=e;return t})(),h5e=new Z("Gutter num"),f5e=(()=>{let e=class e{set gutterNum(n){this.vcr.clear();let r=ze.create({providers:[{provide:h5e,useValue:n}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:r})}constructor(n,r){this.vcr=n,this.templateRef=r}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(I(Bt),I(xt))},e.\u0275dir=Ce({type:e,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:[0,"asSplitGutterDynamicInjector","gutterNum"]}});let t=e;return t})(),Y2=(()=>{let e=class e{set direction(n){this._direction=n==="vertical"?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${this._direction==="vertical"?"horizontal":"vertical"}`),this.build(!1,!1)}get direction(){return this._direction}set unit(n){this._unit=n==="pixel"?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${this._unit==="pixel"?"percent":"pixel"}`),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(n){this._gutterSize=Za(n,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(n){this._gutterStep=Za(n,1)}get gutterStep(){return this._gutterStep}set restrictMove(n){this._restrictMove=Ep(n)}get restrictMove(){return this._restrictMove}set useTransition(n){this._useTransition=Ep(n),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(n){this._disabled=Ep(n),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(n){this._dir=n==="rtl"?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(n){this._gutterDblClickDuration=Za(n,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new Ae(n=>this.transitionEndSubscriber=n).pipe(Ki(20))}constructor(n,r,s,o,l){this.ngZone=n,this.elRef=r,this.cdRef=s,this.renderer=o,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new Se(!1),this.dragEnd=new Se(!1),this.gutterClick=new Se(!1),this.gutterDblClick=new Se(!1),this.dragProgressSubject=new te,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=l?Object.assign(this._config,l):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return this.displayedAreas.length===0?0:this.displayedAreas.length-1}addArea(n){let r={component:n,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};n.visible===!0?(this.displayedAreas.push(r),this.build(!0,!0)):this.hiddenAreas.push(r)}removeArea(n){if(this.displayedAreas.some(r=>r.component===n)){let r=this.displayedAreas.find(s=>s.component===n);this.displayedAreas.splice(this.displayedAreas.indexOf(r),1),this.build(!0,!0)}else if(this.hiddenAreas.some(r=>r.component===n)){let r=this.hiddenAreas.find(s=>s.component===n);this.hiddenAreas.splice(this.hiddenAreas.indexOf(r),1)}}updateArea(n,r,s){n.visible===!0&&this.build(r,s)}showArea(n){let r=this.hiddenAreas.find(o=>o.component===n);if(r===void 0)return;let s=this.hiddenAreas.splice(this.hiddenAreas.indexOf(r),1);this.displayedAreas.push(...s),this.build(!0,!0)}hideArea(n){let r=this.displayedAreas.find(o=>o.component===n);if(r===void 0)return;let s=this.displayedAreas.splice(this.displayedAreas.indexOf(r),1);s.forEach(o=>{o.order=0,o.size=0}),this.hiddenAreas.push(...s),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(n=>n.size)}setVisibleAreaSizes(n){if(n.length!==this.displayedAreas.length)return!1;let r=n.map(o=>Za(o,"*"));return Yj(this.unit,r)===!1?!1:(this.displayedAreas.forEach((o,l)=>o.component.size=r[l]),this.build(!1,!0),!0)}build(n,r){if(this.stopDragging(),n===!0&&(this.displayedAreas.every(s=>s.component.order!==null)&&this.displayedAreas.sort((s,o)=>s.component.order-o.component.order),this.displayedAreas.forEach((s,o)=>{s.order=o*2,s.component.setStyleOrder(s.order)})),r===!0){let s=Yj(this.unit,this.displayedAreas.map(o=>o.component.size));switch(this.unit){case"percent":{let o=100/this.displayedAreas.length;this.displayedAreas.forEach(l=>{l.size=s?l.component.size:o,l.minSize=qg(l),l.maxSize=Kg(l)});break}case"pixel":{if(s)this.displayedAreas.forEach(o=>{o.size=o.component.size,o.minSize=qg(o),o.maxSize=Kg(o)});else{let o=this.displayedAreas.filter(l=>l.component.size==="*");if(o.length===0&&this.displayedAreas.length>0)this.displayedAreas.forEach((l,a)=>{l.size=a===0?"*":l.component.size,l.minSize=a===0?l.component.minSize:qg(l),l.maxSize=a===0?null:Kg(l)});else if(o.length>1){let l=!1;this.displayedAreas.forEach(a=>{a.component.size==="*"?l===!1?(a.size="*",a.minSize=null,a.maxSize=null,l=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=qg(a),a.maxSize=Kg(a))})}}break}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if(this.unit==="percent")if(this.displayedAreas.length===1)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{let n=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(r=>{r.size==="*"?this.displayedAreas.length===1?r.component.setStyleFlex(1,1,"100%",!1,!1):r.component.setStyleFlex(1,1,"auto",!1,!1):r.component.setStyleFlex(0,0,`calc( ${r.size}% - ${r.size/100*n}px )`,r.minSize!==null&&r.minSize===r.size,r.maxSize!==null&&r.maxSize===r.size)})}else this.unit==="pixel"&&this.displayedAreas.forEach(n=>{n.size==="*"?this.displayedAreas.length===1?n.component.setStyleFlex(1,1,"100%",!1,!1):n.component.setStyleFlex(1,1,"auto",!1,!1):this.displayedAreas.length===1?n.component.setStyleFlex(0,0,"100%",!1,!1):n.component.setStyleFlex(0,0,`${n.size}px`,n.minSize!==null&&n.minSize===n.size,n.maxSize!==null&&n.maxSize===n.size)})}clickGutter(n,r){let s=yp(n);this.startPoint&&qj(this.startPoint,s,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(this._clickTimeout!==null?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",r),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",r),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(n,r,s){if(this.disabled===!0||this.isWaitingClear===!0)return;let o=o5e(n,this.direction);o!==null&&(this.endPoint=o,this.startPoint=yp(n),n.preventDefault(),n.stopPropagation(),this.setupForDragEvent(r,s),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(n,r,s){this.customGutter&&!this.customGutter.canStartDragging(n.target,s)||(n.preventDefault(),n.stopPropagation(),this.startPoint=yp(n),!(this.startPoint===null||this.disabled===!0||this.isWaitingClear===!0)&&(this.setupForDragEvent(r,s),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent(n,r){if(this.snapshot={gutterNum:r,lastSteppedOffset:0,allAreasSizePixel:Kj(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(s=>{let o={area:s,sizePixelAtStart:Kj(s.component.elRef,this.direction),sizePercentAtStart:this.unit==="percent"?s.size:-1};s.ordern&&(this.restrictMove===!0?this.snapshot.areasAfterGutter.length===0&&(this.snapshot.areasAfterGutter=[o]):this.snapshot.areasAfterGutter.push(o))}),this.restrictMove&&this.unit==="percent"){let s=this.snapshot.areasBeforeGutter[0],o=this.snapshot.areasAfterGutter[0];if(s.area.size==="*"||o.area.size==="*"){let l=this.displayedAreas.reduce((a,u)=>s.area!==u&&o.area!==u?a+u.size:a,0);this.snapshot.allInvolvedAreasSizePercent=100-l}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((l,a)=>l+a.sizePercentAtStart,0)}this.snapshot.areasBeforeGutter.length===0||this.snapshot.areasAfterGutter.length}startDragging(){this.displayedAreas.forEach(n=>n.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(n){n.preventDefault(),n.stopPropagation();let r=yp(n);this._clickTimeout!==null&&!qj(this.startPoint,r,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),this.isDragging!==!1&&(this.endPoint=yp(n),this.endPoint!==null&&this.drag())}drag(){if(this.isWaitingInitialMove)if(this.startPoint.x!==this.endPoint.x||this.startPoint.y!==this.endPoint.y)this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)});else return;let n=this.direction==="horizontal"?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;this.dir==="rtl"&&this.direction==="horizontal"&&(n=-n);let r=Math.round(n/this.gutterStep)*this.gutterStep;if(r===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=r;let s=Q0(this.unit,this.snapshot.areasBeforeGutter,-r,this.snapshot.allAreasSizePixel),o=Q0(this.unit,this.snapshot.areasAfterGutter,r,this.snapshot.allAreasSizePixel);if(s.remain!==0&&o.remain!==0?Math.abs(s.remain)===Math.abs(o.remain)||(Math.abs(s.remain)>Math.abs(o.remain)?o=Q0(this.unit,this.snapshot.areasAfterGutter,r+s.remain,this.snapshot.allAreasSizePixel):s=Q0(this.unit,this.snapshot.areasBeforeGutter,-(r-o.remain),this.snapshot.allAreasSizePixel)):s.remain!==0?o=Q0(this.unit,this.snapshot.areasAfterGutter,r+s.remain,this.snapshot.allAreasSizePixel):o.remain!==0&&(s=Q0(this.unit,this.snapshot.areasBeforeGutter,-(r-o.remain),this.snapshot.allAreasSizePixel)),this.unit==="percent"){let l=[...s.list,...o.list],u=l.find(c=>c.percentAfterAbsorption==="*")??l.find(c=>c.percentAfterAbsorption!==0&&c.percentAfterAbsorption!==c.areaSnapshot.area.minSize&&c.percentAfterAbsorption!==c.areaSnapshot.area.maxSize);u&&(u.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-l.filter(c=>c!==u).reduce((c,d)=>c+d.percentAfterAbsorption,0))}s.list.forEach(l=>Zj(this.unit,l)),o.list.forEach(l=>Zj(this.unit,l)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(n){if(n&&(n.preventDefault(),n.stopPropagation()),this.isDragging!==!1){for(this.displayedAreas.forEach(r=>r.component.unlockEvents());this.dragListeners.length>0;){let r=this.dragListeners.pop();r&&r()}this.isDragging=!1,this.isWaitingInitialMove===!1&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(n,r){let s=this.getVisibleAreaSizes();n==="start"?this.dragStart.emit({gutterNum:r,sizes:s}):n==="end"?this.dragEnd.emit({gutterNum:r,sizes:s}):n==="click"?this.gutterClick.emit({gutterNum:r,sizes:s}):n==="dblclick"?this.gutterDblClick.emit({gutterNum:r,sizes:s}):n==="transitionEnd"?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(s)):n==="progress"&&this.dragProgressSubject.next({gutterNum:r,sizes:s})}ngOnDestroy(){this.stopDragging()}collapseArea(n,r,s){let o=this.displayedAreas.find(u=>u.component===n);if(o===void 0)return;let l=s==="right"?1:-1;o.sizeBeforeCollapse||(o.sizeBeforeCollapse=o.size,o.gutterBeforeCollapse=l),o.size=r;let a=this.gutterEls.find(u=>u.nativeElement.style.order===`${o.order+l}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(n,!1,!1)}expandArea(n){let r=this.displayedAreas.find(o=>o.component===n);if(r===void 0||!r.sizeBeforeCollapse)return;r.size=r.sizeBeforeCollapse,r.sizeBeforeCollapse=null;let s=this.gutterEls.find(o=>o.nativeElement.style.order===`${r.order+r.gutterBeforeCollapse}`);s&&this.renderer.removeClass(s.nativeElement,"as-split-gutter-collapsed"),this.updateArea(n,!1,!1)}getAriaAreaSizeText(n){return n==="*"?null:n.toFixed(0)+" "+this.unit}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Te),I(Wt),I(Pi),I(c5e,8))},e.\u0275cmp=Me({type:e,selectors:[["as-split"]],contentQueries:function(r,s,o){if(r&1&&Ts(o,d5e,5),r&2){let l;nt(l=it())&&(s.customGutter=l.first)}},viewQuery:function(r,s){if(r&1&&Et(X4e,5),r&2){let o;nt(o=it())&&(s.gutterEls=o)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:Q4e,decls:2,vars:1,consts:[["gutterEls",""],["defaultGutterTpl",""],["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],[4,"ngIf","ngIfElse"],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(r,s){r&1&&(ei(),Ln(0),ke(1,s5e,1,1,"ng-template",2)),r&2&&(G(),J("ngForOf",s.displayedAreas))},dependencies:[K9,Vc,Y9,f5e],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0});let t=e;return t})(),J0=(()=>{let e=class e{set order(n){this._order=Za(n,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(n){this._size=Za(n,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(n){this._minSize=Za(n,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(n){this._maxSize=Za(n,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(n){this._lockSize=Ep(n),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(n){this._visible=Ep(n),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(n,r,s,o){this.ngZone=n,this.renderer=r,this.split=s,this.elRef=o,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",r=>{r.propertyName==="flex-basis"&&this.split.notify("transitionEnd",-1)})});let n=this.renderer.createElement("div");this.renderer.addClass(n,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,n)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,n)})}setStyleOrder(n){this.renderer.setStyle(this.elRef.nativeElement,"order",n)}setStyleFlex(n,r,s,o,l){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",r),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",s),o===!0?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),l===!0?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){let n=this.lockListeners.pop();n&&n()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(n=0,r="right"){this.split.collapseArea(this,n,r)}expand(){this.split.expandArea(this)}};e.\u0275fac=function(r){return new(r||e)(I(le),I(Pi),I(Y2),I(Te))},e.\u0275dir=Ce({type:e,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]});let t=e;return t})();var Xj=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({imports:[tr]});let t=e;return t})();var p5e=["*"],Cp=class{},m5e=(()=>{let e=class e extends Cp{constructor(n){super(),this.http=n}getSvg(n){return this.http.get(n,{responseType:"text"})}};e.\u0275fac=function(r){return new(r||e)(x(h2))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),g5e=new Z("SERVER_URL"),Yg=(()=>{let e=class e{constructor(){this.loader=Y(Cp),this.serverUrl=Y(g5e,{optional:!0}),this.document=Y(Ne),this.iconsByUrl=new Map,this.iconsLoadingByUrl=new Map}addSvg(n,r){if(!this.iconsByUrl.has(n)){let s=this.document.createElement("DIV");s.innerHTML=r;let o=s.querySelector("svg");this.iconsByUrl.set(n,o)}}loadSvg(n,r=n){if(this.serverUrl&&n.match(/^(http(s)?):/)===null&&(n=this.serverUrl+n,r=n),this.iconsByUrl.has(r))return pn(this.iconsByUrl.get(r));if(this.iconsLoadingByUrl.has(r))return this.iconsLoadingByUrl.get(r);let s=this.loader.getSvg(n).pipe(st(o=>{let l=this.document.createElement("DIV");return l.innerHTML=o,l.querySelector("svg")}),Mn(o=>this.iconsByUrl.set(r,o)),K3(o=>(console.error(o),sa(o))),Y3(()=>this.iconsLoadingByUrl.delete(r)),f5());return this.iconsLoadingByUrl.set(r,s),s}getSvgByName(n){return this.iconsByUrl.has(n)?pn(this.iconsByUrl.get(n)):this.iconsLoadingByUrl.has(n)?this.iconsLoadingByUrl.get(n):sa(`No svg with name '${n}' has been loaded`)}unloadSvg(n){this.iconsByUrl.has(n)&&this.iconsByUrl.delete(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();function _5e(t){return t||new Yg}var v5e={provide:Yg,deps:[[new Xi,new H5,Yg]],useFactory:_5e},Zg=class{constructor(){this.loaded=!1}},Vo=(()=>{let e=class e{constructor(){this.element=Y(Te),this.differs=Y(uh),this.renderer=Y(Pi),this.iconReg=Y(Yg),this.src=mo(),this.name=mo(),this.stretch=mo(!1),this.applyClass=mo(!1),this.svgClass=mo(),this.klass=mo(void 0,{alias:"class"}),this.viewBox=mo(),this.svgAriaLabel=mo(),this.svg=ba(0),this.svgStyle=mo(),this.helper=new Zg,Ur(()=>{(this.src()||this.name())&&(this.destroy(),this.init(this.src(),this.name()))},{allowSignalWrites:!0}),Ur(()=>{let s=this.viewBox();this.svg()&&this.updateViewBox(s)}),Ur(()=>{let s=this.svgStyle()||{};this.svg()&&this.applyChanges(this.helper.differ.diff(s))}),Ur(()=>{let s=this.svg();this.applyClass()?this.setClass(this.elemSvg,null,this.klass()):this.setClass(this.elemSvg,this.klass(),null)});let n;Ur(()=>{let s=this.svg();this.setClass(this.elemSvg,n,this.svgClass()),n=this.svgClass()});let r;Ur(()=>{let s=this.svg(),o=this.element.nativeElement;this.setClass(o,r,this.klass()),this.setClass(this.elemSvg,r,this.applyClass()?this.klass():null),r=this.klass()}),Ur(()=>{let s=this.svg();this.doAria(this.svgAriaLabel())}),Ur(()=>{let s=this.svg();this.stylize(this.stretch())})}ngOnDestroy(){this.destroy()}get elemSvg(){return this.element.nativeElement.firstChild}init(n,r){if(n&&r){let s=this.iconReg.loadSvg(n,r);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else if(r){let s=this.iconReg.getSvgByName(r);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else if(n){let s=this.iconReg.loadSvg(n);s&&(this.helper.icnSub=s.subscribe(o=>this.initSvg(o)))}else this.element.nativeElement.innerHTML="",this.svg.set(0)}initSvg(n){!this.helper.loaded&&n&&this.setSvg(n)}destroy(){this.helper.icnSub?.unsubscribe(),this.helper=new Zg,this.helper.differ=this.differs.find({}).create()}setSvg(n){if(!this.helper.loaded&&n){this.helper.svg=n;let r=n.cloneNode(!0),s=this.element.nativeElement;s.innerHTML="",this.renderer.appendChild(s,r),this.helper.loaded=!0,this.copyNgContentAttribute(s,r),this.svg.update(o=>o+1)}}updateViewBox(n){if(n){let r=this.elemSvg;if(n==="auto"){let s=r.getAttribute("width"),o=r.getAttribute("height");if(o&&s){let l=`0 0 ${s} ${o}`;this.renderer.setAttribute(r,"viewBox",l),this.renderer.removeAttribute(r,"width"),this.renderer.removeAttribute(r,"height")}}else n!==""&&(this.renderer.setAttribute(r,"viewBox",n),this.renderer.removeAttribute(r,"width"),this.renderer.removeAttribute(r,"height"))}}copyNgContentAttribute(n,r){let s=n.attributes,o=s.length;for(let l=0;lthis.setStyle(r.key,null)),n.forEachAddedItem(r=>this.setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this.setStyle(r.key,r.currentValue)))}setStyle(n,r){let[s,o]=n.split(".");r=r!==null&&o?`${r}${o}`:r;let l=this.elemSvg;r!==null?this.renderer.setStyle(l,s,r):this.renderer.removeStyle(l,s)}setClass(n,r,s){if(n){if(r){let o=(Array.isArray(r)?r:r.split(" ")).filter(l=>l);for(let l of o)this.renderer.removeClass(n,l)}if(s){let o=(Array.isArray(s)?s:s.split(" ")).filter(l=>l);for(let l of o)this.renderer.addClass(n,l)}}}doAria(n){let r=this.element.nativeElement.firstChild;r&&!(n===void 0&&r.hasAttribute("aria-label"))&&(n===""?(this.renderer.setAttribute(r,"aria-hidden","true"),this.renderer.removeAttribute(r,"aria-label")):(this.renderer.removeAttribute(r,"aria-hidden"),this.renderer.setAttribute(r,"aria-label",n)))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Me({type:e,selectors:[["svg-icon"]],inputs:{src:[1,"src"],name:[1,"name"],stretch:[1,"stretch"],applyClass:[1,"applyClass"],svgClass:[1,"svgClass"],klass:[1,"class","klass"],viewBox:[1,"viewBox"],svgAriaLabel:[1,"svgAriaLabel"],svgStyle:[1,"svgStyle"]},standalone:!0,features:[ot],ngContentSelectors:p5e,decls:1,vars:0,template:function(r,s){r&1&&(ei(),Ln(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var Qj=(()=>{let e=class e{static forRoot(n={}){return{ngModule:e,providers:[v5e,n.loader||{provide:Cp,useClass:m5e}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({});let t=e;return t})();function Jj(t){return typeof t=="function"}function b5e(t){let e={};for(let i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}var y5e=(t,e)=>{let i=0;for(;it,E5e=t=>t==null;var C5e=(t,e)=>t.filter(i=>!e.includes(i)),I5e=t=>(...e)=>{let i=0,n=t.length;for(;ie=>e[t];var S5e=(t,e)=>e.reduce((i,n)=>{let r=T5e(t),s=r(n),o=r(i);return s>o?n:i},{[t]:0}),Qg=typeof navigator<"u"?navigator.userAgent.includes("Mac OS"):!1,Jg={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",cmd:Qg?"metaKey":"ctrlKey",command:Qg?"metaKey":"ctrlKey",meta:Qg?"metaKey":"ctrlKey","left command":"metaKey","right command":"MetaRight","\u2318":Qg?"metaKey":"ctrlKey",option:"altKey",ctl:"ctrlKey",control:"ctrlKey"},e_={plus:"+"};var t_={8:"backspace",9:"tab",13:"enter",16:"shift",17:["ctrl","control"],18:"alt",20:"capslock",27:["esc","escape"],32:["space","spc"],33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:["meta","cmd","command"],93:["meta","cmd","command"],224:["meta","cmd","command"]},eH={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Lw={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},w5e=b5e(Lw);for(let t=1;t<20;++t)t_[111+t]="f"+t;for(let t=0;t<=9;++t)t_[t+96]=t.toString();var ed=function(t){return t.Textarea="TEXTAREA",t.Input="INPUT",t.Select="SELECT",t.ContentEditable="CONTENT-EDITABLE",t}(ed||{}),x5e=0,Tp=(()=>{class t{constructor(i){this.document=i,this._shortcuts=[],this._sequences=[],this.throttleTime=0,this._pressed=new te,this.pressed$=this._pressed.asObservable(),this.disabled=!1,this._shortcutsSub=new Ci([]),this.shortcuts$=this._shortcutsSub.pipe(Ge(n=>!!n.length)),this._ignored=[ed.Input,ed.Textarea,ed.Select,ed.ContentEditable],this.isAllowed=n=>{let r=n.event.target,s=!!r.getAttribute("contenteditable"),o=s?ed.ContentEditable:r.nodeName;return r===n.target?!0:n.allowIn.length?!C5e(this._ignored,n.allowIn).includes(o):s?!1:!this._ignored.includes(r.nodeName)},this.mapEvent=n=>this._shortcuts.filter(r=>!r.isSequence).map(r=>Object.assign({},r,{predicates:y5e(Xg,r.predicates.map(s=>I5e(s)(n))),event:n})).filter(r=>r.predicates).reduce((r,s)=>r.priority>s.priority?r:s,{priority:0}),this.subscriptions=[],this.keydown$=ai(this.document,"keydown"),this.ignore$=this.pressed$.pipe(Ge(n=>n.event.defaultPrevented),Ai(()=>this.clicks$.pipe(c8())),Mn(n=>{n.preventDefault(),n.stopPropagation()}),h5()),this.clicks$=ai(this.document,"click",{capture:!0}),this.keyup$=ai(this.document,"keyup"),this.keydownCombo$=this.keydown$.pipe(Ge(n=>!this.disabled),st(this.mapEvent),Ge(n=>!n.target||n.event.target===n.target),Ge(n=>Jj(n.command)),Ge(n=>this.isAllowed(n)),Mn(n=>{n.preventDefault&&(n.event.preventDefault(),n.event.stopPropagation())}),h8(n=>Xn(n.throttleTime)),Mn(n=>n.command({event:n.event,key:n.key})),Mn(n=>this._pressed.next({event:n.event,key:n.key})),yt(this.keyup$),h5(),K3(n=>sa(n))),this.timer$=new te,this.resetCounter$=this.timer$.asObservable().pipe(Ai(()=>Xn(t.TIMEOUT_SEQUENCE))),this.keydownSequence$=this.keydown$.pipe(st(n=>({event:n,sequences:this._sequences})),Ev((n,r)=>{let{event:s}=r,o=n.events.length,l=o?n.sequences:r.sequences,[a]=this.characterFromEvent(s),u=Array.isArray(a)?[...a,s.key]:[a,s.key],c=l.map(f=>{let p=f.sequence.filter(E=>u.some(C=>(e_[E[o]]||E[o])===C)),v=p.length>0;return f.fullMatch?f:ee(b({},f),{sequence:p,partialMatch:v,event:s,fullMatch:v&&this.isFullMatch({command:f,events:n.events})})}).filter(f=>f.partialMatch||f.fullMatch),[d]=c;if(!d||this.modifiersOn(s))return{events:[],sequences:this._sequences};let h=S5e("priority",c);return c.length>1&&h.fullMatch?{events:[],command:h,sequences:this._sequences}:c.length>1?{events:[...n.events,s],command:c,sequences:c}:d.fullMatch?{events:[],command:d,sequences:this._sequences}:{events:[...n.events,s],command:c,sequences:c}},{events:[],sequences:[]}),Ai(({command:n})=>Array.isArray(n)?Xn(500).pipe(st(()=>({command:n.filter(r=>r.fullMatch)[0]}))):pn({command:n})),yt(this.pressed$),Ge(({command:n})=>n&&n.fullMatch),st(({command:n})=>n),Ge(n=>Jj(n.command)),Ge(n=>!n.target||n.event.target===n.target),Ge(this.isAllowed),Mn(n=>!n.preventDefault||n.event.preventDefault()),h8(n=>Xn(n.throttleTime)),Mn(n=>n.command({event:n.event,key:n.key})),Mn(n=>this._pressed.next({event:n.event,key:n.key})),yt(this.resetCounter$),h5()),this.getKeys=n=>n.map(r=>r.trim()).filter(r=>r!=="+").map(r=>(r=e_[r]||r,Jg.hasOwnProperty(r)?s=>!!s[Jg[r]]:s=>{let o=r===r.toUpperCase(),l=/[^a-zA-Z\d\s:]/.test(r),a=w5e[r],[u]=this.characterFromEvent(s),d=Object.keys(Jg).map(f=>Jg[f]).some(f=>s[f]),h=Array.isArray(u)?[...u,s.key]:[u,s.key];return d&&(!o||l)&&!a&&n.length===1?!1:h.some(f=>f===r&&o?!0:r===f)})),this.subscriptions.push(this.keydownSequence$.subscribe(),this.keydownCombo$.subscribe())}isFullMatch({command:i,events:n}){return i?i.sequence.some(r=>r.length===n.length+1):!1}get shortcuts(){return this._shortcuts}_characterFromEvent(i){return typeof i.which!="number"&&(i.which=i.keyCode),e_[i.which]?[e_[i.which],i.shiftKey]:t_[i.which]?[t_[i.which],i.shiftKey]:eH[i.which]?[eH[i.which],i.shiftKey]:String.fromCharCode(i.which).toLowerCase()!==i.key?[String.fromCharCode(i.which).toLowerCase(),i.shiftKey]:[i.key,i.shiftKey]}characterFromEvent(i){let[n,r]=this._characterFromEvent(i);return r&&Lw[n]?[Lw[n],r]:[n,r]}ngOnDestroy(){this.subscriptions.forEach(i=>i.unsubscribe())}isSequence(i){return!i.some(n=>n.includes("+")||n.length===1)}add(i){i=Array.isArray(i)?i:[i];let n=this.parseCommand(i);return n.forEach(r=>{if(r.isSequence){this._sequences.push(r);return}this._shortcuts.push(r)}),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),n.map(r=>r.id)}remove(i){return i=Array.isArray(i)?i:[i],this._shortcuts=this._shortcuts.filter(n=>!i.includes(n.id)),this._sequences=this._sequences.filter(n=>!i.includes(n.id)),setTimeout(()=>{this._shortcutsSub.next([...this._shortcuts,...this._sequences])}),this}select(i){return this.pressed$.pipe(Ge(({event:n,key:r})=>(r=Array.isArray(r)?r:[r],!!r.find(s=>s===i))))}modifiersOn(i){return["metaKey","altKey","ctrlKey"].some(n=>i[n])}parseCommand(i){return(Array.isArray(i)?i:[i]).map(r=>{let s=Array.isArray(r.key)?r.key:[r.key],o=Math.max(...s.map(c=>c.split(" ").filter(Xg).length)),l=s.map(c=>this.getKeys(c.split(" ").filter(Xg))),a=this.isSequence(s),u=a?s.map(c=>c.split(" ").filter(Xg).map(d=>d.trim())):[];return ee(b({},r),{isSequence:a,sequence:a?u:[],allowIn:r.allowIn||[],key:s,id:`${x5e++}`,throttle:E5e(r.throttleTime)?this.throttleTime:r.throttleTime,priority:o,predicates:l})})}}return t.TIMEOUT_SEQUENCE=1e3,t.\u0275fac=function(i){return new(i||t)(x(Ne))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n_=(()=>{class t{constructor(i){this.keyboard=i,this.shortcuts=[],this.clearIds=[],this._disabled=!1}set disabled(i){this._disabled=i,this.clearIds&&(this.keyboard.remove(this.clearIds),this.clearIds=[]),!i&&(this.clearIds=this.keyboard.add(this.shortcuts))}select(i){return this.keyboard.select(i)}ngOnChanges(i){!i.shortcuts||!i.shortcuts.currentValue||(this.clearIds&&this.keyboard.remove(this.clearIds),this._disabled||setTimeout(()=>this.clearIds=this.keyboard.add(i.shortcuts.currentValue)))}ngOnDestroy(){this.keyboard.remove(this.clearIds)}}return t.\u0275fac=function(i){return new(i||t)(I(Tp))},t.\u0275cmp=Me({type:t,selectors:[["ng-keyboard-shortcuts"]],inputs:{shortcuts:"shortcuts",disabled:"disabled"},features:[In],decls:0,vars:0,template:function(i,n){},encapsulation:2}),t})(),A5e=(()=>{class t{constructor(i){this.keyboard=i,this.shortcuts$=this.keyboard.shortcuts$.pipe(st(n=>n.filter(r=>!!r.label&&!!r.description).map(({key:r,label:s,description:o})=>({key:r,label:s,description:o}))))}}return t.\u0275fac=function(i){return new(i||t)(x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),D5e=(()=>{class t{constructor(i){this.keyboardService=i}select(i){return this.keyboardService.select(i)}}return t.\u0275fac=function(i){return new(i||t)(x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var O5e=(()=>{class t{constructor(i,n){this.ngZone=i,this.keyboard=n}supports(i){return i.split(".").includes("shortcut")}addEventListener(i,n,r){let s=n.split("."),o=s.includes("prevent");if(s.length===0)throw new Error("please provide a shortcut");let[,l,a,u]=s,c=this.keyboard.add({key:l,command(d){r(d)},description:a,preventDefault:o,label:u});return()=>{this.keyboard.remove(c)}}}return t.\u0275fac=function(i){return new(i||t)(x(le),x(Tp))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();var tH=(()=>{class t{static forRoot(){return{ngModule:t,providers:[Tp,A5e,D5e,{multi:!0,provide:jc,useClass:O5e}]}}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({imports:[[tr]]}),t})();(function(){typeof Element>"u"||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){let e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}))})();Array.prototype.flat||(Array.prototype.flat=function(t){var e=[];return function i(n,r){for(let s of n)Array.isArray(s)&&r>0?i(s,r-1):e.push(s)}(this,Math.floor(t)||1),e});Array.prototype.flatMap||(Array.prototype.flatMap=function(){return Array.prototype.map.apply(this,arguments).flat(1)});var Fw=new Z("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),iH=new Z("ngx-window",{providedIn:"root",factory:()=>{let{defaultView:t}=Y(Ne);if(!t)throw new Error("Window is not available");return t}});function R5e(t){return t?t.dataLayer=t.dataLayer||[]:null}var M5e=new Z("ngx-data-layer",{providedIn:"root",factory:()=>R5e(Y(iH))});function k5e(t,e){return t?t.gtag=t.gtag||function(){e.push(arguments)}:null}var rH=new Z("ngx-gtag-fn",{providedIn:"root",factory:()=>k5e(Y(iH),Y(M5e))}),Xa=(()=>{class t{constructor(i,n,r){this.settings=i,this._document=n,this._gtag=r}get document(){return this._document}throw(i){(this.settings.enableTracing||c2())&&console&&console.error&&console.error(i)}toKeyValue(i){return i.size>0?Array.from(i).reduce((n,[r,s])=>Object.defineProperty(n,r,{value:s,enumerable:!0}),{}):void 0}gtag(...i){try{this._gtag(...i.filter(n=>n!==void 0))}catch(n){this.throw(n)}}event(i,n,r,s,o,l){try{let a=new Map;n&&a.set("event_category",n),r&&a.set("event_label",r),s&&a.set("value",s),o!==void 0&&a.set("interaction",o),l&&Object.entries(l).map(([c,d])=>a.set(c,d));let u=this.toKeyValue(a);u?this.gtag("event",i,u):this.gtag("event",i)}catch(a){this.throw(a)}}pageView(i,n,r,s){try{let o=new Map([["page_path",i]]);n&&o.set("page_title",n),(r||this.document)&&o.set("page_location",r||this.document.location.href),s&&Object.entries(s).map(([l,a])=>o.set(l,a)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(o))}catch(o){this.throw(o)}}appView(i,n,r,s,o){try{let l=new Map([["screen_name",i],["app_name",n]]);r&&l.set("app_id",r),s&&l.set("app_version",s),o&&l.set("app_installer_id",o),this.gtag("event","screen_view",this.toKeyValue(l))}catch(l){this.throw(l)}}set(...i){try{this._gtag("set",...i)}catch(n){this.throw(n)}}exception(i,n){try{let r=new Map;i&&r.set("description",i),n&&r.set("fatal",n),this.toKeyValue(r)?this.gtag("event","exception",this.toKeyValue(r)):this.gtag("event","exception")}catch(r){this.throw(r)}}}return t.\u0275fac=function(i){return new(i||t)(x(Fw),x(Ne),x(rH))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var N5e={provide:u2,multi:!0,useFactory:P5e,deps:[Fw,rH,Ne]};function P5e(t,e,i){return()=>K(this,null,function*(){if(!t.trackingCode){c2()||console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule.");return}if(!e){c2()||console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface.");return}i||c2()||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),t.uri=t.uri||`https://www.googletagmanager.com/gtag/js?id=${t.trackingCode}`,t.initCommands=t?.initCommands??[],t.initCommands.find(s=>s.command==="config")||t.initCommands.unshift({command:"config",values:[t.trackingCode]}),t.initCommands.find(s=>s.command==="js")||t.initCommands.unshift({command:"js",values:[new Date]});for(let s of t.initCommands)e(s.command,...s.values);let n=i.createElement("script");n.async=!0,n.src=t.uri,t.nonce&&n.setAttribute("nonce",t.nonce),i.getElementsByTagName("head")[0].appendChild(n)})}var eUe=new Z("ngx-google-analytics-routing-settings",{factory:()=>({})});var sH=(()=>{class t{static forRoot(i,n=[],r,s,o){return{ngModule:t,providers:[{provide:Fw,useValue:{trackingCode:i,initCommands:n,uri:r,enableTracing:s,nonce:o}},N5e]}}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=xe({type:t}),t.\u0275inj=we({}),t})();var wp="Service workers are disabled or not supported by this browser";function L5e(t){return io(()=>sa(new Error(t)))}var td=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=L5e(wp);else{let n=ai(e,"controllerchange").pipe(st(()=>e.controller)),r=io(()=>pn(e.controller)),s=no(r,n);this.worker=s.pipe(Ge(c=>!!c)),this.registration=this.worker.pipe(Ai(()=>e.getRegistration()));let u=ai(e,"message").pipe(st(c=>c.data)).pipe(Ge(c=>c&&c.type)).pipe(bv());u.connect(),this.events=u}}postMessage(e,i){return this.worker.pipe(en(1),Mn(n=>{n.postMessage(b({action:e},i))})).toPromise().then(()=>{})}postMessageWithOperation(e,i,n){let r=this.waitForOperationCompleted(n),s=this.postMessage(e,i);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let i;return typeof e=="string"?i=n=>n.type===e:i=n=>e.includes(n.type),this.events.pipe(Ge(i))}nextEventOfType(e){return this.eventsOfType(e).pipe(en(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ge(i=>i.nonce===e),en(1),st(i=>{if(i.result!==void 0)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},uH=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new te,!n.isEnabled){this.messages=Lu,this.notificationClicks=Lu,this.subscription=Lu;return}this.messages=this.sw.eventsOfType("PUSH").pipe(st(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(st(s=>s.data)),this.pushManager=this.sw.registration.pipe(st(s=>s.pushManager));let r=this.pushManager.pipe(Ai(s=>s.getSubscription()));this.subscription=qi(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(wp));let r={userVisibleOnly:!0},s=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let l=0;ll.subscribe(r)),en(1)).toPromise().then(l=>(this.subscriptionChanges.next(l),l))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(wp));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(en(1),Ai(n)).toPromise()}decodeBase64(n){return atob(n)}};e.\u0275fac=function(r){return new(r||e)(x(td))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})(),r_=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Lu,this.unrecoverable=Lu;return}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(wp));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(wp));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}};e.\u0275fac=function(r){return new(r||e)(x(td))},e.\u0275prov=q({token:e,factory:e.\u0275fac});let t=e;return t})();var oH=new Z("");function F5e(t,e,i,n){return()=>{if(!(hh(n)&&"serviceWorker"in navigator&&i.enabled!==!1))return;let r=t.get(le),s=t.get(Ji);r.runOutsideAngular(()=>{let l=navigator.serviceWorker,a=()=>l.controller?.postMessage({action:"INITIALIZE"});l.addEventListener("controllerchange",a),s.onDestroy(()=>{l.removeEventListener("controllerchange",a)})});let o;if(typeof i.registrationStrategy=="function")o=i.registrationStrategy();else{let[l,...a]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(l){case"registerImmediately":o=pn(null);break;case"registerWithDelay":o=lH(+a[0]||0);break;case"registerWhenStable":o=a[0]?qi(aH(t),lH(+a[0])):aH(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}r.runOutsideAngular(()=>o.pipe(en(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:i.scope}).catch(l=>console.error("Service worker registration failed with:",l))))}}function lH(t){return pn(null).pipe(vv(t))}function aH(t){return t.get(Ji).isStable.pipe(Ge(i=>i))}function V5e(t,e){return new td(hh(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var Sp=class{};function B5e(t,e={}){return Pr([uH,r_,{provide:oH,useValue:t},{provide:Sp,useValue:e},{provide:td,useFactory:V5e,deps:[Sp,Jn]},{provide:u2,useFactory:F5e,deps:[ze,oH,Sp,Jn],multi:!0}])}var cH=(()=>{let e=class e{static register(n,r={}){return{ngModule:e,providers:[B5e(n,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=we({providers:[uH,r_]});let t=e;return t})();var xp={production:!0,firebase:{apiKey:"AIzaSyD_6fjI7Vsm4RQS6EJZSZ_an7Zehjz9YwQ",authDomain:"portugol-webstudio.firebaseapp.com",projectId:"portugol-webstudio",storageBucket:"portugol-webstudio.appspot.com",messagingSenderId:"845512624544",appId:"1:845512624544:web:b1d4787cafd265429dfcc5",measurementId:"G-BM3QGZS096"}};var _i=class t extends Error{constructor(e,i,n,r,s,o){super(e),this.message=e,this.context=i,this.startLine=n,this.startCol=r,this.endLine=s,this.endCol=o}static fromContext(e,i){let n=e;if(!e.hasOwnProperty("start")&&!e.hasOwnProperty("stop")&&e.parent&&(n=e.parent),n.hasOwnProperty("start")&&n.hasOwnProperty("stop")&&typeof n.start=="object"&&typeof n.stop=="object"){let{start:s,stop:o}=n,{line:l,column:a}=s,{line:u,column:c}=o;return l===u&&a===c&&(c+=e.getText().length-1),new t(i,e,l,a,u,c)}let r=e.getPayload();if(r&&r.hasOwnProperty("column")&&r.hasOwnProperty("line")){let{line:s,column:o}=r;return new t(i,e,s,o,s,o+e.getText().length)}return new t(i,e,1,1,1,2+e.getText().length)}},nd=class{constructor(){this.errors=[]}syntaxError(e,i,n,r,s,o){let l=i&&i.text?r+i.text.length:r;this.errors.push(new _i(s,o?.ctx||i||null,n,r,n,l))}getErrors(){return this.errors}reset(){this.errors=[]}reportAmbiguity(e,i,n,r,s,o,l){}reportAttemptingFullContext(e,i,n,r,s,o){}reportContextSensitivity(e,i,n,r,s,o){}};var j5e=Object.defineProperty,N=(t,e)=>j5e(t,"name",{value:e,configurable:!0}),o_;(t=>{t.EOF=-1,t.UNKNOWN_SOURCE_NAME=""})(o_||(o_={}));var Q;(t=>{t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=o_.EOF,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1,t.MIN_USER_CHANNEL_VALUE=2})(Q||(Q={}));var H5e=N(t=>{let e=t;return e.tokenSource!==void 0&&e.channel!==void 0},"isToken"),jn,ld,kp,hn=(jn=class{constructor(e,i){T(this,"start");T(this,"stop");Ee(this,kp);this.start=e,this.stop=i,ie(this,kp,Math.imul(651+e,31)+i)}static of(e,i){return e!==i||e<0||e>jn.INTERVAL_POOL_MAX_VALUE?new jn(e,i):(y(jn,ld)[e]||(y(jn,ld)[e]=new jn(e,e)),y(jn,ld)[e])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return y(this,kp)}startsBeforeDisjoint(e){return this.start=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(e){return jn.of(Math.min(this.start,e.start),Math.max(this.stop,e.stop))}intersection(e){return jn.of(Math.max(this.start,e.start),Math.min(this.stop,e.stop))}differenceNotProperlyContained(e){let i=null;return e.startsBeforeNonDisjoint(this)?i=jn.of(Math.max(this.start,e.stop+1),this.stop):e.startsAfterNonDisjoint(this)&&(i=jn.of(this.start,e.start-1)),i}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop0){let o=s.charAt(0);if(o==="'"){n[r]=null;continue}else if(o.toUpperCase()===o){i[r]=null;continue}}i[r]=null,n[r]=null}}return new bi(i,n,e)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e=0&&e=0&&e{var e,i;return e=class{constructor(){}static initialize(r=y(e,i)){return r}static updateFromComparable(r,s){return this.update(r,s?.hashCode()??0)}static update(r,s){return s=Math.imul(s,z5e),s=s<>>32-dH,s=Math.imul(s,$5e),r=r^s,r=r<>>32-hH,r=Math.imul(r,G5e)+W5e,r}},i=new WeakMap,N(e,"MurmurHash"),Ee(e,i,701),T(e,"finish",(r,s)=>(r^=s*4,r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),r^=r>>>16,r)),T(e,"hashCode",(r,s)=>e.finish(e.update(s??y(e,i),r),1)),e})(),ye,Uo,vi,Ks=(vi=class{constructor(e){Ee(this,ye,[]);Ee(this,Uo);e&&this.addSet(e)}static of(e,i){let n=new vi;return n.addRange(e,i),n}[Symbol.iterator](){return y(this,ye)[Symbol.iterator]()}get(e){return y(this,ye)[e]}get minElement(){return y(this,ye).length===0?Q.INVALID_TYPE:y(this,ye)[0].start}get maxElement(){return y(this,ye).length===0?Q.INVALID_TYPE:y(this,ye)[y(this,ye).length-1].stop}clear(){ie(this,Uo,void 0),ie(this,ye,[])}addOne(e){this.addInterval(new hn(e,e))}addRange(e,i){this.addInterval(new hn(e,i))}addInterval(e){if(ie(this,Uo,void 0),y(this,ye).length===0)y(this,ye).push(e);else{for(let i=0;ithis.addInterval(i),this),this}complementWithVocabulary(e){let i=new vi;return!e||e.length===0?i:(i.addSet(e),i.subtract(this))}complement(e,i){let n=new vi;return n.addInterval(new hn(e,i)),n.subtract(this)}or(e){let i=new vi;return i.addSet(this),e.forEach(n=>i.addSet(n)),i}and(e){if(e.length===0)return new vi;let i=y(this,ye),n=y(e,ye),r,s=i.length,o=n.length,l=0,a=0;for(;ls.stop){n++;continue}let l,a;o.start>s.start&&(l=new hn(s.start,o.start-1)),o.stope)r=s-1;else return!0}return!1}removeRange(e){if(ie(this,Uo,void 0),e.start===e.stop)this.removeOne(e.start);else if(y(this,ye)!==null){let i=0;for(let n of y(this,ye)){if(e.stop<=n.start)return;if(e.start>n.start&&e.stop=n.stop?(y(this,ye).splice(i,1),i=i-1):e.start1&&(i+="{");for(let n=0;n":e?i+="'"+String.fromCodePoint(s)+"'":i+=s:e?i+="'"+String.fromCodePoint(s)+"'..'"+String.fromCodePoint(o)+"'":i+=s+".."+o,n1&&(i+="}"),i}toStringWithVocabulary(e){if(y(this,ye).length===0)return"{}";let i="";this.length>1&&(i+="{");for(let n=0;n":i+=this.elementName(e,s);else for(let l=s;l<=o;++l)l>s&&(i+=", "),i+=this.elementName(e,l);n1&&(i+="}"),i}toStringWithRuleNames(e){if(y(this,ye).length===0)return"{}";let i="";this.length>1&&(i+="{");let n=Ys.fromTokenNames(e);for(let r=0;r":i+=this.elementName(n,o);else for(let a=o;a<=l;++a)a>o&&(i+=", "),i+=this.elementName(n,a);r1&&(i+="}"),i}toArray(){let e=[];for(let i of y(this,ye))for(let n=i.start;n<=i.stop;n++)e.push(n);return e}get length(){let e=0;if(y(this,ye).length===1){let n=y(this,ye)[0];return n.stop-n.start+1}for(let n of y(this,ye))e+=n.length;return e}elementName(e,i){return i===Q.EOF?"":i===Q.EPSILON?"":e.getDisplayName(i)}},ye=new WeakMap,Uo=new WeakMap,N(vi,"IntervalSet"),vi),Ie=(()=>{var e;return e=class{target;constructor(n){this.target=n}get isEpsilon(){return!1}get label(){return null}},N(e,"Transition"),T(e,"INVALID",0),T(e,"EPSILON",1),T(e,"RANGE",2),T(e,"RULE",3),T(e,"PREDICATE",4),T(e,"ATOM",5),T(e,"ACTION",6),T(e,"SET",7),T(e,"NOT_SET",8),T(e,"WILDCARD",9),T(e,"PRECEDENCE",10),e})(),ad,Zw=(ad=class extends Ie{set;constructor(e,i){super(e),i?this.set=i:this.set=Ks.of(Q.INVALID_TYPE,Q.INVALID_TYPE)}get transitionType(){return Ie.SET}get label(){return this.set}matches(e,i,n){return this.set.contains(e)}toString(){return this.set.toString()}},N(ad,"SetTransition"),ad),ud,Xw=(ud=class extends Zw{get transitionType(){return Ie.NOT_SET}matches(e,i,n){return e>=i&&e<=n&&!super.matches(e,i,n)}toString(){return"~"+super.toString()}},N(ud,"NotSetTransition"),ud),wt=(()=>{var e,i;return e=class{constructor(r){Ee(this,i);ie(this,i,r)}static calculateEmptyHashCode(){let r=ge.initialize(31);return r=ge.finish(r,0),r}static calculateHashCodeSingle(r,s){let o=ge.initialize(31);return o=ge.updateFromComparable(o,r),o=ge.update(o,s),o=ge.finish(o,2),o}static calculateHashCodeList(r,s){let o=ge.initialize(31);for(let l of r)o=ge.updateFromComparable(o,l);for(let l of s)o=ge.update(o,l);return o=ge.finish(o,2*r.length),o}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return y(this,i)}toString(r){return""}},i=new WeakMap,N(e,"PredictionContext"),T(e,"EMPTY_RETURN_STATE",2147483647),T(e,"EMPTY"),T(e,"traceATNSimulator",!1),e})();var q5e=N(t=>t===null?"null":t,"valueToString"),sd=N(t=>Array.isArray(t)?"["+t.map(q5e).join(", ")+"]":"null","arrayToString"),c_=N((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i{if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i(t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xB7")),t),"escapeWhitespace"),p3,bu=(p3=class extends wt{parents=[];returnStates=[];constructor(e,i){return super(wt.calculateHashCodeList(e,i)),this.parents=e,this.returnStates=i,this}isEmpty(){return this.returnStates[0]===wt.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(e){return this===e?!0:!(e instanceof p3)||this.hashCode()!==e.hashCode()?!1:K5e(this.returnStates,e.returnStates)&&c_(this.parents,e.parents)}toString(){if(this.isEmpty())return"[]";let e=[];for(let i=0;i":this.symbol?.text??""}toStringTree(){return this.toString()}},N(cd,"TerminalNode"),cd),dd,Rp=(dd=class extends qo{accept(e){return e.visitErrorNode(this)}},N(dd,"ErrorNode"),dd),lr,yu=(lr=class{static toStringTree(e,i,n){i=i??null,n=n??null,n!==null&&(i=n.ruleNames);let r=lr.getNodeText(e,i);r=Y5e(r,!1);let s=e.getChildCount();if(s===0)return r;let o="("+r+" ";s>0&&(r=lr.toStringTree(e.getChild(0),i),o=o.concat(r));for(let l=1;l{i instanceof Rp&&(this.children.push(i),i.parent=this)})}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){let i=new qo(e);return this.children.push(i),i.parent=this,i}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,i){if(e<0||e>=this.children.length)return null;if(!i)return this.children[e];for(let n of this.children)if(n instanceof i){if(e===0)return n;e-=1}return null}getToken(e,i){if(i<0||i>=this.children.length)return null;for(let n of this.children)if("symbol"in n&&n.symbol?.type===e){if(i===0)return n;i-=1}return null}getTokens(e){let i=[];for(let n of this.children)"symbol"in n&&n.symbol?.type===e&&i.push(n);return i}getRuleContext(e,i){return this.getChild(e,i)}getRuleContexts(e){let i=[];for(let n of this.children)n instanceof e&&i.push(n);return i}getChildCount(){return this.children.length}getSourceInterval(){return this.start===null||this.stop===null?hn.INVALID_INTERVAL:new hn(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return y(this,Ja)}set parent(e){ie(this,Ja,e)}depth(){let e=0,i=this;for(;i!==null;)i=i.parent,e+=1;return e}isEmpty(){return this.invokingState===-1}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return this.children.length===0?"":this.children.map(e=>e.getText()).join("")}getAltNumber(){return Mt.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length===1?yu.toStringTree(this,null,e[0]):yu.toStringTree(this,e[0],e[1])}toString(e,i){e=e??null,i=i??null;let n=this,r="[";for(;n!==null&&n!==i;){if(e===null)n.isEmpty()||(r+=n.invokingState);else{let s=n.ruleIndex,o=s>=0&&sy(this,Fl)&&this.expand();let i=this.getBucket(e),n=y(this,_n)[i];if(!n)return n=[e],y(this,_n)[i]=n,++X_(this,$s)._,e;for(let r of n)if(y(this,jo).equals(r,e))return r;return n.push(e),++X_(this,$s)._,e}get(e){if(e==null)return e;let i=this.getBucket(e),n=y(this,_n)[i];if(n){for(let r of n)if(y(this,jo).equals(r,e))return r}}hashCode(){let e=ge.initialize();for(let i of y(this,_n))if(i!=null)for(let n of i){if(n==null)break;e=ge.update(e,y(this,jo).hashCode(n))}return e=ge.finish(e,this.size),e}equals(e){return e===this?!0:!(e instanceof si)||e.size!==this.size?!1:this.containsAll(e)}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return e==null?!1:this.get(e)!==void 0}*[Symbol.iterator](){yield*$i(this.toArray())}toArray(){let e=new Array(this.size),i=0;for(let n of y(this,_n))if(n!=null)for(let r of n){if(r==null)break;e[i++]=r}return e}containsAll(e){if(e instanceof si){for(let i of y(e,_n))if(i!=null)for(let n of i){if(n==null)break;if(!this.containsFast(n))return!1}}else for(let i of e)if(!this.containsFast(i))return!1;return!0}addAll(e){let i=!1;for(let n of e)this.getOrAdd(n)!==n&&(i=!0);return i}clear(){ie(this,_n,this.createBuckets(y(si,Z2))),ie(this,$s,0),ie(this,Fl,Math.floor(y(si,Z2)*y(si,hd)))}toString(){if(this.size===0)return"{}";let e="{",i=!0;for(let n of y(this,_n))if(n!=null)for(let r of n){if(r==null)break;i?i=!1:e+=", ",e+=r.toString()}return e+="}",e}toTableString(){let e="";for(let i of y(this,_n)){if(i==null){e+=`null `;continue}e+="[";let n=!0;for(let r of i)n?n=!1:e+=" ",r==null?e+="_":e+=r.toString();e+=`] -`}return e}getBucket(e){return y(this,jo).hashCode(e)&y(this,_n).length-1}expand(){let e=y(this,_n),i=y(this,_n).length*2,n=this.createBuckets(i);ie(this,_n,n),ie(this,Fl,Math.floor(i*y(si,hd)));for(let r of e)if(r)for(let s of r){let o=this.getBucket(s),l=y(this,_n)[o];l||(l=[],y(this,_n)[o]=l),l.push(s)}}get size(){return y(this,$s)}get isEmpty(){return y(this,$s)===0}createBuckets(e){return new Array(e)}},hd=new WeakMap,Z2=new WeakMap,jo=new WeakMap,_n=new WeakMap,$s=new WeakMap,Fl=new WeakMap,k(si,"HashSet"),Ee(si,hd,.75),Ee(si,Z2,16),si),fd,Z5e=(fd=class{keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,i){return this.keyComparator.equals(e.key,i.key)}},k(fd,"MapKeyEqualityComparator"),fd),m3,Eu=(m3=class{backingStore;constructor(e){e instanceof m3?this.backingStore=new as(e.backingStore):this.backingStore=new as(new Z5e(e))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){let i=this.backingStore.get({key:e});if(i)return i.value}get isEmpty(){return this.backingStore.isEmpty}set(e,i){let n=this.backingStore.get({key:e,value:i}),r;return n?(r=n.value,n.value=i):this.backingStore.add({key:e,value:i}),r}setIfAbsent(e,i){let n=this.backingStore.get({key:e,value:i}),r;return n?r=n.value:this.backingStore.add({key:e,value:i}),r}values(){return this.backingStore.toArray().map(e=>e.value)}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},k(m3,"HashMap"),m3),Qw=k((t,e)=>{if(e||(e=Ke.empty),!e.parent||e===Ke.empty)return wt.EMPTY;let i=Qw(t,e.parent),r=t.states[e.invokingState].transitions[0];return ls.create(i,r.followState.stateNumber)},"predictionContextFromRuleContext"),wH=k((t,e,i)=>{if(t.isEmpty())return t;let n=i.get(t);if(n)return n;if(n=e.get(t),n)return i.set(t,n),n;let r=!1,s=[];for(let l=0;l{if(t===e)return t;if(t instanceof ls&&e instanceof ls)return J5e(t,e,i,n);if(i){if(t instanceof fH)return t;if(e instanceof fH)return e}return t instanceof ls&&(t=new bu([t.parent],[t.returnState])),e instanceof ls&&(e=new bu([e.parent],[e.returnState])),X5e(t,e,i,n)},"merge"),X5e=k((t,e,i,n)=>{if(n){let c=n.get(t,e);if(c||(c=n.get(e,t),c))return c}let r=0,s=0,o=0,l=new Array(t.returnStates.length+e.returnStates.length).fill(0),a=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;r a"),t):u.equals(e)?(n!==null&&n.set(t,e,e),e):(Q5e(a),n!==null&&n.set(t,e,u),wt.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> "+u),u)},"mergeArrays"),Q5e=k(t=>{let e=new Eu(x3.instance);for(let i of t)i&&(e.containsKey(i)||e.set(i,i));for(let i=0;i{if(n!==null){let s=n.get(t,e);if(s!==null||(s=n.get(e,t),s!==null))return s}let r=ehe(t,e,i);if(r!==null)return n!==null&&n.set(t,e,r),r;if(t.returnState===e.returnState){let s=Jw(t.parent,e.parent,i,n);if(s===t.parent)return t;if(s===e.parent)return e;let o=ls.create(s,t.returnState);return n!==null&&n.set(t,e,o),o}else{let s=null;if((t===e||t.parent!==null&&t.parent===e.parent)&&(s=t.parent),s!==null){let u=[t.returnState,e.returnState];t.returnState>e.returnState&&(u[0]=e.returnState,u[1]=t.returnState);let c=[s,s],d=new bu(c,u);return n!==null&&n.set(t,e,d),d}let o=[t.returnState,e.returnState],l=[t.parent,e.parent];t.returnState>e.returnState&&(o[0]=e.returnState,o[1]=t.returnState,l=[e.parent,t.parent]);let a=new bu(l,o);return n!==null&&n.set(t,e,a),a}},"mergeSingletons"),ehe=k((t,e,i)=>{if(i){if(t===wt.EMPTY||e===wt.EMPTY)return wt.EMPTY}else{if(t===wt.EMPTY&&e===wt.EMPTY)return wt.EMPTY;if(t===wt.EMPTY){let n=[e.returnState,wt.EMPTY_RETURN_STATE],r=[e.parent,null];return new bu(r,n)}if(e===wt.EMPTY){let n=[t.returnState,wt.EMPTY_RETURN_STATE],r=[t.parent,null];return new bu(r,n)}}return null},"mergeRoot"),pd,Ko=(pd=class{data;constructor(e){e?this.data=new Uint32Array(e.map(i=>i>>>0)):this.data=new Uint32Array(1)}[Symbol.iterator](){let e=this.data.length,i=0,n=this.data[i],r=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;i>>5]&=~(1<>>5;return i>=this.data.length?!1:(this.data[i]&1<e)return i}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<>>5;if(i<=this.data.length)return;let n=new Uint32Array(i);n.set(this.data),n.fill(0,this.data.length),this.data=n}bitCount(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&63}},k(pd,"BitSet"),pd),wn,je=(wn=class{stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,i){this.transitions.length===0?this.epsilonOnlyTransitions=i.isEpsilon:this.epsilonOnlyTransitions!==i.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,i)}addTransition(e){this.transitions.length===0?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,i){this.transitions.splice(e,1,i)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k(wn,"ATNState"),T(wn,"INVALID_STATE_NUMBER",-1),T(wn,"INVALID_TYPE",0),T(wn,"BASIC",1),T(wn,"RULE_START",2),T(wn,"BLOCK_START",3),T(wn,"PLUS_BLOCK_START",4),T(wn,"STAR_BLOCK_START",5),T(wn,"TOKEN_START",6),T(wn,"RULE_STOP",7),T(wn,"BLOCK_END",8),T(wn,"STAR_LOOP_BACK",9),T(wn,"STAR_LOOP_ENTRY",10),T(wn,"PLUS_LOOP_BACK",11),T(wn,"LOOP_END",12),T(wn,"stateType",wn.INVALID_STATE_NUMBER),wn),os,Kt=(os=class{cachedHashCode;static andContext(e,i){if(e===null||e===os.NONE)return i;if(i===null||i===os.NONE)return e;let n=new the(e,i);return n.operands.length===1?n.operands[0]:n}static orContext(e,i){if(e===null)return i;if(i===null)return e;if(e===os.NONE||i===os.NONE)return os.NONE;let n=new nhe(e,i);return n.operands.length===1?n.operands[0]:n}static filterPrecedencePredicates(e){let i=[];for(let n of e)n instanceof os.PrecedencePredicate&&i.push(n);return i}evalPrecedence(e,i){return this}},k(os,"SemanticContext"),os),$l,the=($l=class extends Kt{operands;constructor(e,i){super();let n=new as;e instanceof $l?e.operands.forEach(s=>{n.add(s)}):n.add(e),i instanceof $l?i.operands.forEach(s=>{n.add(s)}):n.add(i);let r=Kt.filterPrecedencePredicates(n);if(r.length>0){let s=null;r.forEach(o=>{(s===null||o.precedence{s=s===null?o:Kt.andContext(s,o)}),s}toString(){let e=this.operands.map(i=>i.toString());return(e.length>3?e.slice(3):e).join("&&")}},k($l,"AND"),$l),Gl,nhe=(Gl=class extends Kt{operands;constructor(e,i){super();let n=new as;e instanceof Gl?e.operands.forEach(s=>{n.add(s)}):n.add(e),i instanceof Gl?i.operands.forEach(s=>{n.add(s)}):n.add(i);let r=Kt.filterPrecedencePredicates(n);if(r.length>0){let s=r.sort((l,a)=>l.compareTo(a)),o=s[s.length-1];n.add(o)}this.operands=n.toArray()}equals(e){return this===e?!0:e instanceof Gl?c_(this.operands,e.operands):!1}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize();for(let i of this.operands)e=ge.updateFromComparable(e,i);e=ge.update(e,3383313031),this.cachedHashCode=ge.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,i){for(let n of this.operands)if(n.evaluate(e,i))return!0;return!1}evalPrecedence(e,i){let n=!1,r=[];for(let o of this.operands){let l=o.evalPrecedence(e,i);if(n||=l!==o,l===Kt.NONE)return Kt.NONE;l!==null&&r.push(l)}if(!n)return this;if(r.length===0)return null;let s=null;return r.forEach(o=>{s=s===null?o:Kt.orContext(s,o)}),s}toString(){let e=this.operands.map(i=>i.toString());return(e.length>3?e.slice(3):e).join("||")}},k(Gl,"OR"),Gl);(t=>{let n=class n extends t{ruleIndex;predIndex;isCtxDependent;constructor(o,l,a){super(),this.ruleIndex=o??-1,this.predIndex=l??-1,this.isCtxDependent=a??!1}evaluate(o,l){let a=this.isCtxDependent?l:null;return o.sempred(a,this.ruleIndex,this.predIndex)}hashCode(){if(this.cachedHashCode===void 0){let o=ge.initialize();o=ge.update(o,this.ruleIndex),o=ge.update(o,this.predIndex),o=ge.update(o,this.isCtxDependent?1:0),o=ge.finish(o,3),this.cachedHashCode=o}return this.cachedHashCode}equals(o){return this===o?!0:this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}};k(n,"Predicate");let e=n;t.Predicate=e;let r=class r extends t{precedence;constructor(o){super(),this.precedence=o??0}evaluate(o,l){return o.precpred(l,this.precedence)}evalPrecedence(o,l){return o.precpred(l??null,this.precedence)?t.NONE:null}compareTo(o){return this.precedence-o.precedence}hashCode(){return 31+this.precedence}equals(o){return this===o?!0:this.precedence===o.precedence}toString(){return"{"+this.precedence+">=prec}?"}};k(r,"PrecedencePredicate");let i=r;t.PrecedencePredicate=i,t.NONE=new e})(Kt||(Kt={}));var md,Np,$o,Wn=($o=class{constructor(e,i,n,r){T(this,"state");T(this,"alt");T(this,"reachesIntoOuterContext",!1);T(this,"precedenceFilterSuppressed",!1);T(this,"cachedHashCode");Ee(this,md,null);Ee(this,Np);this.state=i,this.alt=e.alt,this.context=n,ie(this,Np,r??Kt.NONE),this.reachesIntoOuterContext=e.reachesIntoOuterContext,e.precedenceFilterSuppressed!==void 0&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}get semanticContext(){return y(this,Np)}static duplicate(e,i){return new $o(e,e.state,e.context,i??e.semanticContext)}static createWithContext(e,i,n,r){return new $o({alt:i},e,n,r)}static createWithConfig(e,i,n){return new $o(i,e,n??i.context,i.semanticContext)}static createWithSemanticContext(e,i,n){return new $o(i,e??i.state,i.context,n)}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize(7);e=ge.update(e,this.state.stateNumber),e=ge.update(e,this.alt),e=ge.updateFromComparable(e,y(this,md)),e=ge.updateFromComparable(e,this.semanticContext),e=ge.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return y(this,md)}set context(e){ie(this,md,e),this.cachedHashCode=void 0}equals(e){return this===e?!0:this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(this.context===null?e.context===null:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,i=!0){let n="";return i&&(n=","+this.alt),"("+this.state+n+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==Kt.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},md=new WeakMap,Np=new WeakMap,k($o,"ATNConfig"),$o),Wl,X2,ihe=(Wl=class{constructor(){Ee(this,X2)}getDecisionLookahead(e){if(!e)return;let i=e.transitions.length,n=new Array(i);for(let r=0;r0&&!s.contains(Wl.hitPredicate)&&(n[r]=s)}return n}look(e,i,n,r){ie(this,X2,e);let s=new Ks,o=r?Qw(e,r):null;return this.doLook(i,n,o,s,new as,new Ko,!0,!0),s}doLook(e,i,n,r,s,o,l,a){let u=Wn.createWithContext(e,0,n);if(!s.get(u)){if(s.add(u),e===i)if(n){if(n.isEmpty()&&a){r.addOne(Q.EOF);return}}else{r.addOne(Q.EPSILON);return}if(e.constructor.stateType===je.RULE_STOP){if(n){if(n.isEmpty()&&a){r.addOne(Q.EOF);return}}else{r.addOne(Q.EPSILON);return}if(n!==wt.EMPTY){let c=o.get(e.ruleIndex);try{o.clear(e.ruleIndex);for(let d=0;d{var e,i;return e=class{grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];constructor(r,s){this.grammarType=r,this.maxTokenType=s}nextTokens(r,s){if(!s&&r.nextTokenWithinRule)return r.nextTokenWithinRule;let o=y(e,i).look(this,r,void 0,s);return s||(r.nextTokenWithinRule=o),o}addState(r){r&&(r.stateNumber=this.states.length),this.states.push(r)}removeState(r){this.states[r.stateNumber]=null}defineDecisionState(r){return this.decisionToState.push(r),r.decision=this.decisionToState.length-1,r.decision}getDecisionState(r){return this.decisionToState.length===0?null:this.decisionToState[r]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(r,s){if(r<0||r>=this.states.length)throw new Error("Invalid state number.");let o=this.states[r],l=this.nextTokens(o);if(!l.contains(Q.EPSILON))return l;let a=s,u=new Ks;for(u.addSet(l),u.removeOne(Q.EPSILON);a!==null&&a.invokingState>=0&&l.contains(Q.EPSILON);){let d=this.states[a.invokingState].transitions[0];l=this.nextTokens(d.followState),u.addSet(l),u.removeOne(Q.EPSILON),a=a.parent}return l.contains(Q.EPSILON)&&u.addOne(Q.EOF),u}},i=new WeakMap,k(e,"ATN"),T(e,"INVALID_ALT_NUMBER",0),T(e,"LEXER",0),T(e,"PARSER",1),Ee(e,i,new ihe),e})(),au,pH=(au=class{hashCode(e){let i=7;return i=31*i+e.state.stateNumber,i=31*i+e.alt,i=31*i+e.semanticContext.hashCode(),i}equals(e,i){return e===i?!0:e.state.stateNumber===i.state.stateNumber&&e.alt===i.alt&&e.semanticContext.equals(i.semanticContext)}},k(au,"KeyTypeEqualityComparer"),T(au,"instance",new au),au),eu,gd,Ll=(gd=class{constructor(e){T(this,"configLookup",new as(pH.instance));T(this,"configs",[]);T(this,"uniqueAlt",0);T(this,"hasSemanticContext",!1);T(this,"dipsIntoOuterContext",!1);T(this,"fullCtx",!1);T(this,"readOnly",!1);T(this,"conflictingAlts",null);T(this,"firstStopState");Ee(this,eu,-1);if(e!==void 0)if(typeof e=="boolean")this.fullCtx=e??!0;else{let i=e;this.addAll(i.configs),this.uniqueAlt=i.uniqueAlt,this.conflictingAlts=i.conflictingAlts,this.hasSemanticContext=i.hasSemanticContext,this.dipsIntoOuterContext=i.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,i=null){if(this.readOnly)throw new Error("This set is readonly");!this.firstStopState&&e.state.constructor.stateType===je.RULE_STOP&&(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==Kt.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;let n=this.configLookup.getOrAdd(e);if(n===e){ie(this,eu,-1),this.configs.push(e);return}let r=!this.fullCtx,s=Jw(n.context,e.context,r,i);n.reachesIntoOuterContext||=e.reachesIntoOuterContext,n.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,n.context=s}get elements(){return this.configs}getAlts(){let e=new Ko;for(let i of this.configs)e.set(i.alt);return e}getPredicates(){let e=[];for(let i of this.configs)i.semanticContext!==Kt.NONE&&e.push(i.semanticContext);return e}getStates(){let e=new as;for(let i of this.configs)e.add(i.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(this.configLookup.size!==0)for(let i of this.configs)i.context=e.getCachedContext(i.context)}addAll(e){for(let i of e)this.add(i);return!1}equals(e){return!!(this===e||this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext&&c_(this.configs,e.configs))}hashCode(){return y(this,eu)===-1&&ie(this,eu,this.computeHashCode()),y(this,eu)}get length(){return this.configs.length}isEmpty(){return this.configs.length===0}contains(e){if(this.configLookup===null)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(this.configLookup===null)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],ie(this,eu,-1),this.configLookup=new as(pH.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return sd(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Mt.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=ge.initialize();return this.configs.forEach(i=>{e=ge.update(e,i.hashCode())}),e=ge.finish(e,this.configs.length),e}},eu=new WeakMap,k(gd,"ATNConfigSet"),gd),Q2,mH=(Q2=class extends je{},k(Q2,"BasicState"),T(Q2,"stateType",je.BASIC),Q2),_d,A3=(_d=class extends je{decision=-1;nonGreedy=!1},k(_d,"DecisionState"),_d),vd,f3=(vd=class extends A3{endState},k(vd,"BlockStartState"),vd),J2,Vw=(J2=class extends je{startState},k(J2,"BlockEndState"),T(J2,"stateType",je.BLOCK_END),J2),e3,id=(e3=class extends je{loopBackState},k(e3,"LoopEndState"),T(e3,"stateType",je.LOOP_END),e3),t3,Gw=(t3=class extends je{stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},k(t3,"RuleStartState"),T(t3,"stateType",je.RULE_START),t3),n3,qs=(n3=class extends je{},k(n3,"RuleStopState"),T(n3,"stateType",je.RULE_STOP),n3),i3,rhe=(i3=class extends A3{},k(i3,"TokensStartState"),T(i3,"stateType",je.TOKEN_START),i3),r3,gH=(r3=class extends A3{},k(r3,"PlusLoopbackState"),T(r3,"stateType",je.PLUS_LOOP_BACK),r3),s3,Bw=(s3=class extends je{},k(s3,"StarLoopbackState"),T(s3,"stateType",je.STAR_LOOP_BACK),s3),o3,Qa=(o3=class extends A3{loopBackState;precedenceRuleDecision=!1},k(o3,"StarLoopEntryState"),T(o3,"stateType",je.STAR_LOOP_ENTRY),o3),l3,Uw=(l3=class extends f3{loopBackState},k(l3,"PlusBlockStartState"),T(l3,"stateType",je.PLUS_BLOCK_START),l3),a3,jw=(a3=class extends f3{},k(a3,"StarBlockStartState"),T(a3,"stateType",je.STAR_BLOCK_START),a3),u3,_H=(u3=class extends f3{},k(u3,"BasicBlockStartState"),T(u3,"stateType",je.BLOCK_START),u3),Pp,bd,Dp=(bd=class extends Ie{constructor(i,n){super(i);T(this,"labelValue");Ee(this,Pp);this.labelValue=n,ie(this,Pp,Ks.of(n,n))}get label(){return y(this,Pp)}get transitionType(){return Ie.ATOM}matches(i){return this.labelValue===i}toString(){return this.labelValue.toString()}},Pp=new WeakMap,k(bd,"AtomTransition"),bd),yd,Ww=(yd=class extends Ie{ruleIndex;precedence;followState;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.precedence=n,this.followState=r}get isEpsilon(){return!0}get transitionType(){return Ie.RULE}matches(e,i,n){return!1}},k(yd,"RuleTransition"),yd),Lp,Ed,qw=(Ed=class extends Ie{constructor(i,n,r){super(i);T(this,"start");T(this,"stop");Ee(this,Lp,new Ks);this.start=n,this.stop=r,y(this,Lp).addRange(n,r)}get label(){return y(this,Lp)}get transitionType(){return Ie.RANGE}matches(i,n,r){return i>=this.start&&i<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},Lp=new WeakMap,k(Ed,"RangeTransition"),Ed),Cd,xH=(Cd=class extends Ie{ruleIndex;actionIndex;isCtxDependent;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.actionIndex=n===void 0?-1:n,this.isCtxDependent=r===void 0?!1:r}get isEpsilon(){return!0}get transitionType(){return Ie.ACTION}matches(e,i,n){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},k(Cd,"ActionTransition"),Cd),Fp,Id,Ap=(Id=class extends Ie{constructor(i,n=-1){super(i);Ee(this,Fp);ie(this,Fp,n)}get outermostPrecedenceReturn(){return y(this,Fp)}get isEpsilon(){return!0}get transitionType(){return Ie.EPSILON}matches(){return!1}toString(){return"epsilon"}},Fp=new WeakMap,k(Id,"EpsilonTransition"),Id),Td,she=(Td=class extends Ie{get transitionType(){return Ie.WILDCARD}matches(e,i,n){return e>=i&&e<=n}toString(){return"."}},k(Td,"WildcardTransition"),Td),Sd,AH=(Sd=class extends Ie{constructor(e){super(e)}},k(Sd,"AbstractPredicateTransition"),Sd),wd,DH=(wd=class extends AH{ruleIndex;predIndex;isCtxDependent;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.predIndex=n,this.isCtxDependent=r}get isEpsilon(){return!0}matches(e,i,n){return!1}get transitionType(){return Ie.PREDICATE}getPredicate(){return new Kt.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},k(wd,"PredicateTransition"),wd),xd,ohe=(xd=class extends AH{precedence;constructor(e,i){super(e),this.precedence=i}get isEpsilon(){return!0}matches(e,i,n){return!1}getPredicate(){return new Kt.PrecedencePredicate(this.precedence)}get transitionType(){return Ie.PRECEDENCE}toString(){return this.precedence+" >= _p"}},k(xd,"PrecedencePredicateTransition"),xd),Jt={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7},uu,lhe=(uu=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.SKIP}equals(e){return e===this}hashCode(){return Jt.SKIP}execute(e){e.skip()}toString(){return"skip"}},k(uu,"LexerSkipAction"),T(uu,"instance",new uu),uu),Ad,g3,ahe=(g3=class{constructor(e){T(this,"channel");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Ad);this.actionType=Jt.CHANNEL,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(y(this,Ad)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.channel),ie(this,Ad,ge.finish(e,2))}return y(this,Ad)}equals(e){return this===e?!0:e instanceof g3?this.channel===e.channel:!1}toString(){return"channel("+this.channel+")"}},Ad=new WeakMap,k(g3,"LexerChannelAction"),g3),Dd,_3,uhe=(_3=class{constructor(e,i){T(this,"ruleIndex");T(this,"actionIndex");T(this,"actionType");T(this,"isPositionDependent",!0);Ee(this,Dd);this.actionType=Jt.CUSTOM,this.ruleIndex=e,this.actionIndex=i}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(y(this,Dd)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.ruleIndex),e=ge.update(e,this.actionIndex),ie(this,Dd,ge.finish(e,3))}return y(this,Dd)}equals(e){return this===e?!0:e instanceof _3?this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex:!1}},Dd=new WeakMap,k(_3,"LexerCustomAction"),_3),cu,che=(cu=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.MORE}equals(e){return e===this}hashCode(){return Jt.MORE}execute(e){e.more()}toString(){return"more"}},k(cu,"LexerMoreAction"),T(cu,"instance",new cu),cu),Od,v3,dhe=(v3=class{constructor(e){T(this,"type");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Od);this.actionType=Jt.TYPE,this.type=e}execute(e){e.type=this.type}hashCode(){if(y(this,Od)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.type),ie(this,Od,ge.finish(e,2))}return y(this,Od)}equals(e){return this===e?!0:e instanceof v3?this.type===e.type:!1}toString(){return"type("+this.type+")"}},Od=new WeakMap,k(v3,"LexerTypeAction"),v3),Rd,b3,hhe=(b3=class{constructor(e){T(this,"mode");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Rd);this.actionType=Jt.PUSH_MODE,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(y(this,Rd)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.mode),ie(this,Rd,ge.finish(e,2))}return y(this,Rd)}equals(e){return this===e?!0:e instanceof b3?this.mode===e.mode:!1}toString(){return"pushMode("+this.mode+")"}},Rd=new WeakMap,k(b3,"LexerPushModeAction"),b3),du,fhe=(du=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.POP_MODE}equals(e){return e===this}hashCode(){return Jt.POP_MODE}execute(e){e.popMode()}toString(){return"popMode"}},k(du,"LexerPopModeAction"),T(du,"instance",new du),du),Md,y3,phe=(y3=class{constructor(e){T(this,"mode");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Md);this.actionType=Jt.MODE,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(y(this,Md)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.mode),ie(this,Md,ge.finish(e,2))}return y(this,Md)}equals(e){return this===e?!0:e instanceof y3?this.mode===e.mode:!1}toString(){return"mode("+this.mode+")"}},Md=new WeakMap,k(y3,"LexerModeAction"),y3),Iu=(()=>{var e;return e=class{data=[];pos=0;deserializationOptions;actionFactories;constructor(n){n||(n={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=n}deserialize(n){this.data=n,this.checkVersion();let r=this.readATN();this.readStates(r),this.readRules(r),this.readModes(r);let s=[];return this.readSets(r,s),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&r.grammarType===Mt.PARSER&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}checkVersion(){let n=this.data[this.pos++];if(n!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+n+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){let n=this.data[this.pos++],r=this.data[this.pos++];return new Mt(n,r)}readStates(n){let r,s,o=[],l=[],a=this.data[this.pos++];for(let d=0;d0;)l.addTransition(d.transitions[h-1]),d.transitions=d.transitions.slice(-1);n.ruleToStartState[r].addTransition(new Ap(l)),c&&a.addTransition(new Ap(c));let f=new mH;n.addState(f),f.addTransition(new Dp(a,n.ruleToTokenType[r])),l.addTransition(new Ap(f))}stateIsEndStateFor(n,r){if(n.ruleIndex!==r||!(n instanceof Qa))return null;let s=n.transitions[n.transitions.length-1].target;return s instanceof id&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof qs?n:null}markPrecedenceDecisions(n){for(let r of n.states)if(r instanceof Qa&&n.ruleToStartState[r.ruleIndex].isPrecedenceRule){let s=r.transitions[r.transitions.length-1].target;s instanceof id&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof qs&&(r.precedenceRuleDecision=!0)}}verifyATN(n){if(this.deserializationOptions.verifyATN){for(let r of n.states)if(r!==null)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof Uw)this.checkCondition(r.loopBackState!==null);else if(r instanceof Qa)if(this.checkCondition(r.loopBackState!==null),this.checkCondition(r.transitions.length===2),r.transitions[0].target instanceof jw)this.checkCondition(r.transitions[1].target instanceof id),this.checkCondition(!r.nonGreedy);else if(r.transitions[0].target instanceof id)this.checkCondition(r.transitions[1].target instanceof jw),this.checkCondition(r.nonGreedy);else throw new Error("IllegalState");else r instanceof Bw?(this.checkCondition(r.transitions.length===1),this.checkCondition(r.transitions[0].target instanceof Qa)):r instanceof id?this.checkCondition(r.loopBackState!==null):r instanceof Gw?this.checkCondition(r.stopState!==null):r instanceof f3?this.checkCondition(r.endState!==null):r instanceof Vw?this.checkCondition(r.startState!==null):r instanceof A3?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof qs)}}checkCondition(n,r){if(!n)throw r==null&&(r="IllegalState"),r}edgeFactory(n,r,s,o,l,a,u){let c=n.states[s];switch(r){case Ie.EPSILON:return new Ap(c);case Ie.RANGE:return a!==0?new qw(c,Q.EOF,l):new qw(c,o,l);case Ie.RULE:return new Ww(n.states[o],l,a,c);case Ie.PREDICATE:return new DH(c,o,l,a!==0);case Ie.PRECEDENCE:return new ohe(c,o);case Ie.ATOM:return a!==0?new Dp(c,Q.EOF):new Dp(c,o);case Ie.ACTION:return new xH(c,o,l,a!==0);case Ie.SET:return new Zw(c,u[o]);case Ie.NOT_SET:return new Xw(c,u[o]);case Ie.WILDCARD:return new she(c);default:throw new Error("The specified transition type: "+r+" is not valid.")}}stateFactory(n,r){let s=e.stateTypeMapper.get(n);if(!s)throw new Error("The specified state type "+n+" is not valid.");let o=new s;return o.ruleIndex=r,o}lexerActionFactory(n,r,s){let o=e.lexerActionFactoryMapper.get(n);if(!o)throw new Error("The specified lexer action type "+n+" is not valid.");return o(r,s)}},k(e,"ATNDeserializer"),T(e,"SERIALIZED_VERSION",4),T(e,"stateTypeMapper",new Map([[je.INVALID_TYPE,void 0],[je.BASIC,mH],[je.RULE_START,Gw],[je.BLOCK_START,_H],[je.PLUS_BLOCK_START,Uw],[je.STAR_BLOCK_START,jw],[je.TOKEN_START,rhe],[je.RULE_STOP,qs],[je.BLOCK_END,Vw],[je.STAR_LOOP_BACK,Bw],[je.STAR_LOOP_ENTRY,Qa],[je.PLUS_LOOP_BACK,gH],[je.LOOP_END,id]])),T(e,"lexerActionFactoryMapper",new Map([[Jt.CHANNEL,n=>new ahe(n)],[Jt.CUSTOM,(n,r)=>new uhe(n,r)],[Jt.MODE,n=>new phe(n)],[Jt.MORE,()=>che.instance],[Jt.POP_MODE,()=>fhe.instance],[Jt.PUSH_MODE,n=>new hhe(n)],[Jt.SKIP,()=>lhe.instance],[Jt.TYPE,n=>new dhe(n)]])),e})(),Vl,E3,mhe=(E3=class extends Eu{constructor(){super(...arguments);Ee(this,Vl,[])}clear(){super.clear(),ie(this,Vl,[])}get(i){return super.get(i)}set(i,n){let r=super.set(i,n);return r===void 0&&y(this,Vl).push(i),r}setIfAbsent(i,n){let r=super.setIfAbsent(i,n);return r===void 0&&y(this,Vl).push(i),r}values(){return{[Symbol.iterator]:()=>{let i=0;return{next:()=>i0)for(let i of this.atn.modeToStartState)this.data.push(i.stateNumber)}addRuleStatesAndLexerTokenTypes(){let e=this.atn.ruleToStartState.length;this.data.push(e);for(let i=0;i",this.predicates?e+=sd(this.predicates):e+=this.prediction),e.toString()}},k(vu,"DFAState"),vu),c3,zo=(c3=class{atn;sharedContextCache;constructor(e,i){return this.atn=e,this.sharedContextCache=i,this}getCachedContext(e){if(!this.sharedContextCache)return e;let i=new Eu(x3.instance);return wH(e,this.sharedContextCache,i)}},k(c3,"ATNSimulator"),T(c3,"ERROR",od.fromState(2147483647)),c3),C3,hUe=(C3=class{static createWithCodePoint(e,i){return C3.createWithCodePointRange(e,i,i)}static createWithCodePointRange(e,i,n){return i===n?new Dp(e,i):new qw(e,i,n)}},k(C3,"CodePointTransitions"),C3),kd,ghe=(kd=class{decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}},k(kd,"DecisionInfo"),kd),Go,Bo=(Go=class extends Wn{lexerActionExecutor;passedThroughNonGreedyDecision;constructor(e,i,n,r){return super(e,i,n??e.context,n?Kt.NONE:e.semanticContext),this.lexerActionExecutor=n?r:e.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=Go.checkNonGreedyDecision(e,this.state),this}static createWithExecutor(e,i,n){return new Go(e,i,e.context,n)}static createWithConfig(e,i,n){return new Go(i,e,n??null,i.lexerActionExecutor)}static createWithContext(e,i,n){return new Go({alt:i},e,n,null)}static checkNonGreedyDecision(e,i){return e.passedThroughNonGreedyDecision||"nonGreedy"in i&&i.nonGreedy}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize(7);e=ge.update(e,this.state.stateNumber),e=ge.update(e,this.alt),e=ge.updateFromComparable(e,this.context),e=ge.updateFromComparable(e,this.semanticContext),e=ge.update(e,this.passedThroughNonGreedyDecision?1:0),e=ge.updateFromComparable(e,this.lexerActionExecutor),e=ge.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e?!0:this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},k(Go,"LexerATNConfig"),Go),Nd,d_=(Nd=class{syntaxError(e,i,n,r,s,o){}reportAmbiguity(e,i,n,r,s,o,l){}reportAttemptingFullContext(e,i,n,r,s,o){}reportContextSensitivity(e,i,n,r,s,o){}},k(Nd,"BaseErrorListener"),Nd),hu,_he=(hu=class extends d_{syntaxError(e,i,n,r,s,o){console.error("line "+n+":"+r+" "+s)}},k(hu,"ConsoleErrorListener"),T(hu,"instance",new hu),hu),Pd,vhe=(Pd=class extends d_{constructor(e){return super(),this.delegates=e,this}syntaxError(e,i,n,r,s,o){this.delegates.forEach(l=>{l.syntaxError(e,i,n,r,s,o)})}reportAmbiguity(e,i,n,r,s,o,l){this.delegates.forEach(a=>{a.reportAmbiguity(e,i,n,r,s,o,l)})}reportAttemptingFullContext(e,i,n,r,s,o){this.delegates.forEach(l=>{l.reportAttemptingFullContext(e,i,n,r,s,o)})}reportContextSensitivity(e,i,n,r,s,o){this.delegates.forEach(l=>{l.reportContextSensitivity(e,i,n,r,s,o)})}},k(Pd,"ProxyErrorListener"),Pd),OH=(()=>{var e,i,n;return e=class{constructor(){T(this,"interpreter");Ee(this,i,[_he.instance]);Ee(this,n,-1)}checkVersion(s){let o="4.13.1";o!==s&&console.error("ANTLR runtime and generated code versions disagree: "+o+"!="+s)}addErrorListener(s){y(this,i).push(s)}removeErrorListeners(){ie(this,i,[])}removeErrorListener(s){for(let o=0;oo.set(l,a)),e.ruleIndexMapCache.set(s,o)),o}getTokenType(s){let o=this.getTokenTypeMap().get(s);return o||Q.INVALID_TYPE}getErrorHeader(s){let o=s.offendingToken?.line,l=s.offendingToken?.column;return"line "+o+":"+l}get errorListenerDispatch(){return new vhe(y(this,i))}sempred(s,o,l){return!0}precpred(s,o){return!0}action(s,o,l){}get atn(){return this.interpreter.atn}get state(){return y(this,n)}set state(s){ie(this,n,s)}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},i=new WeakMap,n=new WeakMap,k(e,"Recognizer"),T(e,"EOF",-1),T(e,"tokenTypeMapCache",new Map),T(e,"ruleIndexMapCache",new Map),e})(),Kw=(()=>{var e,i;return e=class{constructor(r){T(this,"source");T(this,"tokenIndex");T(this,"start");T(this,"stop");T(this,"type");T(this,"line");T(this,"column");T(this,"channel");Ee(this,i);this.type=r.type,this.source=r.source,this.tokenIndex=r.tokenIndex??-1,this.line=r.line??0,this.column=r.column??-1,this.channel=r.channel??Q.DEFAULT_CHANNEL,this.start=r.start??0,this.stop=r.stop??0,ie(this,i,r.text),r.source[0]!==null&&(this.line=r.source[0].line,this.column=r.source[0].column)}static fromToken(r){let s;return"source"in r?s=r.source:s=[r.tokenSource,r.inputStream],new e({type:r.type,line:r.line,tokenIndex:r.tokenIndex,column:r.column,channel:r.channel,start:r.start,stop:r.stop,text:r.text,source:s})}static fromType(r,s){return new e({type:r,text:s,source:e.EMPTY_SOURCE})}static fromSource(r,s,o,l,a){return new e({type:s,channel:o,start:l,stop:a,source:r})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:y(this,i)})}toString(r){let s="";this.channel>0&&(s=",channel="+this.channel);let o=this.text;o?(o=o.replace(/\n/g,"\\n"),o=o.replace(/\r/g,"\\r"),o=o.replace(/\t/g,"\\t")):o="";let l=String(this.type);return r&&(l=r.vocabulary.getDisplayName(this.type)??""),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+l+">"+s+","+this.line+":"+this.column+"]"}get text(){if(y(this,i))return y(this,i);let r=this.inputStream;if(!r)return;let s=r.size;return this.start"}set text(r){ie(this,i,r)}setText(r){ie(this,i,r)}setType(r){this.type=r}setLine(r){this.line=r}setCharPositionInLine(r){this.column=r}setChannel(r){this.channel=r}setTokenIndex(r){this.tokenIndex=r}},i=new WeakMap,k(e,"CommonToken"),T(e,"EMPTY_SOURCE",[null,null]),e})(),fu,RH=(fu=class{copyText=!1;constructor(e){this.copyText=e??!1}create(e,i,n,r,s,o,l,a){let u=Kw.fromSource(e,i,r,s,o);return u.line=l,u.column=a,n?u.text=n:this.copyText&&e[1]!==null&&(u.text=e[1].getTextFromRange(s,o)),u}},k(fu,"CommonTokenFactory"),T(fu,"DEFAULT",new fu),fu),I3,rt=(I3=class extends Error{ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,I3),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.recognizer!==null&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return this.recognizer!==null&&this.ctx!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},k(I3,"RecognitionException"),I3),Ld,l_=(Ld=class extends rt{startIndex;deadEndConfigs;constructor(e,i,n,r){super({message:"",recognizer:e,input:i,ctx:null}),this.startIndex=n,this.deadEndConfigs=r}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex":i===` -`?"\\n":i===" "?"\\t":i==="\r"?"\\r":i}getCharErrorDisplay(i){return"'"+this.getErrorDisplayForChar(i)+"'"}recover(i){y(this,dn).LA(1)!==Q.EOF&&(i instanceof l_?this.interpreter.consume(y(this,dn)):y(this,dn).consume())}get inputStream(){return y(this,dn)}set inputStream(i){this.reset(!1),ie(this,dn,i)}set tokenFactory(i){ie(this,tu,i)}get tokenFactory(){return y(this,tu)}get sourceName(){return y(this,dn).getSourceName()}get line(){return this.interpreter.line}set line(i){this.interpreter.line=i}get column(){return this.interpreter.column}set column(i){this.interpreter.column=i}get text(){return y(this,jl)?y(this,jl):this.interpreter.getText(y(this,dn))}set text(i){ie(this,jl,i)}},dn=new WeakMap,Bl=new WeakMap,Fd=new WeakMap,Ul=new WeakMap,jl=new WeakMap,tu=new WeakMap,k(oi,"Lexer"),T(oi,"DEFAULT_MODE",0),T(oi,"MORE",-2),T(oi,"SKIP",-3),T(oi,"DEFAULT_TOKEN_CHANNEL",Q.DEFAULT_CHANNEL),T(oi,"HIDDEN",Q.HIDDEN_CHANNEL),oi),T3,Yw=(T3=class extends Error{constructor(e){super(),Error.captureStackTrace(this,T3)}},k(T3,"ParseCancellationException"),T3),Vd,fUe=(Vd=class{static parseInterpreterData(e){let i=[],n=[],r=[],s=[],o=[],l=e.split(` -`),a=0,u=l[a++];if(u!=="token literal names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;s.push(u==="null"?null:u)}while(!0);if(u=l[a++],u!=="token symbolic names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;o.push(u==="null"?null:u)}while(!0);if(u=l[a++],u!=="rule names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;i.push(u)}while(!0);if(u=l[a++],u==="channel names:"){do{if(u=l[a++],u.length===0)break;n.push(u)}while(!0);if(u=l[a++],u!=="mode names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;r.push(u)}while(!0)}if(u=l[a++],u!=="atn:")throw new Error("Unexpected data entry");u=l[a++];let c=u.split(","),d,h=[];for(let p=0;p0?n:void 0,modes:r.length>0?r:void 0}}},k(Vd,"InterpreterDataReader"),Vd),nu,S3,bhe=(S3=class extends as{constructor(){super(...arguments);Ee(this,nu,[])}getOrAdd(i){let n=this.size,r=super.getOrAdd(i);return this.size>n&&y(this,nu).push(i),r}equals(i){return i instanceof S3?super.equals(i):!1}add(i){return super.add(i)?(y(this,nu).push(i),!0):!1}clear(){super.clear(),ie(this,nu,[])}*[Symbol.iterator](){yield*$i(y(this,nu))}toArray(){return y(this,nu).slice(0)}},nu=new WeakMap,k(S3,"OrderedHashSet"),S3),Bd,vH=(Bd=class extends Ll{constructor(){super(),this.configLookup=new bhe}},k(Bd,"OrderedATNConfigSet"),Bd),Ud,w3,Hw=(w3=class{constructor(e,i){T(this,"offset");T(this,"action");T(this,"actionType");T(this,"isPositionDependent",!0);Ee(this,Ud);this.actionType=i.actionType,this.offset=e,this.action=i}execute(e){this.action.execute(e)}hashCode(){if(y(this,Ud)===void 0){let e=ge.initialize();e=ge.update(e,this.offset),e=ge.updateFromComparable(e,this.action),ie(this,Ud,ge.finish(e,2))}return y(this,Ud)}equals(e){return this===e?!0:e instanceof w3?this.offset===e.offset&&this.action===e.action:!1}},Ud=new WeakMap,k(w3,"LexerIndexedCustomAction"),w3),iu,ql,yhe=(ql=class{constructor(e){T(this,"lexerActions");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,iu);return this.actionType=-1,this.lexerActions=e??[],this}static append(e,i){if(e===null)return new ql([i]);let n=e.lexerActions.concat([i]);return new ql(n)}fixOffsetBeforeMatch(e){let i=null;for(let n=0;ni.equals(e.lexerActions[n]))}},iu=new WeakMap,k(ql,"LexerActionExecutor"),ql),jd,MH=(jd=class{dfa;vocabulary;constructor(e,i){this.dfa=e,this.vocabulary=i}toString(){if(!this.dfa.s0)return"";let e="",i=this.dfa.getStates();for(let n of i){let r=0;r=n.edges.length;for(let s=0;s",e+=this.getStateString(o),e+=` -`}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){let i=e.stateNumber,n=(e.isAcceptState?":":"")+"s"+i+(e.requiresFullContext?"^":"");return e.isAcceptState?e.predicates!==null?`${n}=>${e.predicates.toString()}`:`${n}=>${e.prediction}`:`${n}`}},k(jd,"DFASerializer"),jd),Hd,Ehe=(Hd=class extends MH{constructor(e){super(e,Ys.EMPTY_VOCABULARY)}getEdgeLabel=e=>"'"+String.fromCharCode(e)+"'"},k(Hd,"LexerDFASerializer"),Hd),SH,Gs,zd,Kl=(SH=Symbol.iterator,zd=class{constructor(e,i){T(this,"s0");T(this,"decision");T(this,"atnStartState");T(this,"isPrecedenceDfa");Ee(this,Gs,new Map);T(this,SH,()=>y(this,Gs).values()[Symbol.iterator]());T(this,"getPrecedenceStartState",e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]});T(this,"setPrecedenceStartState",(e,i)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=i)});this.atnStartState=e,this.decision=i??0;let n=!1;e instanceof Qa&&e.precedenceRuleDecision&&(n=!0,this.s0=od.fromState(-1)),this.isPrecedenceDfa=n}getStates(){let e=[...y(this,Gs).values()];return e.sort((i,n)=>i.stateNumber-n.stateNumber),e}getState(e){return y(this,Gs).get(e.configs.hashCode())??null}getStateForConfigs(e){return y(this,Gs).get(e.hashCode())??null}addState(e){let i=e.configs.hashCode();y(this,Gs).has(i)||(y(this,Gs).set(i,e),e.stateNumber=y(this,Gs).size-1)}toString(e){return e?this.s0?new MH(this,e).toString()??"":"":this.toString(Ys.EMPTY_VOCABULARY)}toLexerString(){return this.s0?new Ehe(this).toString()??"":""}get length(){return y(this,Gs).size}},Gs=new WeakMap,k(zd,"DFA"),zd),P1=(()=>{var e,i,n,r;return e=class extends zo{constructor(l,a,u,c){super(a,c);T(this,"decisionToDFA");T(this,"recognizer",null);T(this,"startIndex",-1);T(this,"line",1);T(this,"column",0);T(this,"mode",Yo.DEFAULT_MODE);Ee(this,i);Ee(this,n);Ee(this,r);this.decisionToDFA=u,this.recognizer=l,l&&ie(this,n,l.options)}match(l,a){this.mode=a;let u=l.mark();try{this.startIndex=l.index,ie(this,i,void 0);let c=this.decisionToDFA[a];return c.s0?this.execATN(l,c.s0):this.matchATN(l)}finally{l.release(u)}}reset(){ie(this,i,void 0),this.startIndex=-1,this.line=1,this.column=0,this.mode=Yo.DEFAULT_MODE}clearDFA(){for(let l=0;l=y(this,n).minDFAEdge&&a<=y(this,n).maxDFAEdge){let u=l.edges[a-y(this,n).minDFAEdge];return e.debug&&u&&console.log("reuse state "+l.stateNumber+" edge to "+u.stateNumber),u}}computeTargetState(l,a,u){let c=new vH;return this.getReachableConfigSet(l,a.configs,c,u),c.length===0?(c.hasSemanticContext||this.addDFAEdge(a,u,zo.ERROR),zo.ERROR):this.addDFAEdge(a,u,null,c)}failOrAccept(l,a,u){if(y(this,i)?.dfaState){let{dfaState:c,index:d,line:h,column:f}=y(this,i);return this.accept(l,c.lexerActionExecutor,this.startIndex,d,h,f),c.prediction}if(u===Q.EOF&&l.index===this.startIndex)return Q.EOF;throw new l_(this.recognizer,l,this.startIndex,a)}getReachableConfigSet(l,a,u,c){let d=Mt.INVALID_ALT_NUMBER;for(let h of a){let f=h.alt===d;if(!(f&&h.passedThroughNonGreedyDecision)){e.debug&&console.log(`testing %s at %s +`}return e}getBucket(e){return y(this,jo).hashCode(e)&y(this,_n).length-1}expand(){let e=y(this,_n),i=y(this,_n).length*2,n=this.createBuckets(i);ie(this,_n,n),ie(this,Fl,Math.floor(i*y(si,hd)));for(let r of e)if(r)for(let s of r){let o=this.getBucket(s),l=y(this,_n)[o];l||(l=[],y(this,_n)[o]=l),l.push(s)}}get size(){return y(this,$s)}get isEmpty(){return y(this,$s)===0}createBuckets(e){return new Array(e)}},hd=new WeakMap,Z2=new WeakMap,jo=new WeakMap,_n=new WeakMap,$s=new WeakMap,Fl=new WeakMap,N(si,"HashSet"),Ee(si,hd,.75),Ee(si,Z2,16),si),fd,Z5e=(fd=class{keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,i){return this.keyComparator.equals(e.key,i.key)}},N(fd,"MapKeyEqualityComparator"),fd),m3,Eu=(m3=class{backingStore;constructor(e){e instanceof m3?this.backingStore=new as(e.backingStore):this.backingStore=new as(new Z5e(e))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){let i=this.backingStore.get({key:e});if(i)return i.value}get isEmpty(){return this.backingStore.isEmpty}set(e,i){let n=this.backingStore.get({key:e,value:i}),r;return n?(r=n.value,n.value=i):this.backingStore.add({key:e,value:i}),r}setIfAbsent(e,i){let n=this.backingStore.get({key:e,value:i}),r;return n?r=n.value:this.backingStore.add({key:e,value:i}),r}values(){return this.backingStore.toArray().map(e=>e.value)}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},N(m3,"HashMap"),m3),Qw=N((t,e)=>{if(e||(e=Ke.empty),!e.parent||e===Ke.empty)return wt.EMPTY;let i=Qw(t,e.parent),r=t.states[e.invokingState].transitions[0];return ls.create(i,r.followState.stateNumber)},"predictionContextFromRuleContext"),wH=N((t,e,i)=>{if(t.isEmpty())return t;let n=i.get(t);if(n)return n;if(n=e.get(t),n)return i.set(t,n),n;let r=!1,s=[];for(let l=0;l{if(t===e)return t;if(t instanceof ls&&e instanceof ls)return J5e(t,e,i,n);if(i){if(t instanceof fH)return t;if(e instanceof fH)return e}return t instanceof ls&&(t=new bu([t.parent],[t.returnState])),e instanceof ls&&(e=new bu([e.parent],[e.returnState])),X5e(t,e,i,n)},"merge"),X5e=N((t,e,i,n)=>{if(n){let c=n.get(t,e);if(c||(c=n.get(e,t),c))return c}let r=0,s=0,o=0,l=new Array(t.returnStates.length+e.returnStates.length).fill(0),a=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;r a"),t):u.equals(e)?(n!==null&&n.set(t,e,e),e):(Q5e(a),n!==null&&n.set(t,e,u),wt.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> "+u),u)},"mergeArrays"),Q5e=N(t=>{let e=new Eu(x3.instance);for(let i of t)i&&(e.containsKey(i)||e.set(i,i));for(let i=0;i{if(n!==null){let s=n.get(t,e);if(s!==null||(s=n.get(e,t),s!==null))return s}let r=ehe(t,e,i);if(r!==null)return n!==null&&n.set(t,e,r),r;if(t.returnState===e.returnState){let s=Jw(t.parent,e.parent,i,n);if(s===t.parent)return t;if(s===e.parent)return e;let o=ls.create(s,t.returnState);return n!==null&&n.set(t,e,o),o}else{let s=null;if((t===e||t.parent!==null&&t.parent===e.parent)&&(s=t.parent),s!==null){let u=[t.returnState,e.returnState];t.returnState>e.returnState&&(u[0]=e.returnState,u[1]=t.returnState);let c=[s,s],d=new bu(c,u);return n!==null&&n.set(t,e,d),d}let o=[t.returnState,e.returnState],l=[t.parent,e.parent];t.returnState>e.returnState&&(o[0]=e.returnState,o[1]=t.returnState,l=[e.parent,t.parent]);let a=new bu(l,o);return n!==null&&n.set(t,e,a),a}},"mergeSingletons"),ehe=N((t,e,i)=>{if(i){if(t===wt.EMPTY||e===wt.EMPTY)return wt.EMPTY}else{if(t===wt.EMPTY&&e===wt.EMPTY)return wt.EMPTY;if(t===wt.EMPTY){let n=[e.returnState,wt.EMPTY_RETURN_STATE],r=[e.parent,null];return new bu(r,n)}if(e===wt.EMPTY){let n=[t.returnState,wt.EMPTY_RETURN_STATE],r=[t.parent,null];return new bu(r,n)}}return null},"mergeRoot"),pd,Ko=(pd=class{data;constructor(e){e?this.data=new Uint32Array(e.map(i=>i>>>0)):this.data=new Uint32Array(1)}[Symbol.iterator](){let e=this.data.length,i=0,n=this.data[i],r=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;i>>5]&=~(1<>>5;return i>=this.data.length?!1:(this.data[i]&1<e)return i}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<>>5;if(i<=this.data.length)return;let n=new Uint32Array(i);n.set(this.data),n.fill(0,this.data.length),this.data=n}bitCount(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&63}},N(pd,"BitSet"),pd),wn,je=(wn=class{stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,i){this.transitions.length===0?this.epsilonOnlyTransitions=i.isEpsilon:this.epsilonOnlyTransitions!==i.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,i)}addTransition(e){this.transitions.length===0?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,i){this.transitions.splice(e,1,i)}removeTransition(e){return this.transitions.splice(e,1)[0]}},N(wn,"ATNState"),T(wn,"INVALID_STATE_NUMBER",-1),T(wn,"INVALID_TYPE",0),T(wn,"BASIC",1),T(wn,"RULE_START",2),T(wn,"BLOCK_START",3),T(wn,"PLUS_BLOCK_START",4),T(wn,"STAR_BLOCK_START",5),T(wn,"TOKEN_START",6),T(wn,"RULE_STOP",7),T(wn,"BLOCK_END",8),T(wn,"STAR_LOOP_BACK",9),T(wn,"STAR_LOOP_ENTRY",10),T(wn,"PLUS_LOOP_BACK",11),T(wn,"LOOP_END",12),T(wn,"stateType",wn.INVALID_STATE_NUMBER),wn),os,Kt=(os=class{cachedHashCode;static andContext(e,i){if(e===null||e===os.NONE)return i;if(i===null||i===os.NONE)return e;let n=new the(e,i);return n.operands.length===1?n.operands[0]:n}static orContext(e,i){if(e===null)return i;if(i===null)return e;if(e===os.NONE||i===os.NONE)return os.NONE;let n=new nhe(e,i);return n.operands.length===1?n.operands[0]:n}static filterPrecedencePredicates(e){let i=[];for(let n of e)n instanceof os.PrecedencePredicate&&i.push(n);return i}evalPrecedence(e,i){return this}},N(os,"SemanticContext"),os),$l,the=($l=class extends Kt{operands;constructor(e,i){super();let n=new as;e instanceof $l?e.operands.forEach(s=>{n.add(s)}):n.add(e),i instanceof $l?i.operands.forEach(s=>{n.add(s)}):n.add(i);let r=Kt.filterPrecedencePredicates(n);if(r.length>0){let s=null;r.forEach(o=>{(s===null||o.precedence{s=s===null?o:Kt.andContext(s,o)}),s}toString(){let e=this.operands.map(i=>i.toString());return(e.length>3?e.slice(3):e).join("&&")}},N($l,"AND"),$l),Gl,nhe=(Gl=class extends Kt{operands;constructor(e,i){super();let n=new as;e instanceof Gl?e.operands.forEach(s=>{n.add(s)}):n.add(e),i instanceof Gl?i.operands.forEach(s=>{n.add(s)}):n.add(i);let r=Kt.filterPrecedencePredicates(n);if(r.length>0){let s=r.sort((l,a)=>l.compareTo(a)),o=s[s.length-1];n.add(o)}this.operands=n.toArray()}equals(e){return this===e?!0:e instanceof Gl?c_(this.operands,e.operands):!1}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize();for(let i of this.operands)e=ge.updateFromComparable(e,i);e=ge.update(e,3383313031),this.cachedHashCode=ge.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,i){for(let n of this.operands)if(n.evaluate(e,i))return!0;return!1}evalPrecedence(e,i){let n=!1,r=[];for(let o of this.operands){let l=o.evalPrecedence(e,i);if(n||=l!==o,l===Kt.NONE)return Kt.NONE;l!==null&&r.push(l)}if(!n)return this;if(r.length===0)return null;let s=null;return r.forEach(o=>{s=s===null?o:Kt.orContext(s,o)}),s}toString(){let e=this.operands.map(i=>i.toString());return(e.length>3?e.slice(3):e).join("||")}},N(Gl,"OR"),Gl);(t=>{let n=class n extends t{ruleIndex;predIndex;isCtxDependent;constructor(o,l,a){super(),this.ruleIndex=o??-1,this.predIndex=l??-1,this.isCtxDependent=a??!1}evaluate(o,l){let a=this.isCtxDependent?l:null;return o.sempred(a,this.ruleIndex,this.predIndex)}hashCode(){if(this.cachedHashCode===void 0){let o=ge.initialize();o=ge.update(o,this.ruleIndex),o=ge.update(o,this.predIndex),o=ge.update(o,this.isCtxDependent?1:0),o=ge.finish(o,3),this.cachedHashCode=o}return this.cachedHashCode}equals(o){return this===o?!0:this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}};N(n,"Predicate");let e=n;t.Predicate=e;let r=class r extends t{precedence;constructor(o){super(),this.precedence=o??0}evaluate(o,l){return o.precpred(l,this.precedence)}evalPrecedence(o,l){return o.precpred(l??null,this.precedence)?t.NONE:null}compareTo(o){return this.precedence-o.precedence}hashCode(){return 31+this.precedence}equals(o){return this===o?!0:this.precedence===o.precedence}toString(){return"{"+this.precedence+">=prec}?"}};N(r,"PrecedencePredicate");let i=r;t.PrecedencePredicate=i,t.NONE=new e})(Kt||(Kt={}));var md,Np,$o,Wn=($o=class{constructor(e,i,n,r){T(this,"state");T(this,"alt");T(this,"reachesIntoOuterContext",!1);T(this,"precedenceFilterSuppressed",!1);T(this,"cachedHashCode");Ee(this,md,null);Ee(this,Np);this.state=i,this.alt=e.alt,this.context=n,ie(this,Np,r??Kt.NONE),this.reachesIntoOuterContext=e.reachesIntoOuterContext,e.precedenceFilterSuppressed!==void 0&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}get semanticContext(){return y(this,Np)}static duplicate(e,i){return new $o(e,e.state,e.context,i??e.semanticContext)}static createWithContext(e,i,n,r){return new $o({alt:i},e,n,r)}static createWithConfig(e,i,n){return new $o(i,e,n??i.context,i.semanticContext)}static createWithSemanticContext(e,i,n){return new $o(i,e??i.state,i.context,n)}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize(7);e=ge.update(e,this.state.stateNumber),e=ge.update(e,this.alt),e=ge.updateFromComparable(e,y(this,md)),e=ge.updateFromComparable(e,this.semanticContext),e=ge.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return y(this,md)}set context(e){ie(this,md,e),this.cachedHashCode=void 0}equals(e){return this===e?!0:this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(this.context===null?e.context===null:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,i=!0){let n="";return i&&(n=","+this.alt),"("+this.state+n+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==Kt.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},md=new WeakMap,Np=new WeakMap,N($o,"ATNConfig"),$o),Wl,X2,ihe=(Wl=class{constructor(){Ee(this,X2)}getDecisionLookahead(e){if(!e)return;let i=e.transitions.length,n=new Array(i);for(let r=0;r0&&!s.contains(Wl.hitPredicate)&&(n[r]=s)}return n}look(e,i,n,r){ie(this,X2,e);let s=new Ks,o=r?Qw(e,r):null;return this.doLook(i,n,o,s,new as,new Ko,!0,!0),s}doLook(e,i,n,r,s,o,l,a){let u=Wn.createWithContext(e,0,n);if(!s.get(u)){if(s.add(u),e===i)if(n){if(n.isEmpty()&&a){r.addOne(Q.EOF);return}}else{r.addOne(Q.EPSILON);return}if(e.constructor.stateType===je.RULE_STOP){if(n){if(n.isEmpty()&&a){r.addOne(Q.EOF);return}}else{r.addOne(Q.EPSILON);return}if(n!==wt.EMPTY){let c=o.get(e.ruleIndex);try{o.clear(e.ruleIndex);for(let d=0;d{var e,i;return e=class{grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];constructor(r,s){this.grammarType=r,this.maxTokenType=s}nextTokens(r,s){if(!s&&r.nextTokenWithinRule)return r.nextTokenWithinRule;let o=y(e,i).look(this,r,void 0,s);return s||(r.nextTokenWithinRule=o),o}addState(r){r&&(r.stateNumber=this.states.length),this.states.push(r)}removeState(r){this.states[r.stateNumber]=null}defineDecisionState(r){return this.decisionToState.push(r),r.decision=this.decisionToState.length-1,r.decision}getDecisionState(r){return this.decisionToState.length===0?null:this.decisionToState[r]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(r,s){if(r<0||r>=this.states.length)throw new Error("Invalid state number.");let o=this.states[r],l=this.nextTokens(o);if(!l.contains(Q.EPSILON))return l;let a=s,u=new Ks;for(u.addSet(l),u.removeOne(Q.EPSILON);a!==null&&a.invokingState>=0&&l.contains(Q.EPSILON);){let d=this.states[a.invokingState].transitions[0];l=this.nextTokens(d.followState),u.addSet(l),u.removeOne(Q.EPSILON),a=a.parent}return l.contains(Q.EPSILON)&&u.addOne(Q.EOF),u}},i=new WeakMap,N(e,"ATN"),T(e,"INVALID_ALT_NUMBER",0),T(e,"LEXER",0),T(e,"PARSER",1),Ee(e,i,new ihe),e})(),au,pH=(au=class{hashCode(e){let i=7;return i=31*i+e.state.stateNumber,i=31*i+e.alt,i=31*i+e.semanticContext.hashCode(),i}equals(e,i){return e===i?!0:e.state.stateNumber===i.state.stateNumber&&e.alt===i.alt&&e.semanticContext.equals(i.semanticContext)}},N(au,"KeyTypeEqualityComparer"),T(au,"instance",new au),au),eu,gd,Ll=(gd=class{constructor(e){T(this,"configLookup",new as(pH.instance));T(this,"configs",[]);T(this,"uniqueAlt",0);T(this,"hasSemanticContext",!1);T(this,"dipsIntoOuterContext",!1);T(this,"fullCtx",!1);T(this,"readOnly",!1);T(this,"conflictingAlts",null);T(this,"firstStopState");Ee(this,eu,-1);if(e!==void 0)if(typeof e=="boolean")this.fullCtx=e??!0;else{let i=e;this.addAll(i.configs),this.uniqueAlt=i.uniqueAlt,this.conflictingAlts=i.conflictingAlts,this.hasSemanticContext=i.hasSemanticContext,this.dipsIntoOuterContext=i.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,i=null){if(this.readOnly)throw new Error("This set is readonly");!this.firstStopState&&e.state.constructor.stateType===je.RULE_STOP&&(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==Kt.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;let n=this.configLookup.getOrAdd(e);if(n===e){ie(this,eu,-1),this.configs.push(e);return}let r=!this.fullCtx,s=Jw(n.context,e.context,r,i);n.reachesIntoOuterContext||=e.reachesIntoOuterContext,n.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,n.context=s}get elements(){return this.configs}getAlts(){let e=new Ko;for(let i of this.configs)e.set(i.alt);return e}getPredicates(){let e=[];for(let i of this.configs)i.semanticContext!==Kt.NONE&&e.push(i.semanticContext);return e}getStates(){let e=new as;for(let i of this.configs)e.add(i.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(this.configLookup.size!==0)for(let i of this.configs)i.context=e.getCachedContext(i.context)}addAll(e){for(let i of e)this.add(i);return!1}equals(e){return!!(this===e||this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext&&c_(this.configs,e.configs))}hashCode(){return y(this,eu)===-1&&ie(this,eu,this.computeHashCode()),y(this,eu)}get length(){return this.configs.length}isEmpty(){return this.configs.length===0}contains(e){if(this.configLookup===null)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(this.configLookup===null)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],ie(this,eu,-1),this.configLookup=new as(pH.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return sd(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Mt.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=ge.initialize();return this.configs.forEach(i=>{e=ge.update(e,i.hashCode())}),e=ge.finish(e,this.configs.length),e}},eu=new WeakMap,N(gd,"ATNConfigSet"),gd),Q2,mH=(Q2=class extends je{},N(Q2,"BasicState"),T(Q2,"stateType",je.BASIC),Q2),_d,A3=(_d=class extends je{decision=-1;nonGreedy=!1},N(_d,"DecisionState"),_d),vd,f3=(vd=class extends A3{endState},N(vd,"BlockStartState"),vd),J2,Vw=(J2=class extends je{startState},N(J2,"BlockEndState"),T(J2,"stateType",je.BLOCK_END),J2),e3,id=(e3=class extends je{loopBackState},N(e3,"LoopEndState"),T(e3,"stateType",je.LOOP_END),e3),t3,Gw=(t3=class extends je{stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},N(t3,"RuleStartState"),T(t3,"stateType",je.RULE_START),t3),n3,qs=(n3=class extends je{},N(n3,"RuleStopState"),T(n3,"stateType",je.RULE_STOP),n3),i3,rhe=(i3=class extends A3{},N(i3,"TokensStartState"),T(i3,"stateType",je.TOKEN_START),i3),r3,gH=(r3=class extends A3{},N(r3,"PlusLoopbackState"),T(r3,"stateType",je.PLUS_LOOP_BACK),r3),s3,Bw=(s3=class extends je{},N(s3,"StarLoopbackState"),T(s3,"stateType",je.STAR_LOOP_BACK),s3),o3,Qa=(o3=class extends A3{loopBackState;precedenceRuleDecision=!1},N(o3,"StarLoopEntryState"),T(o3,"stateType",je.STAR_LOOP_ENTRY),o3),l3,Uw=(l3=class extends f3{loopBackState},N(l3,"PlusBlockStartState"),T(l3,"stateType",je.PLUS_BLOCK_START),l3),a3,jw=(a3=class extends f3{},N(a3,"StarBlockStartState"),T(a3,"stateType",je.STAR_BLOCK_START),a3),u3,_H=(u3=class extends f3{},N(u3,"BasicBlockStartState"),T(u3,"stateType",je.BLOCK_START),u3),Pp,bd,Dp=(bd=class extends Ie{constructor(i,n){super(i);T(this,"labelValue");Ee(this,Pp);this.labelValue=n,ie(this,Pp,Ks.of(n,n))}get label(){return y(this,Pp)}get transitionType(){return Ie.ATOM}matches(i){return this.labelValue===i}toString(){return this.labelValue.toString()}},Pp=new WeakMap,N(bd,"AtomTransition"),bd),yd,Ww=(yd=class extends Ie{ruleIndex;precedence;followState;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.precedence=n,this.followState=r}get isEpsilon(){return!0}get transitionType(){return Ie.RULE}matches(e,i,n){return!1}},N(yd,"RuleTransition"),yd),Lp,Ed,qw=(Ed=class extends Ie{constructor(i,n,r){super(i);T(this,"start");T(this,"stop");Ee(this,Lp,new Ks);this.start=n,this.stop=r,y(this,Lp).addRange(n,r)}get label(){return y(this,Lp)}get transitionType(){return Ie.RANGE}matches(i,n,r){return i>=this.start&&i<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},Lp=new WeakMap,N(Ed,"RangeTransition"),Ed),Cd,xH=(Cd=class extends Ie{ruleIndex;actionIndex;isCtxDependent;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.actionIndex=n===void 0?-1:n,this.isCtxDependent=r===void 0?!1:r}get isEpsilon(){return!0}get transitionType(){return Ie.ACTION}matches(e,i,n){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},N(Cd,"ActionTransition"),Cd),Fp,Id,Ap=(Id=class extends Ie{constructor(i,n=-1){super(i);Ee(this,Fp);ie(this,Fp,n)}get outermostPrecedenceReturn(){return y(this,Fp)}get isEpsilon(){return!0}get transitionType(){return Ie.EPSILON}matches(){return!1}toString(){return"epsilon"}},Fp=new WeakMap,N(Id,"EpsilonTransition"),Id),Td,she=(Td=class extends Ie{get transitionType(){return Ie.WILDCARD}matches(e,i,n){return e>=i&&e<=n}toString(){return"."}},N(Td,"WildcardTransition"),Td),Sd,AH=(Sd=class extends Ie{constructor(e){super(e)}},N(Sd,"AbstractPredicateTransition"),Sd),wd,DH=(wd=class extends AH{ruleIndex;predIndex;isCtxDependent;constructor(e,i,n,r){super(e),this.ruleIndex=i,this.predIndex=n,this.isCtxDependent=r}get isEpsilon(){return!0}matches(e,i,n){return!1}get transitionType(){return Ie.PREDICATE}getPredicate(){return new Kt.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},N(wd,"PredicateTransition"),wd),xd,ohe=(xd=class extends AH{precedence;constructor(e,i){super(e),this.precedence=i}get isEpsilon(){return!0}matches(e,i,n){return!1}getPredicate(){return new Kt.PrecedencePredicate(this.precedence)}get transitionType(){return Ie.PRECEDENCE}toString(){return this.precedence+" >= _p"}},N(xd,"PrecedencePredicateTransition"),xd),Jt={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7},uu,lhe=(uu=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.SKIP}equals(e){return e===this}hashCode(){return Jt.SKIP}execute(e){e.skip()}toString(){return"skip"}},N(uu,"LexerSkipAction"),T(uu,"instance",new uu),uu),Ad,g3,ahe=(g3=class{constructor(e){T(this,"channel");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Ad);this.actionType=Jt.CHANNEL,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(y(this,Ad)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.channel),ie(this,Ad,ge.finish(e,2))}return y(this,Ad)}equals(e){return this===e?!0:e instanceof g3?this.channel===e.channel:!1}toString(){return"channel("+this.channel+")"}},Ad=new WeakMap,N(g3,"LexerChannelAction"),g3),Dd,_3,uhe=(_3=class{constructor(e,i){T(this,"ruleIndex");T(this,"actionIndex");T(this,"actionType");T(this,"isPositionDependent",!0);Ee(this,Dd);this.actionType=Jt.CUSTOM,this.ruleIndex=e,this.actionIndex=i}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(y(this,Dd)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.ruleIndex),e=ge.update(e,this.actionIndex),ie(this,Dd,ge.finish(e,3))}return y(this,Dd)}equals(e){return this===e?!0:e instanceof _3?this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex:!1}},Dd=new WeakMap,N(_3,"LexerCustomAction"),_3),cu,che=(cu=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.MORE}equals(e){return e===this}hashCode(){return Jt.MORE}execute(e){e.more()}toString(){return"more"}},N(cu,"LexerMoreAction"),T(cu,"instance",new cu),cu),Od,v3,dhe=(v3=class{constructor(e){T(this,"type");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Od);this.actionType=Jt.TYPE,this.type=e}execute(e){e.type=this.type}hashCode(){if(y(this,Od)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.type),ie(this,Od,ge.finish(e,2))}return y(this,Od)}equals(e){return this===e?!0:e instanceof v3?this.type===e.type:!1}toString(){return"type("+this.type+")"}},Od=new WeakMap,N(v3,"LexerTypeAction"),v3),Rd,b3,hhe=(b3=class{constructor(e){T(this,"mode");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Rd);this.actionType=Jt.PUSH_MODE,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(y(this,Rd)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.mode),ie(this,Rd,ge.finish(e,2))}return y(this,Rd)}equals(e){return this===e?!0:e instanceof b3?this.mode===e.mode:!1}toString(){return"pushMode("+this.mode+")"}},Rd=new WeakMap,N(b3,"LexerPushModeAction"),b3),du,fhe=(du=class{actionType;isPositionDependent=!1;constructor(){this.actionType=Jt.POP_MODE}equals(e){return e===this}hashCode(){return Jt.POP_MODE}execute(e){e.popMode()}toString(){return"popMode"}},N(du,"LexerPopModeAction"),T(du,"instance",new du),du),Md,y3,phe=(y3=class{constructor(e){T(this,"mode");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,Md);this.actionType=Jt.MODE,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(y(this,Md)===void 0){let e=ge.initialize();e=ge.update(e,this.actionType),e=ge.update(e,this.mode),ie(this,Md,ge.finish(e,2))}return y(this,Md)}equals(e){return this===e?!0:e instanceof y3?this.mode===e.mode:!1}toString(){return"mode("+this.mode+")"}},Md=new WeakMap,N(y3,"LexerModeAction"),y3),Iu=(()=>{var e;return e=class{data=[];pos=0;deserializationOptions;actionFactories;constructor(n){n||(n={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=n}deserialize(n){this.data=n,this.checkVersion();let r=this.readATN();this.readStates(r),this.readRules(r),this.readModes(r);let s=[];return this.readSets(r,s),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&r.grammarType===Mt.PARSER&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}checkVersion(){let n=this.data[this.pos++];if(n!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+n+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){let n=this.data[this.pos++],r=this.data[this.pos++];return new Mt(n,r)}readStates(n){let r,s,o=[],l=[],a=this.data[this.pos++];for(let d=0;d0;)l.addTransition(d.transitions[h-1]),d.transitions=d.transitions.slice(-1);n.ruleToStartState[r].addTransition(new Ap(l)),c&&a.addTransition(new Ap(c));let f=new mH;n.addState(f),f.addTransition(new Dp(a,n.ruleToTokenType[r])),l.addTransition(new Ap(f))}stateIsEndStateFor(n,r){if(n.ruleIndex!==r||!(n instanceof Qa))return null;let s=n.transitions[n.transitions.length-1].target;return s instanceof id&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof qs?n:null}markPrecedenceDecisions(n){for(let r of n.states)if(r instanceof Qa&&n.ruleToStartState[r.ruleIndex].isPrecedenceRule){let s=r.transitions[r.transitions.length-1].target;s instanceof id&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof qs&&(r.precedenceRuleDecision=!0)}}verifyATN(n){if(this.deserializationOptions.verifyATN){for(let r of n.states)if(r!==null)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof Uw)this.checkCondition(r.loopBackState!==null);else if(r instanceof Qa)if(this.checkCondition(r.loopBackState!==null),this.checkCondition(r.transitions.length===2),r.transitions[0].target instanceof jw)this.checkCondition(r.transitions[1].target instanceof id),this.checkCondition(!r.nonGreedy);else if(r.transitions[0].target instanceof id)this.checkCondition(r.transitions[1].target instanceof jw),this.checkCondition(r.nonGreedy);else throw new Error("IllegalState");else r instanceof Bw?(this.checkCondition(r.transitions.length===1),this.checkCondition(r.transitions[0].target instanceof Qa)):r instanceof id?this.checkCondition(r.loopBackState!==null):r instanceof Gw?this.checkCondition(r.stopState!==null):r instanceof f3?this.checkCondition(r.endState!==null):r instanceof Vw?this.checkCondition(r.startState!==null):r instanceof A3?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof qs)}}checkCondition(n,r){if(!n)throw r==null&&(r="IllegalState"),r}edgeFactory(n,r,s,o,l,a,u){let c=n.states[s];switch(r){case Ie.EPSILON:return new Ap(c);case Ie.RANGE:return a!==0?new qw(c,Q.EOF,l):new qw(c,o,l);case Ie.RULE:return new Ww(n.states[o],l,a,c);case Ie.PREDICATE:return new DH(c,o,l,a!==0);case Ie.PRECEDENCE:return new ohe(c,o);case Ie.ATOM:return a!==0?new Dp(c,Q.EOF):new Dp(c,o);case Ie.ACTION:return new xH(c,o,l,a!==0);case Ie.SET:return new Zw(c,u[o]);case Ie.NOT_SET:return new Xw(c,u[o]);case Ie.WILDCARD:return new she(c);default:throw new Error("The specified transition type: "+r+" is not valid.")}}stateFactory(n,r){let s=e.stateTypeMapper.get(n);if(!s)throw new Error("The specified state type "+n+" is not valid.");let o=new s;return o.ruleIndex=r,o}lexerActionFactory(n,r,s){let o=e.lexerActionFactoryMapper.get(n);if(!o)throw new Error("The specified lexer action type "+n+" is not valid.");return o(r,s)}},N(e,"ATNDeserializer"),T(e,"SERIALIZED_VERSION",4),T(e,"stateTypeMapper",new Map([[je.INVALID_TYPE,void 0],[je.BASIC,mH],[je.RULE_START,Gw],[je.BLOCK_START,_H],[je.PLUS_BLOCK_START,Uw],[je.STAR_BLOCK_START,jw],[je.TOKEN_START,rhe],[je.RULE_STOP,qs],[je.BLOCK_END,Vw],[je.STAR_LOOP_BACK,Bw],[je.STAR_LOOP_ENTRY,Qa],[je.PLUS_LOOP_BACK,gH],[je.LOOP_END,id]])),T(e,"lexerActionFactoryMapper",new Map([[Jt.CHANNEL,n=>new ahe(n)],[Jt.CUSTOM,(n,r)=>new uhe(n,r)],[Jt.MODE,n=>new phe(n)],[Jt.MORE,()=>che.instance],[Jt.POP_MODE,()=>fhe.instance],[Jt.PUSH_MODE,n=>new hhe(n)],[Jt.SKIP,()=>lhe.instance],[Jt.TYPE,n=>new dhe(n)]])),e})(),Vl,E3,mhe=(E3=class extends Eu{constructor(){super(...arguments);Ee(this,Vl,[])}clear(){super.clear(),ie(this,Vl,[])}get(i){return super.get(i)}set(i,n){let r=super.set(i,n);return r===void 0&&y(this,Vl).push(i),r}setIfAbsent(i,n){let r=super.setIfAbsent(i,n);return r===void 0&&y(this,Vl).push(i),r}values(){return{[Symbol.iterator]:()=>{let i=0;return{next:()=>i0)for(let i of this.atn.modeToStartState)this.data.push(i.stateNumber)}addRuleStatesAndLexerTokenTypes(){let e=this.atn.ruleToStartState.length;this.data.push(e);for(let i=0;i",this.predicates?e+=sd(this.predicates):e+=this.prediction),e.toString()}},N(vu,"DFAState"),vu),c3,zo=(c3=class{atn;sharedContextCache;constructor(e,i){return this.atn=e,this.sharedContextCache=i,this}getCachedContext(e){if(!this.sharedContextCache)return e;let i=new Eu(x3.instance);return wH(e,this.sharedContextCache,i)}},N(c3,"ATNSimulator"),T(c3,"ERROR",od.fromState(2147483647)),c3),C3,hUe=(C3=class{static createWithCodePoint(e,i){return C3.createWithCodePointRange(e,i,i)}static createWithCodePointRange(e,i,n){return i===n?new Dp(e,i):new qw(e,i,n)}},N(C3,"CodePointTransitions"),C3),kd,ghe=(kd=class{decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}},N(kd,"DecisionInfo"),kd),Go,Bo=(Go=class extends Wn{lexerActionExecutor;passedThroughNonGreedyDecision;constructor(e,i,n,r){return super(e,i,n??e.context,n?Kt.NONE:e.semanticContext),this.lexerActionExecutor=n?r:e.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=Go.checkNonGreedyDecision(e,this.state),this}static createWithExecutor(e,i,n){return new Go(e,i,e.context,n)}static createWithConfig(e,i,n){return new Go(i,e,n??null,i.lexerActionExecutor)}static createWithContext(e,i,n){return new Go({alt:i},e,n,null)}static checkNonGreedyDecision(e,i){return e.passedThroughNonGreedyDecision||"nonGreedy"in i&&i.nonGreedy}hashCode(){if(this.cachedHashCode===void 0){let e=ge.initialize(7);e=ge.update(e,this.state.stateNumber),e=ge.update(e,this.alt),e=ge.updateFromComparable(e,this.context),e=ge.updateFromComparable(e,this.semanticContext),e=ge.update(e,this.passedThroughNonGreedyDecision?1:0),e=ge.updateFromComparable(e,this.lexerActionExecutor),e=ge.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e?!0:this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},N(Go,"LexerATNConfig"),Go),Nd,d_=(Nd=class{syntaxError(e,i,n,r,s,o){}reportAmbiguity(e,i,n,r,s,o,l){}reportAttemptingFullContext(e,i,n,r,s,o){}reportContextSensitivity(e,i,n,r,s,o){}},N(Nd,"BaseErrorListener"),Nd),hu,_he=(hu=class extends d_{syntaxError(e,i,n,r,s,o){console.error("line "+n+":"+r+" "+s)}},N(hu,"ConsoleErrorListener"),T(hu,"instance",new hu),hu),Pd,vhe=(Pd=class extends d_{constructor(e){return super(),this.delegates=e,this}syntaxError(e,i,n,r,s,o){this.delegates.forEach(l=>{l.syntaxError(e,i,n,r,s,o)})}reportAmbiguity(e,i,n,r,s,o,l){this.delegates.forEach(a=>{a.reportAmbiguity(e,i,n,r,s,o,l)})}reportAttemptingFullContext(e,i,n,r,s,o){this.delegates.forEach(l=>{l.reportAttemptingFullContext(e,i,n,r,s,o)})}reportContextSensitivity(e,i,n,r,s,o){this.delegates.forEach(l=>{l.reportContextSensitivity(e,i,n,r,s,o)})}},N(Pd,"ProxyErrorListener"),Pd),OH=(()=>{var e,i,n;return e=class{constructor(){T(this,"interpreter");Ee(this,i,[_he.instance]);Ee(this,n,-1)}checkVersion(s){let o="4.13.1";o!==s&&console.error("ANTLR runtime and generated code versions disagree: "+o+"!="+s)}addErrorListener(s){y(this,i).push(s)}removeErrorListeners(){ie(this,i,[])}removeErrorListener(s){for(let o=0;oo.set(l,a)),e.ruleIndexMapCache.set(s,o)),o}getTokenType(s){let o=this.getTokenTypeMap().get(s);return o||Q.INVALID_TYPE}getErrorHeader(s){let o=s.offendingToken?.line,l=s.offendingToken?.column;return"line "+o+":"+l}get errorListenerDispatch(){return new vhe(y(this,i))}sempred(s,o,l){return!0}precpred(s,o){return!0}action(s,o,l){}get atn(){return this.interpreter.atn}get state(){return y(this,n)}set state(s){ie(this,n,s)}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},i=new WeakMap,n=new WeakMap,N(e,"Recognizer"),T(e,"EOF",-1),T(e,"tokenTypeMapCache",new Map),T(e,"ruleIndexMapCache",new Map),e})(),Kw=(()=>{var e,i;return e=class{constructor(r){T(this,"source");T(this,"tokenIndex");T(this,"start");T(this,"stop");T(this,"type");T(this,"line");T(this,"column");T(this,"channel");Ee(this,i);this.type=r.type,this.source=r.source,this.tokenIndex=r.tokenIndex??-1,this.line=r.line??0,this.column=r.column??-1,this.channel=r.channel??Q.DEFAULT_CHANNEL,this.start=r.start??0,this.stop=r.stop??0,ie(this,i,r.text),r.source[0]!==null&&(this.line=r.source[0].line,this.column=r.source[0].column)}static fromToken(r){let s;return"source"in r?s=r.source:s=[r.tokenSource,r.inputStream],new e({type:r.type,line:r.line,tokenIndex:r.tokenIndex,column:r.column,channel:r.channel,start:r.start,stop:r.stop,text:r.text,source:s})}static fromType(r,s){return new e({type:r,text:s,source:e.EMPTY_SOURCE})}static fromSource(r,s,o,l,a){return new e({type:s,channel:o,start:l,stop:a,source:r})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:y(this,i)})}toString(r){let s="";this.channel>0&&(s=",channel="+this.channel);let o=this.text;o?(o=o.replace(/\n/g,"\\n"),o=o.replace(/\r/g,"\\r"),o=o.replace(/\t/g,"\\t")):o="";let l=String(this.type);return r&&(l=r.vocabulary.getDisplayName(this.type)??""),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+l+">"+s+","+this.line+":"+this.column+"]"}get text(){if(y(this,i))return y(this,i);let r=this.inputStream;if(!r)return;let s=r.size;return this.start"}set text(r){ie(this,i,r)}setText(r){ie(this,i,r)}setType(r){this.type=r}setLine(r){this.line=r}setCharPositionInLine(r){this.column=r}setChannel(r){this.channel=r}setTokenIndex(r){this.tokenIndex=r}},i=new WeakMap,N(e,"CommonToken"),T(e,"EMPTY_SOURCE",[null,null]),e})(),fu,RH=(fu=class{copyText=!1;constructor(e){this.copyText=e??!1}create(e,i,n,r,s,o,l,a){let u=Kw.fromSource(e,i,r,s,o);return u.line=l,u.column=a,n?u.text=n:this.copyText&&e[1]!==null&&(u.text=e[1].getTextFromRange(s,o)),u}},N(fu,"CommonTokenFactory"),T(fu,"DEFAULT",new fu),fu),I3,rt=(I3=class extends Error{ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,I3),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.recognizer!==null&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return this.recognizer!==null&&this.ctx!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},N(I3,"RecognitionException"),I3),Ld,l_=(Ld=class extends rt{startIndex;deadEndConfigs;constructor(e,i,n,r){super({message:"",recognizer:e,input:i,ctx:null}),this.startIndex=n,this.deadEndConfigs=r}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex":i===` +`?"\\n":i===" "?"\\t":i==="\r"?"\\r":i}getCharErrorDisplay(i){return"'"+this.getErrorDisplayForChar(i)+"'"}recover(i){y(this,dn).LA(1)!==Q.EOF&&(i instanceof l_?this.interpreter.consume(y(this,dn)):y(this,dn).consume())}get inputStream(){return y(this,dn)}set inputStream(i){this.reset(!1),ie(this,dn,i)}set tokenFactory(i){ie(this,tu,i)}get tokenFactory(){return y(this,tu)}get sourceName(){return y(this,dn).getSourceName()}get line(){return this.interpreter.line}set line(i){this.interpreter.line=i}get column(){return this.interpreter.column}set column(i){this.interpreter.column=i}get text(){return y(this,jl)?y(this,jl):this.interpreter.getText(y(this,dn))}set text(i){ie(this,jl,i)}},dn=new WeakMap,Bl=new WeakMap,Fd=new WeakMap,Ul=new WeakMap,jl=new WeakMap,tu=new WeakMap,N(oi,"Lexer"),T(oi,"DEFAULT_MODE",0),T(oi,"MORE",-2),T(oi,"SKIP",-3),T(oi,"DEFAULT_TOKEN_CHANNEL",Q.DEFAULT_CHANNEL),T(oi,"HIDDEN",Q.HIDDEN_CHANNEL),oi),T3,Yw=(T3=class extends Error{constructor(e){super(),Error.captureStackTrace(this,T3)}},N(T3,"ParseCancellationException"),T3),Vd,fUe=(Vd=class{static parseInterpreterData(e){let i=[],n=[],r=[],s=[],o=[],l=e.split(` +`),a=0,u=l[a++];if(u!=="token literal names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;s.push(u==="null"?null:u)}while(!0);if(u=l[a++],u!=="token symbolic names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;o.push(u==="null"?null:u)}while(!0);if(u=l[a++],u!=="rule names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;i.push(u)}while(!0);if(u=l[a++],u==="channel names:"){do{if(u=l[a++],u.length===0)break;n.push(u)}while(!0);if(u=l[a++],u!=="mode names:")throw new Error("Unexpected data entry");do{if(u=l[a++],u.length===0)break;r.push(u)}while(!0)}if(u=l[a++],u!=="atn:")throw new Error("Unexpected data entry");u=l[a++];let c=u.split(","),d,h=[];for(let p=0;p0?n:void 0,modes:r.length>0?r:void 0}}},N(Vd,"InterpreterDataReader"),Vd),nu,S3,bhe=(S3=class extends as{constructor(){super(...arguments);Ee(this,nu,[])}getOrAdd(i){let n=this.size,r=super.getOrAdd(i);return this.size>n&&y(this,nu).push(i),r}equals(i){return i instanceof S3?super.equals(i):!1}add(i){return super.add(i)?(y(this,nu).push(i),!0):!1}clear(){super.clear(),ie(this,nu,[])}*[Symbol.iterator](){yield*$i(y(this,nu))}toArray(){return y(this,nu).slice(0)}},nu=new WeakMap,N(S3,"OrderedHashSet"),S3),Bd,vH=(Bd=class extends Ll{constructor(){super(),this.configLookup=new bhe}},N(Bd,"OrderedATNConfigSet"),Bd),Ud,w3,Hw=(w3=class{constructor(e,i){T(this,"offset");T(this,"action");T(this,"actionType");T(this,"isPositionDependent",!0);Ee(this,Ud);this.actionType=i.actionType,this.offset=e,this.action=i}execute(e){this.action.execute(e)}hashCode(){if(y(this,Ud)===void 0){let e=ge.initialize();e=ge.update(e,this.offset),e=ge.updateFromComparable(e,this.action),ie(this,Ud,ge.finish(e,2))}return y(this,Ud)}equals(e){return this===e?!0:e instanceof w3?this.offset===e.offset&&this.action===e.action:!1}},Ud=new WeakMap,N(w3,"LexerIndexedCustomAction"),w3),iu,ql,yhe=(ql=class{constructor(e){T(this,"lexerActions");T(this,"actionType");T(this,"isPositionDependent",!1);Ee(this,iu);return this.actionType=-1,this.lexerActions=e??[],this}static append(e,i){if(e===null)return new ql([i]);let n=e.lexerActions.concat([i]);return new ql(n)}fixOffsetBeforeMatch(e){let i=null;for(let n=0;ni.equals(e.lexerActions[n]))}},iu=new WeakMap,N(ql,"LexerActionExecutor"),ql),jd,MH=(jd=class{dfa;vocabulary;constructor(e,i){this.dfa=e,this.vocabulary=i}toString(){if(!this.dfa.s0)return"";let e="",i=this.dfa.getStates();for(let n of i){let r=0;r=n.edges.length;for(let s=0;s",e+=this.getStateString(o),e+=` +`}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){let i=e.stateNumber,n=(e.isAcceptState?":":"")+"s"+i+(e.requiresFullContext?"^":"");return e.isAcceptState?e.predicates!==null?`${n}=>${e.predicates.toString()}`:`${n}=>${e.prediction}`:`${n}`}},N(jd,"DFASerializer"),jd),Hd,Ehe=(Hd=class extends MH{constructor(e){super(e,Ys.EMPTY_VOCABULARY)}getEdgeLabel=e=>"'"+String.fromCharCode(e)+"'"},N(Hd,"LexerDFASerializer"),Hd),SH,Gs,zd,Kl=(SH=Symbol.iterator,zd=class{constructor(e,i){T(this,"s0");T(this,"decision");T(this,"atnStartState");T(this,"isPrecedenceDfa");Ee(this,Gs,new Map);T(this,SH,()=>y(this,Gs).values()[Symbol.iterator]());T(this,"getPrecedenceStartState",e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]});T(this,"setPrecedenceStartState",(e,i)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=i)});this.atnStartState=e,this.decision=i??0;let n=!1;e instanceof Qa&&e.precedenceRuleDecision&&(n=!0,this.s0=od.fromState(-1)),this.isPrecedenceDfa=n}getStates(){let e=[...y(this,Gs).values()];return e.sort((i,n)=>i.stateNumber-n.stateNumber),e}getState(e){return y(this,Gs).get(e.configs.hashCode())??null}getStateForConfigs(e){return y(this,Gs).get(e.hashCode())??null}addState(e){let i=e.configs.hashCode();y(this,Gs).has(i)||(y(this,Gs).set(i,e),e.stateNumber=y(this,Gs).size-1)}toString(e){return e?this.s0?new MH(this,e).toString()??"":"":this.toString(Ys.EMPTY_VOCABULARY)}toLexerString(){return this.s0?new Ehe(this).toString()??"":""}get length(){return y(this,Gs).size}},Gs=new WeakMap,N(zd,"DFA"),zd),P1=(()=>{var e,i,n,r;return e=class extends zo{constructor(l,a,u,c){super(a,c);T(this,"decisionToDFA");T(this,"recognizer",null);T(this,"startIndex",-1);T(this,"line",1);T(this,"column",0);T(this,"mode",Yo.DEFAULT_MODE);Ee(this,i);Ee(this,n);Ee(this,r);this.decisionToDFA=u,this.recognizer=l,l&&ie(this,n,l.options)}match(l,a){this.mode=a;let u=l.mark();try{this.startIndex=l.index,ie(this,i,void 0);let c=this.decisionToDFA[a];return c.s0?this.execATN(l,c.s0):this.matchATN(l)}finally{l.release(u)}}reset(){ie(this,i,void 0),this.startIndex=-1,this.line=1,this.column=0,this.mode=Yo.DEFAULT_MODE}clearDFA(){for(let l=0;l=y(this,n).minDFAEdge&&a<=y(this,n).maxDFAEdge){let u=l.edges[a-y(this,n).minDFAEdge];return e.debug&&u&&console.log("reuse state "+l.stateNumber+" edge to "+u.stateNumber),u}}computeTargetState(l,a,u){let c=new vH;return this.getReachableConfigSet(l,a.configs,c,u),c.length===0?(c.hasSemanticContext||this.addDFAEdge(a,u,zo.ERROR),zo.ERROR):this.addDFAEdge(a,u,null,c)}failOrAccept(l,a,u){if(y(this,i)?.dfaState){let{dfaState:c,index:d,line:h,column:f}=y(this,i);return this.accept(l,c.lexerActionExecutor,this.startIndex,d,h,f),c.prediction}if(u===Q.EOF&&l.index===this.startIndex)return Q.EOF;throw new l_(this.recognizer,l,this.startIndex,a)}getReachableConfigSet(l,a,u,c){let d=Mt.INVALID_ALT_NUMBER;for(let h of a){let f=h.alt===d;if(!(f&&h.passedThroughNonGreedyDecision)){e.debug&&console.log(`testing %s at %s `,this.getTokenName(c),h.toString(this.recognizer,!0));for(let p of h.state.transitions){let v=this.getReachableTarget(p,c);if(v){let E=h.lexerActionExecutor;E&&(E=E.fixOffsetBeforeMatch(l.index-this.startIndex));let C=c===Q.EOF,P=Bo.createWithExecutor(h,v,E);this.closure(l,P,u,f,!0,C)&&(d=h.alt)}}}}}accept(l,a,u,c,d,h){e.debug&&console.log(`ACTION %s `,a),l.seek(c),this.line=d,this.column=h,a&&this.recognizer&&a.execute(this.recognizer,l,u)}getReachableTarget(l,a){if(l.matches(a,y(this,n).minCodePoint,y(this,n).maxCodePoint))return l.target}computeStartState(l,a){let u=wt.EMPTY,c=new vH;for(let d=0;d{let d=ls.create(u.context??void 0,c.followState.stateNumber);return Bo.createWithConfig(c.target,u,d)},y(this,r)[Ie.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},y(this,r)[Ie.PREDICATE]=(a,u,c,d,h)=>{let f=c;return e.debug&&console.log("EVAL rule "+f.ruleIndex+":"+f.predIndex),d.hasSemanticContext=!0,this.evaluatePredicate(a,f.ruleIndex,f.predIndex,h)?Bo.createWithConfig(c.target,u):null},y(this,r)[Ie.ACTION]=(a,u,c)=>{if(u.context===null||u.context.hasEmptyPath()){let d=yhe.append(u.lexerActionExecutor,this.atn.lexerActions[c.actionIndex]);return Bo.createWithExecutor(u,c.target,d)}else return Bo.createWithConfig(c.target,u)},y(this,r)[Ie.EPSILON]=(a,u,c)=>Bo.createWithConfig(c.target,u);let l=k((a,u,c,d,h,f)=>f&&c.matches(Q.EOF,y(this,n).minCodePoint,y(this,n).maxCodePoint)?Bo.createWithConfig(c.target,u):null,"simple");y(this,r)[Ie.ATOM]=l,y(this,r)[Ie.RANGE]=l,y(this,r)[Ie.SET]=l}evaluatePredicate(l,a,u,c){if(!this.recognizer)return!0;if(!c)return this.recognizer.sempred(null,a,u);let d=this.column,h=this.line,f=l.index,p=l.mark();try{return this.consume(l),this.recognizer.sempred(null,a,u)}finally{this.column=d,this.line=h,l.seek(f),l.release(p)}}captureSimState(l,a){ie(this,i,{index:l.index,line:this.line,column:this.column,dfaState:a})}addDFAEdge(l,a,u,c){if(!u&&c){let d=c.hasSemanticContext;if(c.hasSemanticContext=!1,u=this.addDFAState(c),d)return u}return ay(this,n).maxDFAEdge||(e.debug&&console.log("EDGE "+l+" -> "+u+" upon "+a),l.edges[a-y(this,n).minDFAEdge]=u),u}addDFAState(l){let a=this.decisionToDFA[this.mode],u=a.getStateForConfigs(l);if(u)return u;let c=od.fromConfigs(l),d=l.firstStopState;return d&&(c.isAcceptState=!0,c.lexerActionExecutor=d.lexerActionExecutor,c.prediction=this.atn.ruleToTokenType[d.state.ruleIndex]),l.setReadonly(!0),a.addState(c),c}},i=new WeakMap,n=new WeakMap,r=new WeakMap,k(e,"LexerATNSimulator"),T(e,"debug",!1),e})(),$d,pUe=($d=class{atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let e=this.atnSimulator.getDecisionInfo(),i=new Array;for(let n=0;n0&&i.push(n);return i}getTotalTimeInPrediction(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.timeInPrediction;return i}getTotalSLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllTotalLook;return i}getTotalLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.llTotalLook;return i}getTotalSLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllATNTransitions;return i}getTotalLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.llATNTransitions;return i}getTotalATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllATNTransitions,i+=n.llATNTransitions;return i}getDFASize(e){if(e===void 0){let i=0,n=this.atnSimulator.decisionToDFA;for(let r=0;r{var e;return e=class{static hasSLLConflictTerminatingPrediction(n,r){if(e.allConfigsInRuleStopStates(r))return!0;if(n===e.SLL&&r.hasSemanticContext){let o=new Ll;for(let l of r)l=Wn.duplicate(l,Kt.NONE),o.add(l);r=o}let s=e.getConflictingAltSubsets(r);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(r)}static hasConfigInRuleStopState(n){for(let r of n)if(r.state instanceof qs)return!0;return!1}static allConfigsInRuleStopStates(n){for(let r of n)if(!(r.state instanceof qs))return!1;return!0}static resolvesToJustOneViableAlt(n){return e.getSingleViableAlt(n)}static allSubsetsConflict(n){return!e.hasNonConflictingAltSet(n)}static hasNonConflictingAltSet(n){for(let r of n)if(r.length===1)return!0;return!1}static hasConflictingAltSet(n){for(let r of n)if(r.length>1)return!0;return!1}static allSubsetsEqual(n){let r=null;for(let s of n)if(r===null)r=s;else if(s!==r)return!1;return!0}static getUniqueAlt(n){let r=e.getAlts(n);return r.length===1?r.nextSetBit(0):Mt.INVALID_ALT_NUMBER}static getAlts(n){let r=new Ko;return n.forEach(s=>{r.or(s)}),r}static getConflictingAltSubsets(n){let r=new Eu(Che.instance);for(let s of n){let o=r.get(s);o||(o=new Ko,r.set(s,o)),o.set(s.alt)}return Array.from(r.values())}static getStateToAltMap(n){let r=new Eu(x3.instance);for(let s of n){let o=r.get(s.state);o||(o=new Ko,r.set(s.state,o)),o.set(s.alt)}return r}static hasStateAssociatedWithOneAlt(n){let r={};for(let s of n){let o=s.state.stateNumber;r[o]||(r[o]=0),r[o]++}return Object.values(r).some(s=>s===1)}static getSingleViableAlt(n){let r=null;for(let s of n){let o=s.nextSetBit(0);if(r===null)r=o;else if(r!==o)return Mt.INVALID_ALT_NUMBER}return r??0}},k(e,"PredictionMode"),T(e,"SLL",0),T(e,"LL",1),T(e,"LL_EXACT_AMBIG_DETECTION",2),e})(),e6=(()=>{var e;return e=class extends zo{predictionMode;decisionToDFA;parser;mergeCache=new bH;predictionState;constructor(n,r,s,o){super(r,o),this.parser=n,this.decisionToDFA=s}static getUniqueAlt(n){let r=Mt.INVALID_ALT_NUMBER;for(let s of n)if(r===Mt.INVALID_ALT_NUMBER)r=s.alt;else if(s.alt!==r)return Mt.INVALID_ALT_NUMBER;return r}reset(){}clearDFA(){for(let n=0;n"}getTokenName(n){if(n===Q.EOF)return"EOF";let s=(this.parser?.vocabulary??Ys.EMPTY_VOCABULARY).getDisplayName(n);return s===n.toString()?s:s+"<"+n+">"}getLookaheadName(n){return this.getTokenName(n.LA(1))}dumpDeadEndConfigs(n){console.log("dead end configs: ");let r=n.deadEndConfigs;for(let s of r){let o="no edges";if(s.state.transitions.length>0){let l=s.state.transitions[0];l instanceof Dp?o="Atom "+this.getTokenName(l.labelValue):l instanceof Zw&&(o=(l instanceof Xw?"~":"")+"Set "+l.label)}console.error(s.toString(this.parser,!0)+":"+o)}}predicateDFAState(n,r){let s=r.transitions.length,o=this.getConflictingAltsOrUniqueAlt(n.configs),l=this.getPredsForAmbigAlts(o,n.configs,s);l!==null?(n.predicates=this.getPredicatePredictions(o,l),n.prediction=Mt.INVALID_ALT_NUMBER):n.prediction=o.nextSetBit(0)}execATNWithFullContext(n,r,s,o,l,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let u=!0,c=!1,d,h=s;o.seek(l);let f=o.LA(1),p=-1;for(;;){if(d=this.computeReachSet(h,f,u),d===null){let E=this.noViableAlt(o,a,h,l);o.seek(l);let C=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(C!==Mt.INVALID_ALT_NUMBER)return C;throw E}let v=wi.getConflictingAltSubsets(d);if(e.debug&&console.log("LL altSubSets="+v+", predict="+wi.getUniqueAlt(v)+", resolvesToJustOneViableAlt="+wi.resolvesToJustOneViableAlt(v)),d.uniqueAlt=e.getUniqueAlt(d),d.uniqueAlt!==Mt.INVALID_ALT_NUMBER){p=d.uniqueAlt;break}else if(this.predictionMode!==wi.LL_EXACT_AMBIG_DETECTION){if(p=wi.resolvesToJustOneViableAlt(v),p!==Mt.INVALID_ALT_NUMBER)break}else if(wi.allSubsetsConflict(v)&&wi.allSubsetsEqual(v)){c=!0,p=wi.getSingleViableAlt(v);break}h=d,f!==Q.EOF&&(o.consume(),f=o.LA(1))}return d.uniqueAlt!==Mt.INVALID_ALT_NUMBER?(this.reportContextSensitivity(n,p,d,l,o.index),p):(this.reportAmbiguity(n,r,l,o.index,c,void 0,d),p)}computeReachSet(n,r,s){e.debug&&console.log("in computeReachSet, starting closure: "+n);let o=new Ll(s),l=null;for(let u of n){if(e.debug&&console.log("testing "+this.getTokenName(r)+" at "+u),u.state instanceof qs){(s||r===Q.EOF)&&(l===null&&(l=[]),l.push(u));continue}for(let c of u.state.transitions){let d=this.getReachableTarget(c,r);if(d!==null){let h=Wn.createWithConfig(d,u);o.add(h,this.mergeCache),e.debugAdd&&console.log("added "+h+" to intermediate")}}}let a=null;if(l===null&&r!==Q.EOF&&(o.length===1||e.getUniqueAlt(o)!==Mt.INVALID_ALT_NUMBER)&&(a=o),a===null){a=new Ll(s);let u=new as,c=r===Q.EOF;for(let d of o)this.closure(d,a,u,!1,s,c)}if(r===Q.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===o)),l!==null&&(!s||!wi.hasConfigInRuleStopState(a)))for(let u of l)a.add(u,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+n+" -> "+a),a.length===0?null:a}removeAllConfigsNotInRuleStopState(n,r){if(wi.allConfigsInRuleStopStates(n))return n;let s=new Ll(n.fullCtx);for(let o of n){if(o.state instanceof qs){s.add(o,this.mergeCache);continue}if(r&&o.state.epsilonOnlyTransitions&&this.atn.nextTokens(o.state).contains(Q.EPSILON)){let a=this.atn.ruleToStopState[o.state.ruleIndex];s.add(Wn.createWithConfig(a,o),this.mergeCache)}}return s}computeStartState(n,r,s){let o=Qw(this.atn,r),l=new Ll(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+n+" initialContext="+o.toString(this.parser));for(let a=0;a0&&(a=this.getAltThatFinishedDecisionEntryRule(l),a!==Mt.INVALID_ALT_NUMBER)?a:Mt.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(n){let r=[];for(let s of n)(s.reachesIntoOuterContext||s.state instanceof qs&&s.context.hasEmptyPath())&&r.indexOf(s.alt)<0&&r.push(s.alt);return r.length===0?Mt.INVALID_ALT_NUMBER:Math.min(...r)}splitAccordingToSemanticValidity(n,r){let s=new Ll(n.fullCtx),o=new Ll(n.fullCtx);for(let l of n)l.semanticContext!==Kt.NONE?l.semanticContext.evaluate(this.parser,r)?s.add(l):o.add(l):s.add(l);return[s,o]}evalSemanticContext(n,r,s){let o=new Ko;for(let l of n){if(l.pred===Kt.NONE){if(o.set(l.alt),!s)break;continue}let a=l.pred.evaluate(this.parser,r);if((e.debug||e.dfaDebug)&&console.log("eval pred "+l+"="+a),a&&(o.set(l.alt),!s))break}return o}closure(n,r,s,o,l,a){this.closureCheckingStopState(n,r,s,o,l,0,a)}closureCheckingStopState(n,r,s,o,l,a,u){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+n.toString(this.parser,!0)+")"),n.state instanceof qs)if(n.context&&!n.context.isEmpty()){for(let c=0;c=0&&(v+=1)}this.closureCheckingStopState(p,r,s,f,l,v,u)}}}canDropLoopEntryEdgeInLeftRecursiveRule(n){let r=n.state;if(r.constructor.stateType!==je.STAR_LOOP_ENTRY||!n.context||!r.precedenceRuleDecision||n.context.isEmpty()||n.context.hasEmptyPath())return!1;let s=n.context.length;for(let u=0;u=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+sd(this.parser.getRuleInvocationStack())));let a=null;if(s&&o)if(l&&this.predictionState?.input){let u=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);let c=r.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(u),c&&(a=Wn.createWithConfig(r.target,n))}else{let u=Kt.andContext(n.semanticContext,r.getPredicate());a=Wn.createWithSemanticContext(r.target,n,u)}else a=Wn.createWithConfig(r.target,n);return e.debug&&console.log("config from pred transition="+a),a}predTransition(n,r,s,o,l){e.debug&&(console.log("PRED (collectPredicates="+s+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+sd(this.parser.getRuleInvocationStack())));let a=null;if(s&&(r.isCtxDependent&&o||!r.isCtxDependent))if(l&&this.predictionState?.input){let u=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);let c=r.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(u),c&&(a=Wn.createWithConfig(r.target,n))}else{let u=Kt.andContext(n.semanticContext,r.getPredicate());a=Wn.createWithSemanticContext(r.target,n,u)}else a=Wn.createWithConfig(r.target,n);return e.debug&&console.log("config from pred transition="+a),a}ruleTransition(n,r){e.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+n.context);let s=r.followState,o=ls.create(n.context??void 0,s.stateNumber);return Wn.createWithConfig(r.target,n,o)}getConflictingAlts(n){let r=wi.getConflictingAltSubsets(n);return wi.getAlts(r)}getConflictingAltsOrUniqueAlt(n){let r;return n.uniqueAlt!==Mt.INVALID_ALT_NUMBER?(r=new Ko,r.set(n.uniqueAlt)):r=n.conflictingAlts,r}noViableAlt(n,r,s,o){return new D3(this.parser,n,n.get(o),n.LT(1),s,r)}addDFAEdge(n,r,s,o){return e.debug&&console.log("EDGE "+r+" -> "+o+" upon "+this.getTokenName(s)),o=this.addDFAState(n,o),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log(`DFA= -`+n.toString(this.parser!=null?this.parser.vocabulary:Ys.EMPTY_VOCABULARY)),r.edges[s+1]=o),o}addDFAState(n,r){if(r===zo.ERROR)return r;let s=n.getState(r);return s!==null?s:(r.configs.readOnly||(r.configs.optimizeConfigs(this),r.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+r),n.addState(r),r)}reportAttemptingFullContext(n,r,s,o,l){if(e.debug||e.retryDebug){let a=new hn(o,l+1);console.log("reportAttemptingFullContext decision="+n.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(a))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,n,o,l,r,s)}reportContextSensitivity(n,r,s,o,l){if(e.debug||e.retryDebug){let a=new hn(o,l+1);console.log("reportContextSensitivity decision="+n.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(a))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,n,o,l,r,s)}reportAmbiguity(n,r,s,o,l,a,u){if(e.debug||e.retryDebug){let c=new hn(s,o+1);console.log("reportAmbiguity "+a+":"+u+", input="+this.parser.tokenStream.getTextFromInterval(c))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,n,s,o,l,a,u)}},k(e,"ParserATNSimulator"),T(e,"traceATNSimulator",!1),T(e,"debug"),T(e,"debugAdd",!1),T(e,"debugClosure",!1),T(e,"dfaDebug",!1),T(e,"retryDebug",!1),e})(),qd,O3=(qd=class{cache=new Eu(x3.instance);add(e){if(e===wt.EMPTY)return e;let i=this.cache.get(e);return i||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},k(qd,"PredictionContextCache"),qd),Ho,ru,Kd,zw=(Kd=class extends e6{constructor(i){let n=i.interpreter.sharedContextCache;super(i,i.interpreter.atn,i.interpreter.decisionToDFA,n);T(this,"decisions");T(this,"numDecisions",0);T(this,"currentDecision",0);T(this,"currentState");T(this,"conflictingAltResolvedBySLL");Ee(this,Ho,0);Ee(this,ru,0);if(n){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let r=0;rthis.decisions[n].sllMaxLook&&(this.decisions[n].sllMaxLook=a,this.decisions[n].sllMaxLookEvent={decision:n,configs:null,predictedAlt:o,input:i,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1}),y(this,ru)>=0){let u=y(this,ru)-this.predictionState.startIndex+1;this.decisions[n].llTotalLook+=u,this.decisions[n].llMinLook=this.decisions[n].llMinLook===0?u:Math.min(this.decisions[n].llMinLook,u),u>this.decisions[n].llMaxLook&&(this.decisions[n].llMaxLook=u,this.decisions[n].llMaxLookEvent={decision:n,configs:null,predictedAlt:o,input:i,startIndex:this.predictionState.startIndex,stopIndex:y(this,ru),fullCtx:!0})}return o}finally{this.currentDecision=-1}}getExistingTargetState(i,n){if(this.predictionState?.input){ie(this,Ho,this.predictionState.input.index);let r=super.getExistingTargetState(i,n);return r!==null&&(this.decisions[this.currentDecision].sllDFATransitions++,r===zo.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1})),this.currentState=r,r}}computeTargetState(i,n,r){let s=super.computeTargetState(i,n,r);return this.currentState=s,s}computeReachSet(i,n,r){r&&this.predictionState?.input&&ie(this,ru,this.predictionState.input.index);let s=super.computeReachSet(i,n,r);return this.predictionState?.input&&(r?(this.decisions[this.currentDecision].llATNTransitions++,s===null&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,s===null&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1}))),s}reportAttemptingFullContext(i,n,r,s,o){n!==null?this.conflictingAltResolvedBySLL=n.nextSetBit(0):this.conflictingAltResolvedBySLL=r.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,n&&super.reportAttemptingFullContext(i,n,r,s,o)}reportContextSensitivity(i,n,r,s,o){n!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:r,input:this.predictionState.input,startIndex:s,stopIndex:o,fullCtx:!0}),super.reportContextSensitivity(i,n,r,s,o)}reportAmbiguity(i,n,r,s,o,l,a){let u;l?u=l.nextSetBit(0):u=a.getAlts().nextSetBit(0),this.predictionState?.input&&(a.fullCtx&&u!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:a,input:this.predictionState.input,startIndex:r,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:l,decision:this.currentDecision,configs:a,input:this.predictionState.input,startIndex:r,stopIndex:s,fullCtx:a.fullCtx})),super.reportAmbiguity(i,n,r,s,o,l,a)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}},Ho=new WeakMap,ru=new WeakMap,k(Kd,"ProfilingATNSimulator"),Kd),yH;(t=>{t.toString=k(e=>`(${e.pred}, ${e.alt})`,"toString")})(yH||(yH={}));var Yd,t6=(Yd=class{visit(e){return e.accept(this)}visitChildren(e){let i=this.defaultResult(),n=e.getChildCount();for(let r=0;r{t.fromString=k(e=>new Ihe(e),"fromString")})(Cu||(Cu={}));var Zd,s_,Xd,Ihe=(Xd=class{constructor(e){Ee(this,Zd);T(this,"name","");T(this,"index",0);T(this,"data");let i=[];for(let n of e)i.push(n.codePointAt(0));this.data=new Uint32Array(i)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(e===0)return 0;e<0&&(e+=1);let i=this.index+e-1;return i<0||i>=this.data.length?Q.EOF:this.data[i]}mark(){return-1}release(e){}seek(e){if(e<=this.index){this.index=e;return}this.index=Math.min(e,this.data.length)}getTextFromRange(e,i){return i=i??this.data.length-1,i>=this.data.length&&(i=this.data.length-1),e>=this.data.length?"":w6(this,Zd,s_).call(this,e,i+1)}getTextFromInterval(e){let i=e.start,n=e.stop;return n>=this.data.length&&(n=this.data.length-1),i>=this.data.length?"":w6(this,Zd,s_).call(this,i,n+1)}toString(){return w6(this,Zd,s_).call(this,0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:o_.UNKNOWN_SOURCE_NAME}},Zd=new WeakSet,s_=function(e,i){let n=this.data.slice(e,i),r="";return n.forEach(s=>{r+=String.fromCodePoint(s)}),r},k(Xd,"CharStreamImpl"),Xd),Qd,The=(Qd=class{tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(this.p>=0?this.fetchedEOF?e=this.p0?this.fetch(i)>=i:!0}fetch(e){if(this.fetchedEOF)return 0;for(let i=0;i=this.tokens.length||i<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+i+" not in 0.."+(this.tokens.length-1));if(e>i)return[];if(n===void 0)return this.tokens.slice(e,i+1);let r=[];i>=this.tokens.length&&(i=this.tokens.length-1);for(let s=e;s=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[i]}adjustSeekIndex(e){return e}lazyInit(){this.p===-1&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,i){if(this.sync(e),e>=this.tokens.length)return-1;let n=this.tokens[e];for(;n.channel!==i;){if(n.type===Q.EOF)return-1;e+=1,this.sync(e),n=this.tokens[e]}return e}previousTokenOnChannel(e,i){for(;e>=0&&this.tokens[e].channel!==i;)e-=1;return e}getHiddenTokensToRight(e,i){if(i===void 0&&(i=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);let n=this.nextTokenOnChannel(e+1,Yo.DEFAULT_TOKEN_CHANNEL),r=e+1,s=n===-1?this.tokens.length-1:n;return this.filterForChannel(r,s,i)}getHiddenTokensToLeft(e,i){if(i===void 0&&(i=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);let n=this.previousTokenOnChannel(e-1,Yo.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return;let r=n+1,s=e-1;return this.filterForChannel(r,s,i)}filterForChannel(e,i,n){let r=[];for(let s=e;s=this.tokens.length&&(n=this.tokens.length-1);let r="";for(let s=i;s<=n;++s){let o=this.tokens[s];if(o.type===Q.EOF)break;r+=o.text}return r}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,i){return e!==null&&i!==null?this.getTextFromInterval(hn.of(e.tokenIndex,i.tokenIndex)):""}fill(){for(this.lazyInit();this.fetch(1e3)===1e3;);}},k(Qd,"BufferedTokenStream"),Qd),Jd,L1=(Jd=class extends The{channel=Q.DEFAULT_CHANNEL;constructor(e,i){super(e),this.channel=i??Q.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(e===0||this.index-e<0)return null;let i=this.index,n=1;for(;n<=e;)i=this.previousTokenOnChannel(i-1,this.channel),n+=1;return i<0?null:this.tokens[i]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);let i=this.index,n=1;for(;nnew Kl(e,i))),ft),e1,She=(e1=class extends d_{syntaxError(e,i,n,r,s,o){}},k(e1,"XPathLexerErrorListener"),e1),t1,F1=(t1=class{invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(t1,"XPathElement"),t1),n1,whe=(n1=class extends F1{ruleIndex;constructor(e,i){super(e),this.ruleIndex=i}evaluate(e){return yu.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(n1,"XPathRuleAnywhereElement"),n1),i1,xhe=(i1=class extends F1{ruleIndex;constructor(e,i){super(e),this.ruleIndex=i}evaluate(e){let i=[];for(let n of yu.getChildren(e))n instanceof Ke&&(n.ruleIndex===this.ruleIndex&&!this.invert||n.ruleIndex!==this.ruleIndex&&this.invert)&&i.push(n);return i}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(i1,"XPathRuleElement"),i1),r1,Ahe=(r1=class extends F1{tokenType;constructor(e,i){super(e),this.tokenType=i}evaluate(e){return yu.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(r1,"XPathTokenAnywhereElement"),r1),s1,Dhe=(s1=class extends F1{tokenType;constructor(e,i){super(e),this.tokenType=i}evaluate(e){let i=[];for(let n of yu.getChildren(e))n instanceof qo&&n.symbol&&(n.symbol.type===this.tokenType&&!this.invert||n.symbol.type!==this.tokenType&&this.invert)&&i.push(n);return i}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(s1,"XPathTokenElement"),s1),o1,Ohe=(o1=class extends F1{constructor(){super(ex.WILDCARD)}evaluate(e){return this.invert?[]:yu.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(o1,"XPathWildcardAnywhereElement"),o1),l1,Rhe=(l1=class extends F1{constructor(){super(ex.WILDCARD)}evaluate(e){let i=[];if(this.invert)return i;for(let n of yu.getChildren(e))i.push(n);return i}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},k(l1,"XPathWildcardElement"),l1),ex=(()=>{var e;return e=class{path;elements;parser;constructor(n,r){this.parser=n,this.path=r,this.elements=this.split(r)}static findAll(n,r,s){return new e(s,r).evaluate(n)}split(n){let r=new zs(Cu.fromString(n));r.recover=c=>{throw c},r.removeErrorListeners(),r.addErrorListener(new She);let s=new L1(r);try{s.fill()}catch(c){if(c instanceof l_){let h="Invalid tokens or characters at index "+r.column+" in path '"+n+"' -- "+c.message;throw new RangeError(h)}throw c}let o=s.getTokens(),l=[],a=o.length,u=0;e:for(;u0&&this.elements[o].evaluate(a).forEach(c=>{l.add(c)},l);o++,s=l}return s}getXPathElement(n,r){if(n.type===Q.EOF)throw new Error("Missing path element at end of path");let s=n.text;if(s==null)throw new Error("Expected wordToken to have text content.");let o=this.parser.getTokenType(s),l=this.parser.getRuleIndex(s);switch(n.type){case zs.WILDCARD:return r?new Ohe:new Rhe;case zs.TOKEN_REF:case zs.STRING:if(o===Q.INVALID_TYPE)throw new Error(s+" at index "+n.start+" isn't a valid token name");return r?new Ahe(s,o):new Dhe(s,o);default:if(l===-1)throw new Error(s+" at index "+n.start+" isn't a valid rule name");return r?new whe(s,l):new xhe(s,l)}}},k(e,"XPath"),T(e,"WILDCARD","*"),T(e,"NOT","!"),e})(),a1,kH=(a1=class{},k(a1,"Chunk"),a1),u1,Mhe=(u1=class{tree;pattern;labels;mismatchedNode;constructor(e,i,n,r){this.tree=e,this.pattern=i,this.labels=n,this.mismatchedNode=r}get(e){let i=this.labels.get(e);return!i||i.length===0?null:i[i.length-1]}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},k(u1,"ParseTreeMatch"),u1),c1,khe=(c1=class{patternRuleIndex;pattern;patternTree;matcher;constructor(e,i,n,r){this.matcher=e,this.patternRuleIndex=n,this.pattern=i,this.patternTree=r}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,i){let n=ex.findAll(e,i,this.matcher.getParser()),r=new Array;for(let s of n){let o=this.match(s);o.succeeded()&&r.push(o)}return r}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},k(c1,"ParseTreePattern"),c1),d1,Op=(d1=class extends rt{constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},k(d1,"InputMismatchException"),d1),h1,Mp=(h1=class extends rt{ruleIndex=0;predicateIndex=0;predicate;constructor(e,i,n=null){super({message:Nhe(i??"no predicate",n??null),recognizer:e,input:e.inputStream,ctx:e.context});let s=e.atn.states[e.state].transitions[0];s instanceof DH?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=i,this.offendingToken=e.getCurrentToken()}},k(h1,"FailedPredicateException"),h1),Nhe=k((t,e)=>e!==null?e:"failed predicate: {"+t+"}?","formatMessage"),f1,NH=(f1=class{errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new Ks;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new Ks,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,i){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),i instanceof D3?this.reportNoViableAlternative(e,i):i instanceof Op?this.reportInputMismatch(e,i):i instanceof Mp?this.reportFailedPredicate(e,i):e.notifyErrorListeners(i.message,i.offendingToken,i))}recover(e,i){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);let n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)}sync(e){if(this.inErrorRecoveryMode(e))return;let i=e.atn.states[e.state],n=e.tokenStream.LA(1),r=e.atn.nextTokens(i);if(r.contains(n)){this.nextTokensContext=null,this.nextTokenState=je.INVALID_STATE_NUMBER;return}if(r.contains(Q.EPSILON)){this.nextTokensContext===null&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);return}switch(i.constructor.stateType){case je.BLOCK_START:case je.STAR_BLOCK_START:case je.PLUS_BLOCK_START:case je.STAR_LOOP_ENTRY:{if(this.singleTokenDeletion(e)!==null)return;throw new Op(e)}case je.PLUS_LOOP_BACK:case je.STAR_LOOP_BACK:{this.reportUnwantedToken(e);let s=new Ks;s.addSet(e.getExpectedTokens());let o=s.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,o);break}default:}}reportNoViableAlternative(e,i){if(i.message.length>0){e.notifyErrorListeners(i.message,i.offendingToken,i);return}let n=e.tokenStream,r;n!==null&&i.startToken?i.startToken.type===Q.EOF?r="":r=n.getTextFromRange(i.startToken,i.offendingToken):r="";let s="no viable alternative at input "+this.escapeWSAndQuote(r);e.notifyErrorListeners(s,i.offendingToken,i)}reportInputMismatch(e,i){if(i.message.length>0){e.notifyErrorListeners(i.message,i.offendingToken,i);return}let n="mismatched input "+this.getTokenErrorDisplay(i.offendingToken)+" expecting "+i.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(n,i.offendingToken,i)}reportFailedPredicate(e,i){let r="rule "+e.ruleNames[e.context.ruleIndex]+" "+i.message;e.notifyErrorListeners(r,i.offendingToken,i)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let i=e.getCurrentToken(),n=this.getTokenErrorDisplay(i),r=this.getExpectedTokens(e),s="extraneous input "+n+" expecting "+r.toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(s,i,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let i=e.getCurrentToken(),r="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(i);e.notifyErrorListeners(r,i,null)}recoverInline(e){let i=this.singleTokenDeletion(e);if(i)return e.consume(),i;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Op(e)}singleTokenInsertion(e){let i=e.tokenStream?.LA(1)??-1,n=e.atn,s=n.states[e.state].transitions[0].target;return n.nextTokens(s,e.context??void 0).contains(i)?(this.reportMissingToken(e),!0):!1}singleTokenDeletion(e){let i=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(i)){this.reportUnwantedToken(e),e.consume();let r=e.getCurrentToken();return this.reportMatch(e),r}return null}getMissingSymbol(e){let i=e.getCurrentToken(),n=this.getExpectedTokens(e),r=Q.INVALID_TYPE;n.length!==0&&(r=n.minElement);let s;r===Q.EOF?s="":s="";let o=i,l=e.tokenStream?.LT(-1);return o.type===Q.EOF&&l!==null&&(o=l),e.getTokenFactory().create(o.source,r,s,Q.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(e===null)return"";let i=e.text;return i||(e.type===Q.EOF?i="":i="<"+e.type+">"),this.escapeWSAndQuote(i)}escapeWSAndQuote(e){return e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/\t/g,"\\t"),"'"+e+"'"}getErrorRecoverySet(e){let i=e.atn,n=e.context,r=new Ks;for(;n!==null&&n.invokingState>=0;){let o=i.states[n.invokingState].transitions[0],l=i.nextTokens(o.followState);r.addSet(l),n=n.parent}return r.removeOne(Q.EPSILON),r}consumeUntil(e,i){let n=e.tokenStream?.LA(1)??-1;for(;n!==Q.EOF&&!i.contains(n);)e.consume(),n=e.tokenStream?.LA(1)??-1}},k(f1,"DefaultErrorStrategy"),f1),p1,Phe=(p1=class extends NH{recover(e,i){throw new Yw(i)}recoverInline(e){let i=new Op(e);throw new Yw(i)}sync(e){}},k(p1,"BailErrorStrategy"),p1),m1,Lhe=(m1=class{sourceName;tokenFactory=RH.DEFAULT;tokens;i;eofToken;constructor(e,i){this.tokens=e,this.sourceName=i??""}get column(){if(this.i0){let e=this.tokens[this.tokens.length-1],i=e.text;if(i){let n=i.lastIndexOf(` +`,a)),!a.context||a.context.hasEmptyPath()){if(!a.context||a.context.isEmpty())return u.add(a),!0;u.add(Bo.createWithConfig(a.state,a,wt.EMPTY)),c=!0}if(a.context&&!a.context.isEmpty()){for(let p=0;p{let d=ls.create(u.context??void 0,c.followState.stateNumber);return Bo.createWithConfig(c.target,u,d)},y(this,r)[Ie.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},y(this,r)[Ie.PREDICATE]=(a,u,c,d,h)=>{let f=c;return e.debug&&console.log("EVAL rule "+f.ruleIndex+":"+f.predIndex),d.hasSemanticContext=!0,this.evaluatePredicate(a,f.ruleIndex,f.predIndex,h)?Bo.createWithConfig(c.target,u):null},y(this,r)[Ie.ACTION]=(a,u,c)=>{if(u.context===null||u.context.hasEmptyPath()){let d=yhe.append(u.lexerActionExecutor,this.atn.lexerActions[c.actionIndex]);return Bo.createWithExecutor(u,c.target,d)}else return Bo.createWithConfig(c.target,u)},y(this,r)[Ie.EPSILON]=(a,u,c)=>Bo.createWithConfig(c.target,u);let l=N((a,u,c,d,h,f)=>f&&c.matches(Q.EOF,y(this,n).minCodePoint,y(this,n).maxCodePoint)?Bo.createWithConfig(c.target,u):null,"simple");y(this,r)[Ie.ATOM]=l,y(this,r)[Ie.RANGE]=l,y(this,r)[Ie.SET]=l}evaluatePredicate(l,a,u,c){if(!this.recognizer)return!0;if(!c)return this.recognizer.sempred(null,a,u);let d=this.column,h=this.line,f=l.index,p=l.mark();try{return this.consume(l),this.recognizer.sempred(null,a,u)}finally{this.column=d,this.line=h,l.seek(f),l.release(p)}}captureSimState(l,a){ie(this,i,{index:l.index,line:this.line,column:this.column,dfaState:a})}addDFAEdge(l,a,u,c){if(!u&&c){let d=c.hasSemanticContext;if(c.hasSemanticContext=!1,u=this.addDFAState(c),d)return u}return ay(this,n).maxDFAEdge||(e.debug&&console.log("EDGE "+l+" -> "+u+" upon "+a),l.edges[a-y(this,n).minDFAEdge]=u),u}addDFAState(l){let a=this.decisionToDFA[this.mode],u=a.getStateForConfigs(l);if(u)return u;let c=od.fromConfigs(l),d=l.firstStopState;return d&&(c.isAcceptState=!0,c.lexerActionExecutor=d.lexerActionExecutor,c.prediction=this.atn.ruleToTokenType[d.state.ruleIndex]),l.setReadonly(!0),a.addState(c),c}},i=new WeakMap,n=new WeakMap,r=new WeakMap,N(e,"LexerATNSimulator"),T(e,"debug",!1),e})(),$d,pUe=($d=class{atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let e=this.atnSimulator.getDecisionInfo(),i=new Array;for(let n=0;n0&&i.push(n);return i}getTotalTimeInPrediction(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.timeInPrediction;return i}getTotalSLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllTotalLook;return i}getTotalLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.llTotalLook;return i}getTotalSLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllATNTransitions;return i}getTotalLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.llATNTransitions;return i}getTotalATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),i=0;for(let n of e)i+=n.sllATNTransitions,i+=n.llATNTransitions;return i}getDFASize(e){if(e===void 0){let i=0,n=this.atnSimulator.decisionToDFA;for(let r=0;r{var e;return e=class{static hasSLLConflictTerminatingPrediction(n,r){if(e.allConfigsInRuleStopStates(r))return!0;if(n===e.SLL&&r.hasSemanticContext){let o=new Ll;for(let l of r)l=Wn.duplicate(l,Kt.NONE),o.add(l);r=o}let s=e.getConflictingAltSubsets(r);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(r)}static hasConfigInRuleStopState(n){for(let r of n)if(r.state instanceof qs)return!0;return!1}static allConfigsInRuleStopStates(n){for(let r of n)if(!(r.state instanceof qs))return!1;return!0}static resolvesToJustOneViableAlt(n){return e.getSingleViableAlt(n)}static allSubsetsConflict(n){return!e.hasNonConflictingAltSet(n)}static hasNonConflictingAltSet(n){for(let r of n)if(r.length===1)return!0;return!1}static hasConflictingAltSet(n){for(let r of n)if(r.length>1)return!0;return!1}static allSubsetsEqual(n){let r=null;for(let s of n)if(r===null)r=s;else if(s!==r)return!1;return!0}static getUniqueAlt(n){let r=e.getAlts(n);return r.length===1?r.nextSetBit(0):Mt.INVALID_ALT_NUMBER}static getAlts(n){let r=new Ko;return n.forEach(s=>{r.or(s)}),r}static getConflictingAltSubsets(n){let r=new Eu(Che.instance);for(let s of n){let o=r.get(s);o||(o=new Ko,r.set(s,o)),o.set(s.alt)}return Array.from(r.values())}static getStateToAltMap(n){let r=new Eu(x3.instance);for(let s of n){let o=r.get(s.state);o||(o=new Ko,r.set(s.state,o)),o.set(s.alt)}return r}static hasStateAssociatedWithOneAlt(n){let r={};for(let s of n){let o=s.state.stateNumber;r[o]||(r[o]=0),r[o]++}return Object.values(r).some(s=>s===1)}static getSingleViableAlt(n){let r=null;for(let s of n){let o=s.nextSetBit(0);if(r===null)r=o;else if(r!==o)return Mt.INVALID_ALT_NUMBER}return r??0}},N(e,"PredictionMode"),T(e,"SLL",0),T(e,"LL",1),T(e,"LL_EXACT_AMBIG_DETECTION",2),e})(),e6=(()=>{var e;return e=class extends zo{predictionMode;decisionToDFA;parser;mergeCache=new bH;predictionState;constructor(n,r,s,o){super(r,o),this.parser=n,this.decisionToDFA=s}static getUniqueAlt(n){let r=Mt.INVALID_ALT_NUMBER;for(let s of n)if(r===Mt.INVALID_ALT_NUMBER)r=s.alt;else if(s.alt!==r)return Mt.INVALID_ALT_NUMBER;return r}reset(){}clearDFA(){for(let n=0;n"}getTokenName(n){if(n===Q.EOF)return"EOF";let s=(this.parser?.vocabulary??Ys.EMPTY_VOCABULARY).getDisplayName(n);return s===n.toString()?s:s+"<"+n+">"}getLookaheadName(n){return this.getTokenName(n.LA(1))}dumpDeadEndConfigs(n){console.log("dead end configs: ");let r=n.deadEndConfigs;for(let s of r){let o="no edges";if(s.state.transitions.length>0){let l=s.state.transitions[0];l instanceof Dp?o="Atom "+this.getTokenName(l.labelValue):l instanceof Zw&&(o=(l instanceof Xw?"~":"")+"Set "+l.label)}console.error(s.toString(this.parser,!0)+":"+o)}}predicateDFAState(n,r){let s=r.transitions.length,o=this.getConflictingAltsOrUniqueAlt(n.configs),l=this.getPredsForAmbigAlts(o,n.configs,s);l!==null?(n.predicates=this.getPredicatePredictions(o,l),n.prediction=Mt.INVALID_ALT_NUMBER):n.prediction=o.nextSetBit(0)}execATNWithFullContext(n,r,s,o,l,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let u=!0,c=!1,d,h=s;o.seek(l);let f=o.LA(1),p=-1;for(;;){if(d=this.computeReachSet(h,f,u),d===null){let E=this.noViableAlt(o,a,h,l);o.seek(l);let C=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(C!==Mt.INVALID_ALT_NUMBER)return C;throw E}let v=wi.getConflictingAltSubsets(d);if(e.debug&&console.log("LL altSubSets="+v+", predict="+wi.getUniqueAlt(v)+", resolvesToJustOneViableAlt="+wi.resolvesToJustOneViableAlt(v)),d.uniqueAlt=e.getUniqueAlt(d),d.uniqueAlt!==Mt.INVALID_ALT_NUMBER){p=d.uniqueAlt;break}else if(this.predictionMode!==wi.LL_EXACT_AMBIG_DETECTION){if(p=wi.resolvesToJustOneViableAlt(v),p!==Mt.INVALID_ALT_NUMBER)break}else if(wi.allSubsetsConflict(v)&&wi.allSubsetsEqual(v)){c=!0,p=wi.getSingleViableAlt(v);break}h=d,f!==Q.EOF&&(o.consume(),f=o.LA(1))}return d.uniqueAlt!==Mt.INVALID_ALT_NUMBER?(this.reportContextSensitivity(n,p,d,l,o.index),p):(this.reportAmbiguity(n,r,l,o.index,c,void 0,d),p)}computeReachSet(n,r,s){e.debug&&console.log("in computeReachSet, starting closure: "+n);let o=new Ll(s),l=null;for(let u of n){if(e.debug&&console.log("testing "+this.getTokenName(r)+" at "+u),u.state instanceof qs){(s||r===Q.EOF)&&(l===null&&(l=[]),l.push(u));continue}for(let c of u.state.transitions){let d=this.getReachableTarget(c,r);if(d!==null){let h=Wn.createWithConfig(d,u);o.add(h,this.mergeCache),e.debugAdd&&console.log("added "+h+" to intermediate")}}}let a=null;if(l===null&&r!==Q.EOF&&(o.length===1||e.getUniqueAlt(o)!==Mt.INVALID_ALT_NUMBER)&&(a=o),a===null){a=new Ll(s);let u=new as,c=r===Q.EOF;for(let d of o)this.closure(d,a,u,!1,s,c)}if(r===Q.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===o)),l!==null&&(!s||!wi.hasConfigInRuleStopState(a)))for(let u of l)a.add(u,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+n+" -> "+a),a.length===0?null:a}removeAllConfigsNotInRuleStopState(n,r){if(wi.allConfigsInRuleStopStates(n))return n;let s=new Ll(n.fullCtx);for(let o of n){if(o.state instanceof qs){s.add(o,this.mergeCache);continue}if(r&&o.state.epsilonOnlyTransitions&&this.atn.nextTokens(o.state).contains(Q.EPSILON)){let a=this.atn.ruleToStopState[o.state.ruleIndex];s.add(Wn.createWithConfig(a,o),this.mergeCache)}}return s}computeStartState(n,r,s){let o=Qw(this.atn,r),l=new Ll(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+n+" initialContext="+o.toString(this.parser));for(let a=0;a0&&(a=this.getAltThatFinishedDecisionEntryRule(l),a!==Mt.INVALID_ALT_NUMBER)?a:Mt.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(n){let r=[];for(let s of n)(s.reachesIntoOuterContext||s.state instanceof qs&&s.context.hasEmptyPath())&&r.indexOf(s.alt)<0&&r.push(s.alt);return r.length===0?Mt.INVALID_ALT_NUMBER:Math.min(...r)}splitAccordingToSemanticValidity(n,r){let s=new Ll(n.fullCtx),o=new Ll(n.fullCtx);for(let l of n)l.semanticContext!==Kt.NONE?l.semanticContext.evaluate(this.parser,r)?s.add(l):o.add(l):s.add(l);return[s,o]}evalSemanticContext(n,r,s){let o=new Ko;for(let l of n){if(l.pred===Kt.NONE){if(o.set(l.alt),!s)break;continue}let a=l.pred.evaluate(this.parser,r);if((e.debug||e.dfaDebug)&&console.log("eval pred "+l+"="+a),a&&(o.set(l.alt),!s))break}return o}closure(n,r,s,o,l,a){this.closureCheckingStopState(n,r,s,o,l,0,a)}closureCheckingStopState(n,r,s,o,l,a,u){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+n.toString(this.parser,!0)+")"),n.state instanceof qs)if(n.context&&!n.context.isEmpty()){for(let c=0;c=0&&(v+=1)}this.closureCheckingStopState(p,r,s,f,l,v,u)}}}canDropLoopEntryEdgeInLeftRecursiveRule(n){let r=n.state;if(r.constructor.stateType!==je.STAR_LOOP_ENTRY||!n.context||!r.precedenceRuleDecision||n.context.isEmpty()||n.context.hasEmptyPath())return!1;let s=n.context.length;for(let u=0;u=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+sd(this.parser.getRuleInvocationStack())));let a=null;if(s&&o)if(l&&this.predictionState?.input){let u=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);let c=r.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(u),c&&(a=Wn.createWithConfig(r.target,n))}else{let u=Kt.andContext(n.semanticContext,r.getPredicate());a=Wn.createWithSemanticContext(r.target,n,u)}else a=Wn.createWithConfig(r.target,n);return e.debug&&console.log("config from pred transition="+a),a}predTransition(n,r,s,o,l){e.debug&&(console.log("PRED (collectPredicates="+s+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+sd(this.parser.getRuleInvocationStack())));let a=null;if(s&&(r.isCtxDependent&&o||!r.isCtxDependent))if(l&&this.predictionState?.input){let u=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);let c=r.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(u),c&&(a=Wn.createWithConfig(r.target,n))}else{let u=Kt.andContext(n.semanticContext,r.getPredicate());a=Wn.createWithSemanticContext(r.target,n,u)}else a=Wn.createWithConfig(r.target,n);return e.debug&&console.log("config from pred transition="+a),a}ruleTransition(n,r){e.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+n.context);let s=r.followState,o=ls.create(n.context??void 0,s.stateNumber);return Wn.createWithConfig(r.target,n,o)}getConflictingAlts(n){let r=wi.getConflictingAltSubsets(n);return wi.getAlts(r)}getConflictingAltsOrUniqueAlt(n){let r;return n.uniqueAlt!==Mt.INVALID_ALT_NUMBER?(r=new Ko,r.set(n.uniqueAlt)):r=n.conflictingAlts,r}noViableAlt(n,r,s,o){return new D3(this.parser,n,n.get(o),n.LT(1),s,r)}addDFAEdge(n,r,s,o){return e.debug&&console.log("EDGE "+r+" -> "+o+" upon "+this.getTokenName(s)),o=this.addDFAState(n,o),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log(`DFA= +`+n.toString(this.parser!=null?this.parser.vocabulary:Ys.EMPTY_VOCABULARY)),r.edges[s+1]=o),o}addDFAState(n,r){if(r===zo.ERROR)return r;let s=n.getState(r);return s!==null?s:(r.configs.readOnly||(r.configs.optimizeConfigs(this),r.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+r),n.addState(r),r)}reportAttemptingFullContext(n,r,s,o,l){if(e.debug||e.retryDebug){let a=new hn(o,l+1);console.log("reportAttemptingFullContext decision="+n.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(a))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,n,o,l,r,s)}reportContextSensitivity(n,r,s,o,l){if(e.debug||e.retryDebug){let a=new hn(o,l+1);console.log("reportContextSensitivity decision="+n.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(a))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,n,o,l,r,s)}reportAmbiguity(n,r,s,o,l,a,u){if(e.debug||e.retryDebug){let c=new hn(s,o+1);console.log("reportAmbiguity "+a+":"+u+", input="+this.parser.tokenStream.getTextFromInterval(c))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,n,s,o,l,a,u)}},N(e,"ParserATNSimulator"),T(e,"traceATNSimulator",!1),T(e,"debug"),T(e,"debugAdd",!1),T(e,"debugClosure",!1),T(e,"dfaDebug",!1),T(e,"retryDebug",!1),e})(),qd,O3=(qd=class{cache=new Eu(x3.instance);add(e){if(e===wt.EMPTY)return e;let i=this.cache.get(e);return i||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},N(qd,"PredictionContextCache"),qd),Ho,ru,Kd,zw=(Kd=class extends e6{constructor(i){let n=i.interpreter.sharedContextCache;super(i,i.interpreter.atn,i.interpreter.decisionToDFA,n);T(this,"decisions");T(this,"numDecisions",0);T(this,"currentDecision",0);T(this,"currentState");T(this,"conflictingAltResolvedBySLL");Ee(this,Ho,0);Ee(this,ru,0);if(n){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let r=0;rthis.decisions[n].sllMaxLook&&(this.decisions[n].sllMaxLook=a,this.decisions[n].sllMaxLookEvent={decision:n,configs:null,predictedAlt:o,input:i,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1}),y(this,ru)>=0){let u=y(this,ru)-this.predictionState.startIndex+1;this.decisions[n].llTotalLook+=u,this.decisions[n].llMinLook=this.decisions[n].llMinLook===0?u:Math.min(this.decisions[n].llMinLook,u),u>this.decisions[n].llMaxLook&&(this.decisions[n].llMaxLook=u,this.decisions[n].llMaxLookEvent={decision:n,configs:null,predictedAlt:o,input:i,startIndex:this.predictionState.startIndex,stopIndex:y(this,ru),fullCtx:!0})}return o}finally{this.currentDecision=-1}}getExistingTargetState(i,n){if(this.predictionState?.input){ie(this,Ho,this.predictionState.input.index);let r=super.getExistingTargetState(i,n);return r!==null&&(this.decisions[this.currentDecision].sllDFATransitions++,r===zo.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1})),this.currentState=r,r}}computeTargetState(i,n,r){let s=super.computeTargetState(i,n,r);return this.currentState=s,s}computeReachSet(i,n,r){r&&this.predictionState?.input&&ie(this,ru,this.predictionState.input.index);let s=super.computeReachSet(i,n,r);return this.predictionState?.input&&(r?(this.decisions[this.currentDecision].llATNTransitions++,s===null&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,s===null&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:y(this,Ho),fullCtx:!1}))),s}reportAttemptingFullContext(i,n,r,s,o){n!==null?this.conflictingAltResolvedBySLL=n.nextSetBit(0):this.conflictingAltResolvedBySLL=r.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,n&&super.reportAttemptingFullContext(i,n,r,s,o)}reportContextSensitivity(i,n,r,s,o){n!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:r,input:this.predictionState.input,startIndex:s,stopIndex:o,fullCtx:!0}),super.reportContextSensitivity(i,n,r,s,o)}reportAmbiguity(i,n,r,s,o,l,a){let u;l?u=l.nextSetBit(0):u=a.getAlts().nextSetBit(0),this.predictionState?.input&&(a.fullCtx&&u!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:a,input:this.predictionState.input,startIndex:r,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:l,decision:this.currentDecision,configs:a,input:this.predictionState.input,startIndex:r,stopIndex:s,fullCtx:a.fullCtx})),super.reportAmbiguity(i,n,r,s,o,l,a)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}},Ho=new WeakMap,ru=new WeakMap,N(Kd,"ProfilingATNSimulator"),Kd),yH;(t=>{t.toString=N(e=>`(${e.pred}, ${e.alt})`,"toString")})(yH||(yH={}));var Yd,t6=(Yd=class{visit(e){return e.accept(this)}visitChildren(e){let i=this.defaultResult(),n=e.getChildCount();for(let r=0;r{t.fromString=N(e=>new Ihe(e),"fromString")})(Cu||(Cu={}));var Zd,s_,Xd,Ihe=(Xd=class{constructor(e){Ee(this,Zd);T(this,"name","");T(this,"index",0);T(this,"data");let i=[];for(let n of e)i.push(n.codePointAt(0));this.data=new Uint32Array(i)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(e===0)return 0;e<0&&(e+=1);let i=this.index+e-1;return i<0||i>=this.data.length?Q.EOF:this.data[i]}mark(){return-1}release(e){}seek(e){if(e<=this.index){this.index=e;return}this.index=Math.min(e,this.data.length)}getTextFromRange(e,i){return i=i??this.data.length-1,i>=this.data.length&&(i=this.data.length-1),e>=this.data.length?"":w6(this,Zd,s_).call(this,e,i+1)}getTextFromInterval(e){let i=e.start,n=e.stop;return n>=this.data.length&&(n=this.data.length-1),i>=this.data.length?"":w6(this,Zd,s_).call(this,i,n+1)}toString(){return w6(this,Zd,s_).call(this,0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:o_.UNKNOWN_SOURCE_NAME}},Zd=new WeakSet,s_=function(e,i){let n=this.data.slice(e,i),r="";return n.forEach(s=>{r+=String.fromCodePoint(s)}),r},N(Xd,"CharStreamImpl"),Xd),Qd,The=(Qd=class{tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(this.p>=0?this.fetchedEOF?e=this.p0?this.fetch(i)>=i:!0}fetch(e){if(this.fetchedEOF)return 0;for(let i=0;i=this.tokens.length||i<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+i+" not in 0.."+(this.tokens.length-1));if(e>i)return[];if(n===void 0)return this.tokens.slice(e,i+1);let r=[];i>=this.tokens.length&&(i=this.tokens.length-1);for(let s=e;s=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[i]}adjustSeekIndex(e){return e}lazyInit(){this.p===-1&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,i){if(this.sync(e),e>=this.tokens.length)return-1;let n=this.tokens[e];for(;n.channel!==i;){if(n.type===Q.EOF)return-1;e+=1,this.sync(e),n=this.tokens[e]}return e}previousTokenOnChannel(e,i){for(;e>=0&&this.tokens[e].channel!==i;)e-=1;return e}getHiddenTokensToRight(e,i){if(i===void 0&&(i=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);let n=this.nextTokenOnChannel(e+1,Yo.DEFAULT_TOKEN_CHANNEL),r=e+1,s=n===-1?this.tokens.length-1:n;return this.filterForChannel(r,s,i)}getHiddenTokensToLeft(e,i){if(i===void 0&&(i=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);let n=this.previousTokenOnChannel(e-1,Yo.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return;let r=n+1,s=e-1;return this.filterForChannel(r,s,i)}filterForChannel(e,i,n){let r=[];for(let s=e;s=this.tokens.length&&(n=this.tokens.length-1);let r="";for(let s=i;s<=n;++s){let o=this.tokens[s];if(o.type===Q.EOF)break;r+=o.text}return r}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,i){return e!==null&&i!==null?this.getTextFromInterval(hn.of(e.tokenIndex,i.tokenIndex)):""}fill(){for(this.lazyInit();this.fetch(1e3)===1e3;);}},N(Qd,"BufferedTokenStream"),Qd),Jd,L1=(Jd=class extends The{channel=Q.DEFAULT_CHANNEL;constructor(e,i){super(e),this.channel=i??Q.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(e===0||this.index-e<0)return null;let i=this.index,n=1;for(;n<=e;)i=this.previousTokenOnChannel(i-1,this.channel),n+=1;return i<0?null:this.tokens[i]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);let i=this.index,n=1;for(;nnew Kl(e,i))),ft),e1,She=(e1=class extends d_{syntaxError(e,i,n,r,s,o){}},N(e1,"XPathLexerErrorListener"),e1),t1,F1=(t1=class{invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(t1,"XPathElement"),t1),n1,whe=(n1=class extends F1{ruleIndex;constructor(e,i){super(e),this.ruleIndex=i}evaluate(e){return yu.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(n1,"XPathRuleAnywhereElement"),n1),i1,xhe=(i1=class extends F1{ruleIndex;constructor(e,i){super(e),this.ruleIndex=i}evaluate(e){let i=[];for(let n of yu.getChildren(e))n instanceof Ke&&(n.ruleIndex===this.ruleIndex&&!this.invert||n.ruleIndex!==this.ruleIndex&&this.invert)&&i.push(n);return i}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(i1,"XPathRuleElement"),i1),r1,Ahe=(r1=class extends F1{tokenType;constructor(e,i){super(e),this.tokenType=i}evaluate(e){return yu.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(r1,"XPathTokenAnywhereElement"),r1),s1,Dhe=(s1=class extends F1{tokenType;constructor(e,i){super(e),this.tokenType=i}evaluate(e){let i=[];for(let n of yu.getChildren(e))n instanceof qo&&n.symbol&&(n.symbol.type===this.tokenType&&!this.invert||n.symbol.type!==this.tokenType&&this.invert)&&i.push(n);return i}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(s1,"XPathTokenElement"),s1),o1,Ohe=(o1=class extends F1{constructor(){super(ex.WILDCARD)}evaluate(e){return this.invert?[]:yu.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(o1,"XPathWildcardAnywhereElement"),o1),l1,Rhe=(l1=class extends F1{constructor(){super(ex.WILDCARD)}evaluate(e){let i=[];if(this.invert)return i;for(let n of yu.getChildren(e))i.push(n);return i}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},N(l1,"XPathWildcardElement"),l1),ex=(()=>{var e;return e=class{path;elements;parser;constructor(n,r){this.parser=n,this.path=r,this.elements=this.split(r)}static findAll(n,r,s){return new e(s,r).evaluate(n)}split(n){let r=new zs(Cu.fromString(n));r.recover=c=>{throw c},r.removeErrorListeners(),r.addErrorListener(new She);let s=new L1(r);try{s.fill()}catch(c){if(c instanceof l_){let h="Invalid tokens or characters at index "+r.column+" in path '"+n+"' -- "+c.message;throw new RangeError(h)}throw c}let o=s.getTokens(),l=[],a=o.length,u=0;e:for(;u0&&this.elements[o].evaluate(a).forEach(c=>{l.add(c)},l);o++,s=l}return s}getXPathElement(n,r){if(n.type===Q.EOF)throw new Error("Missing path element at end of path");let s=n.text;if(s==null)throw new Error("Expected wordToken to have text content.");let o=this.parser.getTokenType(s),l=this.parser.getRuleIndex(s);switch(n.type){case zs.WILDCARD:return r?new Ohe:new Rhe;case zs.TOKEN_REF:case zs.STRING:if(o===Q.INVALID_TYPE)throw new Error(s+" at index "+n.start+" isn't a valid token name");return r?new Ahe(s,o):new Dhe(s,o);default:if(l===-1)throw new Error(s+" at index "+n.start+" isn't a valid rule name");return r?new whe(s,l):new xhe(s,l)}}},N(e,"XPath"),T(e,"WILDCARD","*"),T(e,"NOT","!"),e})(),a1,kH=(a1=class{},N(a1,"Chunk"),a1),u1,Mhe=(u1=class{tree;pattern;labels;mismatchedNode;constructor(e,i,n,r){this.tree=e,this.pattern=i,this.labels=n,this.mismatchedNode=r}get(e){let i=this.labels.get(e);return!i||i.length===0?null:i[i.length-1]}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},N(u1,"ParseTreeMatch"),u1),c1,khe=(c1=class{patternRuleIndex;pattern;patternTree;matcher;constructor(e,i,n,r){this.matcher=e,this.patternRuleIndex=n,this.pattern=i,this.patternTree=r}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,i){let n=ex.findAll(e,i,this.matcher.getParser()),r=new Array;for(let s of n){let o=this.match(s);o.succeeded()&&r.push(o)}return r}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},N(c1,"ParseTreePattern"),c1),d1,Op=(d1=class extends rt{constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},N(d1,"InputMismatchException"),d1),h1,Mp=(h1=class extends rt{ruleIndex=0;predicateIndex=0;predicate;constructor(e,i,n=null){super({message:Nhe(i??"no predicate",n??null),recognizer:e,input:e.inputStream,ctx:e.context});let s=e.atn.states[e.state].transitions[0];s instanceof DH?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=i,this.offendingToken=e.getCurrentToken()}},N(h1,"FailedPredicateException"),h1),Nhe=N((t,e)=>e!==null?e:"failed predicate: {"+t+"}?","formatMessage"),f1,NH=(f1=class{errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new Ks;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new Ks,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,i){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),i instanceof D3?this.reportNoViableAlternative(e,i):i instanceof Op?this.reportInputMismatch(e,i):i instanceof Mp?this.reportFailedPredicate(e,i):e.notifyErrorListeners(i.message,i.offendingToken,i))}recover(e,i){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);let n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)}sync(e){if(this.inErrorRecoveryMode(e))return;let i=e.atn.states[e.state],n=e.tokenStream.LA(1),r=e.atn.nextTokens(i);if(r.contains(n)){this.nextTokensContext=null,this.nextTokenState=je.INVALID_STATE_NUMBER;return}if(r.contains(Q.EPSILON)){this.nextTokensContext===null&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);return}switch(i.constructor.stateType){case je.BLOCK_START:case je.STAR_BLOCK_START:case je.PLUS_BLOCK_START:case je.STAR_LOOP_ENTRY:{if(this.singleTokenDeletion(e)!==null)return;throw new Op(e)}case je.PLUS_LOOP_BACK:case je.STAR_LOOP_BACK:{this.reportUnwantedToken(e);let s=new Ks;s.addSet(e.getExpectedTokens());let o=s.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,o);break}default:}}reportNoViableAlternative(e,i){if(i.message.length>0){e.notifyErrorListeners(i.message,i.offendingToken,i);return}let n=e.tokenStream,r;n!==null&&i.startToken?i.startToken.type===Q.EOF?r="":r=n.getTextFromRange(i.startToken,i.offendingToken):r="";let s="no viable alternative at input "+this.escapeWSAndQuote(r);e.notifyErrorListeners(s,i.offendingToken,i)}reportInputMismatch(e,i){if(i.message.length>0){e.notifyErrorListeners(i.message,i.offendingToken,i);return}let n="mismatched input "+this.getTokenErrorDisplay(i.offendingToken)+" expecting "+i.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(n,i.offendingToken,i)}reportFailedPredicate(e,i){let r="rule "+e.ruleNames[e.context.ruleIndex]+" "+i.message;e.notifyErrorListeners(r,i.offendingToken,i)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let i=e.getCurrentToken(),n=this.getTokenErrorDisplay(i),r=this.getExpectedTokens(e),s="extraneous input "+n+" expecting "+r.toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(s,i,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let i=e.getCurrentToken(),r="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(i);e.notifyErrorListeners(r,i,null)}recoverInline(e){let i=this.singleTokenDeletion(e);if(i)return e.consume(),i;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Op(e)}singleTokenInsertion(e){let i=e.tokenStream?.LA(1)??-1,n=e.atn,s=n.states[e.state].transitions[0].target;return n.nextTokens(s,e.context??void 0).contains(i)?(this.reportMissingToken(e),!0):!1}singleTokenDeletion(e){let i=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(i)){this.reportUnwantedToken(e),e.consume();let r=e.getCurrentToken();return this.reportMatch(e),r}return null}getMissingSymbol(e){let i=e.getCurrentToken(),n=this.getExpectedTokens(e),r=Q.INVALID_TYPE;n.length!==0&&(r=n.minElement);let s;r===Q.EOF?s="":s="";let o=i,l=e.tokenStream?.LT(-1);return o.type===Q.EOF&&l!==null&&(o=l),e.getTokenFactory().create(o.source,r,s,Q.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(e===null)return"";let i=e.text;return i||(e.type===Q.EOF?i="":i="<"+e.type+">"),this.escapeWSAndQuote(i)}escapeWSAndQuote(e){return e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/\t/g,"\\t"),"'"+e+"'"}getErrorRecoverySet(e){let i=e.atn,n=e.context,r=new Ks;for(;n!==null&&n.invokingState>=0;){let o=i.states[n.invokingState].transitions[0],l=i.nextTokens(o.followState);r.addSet(l),n=n.parent}return r.removeOne(Q.EPSILON),r}consumeUntil(e,i){let n=e.tokenStream?.LA(1)??-1;for(;n!==Q.EOF&&!i.contains(n);)e.consume(),n=e.tokenStream?.LA(1)??-1}},N(f1,"DefaultErrorStrategy"),f1),p1,Phe=(p1=class extends NH{recover(e,i){throw new Yw(i)}recoverInline(e){let i=new Op(e);throw new Yw(i)}sync(e){}},N(p1,"BailErrorStrategy"),p1),m1,Lhe=(m1=class{sourceName;tokenFactory=RH.DEFAULT;tokens;i;eofToken;constructor(e,i){this.tokens=e,this.sourceName=i??""}get column(){if(this.i0){let e=this.tokens[this.tokens.length-1],i=e.text;if(i){let n=i.lastIndexOf(` `);if(n>=0)return i.length-n-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(this.eofToken===null){let i=-1;if(this.tokens.length>0){let r=this.tokens[this.tokens.length-1].stop;r!==-1&&(i=r+1)}let n=Math.max(-1,i-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],Q.EOF,"EOF",Q.DEFAULT_CHANNEL,i,n,this.line,this.column)}return this.eofToken}let e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===Q.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i0){let e=this.tokens[this.tokens.length-1],i=e.line,n=e.text;if(n)for(let r of n)r===` -`&&i++;return i}return 1}get inputStream(){return this.i0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(this.sourceName!==null)return this.sourceName;let e=this.inputStream;return e!==null?e.getSourceName():"List"}},k(m1,"ListTokenSource"),m1),Vp,g1,Fhe=(g1=class extends Ke{constructor(i,n,r){super(n,r);Ee(this,Vp);ie(this,Vp,i)}get ruleIndex(){return y(this,Vp)}},Vp=new WeakMap,k(g1,"InterpreterRuleContext"),g1),_1,Vhe=(_1=class{parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},k(_1,"TraceListener"),_1),Hl,d3,h3,v1,tx=(v1=class extends OH{constructor(i){super();T(this,"printer",null);T(this,"buildParseTrees",!0);T(this,"errorHandler",new NH);T(this,"context",null);T(this,"precedenceStack",[]);T(this,"parseListeners",null);T(this,"syntaxErrors",0);T(this,"matchedEOF",!1);Ee(this,Hl,null);Ee(this,d3,null);Ee(this,h3);this.precedenceStack.push(0),this.syntaxErrors=0,ie(this,h3,i)}reset(i=!0){i&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(i){let n=this.getCurrentToken();return n.type===i?(this.errorHandler.reportMatch(this),this.consume()):(n=this.errorHandler.recoverInline(this),this.buildParseTrees&&n.tokenIndex===-1&&this.context.addErrorNode(this.createErrorNode(this.context,n))),n}matchWildcard(){let i=this.getCurrentToken();return i.type>0?(this.errorHandler.reportMatch(this),this.consume()):(i=this.errorHandler.recoverInline(this),this.buildParseTrees&&i.tokenIndex===-1&&this.context.addErrorNode(this.createErrorNode(this.context,i))),i}getParseListeners(){return this.parseListeners??[]}addParseListener(i){if(i===null)throw new Error("listener");this.parseListeners===null&&(this.parseListeners=[]),this.parseListeners.push(i)}removeParseListener(i){if(this.parseListeners!==null&&i!==null){let n=this.parseListeners.indexOf(i);n>=0&&this.parseListeners.splice(n,1),this.parseListeners.length===0&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(this.parseListeners!==null){let i=this.context;this.parseListeners.forEach(n=>{n.enterEveryRule(i),i.enterRule(n)})}}triggerExitRuleEvent(){if(this.parseListeners!==null){let i=this.context;this.parseListeners.slice(0).reverse().forEach(n=>{i.exitRule(n),n.exitEveryRule(i)})}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(i){this.inputStream.tokenSource.tokenFactory=i}compileParseTreePattern(i,n,r){if(!r&&this.tokenStream!==null){let o=this.tokenStream.tokenSource;o instanceof Yo&&(r=o)}if(!r)throw new Error("Parser can't discover a lexer to use");return new Uhe(r,this).compile(i,n)}getATNWithBypassAlts(){let i=this.getSerializedATN();if(i===null)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(y(this,d3)!==null)return y(this,d3);let n={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0};return ie(this,d3,new Iu(n).deserialize(i)),y(this,d3)}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return y(this,h3)}set inputStream(i){this.tokenStream=i}get tokenStream(){return y(this,h3)}set tokenStream(i){this.reset(!1),ie(this,h3,i)}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(i,n,r){n=n??null,r=r??null,n===null&&(n=this.getCurrentToken()),this.syntaxErrors+=1;let s=n.line,o=n.column;this.errorListenerDispatch.syntaxError(this,n,s,o,i,r)}consume(){let i=this.getCurrentToken();i.type!==Q.EOF&&this.tokenStream.consume();let n=this.parseListeners!==null&&this.parseListeners.length>0;if(this.buildParseTrees||n){let r;this.errorHandler.inErrorRecoveryMode(this)?r=this.context.addErrorNode(this.createErrorNode(this.context,i)):r=this.context.addTokenNode(i),n&&this.parseListeners.forEach(s=>{r instanceof Rp?s.visitErrorNode(r):s.visitTerminal(r)})}return i}addContextToParseTree(){this.context?.parent!==null&&this.context.parent.addChild(this.context)}enterRule(i,n,r){this.state=n,this.context=i,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(i,n){i.setAltNumber(n),this.buildParseTrees&&this.context!==i&&this.context.parent!==null&&(this.context.parent.removeLastChild(),this.context.parent.addChild(i)),this.context=i}getPrecedence(){return this.precedenceStack.length===0?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(i,n,r,s){this.state=n,this.precedenceStack.push(s),this.context=i,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(i,n,r){let s=this.context;s.parent=i,s.invokingState=n,s.stop=this.inputStream.LT(-1),this.context=i,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(i){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);let n=this.context,r=this.getParseListeners();if(r!==null&&r.length>0)for(;this.context!==i;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=i;n.parent=i,this.buildParseTrees&&i!==null&&i.addChild(n)}getInvokingContext(i){let n=this.context;for(;n!==null;){if(n.ruleIndex===i)return n;n=n.parent}return null}precpred(i,n){return n>=this.precedenceStack[this.precedenceStack.length-1]}inContext(i){return!1}isExpectedToken(i){let n=this.interpreter.atn,r=this.context,s=n.states[this.state],o=n.nextTokens(s);if(o.contains(i))return!0;if(!o.contains(Q.EPSILON))return!1;for(;r!==null&&r.invokingState>=0&&o.contains(Q.EPSILON);){let a=n.states[r.invokingState].transitions[0];if(o=n.nextTokens(a.followState),o.contains(i))return!0;r=r.parent}return!!(o.contains(Q.EPSILON)&&i===Q.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let i=this.interpreter.atn,n=i.states[this.state];return i.nextTokens(n)}getRuleIndex(i){return this.getRuleIndexMap().get(i)??-1}getRuleInvocationStack(i){i=i??null,i===null&&(i=this.context);let n=[];for(;i!==null;){let r=i.ruleIndex;r<0?n.push("n/a"):n.push(this.ruleNames[r]),i=i.parent}return n}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let i=!1;for(let n of this.interpreter.decisionToDFA)n.length>0&&(i&&console.log(),this.printer&&(this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.vocabulary))),i=!0)}getSourceName(){return this.inputStream.getSourceName()}setProfile(i){let n=this.interpreter,r=n.predictionMode;if(i)n instanceof zw||(this.interpreter=new zw(this));else if(n instanceof zw){let s=n.sharedContextCache;if(s){let o=new e6(this,this.atn,n.decisionToDFA,s);this.interpreter=o}}this.interpreter.predictionMode=r}setTrace(i){i?(y(this,Hl)!==null&&this.removeParseListener(y(this,Hl)),ie(this,Hl,new Vhe(this)),this.addParseListener(y(this,Hl))):(this.removeParseListener(y(this,Hl)),ie(this,Hl,null))}createTerminalNode(i,n){return new qo(n)}createErrorNode(i,n){return new Rp(n)}},Hl=new WeakMap,d3=new WeakMap,h3=new WeakMap,k(v1,"Parser"),v1),Bp,Up,jp,b1,Hp,zp,Ws,$p,Gp,Wp,a_,y1,E1,Bhe=(E1=class extends tx{constructor(i,n,r,s,o){super(o);T(this,"rootContext");T(this,"parentContextStack",[]);Ee(this,Bp,-1);Ee(this,Up,-1);Ee(this,jp,-1);Ee(this,b1,!1);Ee(this,Hp,null);Ee(this,zp);Ee(this,Ws);Ee(this,$p);Ee(this,Gp);Ee(this,Wp);Ee(this,a_,new O3);Ee(this,y1);ie(this,zp,i),ie(this,Ws,s),ie(this,$p,r.slice(0)),ie(this,Gp,n),ie(this,y1,new Ko);for(let l of s.states)l instanceof Qa&&l.precedenceRuleDecision&&y(this,y1).set(l.stateNumber);ie(this,Wp,s.decisionToState.map((l,a)=>new Kl(l,a))),this.interpreter=new e6(this,s,y(this,Wp),y(this,a_))}reset(){super.reset(),ie(this,b1,!1),ie(this,Hp,null)}get atn(){return y(this,Ws)}get vocabulary(){return y(this,Gp)}get ruleNames(){return y(this,$p)}get grammarFileName(){return y(this,zp)}get atnState(){return y(this,Ws).states[this.state]}parse(i){let n=y(this,Ws).ruleToStartState[i];for(this.rootContext=this.createInterpreterRuleContext(null,je.INVALID_STATE_NUMBER,i),n.isPrecedenceRule?this.enterRecursionRule(this.rootContext,n.stateNumber,i,0):this.enterRule(this.rootContext,n.stateNumber,i);;){let r=this.atnState;switch(r.constructor.stateType){case je.RULE_STOP:if(this.context?.isEmpty)if(n.isPrecedenceRule){let s=this.context,o=this.parentContextStack.pop();return this.unrollRecursionContexts(o[0]),s}else return this.exitRule(),this.rootContext;this.visitRuleStopState(r);break;default:try{this.visitState(r)}catch(s){if(s instanceof rt)this.state=y(this,Ws).ruleToStopState[r.ruleIndex].stateNumber,this.errorHandler.reportError(this,s),this.recover(s);else throw s}break}}}addDecisionOverride(i,n,r){ie(this,Bp,i),ie(this,Up,n),ie(this,jp,r)}get overrideDecisionRoot(){return y(this,Hp)}enterRecursionRule(i,n,r,s){this.parentContextStack.push([this.context,i.invokingState]),super.enterRecursionRule(i,n,r,s)}visitState(i){let n=1;i instanceof A3&&(n=this.visitDecisionState(i));let r=i.transitions[n-1];switch(r.transitionType){case Ie.EPSILON:if(y(this,y1).get(i.stateNumber)&&r.target.constructor.stateType!==je.LOOP_END){let c=this.parentContextStack[this.parentContextStack.length-1],d=this.createInterpreterRuleContext(c[0],c[1],this.context.ruleIndex);this.pushNewRecursionContext(d,y(this,Ws).ruleToStartState[i.ruleIndex].stateNumber,this.context.ruleIndex)}break;case Ie.ATOM:this.match(r.label.minElement);break;case Ie.RANGE:case Ie.SET:case Ie.NOT_SET:r.matches(this.inputStream.LA(1),Q.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case Ie.WILDCARD:this.matchWildcard();break;case Ie.RULE:let s=r.target,o=s.ruleIndex,l=this.createInterpreterRuleContext(this.context,i.stateNumber,o);s.isPrecedenceRule?this.enterRecursionRule(l,s.stateNumber,o,r.precedence):this.enterRule(l,r.target.stateNumber,o);break;case Ie.PREDICATE:let a=r;if(!this.sempred(this.context,a.ruleIndex,a.predIndex))throw new Mp(this);break;case Ie.ACTION:let u=r;this.action(this.context,u.ruleIndex,u.actionIndex);break;case Ie.PRECEDENCE:if(!this.precpred(this.context,r.precedence)){let c=r.precedence;throw new Mp(this,`precpred(_ctx, ${c})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(i){let n=1;if(i.transitions.length>1){this.errorHandler.sync(this);let r=i.decision;r===y(this,Bp)&&this.inputStream.index===y(this,Up)&&!y(this,b1)?(n=y(this,jp),ie(this,b1,!0)):n=this.interpreter.adaptivePredict(this.inputStream,r,this.context)}return n}createInterpreterRuleContext(i,n,r){return new Fhe(r,i,n)}visitRuleStopState(i){if(y(this,Ws).ruleToStartState[i.ruleIndex].isPrecedenceRule){let[s,o]=this.parentContextStack.pop();this.unrollRecursionContexts(s),this.state=o}else this.exitRule();let r=y(this,Ws).states[this.state].transitions[0];this.state=r.followState.stateNumber}recover(i){let n=this.inputStream.index;if(this.errorHandler.recover(this,i),this.inputStream.index===n){let r=i.offendingToken;if(!r)throw new Error("Expected exception to have an offending token");let s=r.tokenSource,o=s?.inputStream??null,l=[s,o];if(i instanceof Op){let a=i.getExpectedTokens();if(!a)throw new Error("Expected the exception to provide expected tokens");let u=Q.INVALID_TYPE;a.length!==0&&(u=a.minElement);let c=this.getTokenFactory().create(l,u,r.text,Q.DEFAULT_CHANNEL,-1,-1,r.line,r.column);this.context.addErrorNode(this.createErrorNode(this.context,c))}else{let a=this.getTokenFactory().create(l,Q.INVALID_TYPE,r.text,Q.DEFAULT_CHANNEL,-1,-1,r.line,r.column);this.context.addErrorNode(this.createErrorNode(this.context,a))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Bp=new WeakMap,Up=new WeakMap,jp=new WeakMap,b1=new WeakMap,Hp=new WeakMap,zp=new WeakMap,Ws=new WeakMap,$p=new WeakMap,Gp=new WeakMap,Wp=new WeakMap,a_=new WeakMap,y1=new WeakMap,k(E1,"ParserInterpreter"),E1),C1,EH=(C1=class extends Map{map(e,i){let n=this.get(e);n||(n=new Array,this.set(e,n)),n.push(i)}getPairs(){let e=new Array;for(let i of this.keys()){let n=this.get(i)??[];for(let r of n)e.push([i,r])}return e}},k(C1,"MultiMap"),C1),I1,CH=(I1=class{label;ruleName;bypassTokenType;constructor(e,i,n){this.ruleName=e,this.bypassTokenType=i,this.label=n}get channel(){return Q.DEFAULT_CHANNEL}get text(){return this.label!==null?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},k(I1,"RuleTagToken"),I1),T1,IH=(T1=class extends kH{tag;label;constructor(...e){let i,n;if(e.length===1?n=e[0]:(i=e[0],n=e[1]),super(),!n)throw new Error("tag cannot be null or empty");this.label=i,this.tag=n}toString(){return this.label!==null?this.label+":"+this.tag:this.tag}},k(T1,"TagChunk"),T1),S1,rd=(S1=class extends kH{text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},k(S1,"TextChunk"),S1),w1,TH=(w1=class extends Kw{tokenName;label;constructor(e,i,n){super({type:i,source:Kw.EMPTY_SOURCE}),this.tokenName=e,this.label=n}get text(){return this.label!==null?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},k(w1,"TokenTagToken"),w1),x1,A1,Wo,Uhe=(Wo=class{start="<";stop=">";escape="\\";lexer;parser;constructor(e,i){this.lexer=e,this.parser=i}setDelimiters(e,i,n){if(e===null||e.length===0)throw new Error("start cannot be null or empty");if(i===null||i.length===0)throw new Error("stop cannot be null or empty");this.start=e,this.stop=i,this.escape=n}matches(...e){switch(e.length){case 2:{let[i,n]=e,r=new EH;return this.matchImpl(i,n.getPatternTree(),r)===null}case 3:{let[i,n,r]=e,s=this.compile(n,r);return this.matches(i,s)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{let[i,n]=e,r=new EH,s=this.matchImpl(i,n.getPatternTree(),r);return new Mhe(i,n,r,s)}case 3:{let[i,n,r]=e,s=this.compile(n,r);return this.match(i,s)}default:throw new Error("Invalid number of arguments")}}compile(e,i){let n=this.tokenize(e),r=new Lhe(n),s=new L1(r),o=new Bhe(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),s),l=null;try{o.errorHandler=new Phe,l=o.parse(i)}catch(a){throw a instanceof Yw?a.cause:a instanceof rt?a:a instanceof Error?new Wo.CannotInvokeStartRule(a):a}if(s.LA(1)!==Q.EOF)throw new Wo.StartRuleDoesNotConsumeFullPattern;return new khe(this,e,i,l)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){let i=this.split(e),n=new Array;for(let r of i)if(r instanceof IH){let s=r,o=s.tag[0];if(o===o.toUpperCase()){let l=this.parser.getTokenType(s.tag);if(l===Q.INVALID_TYPE)throw new Error("Unknown token "+s.tag+" in pattern: "+e);let a=new TH(s.tag,l,s.label);n.push(a)}else if(o===o.toLowerCase()){let l=this.parser.getRuleIndex(s.tag);if(l===-1)throw new Error("Unknown rule "+s.tag+" in pattern: "+e);let a=this.parser.getATNWithBypassAlts().ruleToTokenType[l];n.push(new CH(s.tag,a,s.label))}else throw new Error("invalid tag: "+s.tag+" in pattern: "+e)}else{let s=r,o=Cu.fromString(s.text);this.lexer.inputStream=o;let l=this.lexer.nextToken();for(;l.type!==Q.EOF;)n.push(l),l=this.lexer.nextToken()}return n}split(e){let i=0,n=e.length,r=new Array,s=new Array,o=new Array;for(;io.length)throw new Error("unterminated tag in pattern: "+e);if(s.length=o[a])throw new Error("tag delimiters out of order in pattern: "+e);if(l===0){let a=e.substring(0,n);r.push(new rd(a))}if(l>0&&s[0]>0){let a=e.substring(0,s[0]);r.push(new rd(a))}for(let a=0;a=0&&(d=u.substring(0,h),c=u.substring(h+1,u.length)),r.push(new IH(d,c)),a+10){let a=o[l-1]+this.stop.length;if(a{if(this.exactOnly&&!s)return;let a=this.getDecisionDescription(e,i),u=this.getConflictingAlts(o,l),c=e.tokenStream?.getTextFromInterval(hn.of(n,r)),d=`reportAmbiguity d=${a}: ambigAlts=${u}, input='${c}'`;e.notifyErrorListeners(d,null,null)};reportAttemptingFullContext=(e,i,n,r,s,o)=>{let l=this.getDecisionDescription(e,i),a=e.tokenStream?.getTextFromInterval(hn.of(n,r)),u=`reportAttemptingFullContext d=${l}, input='${a}'`;e.notifyErrorListeners(u,null,null)};reportContextSensitivity=(e,i,n,r,s,o)=>{let l=this.getDecisionDescription(e,i),a=e.tokenStream?.getTextFromInterval(hn.of(n,r)),u=`reportContextSensitivity d=${l}, input='${a}'`;e.notifyErrorListeners(u,null,null)};getDecisionDescription=(e,i)=>{let n=i.decision,r=i.atnStartState.ruleIndex,s=e.ruleNames;if(r<0||r>=s.length)return n.toString();let o=s[r];return o.length===0?n.toString():`${n} (${o})`};getConflictingAlts=(e,i)=>{if(e)return e;let n=new Ko;for(let r=0;rnew Kl(u,c))),this.interpreter=new P1(this,l,y(this,Jp),y(this,u_))}get atn(){return y(this,Kp)}get grammarFileName(){return y(this,qp)}get ruleNames(){return y(this,Yp)}get channelNames(){return y(this,Zp)}get modeNames(){return y(this,Xp)}get vocabulary(){return y(this,Qp)}},qp=new WeakMap,Kp=new WeakMap,Yp=new WeakMap,Zp=new WeakMap,Xp=new WeakMap,Qp=new WeakMap,Jp=new WeakMap,u_=new WeakMap,k(O1,"LexerInterpreter"),O1);var R1,PH=(R1=class{instructionIndex;index;text;tokens;constructor(e,i,n,r){this.tokens=e,this.instructionIndex=n,this.index=i,this.text=r===void 0?"":r}execute(e){return this.index}toString(){return"'}},k(R1,"RewriteOperation"),R1),M1,jhe=(M1=class extends PH{constructor(e,i,n,r){super(e,i,n,r)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==Q.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"'}},k(M1,"InsertBeforeOp"),M1),k1,vUe=(k1=class extends jhe{constructor(e,i,n,r){super(e,i+1,n,r)}toString(){return"'}},k(k1,"InsertAfterOp"),k1),N1,bUe=(N1=class extends PH{lastIndex;constructor(e,i,n,r,s){super(e,i,r,s),this.lastIndex=n}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return this.text==null?"":"'}},k(N1,"ReplaceOp"),N1);var re=class re extends Yo{constructor(e){super(e),this.interpreter=new P1(this,re._ATN,re.decisionsToDFA,new O3)}get grammarFileName(){return"Portugol.g4"}get literalNames(){return re.literalNames}get symbolicNames(){return re.symbolicNames}get ruleNames(){return re.ruleNames}get serializedATN(){return re._serializedATN}get channelNames(){return re.channelNames}get modeNames(){return re.modeNames}action(e,i,n){switch(i){case 64:this.INT_action(e,n);break}}INT_action(e,i){switch(i){case 0:if(isNaN(parseInt(this.text)))throw new Error(`D\xEDgito inv\xE1lido: ${this.text}`);break}}static get _ATN(){return re.__ATN||(re.__ATN=new Iu().deserialize(re._serializedATN)),re.__ATN}get vocabulary(){return re.vocabulary}};re.ABRE_PARENTESES=1,re.FECHA_PARENTESES=2,re.ABRE_COLCHETES=3,re.FECHA_COLCHETES=4,re.ABRE_CHAVES=5,re.FECHA_CHAVES=6,re.TIPO=7,re.FACA=8,re.ENQUANTO=9,re.PARA=10,re.SE=11,re.SENAO=12,re.CONSTANTE=13,re.FUNCAO=14,re.PROGRAMA=15,re.ESCOLHA=16,re.CASO=17,re.CONTRARIO=18,re.PARE=19,re.RETORNE=20,re.INCLUA=21,re.BIBLIOTECA=22,re.OP_NAO=23,re.OP_E_LOGICO=24,re.OP_OU_LOGICO=25,re.OP_SUBTRACAO=26,re.OP_ADICAO=27,re.OP_MULTIPLICACAO=28,re.OP_DIVISAO=29,re.OP_MOD=30,re.OP_ATRIBUICAO=31,re.OP_IGUALDADE=32,re.OP_DIFERENCA=33,re.OP_MAIOR=34,re.OP_MENOR=35,re.OP_MENOR_IGUAL=36,re.OP_MAIOR_IGUAL=37,re.OP_INCREMENTO_UNARIO=38,re.OP_DECREMENTO_UNARIO=39,re.OP_SHIFT_LEFT=40,re.OP_SHIFT_RIGHT=41,re.OP_XOR=42,re.OP_OU_BITWISE=43,re.OP_NOT_BITWISE=44,re.OP_ALIAS_BIBLIOTECA=45,re.E_COMERCIAL=46,re.OP_MAIS_IGUAL=47,re.OP_MENOS_IGUAL=48,re.OP_MULTIPLICACAO_IGUAL=49,re.OP_DIVISAO_IGUAL=50,re.LOGICO=51,re.VERDADEIRO=52,re.FALSO=53,re.CARACTER=54,re.STRING=55,re.ID=56,re.REAL=57,re.INT=58,re.HEXADECIMAL=59,re.COMENTARIO=60,re.COMENTARIO_SIMPLES=61,re.WS=62,re.PONTO=63,re.VIRGULA=64,re.PONTOVIRGULA=65,re.DOISPONTOS=66,re.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],re.literalNames=[null,"'('","')'","'['","']'","'{'","'}'",null,"'faca'","'enquanto'","'para'","'se'","'senao'","'const'","'funcao'","'programa'","'escolha'","'caso'","'contrario'","'pare'","'retorne'","'inclua'","'biblioteca'","'nao'","'e'","'ou'","'-'","'+'","'*'","'/'","'%'","'='","'=='","'!='","'>'","'<'","'<='","'>='","'++'","'--'","'<<'","'>>'","'^'","'|'","'~'","'-->'","'&'","'+='","'-='","'*='","'/='",null,"'verdadeiro'","'falso'",null,null,null,null,null,null,null,null,null,"'.'","','","';'","':'"],re.symbolicNames=[null,"ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","STRING","ID","REAL","INT","HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],re.modeNames=["DEFAULT_MODE"],re.ruleNames=["ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","SEQ_ESC","ESC_OCTAL","ESC_UNICODE","ESC_CARACTER","DIGIT_HEX","STRING","ID","LETRA","REAL","DIGITO","INT","HEXADECIMAL","SIMBOLO_HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],re._serializedATN=[4,0,66,552,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,198,8,6,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,50,1,50,3,50,379,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,3,53,401,8,53,1,53,1,53,1,54,1,54,1,54,1,54,3,54,409,8,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,3,55,420,8,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,3,57,432,8,57,1,58,1,58,1,59,1,59,1,59,5,59,439,8,59,10,59,12,59,442,9,59,1,59,1,59,1,60,1,60,3,60,448,8,60,1,60,1,60,5,60,452,8,60,10,60,12,60,455,9,60,1,61,1,61,1,62,4,62,460,8,62,11,62,12,62,461,1,62,1,62,5,62,466,8,62,10,62,12,62,469,9,62,1,62,1,62,4,62,473,8,62,11,62,12,62,474,3,62,477,8,62,1,63,1,63,1,64,4,64,482,8,64,11,64,12,64,483,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,3,65,496,8,65,3,65,498,8,65,3,65,500,8,65,3,65,502,8,65,3,65,504,8,65,1,66,1,66,3,66,508,8,66,1,67,1,67,1,67,1,67,5,67,514,8,67,10,67,12,67,517,9,67,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,5,68,528,8,68,10,68,12,68,531,9,68,1,68,3,68,534,8,68,1,68,1,68,1,69,4,69,539,8,69,11,69,12,69,540,1,69,1,69,1,70,1,70,1,71,1,71,1,72,1,72,1,73,1,73,3,440,515,529,0,74,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,0,111,0,113,0,115,0,117,0,119,55,121,56,123,0,125,57,127,0,129,58,131,59,133,0,135,60,137,61,139,62,141,63,143,64,145,65,147,66,1,0,10,1,0,39,39,7,0,34,34,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57,65,70,97,102,2,0,48,57,95,95,2,0,65,90,97,122,1,0,48,57,2,0,88,88,120,120,2,0,65,70,97,102,1,1,10,10,3,0,9,10,13,13,32,32,574,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,125,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,1,149,1,0,0,0,3,151,1,0,0,0,5,153,1,0,0,0,7,155,1,0,0,0,9,157,1,0,0,0,11,159,1,0,0,0,13,197,1,0,0,0,15,199,1,0,0,0,17,204,1,0,0,0,19,213,1,0,0,0,21,218,1,0,0,0,23,221,1,0,0,0,25,227,1,0,0,0,27,233,1,0,0,0,29,240,1,0,0,0,31,249,1,0,0,0,33,257,1,0,0,0,35,262,1,0,0,0,37,272,1,0,0,0,39,277,1,0,0,0,41,285,1,0,0,0,43,292,1,0,0,0,45,303,1,0,0,0,47,307,1,0,0,0,49,309,1,0,0,0,51,312,1,0,0,0,53,314,1,0,0,0,55,316,1,0,0,0,57,318,1,0,0,0,59,320,1,0,0,0,61,322,1,0,0,0,63,324,1,0,0,0,65,327,1,0,0,0,67,330,1,0,0,0,69,332,1,0,0,0,71,334,1,0,0,0,73,337,1,0,0,0,75,340,1,0,0,0,77,343,1,0,0,0,79,346,1,0,0,0,81,349,1,0,0,0,83,352,1,0,0,0,85,354,1,0,0,0,87,356,1,0,0,0,89,358,1,0,0,0,91,362,1,0,0,0,93,364,1,0,0,0,95,367,1,0,0,0,97,370,1,0,0,0,99,373,1,0,0,0,101,378,1,0,0,0,103,380,1,0,0,0,105,391,1,0,0,0,107,397,1,0,0,0,109,408,1,0,0,0,111,419,1,0,0,0,113,421,1,0,0,0,115,431,1,0,0,0,117,433,1,0,0,0,119,435,1,0,0,0,121,447,1,0,0,0,123,456,1,0,0,0,125,476,1,0,0,0,127,478,1,0,0,0,129,481,1,0,0,0,131,487,1,0,0,0,133,507,1,0,0,0,135,509,1,0,0,0,137,523,1,0,0,0,139,538,1,0,0,0,141,544,1,0,0,0,143,546,1,0,0,0,145,548,1,0,0,0,147,550,1,0,0,0,149,150,5,40,0,0,150,2,1,0,0,0,151,152,5,41,0,0,152,4,1,0,0,0,153,154,5,91,0,0,154,6,1,0,0,0,155,156,5,93,0,0,156,8,1,0,0,0,157,158,5,123,0,0,158,10,1,0,0,0,159,160,5,125,0,0,160,12,1,0,0,0,161,162,5,114,0,0,162,163,5,101,0,0,163,164,5,97,0,0,164,198,5,108,0,0,165,166,5,105,0,0,166,167,5,110,0,0,167,168,5,116,0,0,168,169,5,101,0,0,169,170,5,105,0,0,170,171,5,114,0,0,171,198,5,111,0,0,172,173,5,118,0,0,173,174,5,97,0,0,174,175,5,122,0,0,175,176,5,105,0,0,176,198,5,111,0,0,177,178,5,108,0,0,178,179,5,111,0,0,179,180,5,103,0,0,180,181,5,105,0,0,181,182,5,99,0,0,182,198,5,111,0,0,183,184,5,99,0,0,184,185,5,97,0,0,185,186,5,100,0,0,186,187,5,101,0,0,187,188,5,105,0,0,188,198,5,97,0,0,189,190,5,99,0,0,190,191,5,97,0,0,191,192,5,114,0,0,192,193,5,97,0,0,193,194,5,99,0,0,194,195,5,116,0,0,195,196,5,101,0,0,196,198,5,114,0,0,197,161,1,0,0,0,197,165,1,0,0,0,197,172,1,0,0,0,197,177,1,0,0,0,197,183,1,0,0,0,197,189,1,0,0,0,198,14,1,0,0,0,199,200,5,102,0,0,200,201,5,97,0,0,201,202,5,99,0,0,202,203,5,97,0,0,203,16,1,0,0,0,204,205,5,101,0,0,205,206,5,110,0,0,206,207,5,113,0,0,207,208,5,117,0,0,208,209,5,97,0,0,209,210,5,110,0,0,210,211,5,116,0,0,211,212,5,111,0,0,212,18,1,0,0,0,213,214,5,112,0,0,214,215,5,97,0,0,215,216,5,114,0,0,216,217,5,97,0,0,217,20,1,0,0,0,218,219,5,115,0,0,219,220,5,101,0,0,220,22,1,0,0,0,221,222,5,115,0,0,222,223,5,101,0,0,223,224,5,110,0,0,224,225,5,97,0,0,225,226,5,111,0,0,226,24,1,0,0,0,227,228,5,99,0,0,228,229,5,111,0,0,229,230,5,110,0,0,230,231,5,115,0,0,231,232,5,116,0,0,232,26,1,0,0,0,233,234,5,102,0,0,234,235,5,117,0,0,235,236,5,110,0,0,236,237,5,99,0,0,237,238,5,97,0,0,238,239,5,111,0,0,239,28,1,0,0,0,240,241,5,112,0,0,241,242,5,114,0,0,242,243,5,111,0,0,243,244,5,103,0,0,244,245,5,114,0,0,245,246,5,97,0,0,246,247,5,109,0,0,247,248,5,97,0,0,248,30,1,0,0,0,249,250,5,101,0,0,250,251,5,115,0,0,251,252,5,99,0,0,252,253,5,111,0,0,253,254,5,108,0,0,254,255,5,104,0,0,255,256,5,97,0,0,256,32,1,0,0,0,257,258,5,99,0,0,258,259,5,97,0,0,259,260,5,115,0,0,260,261,5,111,0,0,261,34,1,0,0,0,262,263,5,99,0,0,263,264,5,111,0,0,264,265,5,110,0,0,265,266,5,116,0,0,266,267,5,114,0,0,267,268,5,97,0,0,268,269,5,114,0,0,269,270,5,105,0,0,270,271,5,111,0,0,271,36,1,0,0,0,272,273,5,112,0,0,273,274,5,97,0,0,274,275,5,114,0,0,275,276,5,101,0,0,276,38,1,0,0,0,277,278,5,114,0,0,278,279,5,101,0,0,279,280,5,116,0,0,280,281,5,111,0,0,281,282,5,114,0,0,282,283,5,110,0,0,283,284,5,101,0,0,284,40,1,0,0,0,285,286,5,105,0,0,286,287,5,110,0,0,287,288,5,99,0,0,288,289,5,108,0,0,289,290,5,117,0,0,290,291,5,97,0,0,291,42,1,0,0,0,292,293,5,98,0,0,293,294,5,105,0,0,294,295,5,98,0,0,295,296,5,108,0,0,296,297,5,105,0,0,297,298,5,111,0,0,298,299,5,116,0,0,299,300,5,101,0,0,300,301,5,99,0,0,301,302,5,97,0,0,302,44,1,0,0,0,303,304,5,110,0,0,304,305,5,97,0,0,305,306,5,111,0,0,306,46,1,0,0,0,307,308,5,101,0,0,308,48,1,0,0,0,309,310,5,111,0,0,310,311,5,117,0,0,311,50,1,0,0,0,312,313,5,45,0,0,313,52,1,0,0,0,314,315,5,43,0,0,315,54,1,0,0,0,316,317,5,42,0,0,317,56,1,0,0,0,318,319,5,47,0,0,319,58,1,0,0,0,320,321,5,37,0,0,321,60,1,0,0,0,322,323,5,61,0,0,323,62,1,0,0,0,324,325,5,61,0,0,325,326,5,61,0,0,326,64,1,0,0,0,327,328,5,33,0,0,328,329,5,61,0,0,329,66,1,0,0,0,330,331,5,62,0,0,331,68,1,0,0,0,332,333,5,60,0,0,333,70,1,0,0,0,334,335,5,60,0,0,335,336,5,61,0,0,336,72,1,0,0,0,337,338,5,62,0,0,338,339,5,61,0,0,339,74,1,0,0,0,340,341,5,43,0,0,341,342,5,43,0,0,342,76,1,0,0,0,343,344,5,45,0,0,344,345,5,45,0,0,345,78,1,0,0,0,346,347,5,60,0,0,347,348,5,60,0,0,348,80,1,0,0,0,349,350,5,62,0,0,350,351,5,62,0,0,351,82,1,0,0,0,352,353,5,94,0,0,353,84,1,0,0,0,354,355,5,124,0,0,355,86,1,0,0,0,356,357,5,126,0,0,357,88,1,0,0,0,358,359,5,45,0,0,359,360,5,45,0,0,360,361,5,62,0,0,361,90,1,0,0,0,362,363,5,38,0,0,363,92,1,0,0,0,364,365,5,43,0,0,365,366,5,61,0,0,366,94,1,0,0,0,367,368,5,45,0,0,368,369,5,61,0,0,369,96,1,0,0,0,370,371,5,42,0,0,371,372,5,61,0,0,372,98,1,0,0,0,373,374,5,47,0,0,374,375,5,61,0,0,375,100,1,0,0,0,376,379,3,103,51,0,377,379,3,105,52,0,378,376,1,0,0,0,378,377,1,0,0,0,379,102,1,0,0,0,380,381,5,118,0,0,381,382,5,101,0,0,382,383,5,114,0,0,383,384,5,100,0,0,384,385,5,97,0,0,385,386,5,100,0,0,386,387,5,101,0,0,387,388,5,105,0,0,388,389,5,114,0,0,389,390,5,111,0,0,390,104,1,0,0,0,391,392,5,102,0,0,392,393,5,97,0,0,393,394,5,108,0,0,394,395,5,115,0,0,395,396,5,111,0,0,396,106,1,0,0,0,397,400,5,39,0,0,398,401,3,115,57,0,399,401,8,0,0,0,400,398,1,0,0,0,400,399,1,0,0,0,401,402,1,0,0,0,402,403,5,39,0,0,403,108,1,0,0,0,404,405,5,92,0,0,405,409,7,1,0,0,406,409,3,113,56,0,407,409,3,111,55,0,408,404,1,0,0,0,408,406,1,0,0,0,408,407,1,0,0,0,409,110,1,0,0,0,410,411,5,92,0,0,411,412,2,48,51,0,412,413,2,48,55,0,413,420,2,48,55,0,414,415,5,92,0,0,415,416,2,48,55,0,416,420,2,48,55,0,417,418,5,92,0,0,418,420,2,48,55,0,419,410,1,0,0,0,419,414,1,0,0,0,419,417,1,0,0,0,420,112,1,0,0,0,421,422,5,92,0,0,422,423,5,117,0,0,423,424,3,117,58,0,424,425,3,117,58,0,425,426,3,117,58,0,426,427,3,117,58,0,427,114,1,0,0,0,428,432,3,109,54,0,429,430,5,92,0,0,430,432,5,39,0,0,431,428,1,0,0,0,431,429,1,0,0,0,432,116,1,0,0,0,433,434,7,2,0,0,434,118,1,0,0,0,435,440,5,34,0,0,436,439,3,109,54,0,437,439,9,0,0,0,438,436,1,0,0,0,438,437,1,0,0,0,439,442,1,0,0,0,440,441,1,0,0,0,440,438,1,0,0,0,441,443,1,0,0,0,442,440,1,0,0,0,443,444,5,34,0,0,444,120,1,0,0,0,445,448,3,123,61,0,446,448,5,95,0,0,447,445,1,0,0,0,447,446,1,0,0,0,448,453,1,0,0,0,449,452,3,123,61,0,450,452,7,3,0,0,451,449,1,0,0,0,451,450,1,0,0,0,452,455,1,0,0,0,453,451,1,0,0,0,453,454,1,0,0,0,454,122,1,0,0,0,455,453,1,0,0,0,456,457,7,4,0,0,457,124,1,0,0,0,458,460,3,127,63,0,459,458,1,0,0,0,460,461,1,0,0,0,461,459,1,0,0,0,461,462,1,0,0,0,462,463,1,0,0,0,463,467,5,46,0,0,464,466,3,127,63,0,465,464,1,0,0,0,466,469,1,0,0,0,467,465,1,0,0,0,467,468,1,0,0,0,468,477,1,0,0,0,469,467,1,0,0,0,470,472,5,46,0,0,471,473,3,127,63,0,472,471,1,0,0,0,473,474,1,0,0,0,474,472,1,0,0,0,474,475,1,0,0,0,475,477,1,0,0,0,476,459,1,0,0,0,476,470,1,0,0,0,477,126,1,0,0,0,478,479,7,5,0,0,479,128,1,0,0,0,480,482,3,127,63,0,481,480,1,0,0,0,482,483,1,0,0,0,483,481,1,0,0,0,483,484,1,0,0,0,484,485,1,0,0,0,485,486,6,64,0,0,486,130,1,0,0,0,487,488,5,48,0,0,488,489,7,6,0,0,489,503,3,133,66,0,490,501,3,133,66,0,491,499,3,133,66,0,492,497,3,133,66,0,493,495,3,133,66,0,494,496,3,133,66,0,495,494,1,0,0,0,495,496,1,0,0,0,496,498,1,0,0,0,497,493,1,0,0,0,497,498,1,0,0,0,498,500,1,0,0,0,499,492,1,0,0,0,499,500,1,0,0,0,500,502,1,0,0,0,501,491,1,0,0,0,501,502,1,0,0,0,502,504,1,0,0,0,503,490,1,0,0,0,503,504,1,0,0,0,504,132,1,0,0,0,505,508,3,127,63,0,506,508,7,7,0,0,507,505,1,0,0,0,507,506,1,0,0,0,508,134,1,0,0,0,509,510,5,47,0,0,510,511,5,42,0,0,511,515,1,0,0,0,512,514,9,0,0,0,513,512,1,0,0,0,514,517,1,0,0,0,515,516,1,0,0,0,515,513,1,0,0,0,516,518,1,0,0,0,517,515,1,0,0,0,518,519,5,42,0,0,519,520,5,47,0,0,520,521,1,0,0,0,521,522,6,67,1,0,522,136,1,0,0,0,523,524,5,47,0,0,524,525,5,47,0,0,525,529,1,0,0,0,526,528,9,0,0,0,527,526,1,0,0,0,528,531,1,0,0,0,529,530,1,0,0,0,529,527,1,0,0,0,530,533,1,0,0,0,531,529,1,0,0,0,532,534,7,8,0,0,533,532,1,0,0,0,534,535,1,0,0,0,535,536,6,68,1,0,536,138,1,0,0,0,537,539,7,9,0,0,538,537,1,0,0,0,539,540,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,542,1,0,0,0,542,543,6,69,1,0,543,140,1,0,0,0,544,545,5,46,0,0,545,142,1,0,0,0,546,547,5,44,0,0,547,144,1,0,0,0,548,549,5,59,0,0,549,146,1,0,0,0,550,551,5,58,0,0,551,148,1,0,0,0,27,0,197,378,400,408,419,431,438,440,447,451,453,461,467,474,476,483,495,497,499,501,503,507,515,529,533,540,2,1,64,0,0,1,0],re.vocabulary=new Ys(re.literalNames,re.symbolicNames,[]),re.decisionsToDFA=re._ATN.decisionToState.map((e,i)=>new Kl(e,i));var V1=re;var g=class g extends tx{get grammarFileName(){return"Portugol.g4"}get literalNames(){return g.literalNames}get symbolicNames(){return g.symbolicNames}get ruleNames(){return g.ruleNames}get serializedATN(){return g._serializedATN}createFailedPredicateException(e,i){return new Mp(this,e,i)}constructor(e){super(e),this.interpreter=new e6(this,g._ATN,g.decisionsToDFA,new O3)}arquivo(){let e=new h_(this.context,this.state);this.enterRule(e,0,g.RULE_arquivo);let i;try{this.enterOuterAlt(e,1);{for(this.state=76,this.match(g.PROGRAMA),this.state=77,this.match(g.ABRE_CHAVES),this.state=81,this.errorHandler.sync(this),i=this.tokenStream.LA(1);i===21;)this.state=78,this.inclusaoBiblioteca(),this.state=83,this.errorHandler.sync(this),i=this.tokenStream.LA(1);for(this.state=88,this.errorHandler.sync(this),i=this.tokenStream.LA(1);!(i&-32)&&1<'","'<'","'<='","'>='","'++'","'--'","'<<'","'>>'","'^'","'|'","'~'","'-->'","'&'","'+='","'-='","'*='","'/='",null,"'verdadeiro'","'falso'",null,null,null,null,null,null,null,null,null,"'.'","','","';'","':'"],g.symbolicNames=[null,"ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","STRING","ID","REAL","INT","HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],g.ruleNames=["arquivo","inclusaoBiblioteca","listaDeclaracoes","declaracao","declaracaoVariavel","declaracaoMatriz","inicializacaoMatriz","linhaMatriz","colunaMatriz","declaracaoArray","inicializacaoArray","tamanhoArray","declaracaoFuncao","parametroFuncao","listaParametros","parametro","parametroArray","parametroMatriz","comando","atribuicao","atribuicaoComposta","retorne","se","senao","enquanto","facaEnquanto","para","listaComandos","inicializacaoPara","condicao","incrementoPara","escolha","caso","pare","indiceArray","expressao","listaExpressoes","escopoBiblioteca"],g._serializedATN=[4,1,66,515,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,1,0,1,0,1,0,5,0,80,8,0,10,0,12,0,83,9,0,1,0,1,0,5,0,87,8,0,10,0,12,0,90,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,3,1,99,8,1,1,2,3,2,102,8,2,1,2,1,2,1,2,1,2,5,2,108,8,2,10,2,12,2,111,9,2,1,3,1,3,1,3,3,3,116,8,3,1,4,1,4,1,4,3,4,121,8,4,1,5,1,5,1,5,3,5,126,8,5,1,5,1,5,1,5,3,5,131,8,5,1,5,1,5,1,5,3,5,136,8,5,1,6,1,6,1,6,1,6,5,6,142,8,6,10,6,12,6,145,9,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,3,9,156,8,9,1,9,1,9,1,9,3,9,161,8,9,1,10,1,10,3,10,165,8,10,1,10,1,10,1,11,1,11,1,12,1,12,3,12,173,8,12,1,12,1,12,1,12,1,12,5,12,179,8,12,10,12,12,12,182,9,12,1,12,1,12,1,13,1,13,3,13,188,8,13,1,13,1,13,1,14,1,14,1,14,5,14,195,8,14,10,14,12,14,198,9,14,1,15,1,15,3,15,202,8,15,1,15,1,15,1,15,3,15,207,8,15,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,228,8,18,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20,250,8,20,1,21,1,21,3,21,254,8,21,1,22,1,22,1,22,1,22,1,22,1,22,3,22,262,8,22,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,3,26,283,8,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,5,27,294,8,27,10,27,12,27,297,9,27,1,27,1,27,3,27,301,8,27,1,28,1,28,1,28,3,28,306,8,28,1,29,1,29,1,30,1,30,1,30,3,30,313,8,30,1,31,1,31,1,31,1,31,1,31,1,31,5,31,321,8,31,10,31,12,31,324,9,31,1,31,1,31,1,32,1,32,1,32,3,32,331,8,32,1,32,1,32,5,32,335,8,32,10,32,12,32,338,9,32,1,32,1,32,5,32,342,8,32,10,32,12,32,345,9,32,1,32,3,32,348,8,32,1,32,3,32,351,8,32,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,3,35,361,8,35,1,35,1,35,1,35,3,35,366,8,35,1,35,1,35,3,35,370,8,35,1,35,1,35,1,35,3,35,375,8,35,1,35,1,35,1,35,3,35,380,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,393,8,35,3,35,395,8,35,1,35,1,35,1,35,1,35,3,35,401,8,35,3,35,403,8,35,1,35,1,35,1,35,1,35,1,35,3,35,410,8,35,3,35,412,8,35,1,35,1,35,1,35,1,35,3,35,418,8,35,3,35,420,8,35,1,35,3,35,423,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,435,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,5,35,491,8,35,10,35,12,35,494,9,35,1,36,1,36,1,36,3,36,499,8,36,1,36,1,36,1,36,1,36,3,36,505,8,36,5,36,507,8,36,10,36,12,36,510,9,36,1,37,1,37,1,37,1,37,0,1,70,38,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,0,1,1,0,58,59,581,0,76,1,0,0,0,2,93,1,0,0,0,4,101,1,0,0,0,6,115,1,0,0,0,8,117,1,0,0,0,10,122,1,0,0,0,12,137,1,0,0,0,14,148,1,0,0,0,16,150,1,0,0,0,18,152,1,0,0,0,20,162,1,0,0,0,22,168,1,0,0,0,24,170,1,0,0,0,26,185,1,0,0,0,28,191,1,0,0,0,30,199,1,0,0,0,32,208,1,0,0,0,34,211,1,0,0,0,36,227,1,0,0,0,38,229,1,0,0,0,40,249,1,0,0,0,42,251,1,0,0,0,44,255,1,0,0,0,46,263,1,0,0,0,48,266,1,0,0,0,50,272,1,0,0,0,52,279,1,0,0,0,54,300,1,0,0,0,56,305,1,0,0,0,58,307,1,0,0,0,60,312,1,0,0,0,62,314,1,0,0,0,64,327,1,0,0,0,66,352,1,0,0,0,68,354,1,0,0,0,70,434,1,0,0,0,72,498,1,0,0,0,74,511,1,0,0,0,76,77,5,15,0,0,77,81,5,5,0,0,78,80,3,2,1,0,79,78,1,0,0,0,80,83,1,0,0,0,81,79,1,0,0,0,81,82,1,0,0,0,82,88,1,0,0,0,83,81,1,0,0,0,84,87,3,24,12,0,85,87,3,4,2,0,86,84,1,0,0,0,86,85,1,0,0,0,87,90,1,0,0,0,88,86,1,0,0,0,88,89,1,0,0,0,89,91,1,0,0,0,90,88,1,0,0,0,91,92,5,6,0,0,92,1,1,0,0,0,93,94,5,21,0,0,94,95,5,22,0,0,95,98,5,56,0,0,96,97,5,45,0,0,97,99,5,56,0,0,98,96,1,0,0,0,98,99,1,0,0,0,99,3,1,0,0,0,100,102,5,13,0,0,101,100,1,0,0,0,101,102,1,0,0,0,102,103,1,0,0,0,103,104,5,7,0,0,104,109,3,6,3,0,105,106,5,64,0,0,106,108,3,6,3,0,107,105,1,0,0,0,108,111,1,0,0,0,109,107,1,0,0,0,109,110,1,0,0,0,110,5,1,0,0,0,111,109,1,0,0,0,112,116,3,8,4,0,113,116,3,18,9,0,114,116,3,10,5,0,115,112,1,0,0,0,115,113,1,0,0,0,115,114,1,0,0,0,116,7,1,0,0,0,117,120,5,56,0,0,118,119,5,31,0,0,119,121,3,70,35,0,120,118,1,0,0,0,120,121,1,0,0,0,121,9,1,0,0,0,122,123,5,56,0,0,123,125,5,3,0,0,124,126,3,14,7,0,125,124,1,0,0,0,125,126,1,0,0,0,126,127,1,0,0,0,127,128,5,4,0,0,128,130,5,3,0,0,129,131,3,16,8,0,130,129,1,0,0,0,130,131,1,0,0,0,131,132,1,0,0,0,132,135,5,4,0,0,133,134,5,31,0,0,134,136,3,12,6,0,135,133,1,0,0,0,135,136,1,0,0,0,136,11,1,0,0,0,137,138,5,5,0,0,138,143,3,20,10,0,139,140,5,64,0,0,140,142,3,20,10,0,141,139,1,0,0,0,142,145,1,0,0,0,143,141,1,0,0,0,143,144,1,0,0,0,144,146,1,0,0,0,145,143,1,0,0,0,146,147,5,6,0,0,147,13,1,0,0,0,148,149,3,22,11,0,149,15,1,0,0,0,150,151,3,22,11,0,151,17,1,0,0,0,152,153,5,56,0,0,153,155,5,3,0,0,154,156,3,22,11,0,155,154,1,0,0,0,155,156,1,0,0,0,156,157,1,0,0,0,157,160,5,4,0,0,158,159,5,31,0,0,159,161,3,20,10,0,160,158,1,0,0,0,160,161,1,0,0,0,161,19,1,0,0,0,162,164,5,5,0,0,163,165,3,72,36,0,164,163,1,0,0,0,164,165,1,0,0,0,165,166,1,0,0,0,166,167,5,6,0,0,167,21,1,0,0,0,168,169,3,70,35,0,169,23,1,0,0,0,170,172,5,14,0,0,171,173,5,7,0,0,172,171,1,0,0,0,172,173,1,0,0,0,173,174,1,0,0,0,174,175,5,56,0,0,175,176,3,26,13,0,176,180,5,5,0,0,177,179,3,36,18,0,178,177,1,0,0,0,179,182,1,0,0,0,180,178,1,0,0,0,180,181,1,0,0,0,181,183,1,0,0,0,182,180,1,0,0,0,183,184,5,6,0,0,184,25,1,0,0,0,185,187,5,1,0,0,186,188,3,28,14,0,187,186,1,0,0,0,187,188,1,0,0,0,188,189,1,0,0,0,189,190,5,2,0,0,190,27,1,0,0,0,191,196,3,30,15,0,192,193,5,64,0,0,193,195,3,30,15,0,194,192,1,0,0,0,195,198,1,0,0,0,196,194,1,0,0,0,196,197,1,0,0,0,197,29,1,0,0,0,198,196,1,0,0,0,199,201,5,7,0,0,200,202,5,46,0,0,201,200,1,0,0,0,201,202,1,0,0,0,202,203,1,0,0,0,203,206,5,56,0,0,204,207,3,32,16,0,205,207,3,34,17,0,206,204,1,0,0,0,206,205,1,0,0,0,206,207,1,0,0,0,207,31,1,0,0,0,208,209,5,3,0,0,209,210,5,4,0,0,210,33,1,0,0,0,211,212,5,3,0,0,212,213,5,4,0,0,213,214,5,3,0,0,214,215,5,4,0,0,215,35,1,0,0,0,216,228,3,4,2,0,217,228,3,44,22,0,218,228,3,48,24,0,219,228,3,50,25,0,220,228,3,52,26,0,221,228,3,62,31,0,222,228,3,42,21,0,223,228,3,66,33,0,224,228,3,38,19,0,225,228,3,40,20,0,226,228,3,70,35,0,227,216,1,0,0,0,227,217,1,0,0,0,227,218,1,0,0,0,227,219,1,0,0,0,227,220,1,0,0,0,227,221,1,0,0,0,227,222,1,0,0,0,227,223,1,0,0,0,227,224,1,0,0,0,227,225,1,0,0,0,227,226,1,0,0,0,228,37,1,0,0,0,229,230,3,70,35,0,230,231,5,31,0,0,231,232,3,70,35,0,232,39,1,0,0,0,233,234,3,70,35,0,234,235,5,47,0,0,235,236,3,70,35,0,236,250,1,0,0,0,237,238,3,70,35,0,238,239,5,48,0,0,239,240,3,70,35,0,240,250,1,0,0,0,241,242,3,70,35,0,242,243,5,49,0,0,243,244,3,70,35,0,244,250,1,0,0,0,245,246,3,70,35,0,246,247,5,50,0,0,247,248,3,70,35,0,248,250,1,0,0,0,249,233,1,0,0,0,249,237,1,0,0,0,249,241,1,0,0,0,249,245,1,0,0,0,250,41,1,0,0,0,251,253,5,20,0,0,252,254,3,70,35,0,253,252,1,0,0,0,253,254,1,0,0,0,254,43,1,0,0,0,255,256,5,11,0,0,256,257,5,1,0,0,257,258,3,70,35,0,258,259,5,2,0,0,259,261,3,54,27,0,260,262,3,46,23,0,261,260,1,0,0,0,261,262,1,0,0,0,262,45,1,0,0,0,263,264,5,12,0,0,264,265,3,54,27,0,265,47,1,0,0,0,266,267,5,9,0,0,267,268,5,1,0,0,268,269,3,70,35,0,269,270,5,2,0,0,270,271,3,54,27,0,271,49,1,0,0,0,272,273,5,8,0,0,273,274,3,54,27,0,274,275,5,9,0,0,275,276,5,1,0,0,276,277,3,70,35,0,277,278,5,2,0,0,278,51,1,0,0,0,279,280,5,10,0,0,280,282,5,1,0,0,281,283,3,56,28,0,282,281,1,0,0,0,282,283,1,0,0,0,283,284,1,0,0,0,284,285,5,65,0,0,285,286,3,58,29,0,286,287,5,65,0,0,287,288,3,60,30,0,288,289,5,2,0,0,289,290,3,54,27,0,290,53,1,0,0,0,291,295,5,5,0,0,292,294,3,36,18,0,293,292,1,0,0,0,294,297,1,0,0,0,295,293,1,0,0,0,295,296,1,0,0,0,296,298,1,0,0,0,297,295,1,0,0,0,298,301,5,6,0,0,299,301,3,36,18,0,300,291,1,0,0,0,300,299,1,0,0,0,301,55,1,0,0,0,302,306,3,38,19,0,303,306,3,4,2,0,304,306,5,56,0,0,305,302,1,0,0,0,305,303,1,0,0,0,305,304,1,0,0,0,306,57,1,0,0,0,307,308,3,70,35,0,308,59,1,0,0,0,309,313,3,70,35,0,310,313,3,40,20,0,311,313,3,38,19,0,312,309,1,0,0,0,312,310,1,0,0,0,312,311,1,0,0,0,313,61,1,0,0,0,314,315,5,16,0,0,315,316,5,1,0,0,316,317,3,70,35,0,317,318,5,2,0,0,318,322,5,5,0,0,319,321,3,64,32,0,320,319,1,0,0,0,321,324,1,0,0,0,322,320,1,0,0,0,322,323,1,0,0,0,323,325,1,0,0,0,324,322,1,0,0,0,325,326,5,6,0,0,326,63,1,0,0,0,327,330,5,17,0,0,328,331,5,18,0,0,329,331,3,70,35,0,330,328,1,0,0,0,330,329,1,0,0,0,331,332,1,0,0,0,332,347,5,66,0,0,333,335,3,36,18,0,334,333,1,0,0,0,335,338,1,0,0,0,336,334,1,0,0,0,336,337,1,0,0,0,337,348,1,0,0,0,338,336,1,0,0,0,339,343,5,5,0,0,340,342,3,36,18,0,341,340,1,0,0,0,342,345,1,0,0,0,343,341,1,0,0,0,343,344,1,0,0,0,344,346,1,0,0,0,345,343,1,0,0,0,346,348,5,6,0,0,347,336,1,0,0,0,347,339,1,0,0,0,348,350,1,0,0,0,349,351,3,66,33,0,350,349,1,0,0,0,350,351,1,0,0,0,351,65,1,0,0,0,352,353,5,19,0,0,353,67,1,0,0,0,354,355,5,3,0,0,355,356,3,70,35,0,356,357,5,4,0,0,357,69,1,0,0,0,358,360,6,35,-1,0,359,361,3,74,37,0,360,359,1,0,0,0,360,361,1,0,0,0,361,362,1,0,0,0,362,363,5,56,0,0,363,365,5,1,0,0,364,366,3,72,36,0,365,364,1,0,0,0,365,366,1,0,0,0,366,367,1,0,0,0,367,435,5,2,0,0,368,370,3,74,37,0,369,368,1,0,0,0,369,370,1,0,0,0,370,371,1,0,0,0,371,372,5,56,0,0,372,435,3,68,34,0,373,375,3,74,37,0,374,373,1,0,0,0,374,375,1,0,0,0,375,376,1,0,0,0,376,377,5,56,0,0,377,379,3,68,34,0,378,380,3,68,34,0,379,378,1,0,0,0,379,380,1,0,0,0,380,435,1,0,0,0,381,382,5,26,0,0,382,435,3,70,35,33,383,384,5,27,0,0,384,435,3,70,35,32,385,386,5,23,0,0,386,435,3,70,35,31,387,388,5,44,0,0,388,435,3,70,35,30,389,394,5,56,0,0,390,392,3,68,34,0,391,393,3,68,34,0,392,391,1,0,0,0,392,393,1,0,0,0,393,395,1,0,0,0,394,390,1,0,0,0,394,395,1,0,0,0,395,396,1,0,0,0,396,435,5,38,0,0,397,402,5,56,0,0,398,400,3,68,34,0,399,401,3,68,34,0,400,399,1,0,0,0,400,401,1,0,0,0,401,403,1,0,0,0,402,398,1,0,0,0,402,403,1,0,0,0,403,404,1,0,0,0,404,435,5,39,0,0,405,406,5,38,0,0,406,411,5,56,0,0,407,409,3,68,34,0,408,410,3,68,34,0,409,408,1,0,0,0,409,410,1,0,0,0,410,412,1,0,0,0,411,407,1,0,0,0,411,412,1,0,0,0,412,435,1,0,0,0,413,414,5,39,0,0,414,419,5,56,0,0,415,417,3,68,34,0,416,418,3,68,34,0,417,416,1,0,0,0,417,418,1,0,0,0,418,420,1,0,0,0,419,415,1,0,0,0,419,420,1,0,0,0,420,435,1,0,0,0,421,423,3,74,37,0,422,421,1,0,0,0,422,423,1,0,0,0,423,424,1,0,0,0,424,435,5,56,0,0,425,435,7,0,0,0,426,435,5,57,0,0,427,435,5,51,0,0,428,435,5,54,0,0,429,435,5,55,0,0,430,431,5,1,0,0,431,432,3,70,35,0,432,433,5,2,0,0,433,435,1,0,0,0,434,358,1,0,0,0,434,369,1,0,0,0,434,374,1,0,0,0,434,381,1,0,0,0,434,383,1,0,0,0,434,385,1,0,0,0,434,387,1,0,0,0,434,389,1,0,0,0,434,397,1,0,0,0,434,405,1,0,0,0,434,413,1,0,0,0,434,422,1,0,0,0,434,425,1,0,0,0,434,426,1,0,0,0,434,427,1,0,0,0,434,428,1,0,0,0,434,429,1,0,0,0,434,430,1,0,0,0,435,492,1,0,0,0,436,437,10,25,0,0,437,438,5,28,0,0,438,491,3,70,35,26,439,440,10,24,0,0,440,441,5,29,0,0,441,491,3,70,35,25,442,443,10,23,0,0,443,444,5,30,0,0,444,491,3,70,35,24,445,446,10,22,0,0,446,447,5,27,0,0,447,491,3,70,35,23,448,449,10,21,0,0,449,450,5,26,0,0,450,491,3,70,35,22,451,452,10,20,0,0,452,453,5,32,0,0,453,491,3,70,35,21,454,455,10,19,0,0,455,456,5,33,0,0,456,491,3,70,35,20,457,458,10,18,0,0,458,459,5,34,0,0,459,491,3,70,35,19,460,461,10,17,0,0,461,462,5,35,0,0,462,491,3,70,35,18,463,464,10,16,0,0,464,465,5,36,0,0,465,491,3,70,35,17,466,467,10,15,0,0,467,468,5,37,0,0,468,491,3,70,35,16,469,470,10,14,0,0,470,471,5,24,0,0,471,491,3,70,35,15,472,473,10,13,0,0,473,474,5,25,0,0,474,491,3,70,35,14,475,476,10,12,0,0,476,477,5,42,0,0,477,491,3,70,35,13,478,479,10,11,0,0,479,480,5,40,0,0,480,491,3,70,35,12,481,482,10,10,0,0,482,483,5,41,0,0,483,491,3,70,35,11,484,485,10,9,0,0,485,486,5,46,0,0,486,491,3,70,35,10,487,488,10,8,0,0,488,489,5,43,0,0,489,491,3,70,35,9,490,436,1,0,0,0,490,439,1,0,0,0,490,442,1,0,0,0,490,445,1,0,0,0,490,448,1,0,0,0,490,451,1,0,0,0,490,454,1,0,0,0,490,457,1,0,0,0,490,460,1,0,0,0,490,463,1,0,0,0,490,466,1,0,0,0,490,469,1,0,0,0,490,472,1,0,0,0,490,475,1,0,0,0,490,478,1,0,0,0,490,481,1,0,0,0,490,484,1,0,0,0,490,487,1,0,0,0,491,494,1,0,0,0,492,490,1,0,0,0,492,493,1,0,0,0,493,71,1,0,0,0,494,492,1,0,0,0,495,499,3,70,35,0,496,499,3,40,20,0,497,499,3,38,19,0,498,495,1,0,0,0,498,496,1,0,0,0,498,497,1,0,0,0,499,508,1,0,0,0,500,504,5,64,0,0,501,505,3,70,35,0,502,505,3,40,20,0,503,505,3,38,19,0,504,501,1,0,0,0,504,502,1,0,0,0,504,503,1,0,0,0,505,507,1,0,0,0,506,500,1,0,0,0,507,510,1,0,0,0,508,506,1,0,0,0,508,509,1,0,0,0,509,73,1,0,0,0,510,508,1,0,0,0,511,512,5,56,0,0,512,513,5,63,0,0,513,75,1,0,0,0,56,81,86,88,98,101,109,115,120,125,130,135,143,155,160,164,172,180,187,196,201,206,227,249,253,261,282,295,300,305,312,322,330,336,343,347,350,360,365,369,374,379,392,394,400,402,409,411,417,419,422,434,490,492,498,504,508],g.vocabulary=new Ys(g.literalNames,g.symbolicNames,[]),g.decisionsToDFA=g._ATN.decisionToState.map((e,i)=>new Kl(e,i));var O=g,h_=class extends Ke{constructor(e,i){super(e,i)}PROGRAMA(){return this.getToken(O.PROGRAMA,0)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}inclusaoBiblioteca(e){return e===void 0?this.getRuleContexts(B1):this.getRuleContext(e,B1)}declaracaoFuncao(e){return e===void 0?this.getRuleContexts(j1):this.getRuleContext(e,j1)}listaDeclaracoes(e){return e===void 0?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}get ruleIndex(){return O.RULE_arquivo}enterRule(e){e.enterArquivo&&e.enterArquivo(this)}exitRule(e){e.exitArquivo&&e.exitArquivo(this)}accept(e){return e.visitArquivo?e.visitArquivo(this):e.visitChildren(this)}},B1=class extends Ke{constructor(e,i){super(e,i)}INCLUA(){return this.getToken(O.INCLUA,0)}BIBLIOTECA(){return this.getToken(O.BIBLIOTECA,0)}ID(e){return e===void 0?this.getTokens(O.ID):this.getToken(O.ID,e)}OP_ALIAS_BIBLIOTECA(){return this.getToken(O.OP_ALIAS_BIBLIOTECA,0)}get ruleIndex(){return O.RULE_inclusaoBiblioteca}enterRule(e){e.enterInclusaoBiblioteca&&e.enterInclusaoBiblioteca(this)}exitRule(e){e.exitInclusaoBiblioteca&&e.exitInclusaoBiblioteca(this)}accept(e){return e.visitInclusaoBiblioteca?e.visitInclusaoBiblioteca(this):e.visitChildren(this)}},Zo=class extends Ke{constructor(e,i){super(e,i)}TIPO(){return this.getToken(O.TIPO,0)}declaracao(e){return e===void 0?this.getRuleContexts(U1):this.getRuleContext(e,U1)}CONSTANTE(){return this.getToken(O.CONSTANTE,0)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaDeclaracoes}enterRule(e){e.enterListaDeclaracoes&&e.enterListaDeclaracoes(this)}exitRule(e){e.exitListaDeclaracoes&&e.exitListaDeclaracoes(this)}accept(e){return e.visitListaDeclaracoes?e.visitListaDeclaracoes(this):e.visitChildren(this)}},U1=class extends Ke{constructor(e,i){super(e,i)}declaracaoVariavel(){return this.getRuleContext(0,n6)}declaracaoArray(){return this.getRuleContext(0,l6)}declaracaoMatriz(){return this.getRuleContext(0,i6)}get ruleIndex(){return O.RULE_declaracao}enterRule(e){e.enterDeclaracao&&e.enterDeclaracao(this)}exitRule(e){e.exitDeclaracao&&e.exitDeclaracao(this)}accept(e){return e.visitDeclaracao?e.visitDeclaracao(this):e.visitChildren(this)}},n6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_declaracaoVariavel}enterRule(e){e.enterDeclaracaoVariavel&&e.enterDeclaracaoVariavel(this)}exitRule(e){e.exitDeclaracaoVariavel&&e.exitDeclaracaoVariavel(this)}accept(e){return e.visitDeclaracaoVariavel?e.visitDeclaracaoVariavel(this):e.visitChildren(this)}},i6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}ABRE_COLCHETES(e){return e===void 0?this.getTokens(O.ABRE_COLCHETES):this.getToken(O.ABRE_COLCHETES,e)}FECHA_COLCHETES(e){return e===void 0?this.getTokens(O.FECHA_COLCHETES):this.getToken(O.FECHA_COLCHETES,e)}linhaMatriz(){return this.getRuleContext(0,s6)}colunaMatriz(){return this.getRuleContext(0,o6)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}inicializacaoMatriz(){return this.getRuleContext(0,r6)}get ruleIndex(){return O.RULE_declaracaoMatriz}enterRule(e){e.enterDeclaracaoMatriz&&e.enterDeclaracaoMatriz(this)}exitRule(e){e.exitDeclaracaoMatriz&&e.exitDeclaracaoMatriz(this)}accept(e){return e.visitDeclaracaoMatriz?e.visitDeclaracaoMatriz(this):e.visitChildren(this)}},r6=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}inicializacaoArray(e){return e===void 0?this.getRuleContexts(Yl):this.getRuleContext(e,Yl)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_inicializacaoMatriz}enterRule(e){e.enterInicializacaoMatriz&&e.enterInicializacaoMatriz(this)}exitRule(e){e.exitInicializacaoMatriz&&e.exitInicializacaoMatriz(this)}accept(e){return e.visitInicializacaoMatriz?e.visitInicializacaoMatriz(this):e.visitChildren(this)}},s6=class extends Ke{constructor(e,i){super(e,i)}tamanhoArray(){return this.getRuleContext(0,R3)}get ruleIndex(){return O.RULE_linhaMatriz}enterRule(e){e.enterLinhaMatriz&&e.enterLinhaMatriz(this)}exitRule(e){e.exitLinhaMatriz&&e.exitLinhaMatriz(this)}accept(e){return e.visitLinhaMatriz?e.visitLinhaMatriz(this):e.visitChildren(this)}},o6=class extends Ke{constructor(e,i){super(e,i)}tamanhoArray(){return this.getRuleContext(0,R3)}get ruleIndex(){return O.RULE_colunaMatriz}enterRule(e){e.enterColunaMatriz&&e.enterColunaMatriz(this)}exitRule(e){e.exitColunaMatriz&&e.exitColunaMatriz(this)}accept(e){return e.visitColunaMatriz?e.visitColunaMatriz(this):e.visitChildren(this)}},l6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}tamanhoArray(){return this.getRuleContext(0,R3)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}inicializacaoArray(){return this.getRuleContext(0,Yl)}get ruleIndex(){return O.RULE_declaracaoArray}enterRule(e){e.enterDeclaracaoArray&&e.enterDeclaracaoArray(this)}exitRule(e){e.exitDeclaracaoArray&&e.exitDeclaracaoArray(this)}accept(e){return e.visitDeclaracaoArray?e.visitDeclaracaoArray(this):e.visitChildren(this)}},Yl=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}listaExpressoes(){return this.getRuleContext(0,c4)}get ruleIndex(){return O.RULE_inicializacaoArray}enterRule(e){e.enterInicializacaoArray&&e.enterInicializacaoArray(this)}exitRule(e){e.exitInicializacaoArray&&e.exitInicializacaoArray(this)}accept(e){return e.visitInicializacaoArray?e.visitInicializacaoArray(this):e.visitChildren(this)}},R3=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_tamanhoArray}enterRule(e){e.enterTamanhoArray&&e.enterTamanhoArray(this)}exitRule(e){e.exitTamanhoArray&&e.exitTamanhoArray(this)}accept(e){return e.visitTamanhoArray?e.visitTamanhoArray(this):e.visitChildren(this)}},j1=class extends Ke{constructor(e,i){super(e,i)}FUNCAO(){return this.getToken(O.FUNCAO,0)}ID(){return this.getToken(O.ID,0)}parametroFuncao(){return this.getRuleContext(0,a6)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}TIPO(){return this.getToken(O.TIPO,0)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_declaracaoFuncao}enterRule(e){e.enterDeclaracaoFuncao&&e.enterDeclaracaoFuncao(this)}exitRule(e){e.exitDeclaracaoFuncao&&e.exitDeclaracaoFuncao(this)}accept(e){return e.visitDeclaracaoFuncao?e.visitDeclaracaoFuncao(this):e.visitChildren(this)}},a6=class extends Ke{constructor(e,i){super(e,i)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaParametros(){return this.getRuleContext(0,u6)}get ruleIndex(){return O.RULE_parametroFuncao}enterRule(e){e.enterParametroFuncao&&e.enterParametroFuncao(this)}exitRule(e){e.exitParametroFuncao&&e.exitParametroFuncao(this)}accept(e){return e.visitParametroFuncao?e.visitParametroFuncao(this):e.visitChildren(this)}},u6=class extends Ke{constructor(e,i){super(e,i)}parametro(e){return e===void 0?this.getRuleContexts(H1):this.getRuleContext(e,H1)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaParametros}enterRule(e){e.enterListaParametros&&e.enterListaParametros(this)}exitRule(e){e.exitListaParametros&&e.exitListaParametros(this)}accept(e){return e.visitListaParametros?e.visitListaParametros(this):e.visitChildren(this)}},H1=class extends Ke{constructor(e,i){super(e,i)}TIPO(){return this.getToken(O.TIPO,0)}ID(){return this.getToken(O.ID,0)}E_COMERCIAL(){return this.getToken(O.E_COMERCIAL,0)}parametroArray(){return this.getRuleContext(0,z1)}parametroMatriz(){return this.getRuleContext(0,$1)}get ruleIndex(){return O.RULE_parametro}enterRule(e){e.enterParametro&&e.enterParametro(this)}exitRule(e){e.exitParametro&&e.exitParametro(this)}accept(e){return e.visitParametro?e.visitParametro(this):e.visitChildren(this)}},z1=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}get ruleIndex(){return O.RULE_parametroArray}enterRule(e){e.enterParametroArray&&e.enterParametroArray(this)}exitRule(e){e.exitParametroArray&&e.exitParametroArray(this)}accept(e){return e.visitParametroArray?e.visitParametroArray(this):e.visitChildren(this)}},$1=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(e){return e===void 0?this.getTokens(O.ABRE_COLCHETES):this.getToken(O.ABRE_COLCHETES,e)}FECHA_COLCHETES(e){return e===void 0?this.getTokens(O.FECHA_COLCHETES):this.getToken(O.FECHA_COLCHETES,e)}get ruleIndex(){return O.RULE_parametroMatriz}enterRule(e){e.enterParametroMatriz&&e.enterParametroMatriz(this)}exitRule(e){e.exitParametroMatriz&&e.exitParametroMatriz(this)}accept(e){return e.visitParametroMatriz?e.visitParametroMatriz(this):e.visitChildren(this)}},Xo=class extends Ke{constructor(e,i){super(e,i)}listaDeclaracoes(){return this.getRuleContext(0,Zo)}se(){return this.getRuleContext(0,d6)}enquanto(){return this.getRuleContext(0,f6)}facaEnquanto(){return this.getRuleContext(0,p6)}para(){return this.getRuleContext(0,m6)}escolha(){return this.getRuleContext(0,b6)}retorne(){return this.getRuleContext(0,c6)}pare(){return this.getRuleContext(0,Z1)}atribuicao(){return this.getRuleContext(0,Zl)}atribuicaoComposta(){return this.getRuleContext(0,Zs)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_comando}enterRule(e){e.enterComando&&e.enterComando(this)}exitRule(e){e.exitComando&&e.exitComando(this)}accept(e){return e.visitComando?e.visitComando(this):e.visitChildren(this)}},Zl=class extends Ke{constructor(e,i){super(e,i)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}get ruleIndex(){return O.RULE_atribuicao}enterRule(e){e.enterAtribuicao&&e.enterAtribuicao(this)}exitRule(e){e.exitAtribuicao&&e.exitAtribuicao(this)}accept(e){return e.visitAtribuicao?e.visitAtribuicao(this):e.visitChildren(this)}},Zs=class extends Ke{constructor(e,i){super(e,i)}get ruleIndex(){return O.RULE_atribuicaoComposta}copyFrom(e){super.copyFrom(e)}},G1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIS_IGUAL(){return this.getToken(O.OP_MAIS_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaSoma&&e.enterAtribuicaoCompostaSoma(this)}exitRule(e){e.exitAtribuicaoCompostaSoma&&e.exitAtribuicaoCompostaSoma(this)}accept(e){return e.visitAtribuicaoCompostaSoma?e.visitAtribuicaoCompostaSoma(this):e.visitChildren(this)}},W1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOS_IGUAL(){return this.getToken(O.OP_MENOS_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaSubtracao&&e.enterAtribuicaoCompostaSubtracao(this)}exitRule(e){e.exitAtribuicaoCompostaSubtracao&&e.exitAtribuicaoCompostaSubtracao(this)}accept(e){return e.visitAtribuicaoCompostaSubtracao?e.visitAtribuicaoCompostaSubtracao(this):e.visitChildren(this)}},q1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MULTIPLICACAO_IGUAL(){return this.getToken(O.OP_MULTIPLICACAO_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaMultiplicacao&&e.enterAtribuicaoCompostaMultiplicacao(this)}exitRule(e){e.exitAtribuicaoCompostaMultiplicacao&&e.exitAtribuicaoCompostaMultiplicacao(this)}accept(e){return e.visitAtribuicaoCompostaMultiplicacao?e.visitAtribuicaoCompostaMultiplicacao(this):e.visitChildren(this)}},K1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIVISAO_IGUAL(){return this.getToken(O.OP_DIVISAO_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaDivisao&&e.enterAtribuicaoCompostaDivisao(this)}exitRule(e){e.exitAtribuicaoCompostaDivisao&&e.exitAtribuicaoCompostaDivisao(this)}accept(e){return e.visitAtribuicaoCompostaDivisao?e.visitAtribuicaoCompostaDivisao(this):e.visitChildren(this)}},c6=class extends Ke{constructor(e,i){super(e,i)}RETORNE(){return this.getToken(O.RETORNE,0)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_retorne}enterRule(e){e.enterRetorne&&e.enterRetorne(this)}exitRule(e){e.exitRetorne&&e.exitRetorne(this)}accept(e){return e.visitRetorne?e.visitRetorne(this):e.visitChildren(this)}},d6=class extends Ke{constructor(e,i){super(e,i)}SE(){return this.getToken(O.SE,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}senao(){return this.getRuleContext(0,h6)}get ruleIndex(){return O.RULE_se}enterRule(e){e.enterSe&&e.enterSe(this)}exitRule(e){e.exitSe&&e.exitSe(this)}accept(e){return e.visitSe?e.visitSe(this):e.visitChildren(this)}},h6=class extends Ke{constructor(e,i){super(e,i)}SENAO(){return this.getToken(O.SENAO,0)}listaComandos(){return this.getRuleContext(0,Xl)}get ruleIndex(){return O.RULE_senao}enterRule(e){e.enterSenao&&e.enterSenao(this)}exitRule(e){e.exitSenao&&e.exitSenao(this)}accept(e){return e.visitSenao?e.visitSenao(this):e.visitChildren(this)}},f6=class extends Ke{constructor(e,i){super(e,i)}ENQUANTO(){return this.getToken(O.ENQUANTO,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}get ruleIndex(){return O.RULE_enquanto}enterRule(e){e.enterEnquanto&&e.enterEnquanto(this)}exitRule(e){e.exitEnquanto&&e.exitEnquanto(this)}accept(e){return e.visitEnquanto?e.visitEnquanto(this):e.visitChildren(this)}},p6=class extends Ke{constructor(e,i){super(e,i)}FACA(){return this.getToken(O.FACA,0)}listaComandos(){return this.getRuleContext(0,Xl)}ENQUANTO(){return this.getToken(O.ENQUANTO,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}get ruleIndex(){return O.RULE_facaEnquanto}enterRule(e){e.enterFacaEnquanto&&e.enterFacaEnquanto(this)}exitRule(e){e.exitFacaEnquanto&&e.exitFacaEnquanto(this)}accept(e){return e.visitFacaEnquanto?e.visitFacaEnquanto(this):e.visitChildren(this)}},m6=class extends Ke{constructor(e,i){super(e,i)}PARA(){return this.getToken(O.PARA,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}PONTOVIRGULA(e){return e===void 0?this.getTokens(O.PONTOVIRGULA):this.getToken(O.PONTOVIRGULA,e)}condicao(){return this.getRuleContext(0,_6)}incrementoPara(){return this.getRuleContext(0,v6)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}inicializacaoPara(){return this.getRuleContext(0,g6)}get ruleIndex(){return O.RULE_para}enterRule(e){e.enterPara&&e.enterPara(this)}exitRule(e){e.exitPara&&e.exitPara(this)}accept(e){return e.visitPara?e.visitPara(this):e.visitChildren(this)}},Xl=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_listaComandos}enterRule(e){e.enterListaComandos&&e.enterListaComandos(this)}exitRule(e){e.exitListaComandos&&e.exitListaComandos(this)}accept(e){return e.visitListaComandos?e.visitListaComandos(this):e.visitChildren(this)}},g6=class extends Ke{constructor(e,i){super(e,i)}atribuicao(){return this.getRuleContext(0,Zl)}listaDeclaracoes(){return this.getRuleContext(0,Zo)}ID(){return this.getToken(O.ID,0)}get ruleIndex(){return O.RULE_inicializacaoPara}enterRule(e){e.enterInicializacaoPara&&e.enterInicializacaoPara(this)}exitRule(e){e.exitInicializacaoPara&&e.exitInicializacaoPara(this)}accept(e){return e.visitInicializacaoPara?e.visitInicializacaoPara(this):e.visitChildren(this)}},_6=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_condicao}enterRule(e){e.enterCondicao&&e.enterCondicao(this)}exitRule(e){e.exitCondicao&&e.exitCondicao(this)}accept(e){return e.visitCondicao?e.visitCondicao(this):e.visitChildren(this)}},v6=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}atribuicaoComposta(){return this.getRuleContext(0,Zs)}atribuicao(){return this.getRuleContext(0,Zl)}get ruleIndex(){return O.RULE_incrementoPara}enterRule(e){e.enterIncrementoPara&&e.enterIncrementoPara(this)}exitRule(e){e.exitIncrementoPara&&e.exitIncrementoPara(this)}accept(e){return e.visitIncrementoPara?e.visitIncrementoPara(this):e.visitChildren(this)}},b6=class extends Ke{constructor(e,i){super(e,i)}ESCOLHA(){return this.getToken(O.ESCOLHA,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}caso(e){return e===void 0?this.getRuleContexts(Y1):this.getRuleContext(e,Y1)}get ruleIndex(){return O.RULE_escolha}enterRule(e){e.enterEscolha&&e.enterEscolha(this)}exitRule(e){e.exitEscolha&&e.exitEscolha(this)}accept(e){return e.visitEscolha?e.visitEscolha(this):e.visitChildren(this)}},Y1=class extends Ke{constructor(e,i){super(e,i)}CASO(){return this.getToken(O.CASO,0)}DOISPONTOS(){return this.getToken(O.DOISPONTOS,0)}CONTRARIO(){return this.getToken(O.CONTRARIO,0)}expressao(){return this.getRuleContext(0,W)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}pare(){return this.getRuleContext(0,Z1)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_caso}enterRule(e){e.enterCaso&&e.enterCaso(this)}exitRule(e){e.exitCaso&&e.exitCaso(this)}accept(e){return e.visitCaso?e.visitCaso(this):e.visitChildren(this)}},Z1=class extends Ke{constructor(e,i){super(e,i)}PARE(){return this.getToken(O.PARE,0)}get ruleIndex(){return O.RULE_pare}enterRule(e){e.enterPare&&e.enterPare(this)}exitRule(e){e.exitPare&&e.exitPare(this)}accept(e){return e.visitPare?e.visitPare(this):e.visitChildren(this)}},Hi=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}get ruleIndex(){return O.RULE_indiceArray}enterRule(e){e.enterIndiceArray&&e.enterIndiceArray(this)}exitRule(e){e.exitIndiceArray&&e.exitIndiceArray(this)}accept(e){return e.visitIndiceArray?e.visitIndiceArray(this):e.visitChildren(this)}},W=class extends Ke{constructor(e,i){super(e,i)}get ruleIndex(){return O.RULE_expressao}copyFrom(e){super.copyFrom(e)}},f_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}listaExpressoes(){return this.getRuleContext(0,c4)}enterRule(e){e.enterChamadaFuncao&&e.enterChamadaFuncao(this)}exitRule(e){e.exitChamadaFuncao&&e.exitChamadaFuncao(this)}accept(e){return e.visitChamadaFuncao?e.visitChamadaFuncao(this):e.visitChildren(this)}},p_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}STRING(){return this.getToken(O.STRING,0)}enterRule(e){e.enterString&&e.enterString(this)}exitRule(e){e.exitString&&e.exitString(this)}accept(e){return e.visitString?e.visitString(this):e.visitChildren(this)}},m_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_NOT_BITWISE(){return this.getToken(O.OP_NOT_BITWISE,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterNegacaoBitwise&&e.enterNegacaoBitwise(this)}exitRule(e){e.exitNegacaoBitwise&&e.exitNegacaoBitwise(this)}accept(e){return e.visitNegacaoBitwise?e.visitNegacaoBitwise(this):e.visitChildren(this)}},g_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}indiceArray(){return this.getRuleContext(0,Hi)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaArray&&e.enterReferenciaArray(this)}exitRule(e){e.exitReferenciaArray&&e.exitReferenciaArray(this)}accept(e){return e.visitReferenciaArray?e.visitReferenciaArray(this):e.visitChildren(this)}},__=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}REAL(){return this.getToken(O.REAL,0)}enterRule(e){e.enterNumeroReal&&e.enterNumeroReal(this)}exitRule(e){e.exitNumeroReal&&e.exitNumeroReal(this)}accept(e){return e.visitNumeroReal?e.visitNumeroReal(this):e.visitChildren(this)}},v_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_ADICAO(){return this.getToken(O.OP_ADICAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterMaisUnario&&e.enterMaisUnario(this)}exitRule(e){e.exitMaisUnario&&e.exitMaisUnario(this)}accept(e){return e.visitMaisUnario?e.visitMaisUnario(this):e.visitChildren(this)}},X1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIFERENCA(){return this.getToken(O.OP_DIFERENCA,0)}enterRule(e){e.enterOperacaoDiferenca&&e.enterOperacaoDiferenca(this)}exitRule(e){e.exitOperacaoDiferenca&&e.exitOperacaoDiferenca(this)}accept(e){return e.visitOperacaoDiferenca?e.visitOperacaoDiferenca(this):e.visitChildren(this)}},b_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_SUBTRACAO(){return this.getToken(O.OP_SUBTRACAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterMenosUnario&&e.enterMenosUnario(this)}exitRule(e){e.exitMenosUnario&&e.exitMenosUnario(this)}accept(e){return e.visitMenosUnario?e.visitMenosUnario(this):e.visitChildren(this)}},Q1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_ADICAO(){return this.getToken(O.OP_ADICAO,0)}enterRule(e){e.enterAdicao&&e.enterAdicao(this)}exitRule(e){e.exitAdicao&&e.exitAdicao(this)}accept(e){return e.visitAdicao?e.visitAdicao(this):e.visitChildren(this)}},M3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_XOR(){return this.getToken(O.OP_XOR,0)}enterRule(e){e.enterOperacaoXor&&e.enterOperacaoXor(this)}exitRule(e){e.exitOperacaoXor&&e.exitOperacaoXor(this)}accept(e){return e.visitOperacaoXor?e.visitOperacaoXor(this):e.visitChildren(this)}},J1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIOR_IGUAL(){return this.getToken(O.OP_MAIOR_IGUAL,0)}enterRule(e){e.enterOperacaoMaiorIgual&&e.enterOperacaoMaiorIgual(this)}exitRule(e){e.exitOperacaoMaiorIgual&&e.exitOperacaoMaiorIgual(this)}accept(e){return e.visitOperacaoMaiorIgual?e.visitOperacaoMaiorIgual(this):e.visitChildren(this)}},y_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_DECREMENTO_UNARIO(){return this.getToken(O.OP_DECREMENTO_UNARIO,0)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterDecrementoUnarioPrefixado&&e.enterDecrementoUnarioPrefixado(this)}exitRule(e){e.exitDecrementoUnarioPrefixado&&e.exitDecrementoUnarioPrefixado(this)}accept(e){return e.visitDecrementoUnarioPrefixado?e.visitDecrementoUnarioPrefixado(this):e.visitChildren(this)}},E_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}OP_INCREMENTO_UNARIO(){return this.getToken(O.OP_INCREMENTO_UNARIO,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterIncrementoUnarioPosfixado&&e.enterIncrementoUnarioPosfixado(this)}exitRule(e){e.exitIncrementoUnarioPosfixado&&e.exitIncrementoUnarioPosfixado(this)}accept(e){return e.visitIncrementoUnarioPosfixado?e.visitIncrementoUnarioPosfixado(this):e.visitChildren(this)}},e4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MULTIPLICACAO(){return this.getToken(O.OP_MULTIPLICACAO,0)}enterRule(e){e.enterMultiplicacao&&e.enterMultiplicacao(this)}exitRule(e){e.exitMultiplicacao&&e.exitMultiplicacao(this)}accept(e){return e.visitMultiplicacao?e.visitMultiplicacao(this):e.visitChildren(this)}},t4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_OU_LOGICO(){return this.getToken(O.OP_OU_LOGICO,0)}enterRule(e){e.enterOperacaoOuLogico&&e.enterOperacaoOuLogico(this)}exitRule(e){e.exitOperacaoOuLogico&&e.exitOperacaoOuLogico(this)}accept(e){return e.visitOperacaoOuLogico?e.visitOperacaoOuLogico(this):e.visitChildren(this)}},n4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_IGUALDADE(){return this.getToken(O.OP_IGUALDADE,0)}enterRule(e){e.enterOperacaoIgualdade&&e.enterOperacaoIgualdade(this)}exitRule(e){e.exitOperacaoIgualdade&&e.exitOperacaoIgualdade(this)}accept(e){return e.visitOperacaoIgualdade?e.visitOperacaoIgualdade(this):e.visitChildren(this)}},k3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SHIFT_RIGHT(){return this.getToken(O.OP_SHIFT_RIGHT,0)}enterRule(e){e.enterOperacaoShiftRight&&e.enterOperacaoShiftRight(this)}exitRule(e){e.exitOperacaoShiftRight&&e.exitOperacaoShiftRight(this)}accept(e){return e.visitOperacaoShiftRight?e.visitOperacaoShiftRight(this):e.visitChildren(this)}},i4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIVISAO(){return this.getToken(O.OP_DIVISAO,0)}enterRule(e){e.enterDivisao&&e.enterDivisao(this)}exitRule(e){e.exitDivisao&&e.exitDivisao(this)}accept(e){return e.visitDivisao?e.visitDivisao(this):e.visitChildren(this)}},C_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}enterRule(e){e.enterExpressaoEntreParenteses&&e.enterExpressaoEntreParenteses(this)}exitRule(e){e.exitExpressaoEntreParenteses&&e.exitExpressaoEntreParenteses(this)}accept(e){return e.visitExpressaoEntreParenteses?e.visitExpressaoEntreParenteses(this):e.visitChildren(this)}},r4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOR_IGUAL(){return this.getToken(O.OP_MENOR_IGUAL,0)}enterRule(e){e.enterOperacaoMenorIgual&&e.enterOperacaoMenorIgual(this)}exitRule(e){e.exitOperacaoMenorIgual&&e.exitOperacaoMenorIgual(this)}accept(e){return e.visitOperacaoMenorIgual?e.visitOperacaoMenorIgual(this):e.visitChildren(this)}},I_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaMatriz&&e.enterReferenciaMatriz(this)}exitRule(e){e.exitReferenciaMatriz&&e.exitReferenciaMatriz(this)}accept(e){return e.visitReferenciaMatriz?e.visitReferenciaMatriz(this):e.visitChildren(this)}},s4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIOR(){return this.getToken(O.OP_MAIOR,0)}enterRule(e){e.enterOperacaoMaior&&e.enterOperacaoMaior(this)}exitRule(e){e.exitOperacaoMaior&&e.exitOperacaoMaior(this)}accept(e){return e.visitOperacaoMaior?e.visitOperacaoMaior(this):e.visitChildren(this)}},T_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}INT(){return this.getToken(O.INT,0)}HEXADECIMAL(){return this.getToken(O.HEXADECIMAL,0)}enterRule(e){e.enterNumeroInteiro&&e.enterNumeroInteiro(this)}exitRule(e){e.exitNumeroInteiro&&e.exitNumeroInteiro(this)}accept(e){return e.visitNumeroInteiro?e.visitNumeroInteiro(this):e.visitChildren(this)}},S_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}CARACTER(){return this.getToken(O.CARACTER,0)}enterRule(e){e.enterCaracter&&e.enterCaracter(this)}exitRule(e){e.exitCaracter&&e.exitCaracter(this)}accept(e){return e.visitCaracter?e.visitCaracter(this):e.visitChildren(this)}},w_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaParaVariavel&&e.enterReferenciaParaVariavel(this)}exitRule(e){e.exitReferenciaParaVariavel&&e.exitReferenciaParaVariavel(this)}accept(e){return e.visitReferenciaParaVariavel?e.visitReferenciaParaVariavel(this):e.visitChildren(this)}},x_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}LOGICO(){return this.getToken(O.LOGICO,0)}enterRule(e){e.enterValorLogico&&e.enterValorLogico(this)}exitRule(e){e.exitValorLogico&&e.exitValorLogico(this)}accept(e){return e.visitValorLogico?e.visitValorLogico(this):e.visitChildren(this)}},o4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOR(){return this.getToken(O.OP_MENOR,0)}enterRule(e){e.enterOperacaoMenor&&e.enterOperacaoMenor(this)}exitRule(e){e.exitOperacaoMenor&&e.exitOperacaoMenor(this)}accept(e){return e.visitOperacaoMenor?e.visitOperacaoMenor(this):e.visitChildren(this)}},N3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SHIFT_LEFT(){return this.getToken(O.OP_SHIFT_LEFT,0)}enterRule(e){e.enterOperacaoShiftLeft&&e.enterOperacaoShiftLeft(this)}exitRule(e){e.exitOperacaoShiftLeft&&e.exitOperacaoShiftLeft(this)}accept(e){return e.visitOperacaoShiftLeft?e.visitOperacaoShiftLeft(this):e.visitChildren(this)}},A_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_INCREMENTO_UNARIO(){return this.getToken(O.OP_INCREMENTO_UNARIO,0)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterIncrementoUnarioPrefixado&&e.enterIncrementoUnarioPrefixado(this)}exitRule(e){e.exitIncrementoUnarioPrefixado&&e.exitIncrementoUnarioPrefixado(this)}accept(e){return e.visitIncrementoUnarioPrefixado?e.visitIncrementoUnarioPrefixado(this):e.visitChildren(this)}},l4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_E_LOGICO(){return this.getToken(O.OP_E_LOGICO,0)}enterRule(e){e.enterOperacaoELogico&&e.enterOperacaoELogico(this)}exitRule(e){e.exitOperacaoELogico&&e.exitOperacaoELogico(this)}accept(e){return e.visitOperacaoELogico?e.visitOperacaoELogico(this):e.visitChildren(this)}},D_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}OP_DECREMENTO_UNARIO(){return this.getToken(O.OP_DECREMENTO_UNARIO,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterDecrementoUnarioPosfixado&&e.enterDecrementoUnarioPosfixado(this)}exitRule(e){e.exitDecrementoUnarioPosfixado&&e.exitDecrementoUnarioPosfixado(this)}accept(e){return e.visitDecrementoUnarioPosfixado?e.visitDecrementoUnarioPosfixado(this):e.visitChildren(this)}},P3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_OU_BITWISE(){return this.getToken(O.OP_OU_BITWISE,0)}enterRule(e){e.enterOperacaoOrBitwise&&e.enterOperacaoOrBitwise(this)}exitRule(e){e.exitOperacaoOrBitwise&&e.exitOperacaoOrBitwise(this)}accept(e){return e.visitOperacaoOrBitwise?e.visitOperacaoOrBitwise(this):e.visitChildren(this)}},a4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MOD(){return this.getToken(O.OP_MOD,0)}enterRule(e){e.enterModulo&&e.enterModulo(this)}exitRule(e){e.exitModulo&&e.exitModulo(this)}accept(e){return e.visitModulo?e.visitModulo(this):e.visitChildren(this)}},u4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SUBTRACAO(){return this.getToken(O.OP_SUBTRACAO,0)}enterRule(e){e.enterSubtracao&&e.enterSubtracao(this)}exitRule(e){e.exitSubtracao&&e.exitSubtracao(this)}accept(e){return e.visitSubtracao?e.visitSubtracao(this):e.visitChildren(this)}},O_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_NAO(){return this.getToken(O.OP_NAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterNegacao&&e.enterNegacao(this)}exitRule(e){e.exitNegacao&&e.exitNegacao(this)}accept(e){return e.visitNegacao?e.visitNegacao(this):e.visitChildren(this)}},L3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}E_COMERCIAL(){return this.getToken(O.E_COMERCIAL,0)}enterRule(e){e.enterOperacaoAndBitwise&&e.enterOperacaoAndBitwise(this)}exitRule(e){e.exitOperacaoAndBitwise&&e.exitOperacaoAndBitwise(this)}accept(e){return e.visitOperacaoAndBitwise?e.visitOperacaoAndBitwise(this):e.visitChildren(this)}},c4=class extends Ke{constructor(e,i){super(e,i)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}atribuicaoComposta(e){return e===void 0?this.getRuleContexts(Zs):this.getRuleContext(e,Zs)}atribuicao(e){return e===void 0?this.getRuleContexts(Zl):this.getRuleContext(e,Zl)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaExpressoes}enterRule(e){e.enterListaExpressoes&&e.enterListaExpressoes(this)}exitRule(e){e.exitListaExpressoes&&e.exitListaExpressoes(this)}accept(e){return e.visitListaExpressoes?e.visitListaExpressoes(this):e.visitChildren(this)}},Tu=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}PONTO(){return this.getToken(O.PONTO,0)}get ruleIndex(){return O.RULE_escopoBiblioteca}enterRule(e){e.enterEscopoBiblioteca&&e.enterEscopoBiblioteca(this)}exitRule(e){e.exitEscopoBiblioteca&&e.exitEscopoBiblioteca(this)}accept(e){return e.visitEscopoBiblioteca?e.visitEscopoBiblioteca(this):e.visitChildren(this)}};var Ql=class extends Error{constructor(e,i){super(e),this.message=e,this.ctx=i,this.name="ParseError"}};var m=function(t){return t.INTEIRO="inteiro",t.REAL="real",t.CADEIA="cadeia",t.L\u00D3GICO="logico",t.VAZIO="vazio",t.CARACTER="caracter",t}(m||{});function d4(t){if(!t)return m.VAZIO;let e=t.getText();switch(e){case"inteiro":case"real":case"cadeia":case"logico":case"vazio":case"caracter":return e;default:throw new Error(`Tipo desconhecido: ${e}`)}}function y6(t){if(!t)return[];let e=[];for(let i=0;i[e,...nx(e)])}function Fe(t,e,i){if(!t)throw new Ql(i??"Express\xE3o inv\xE1lida",e)}var qn=class{constructor(e){this.ctx=e,this.children=[]}unexpectedChild(e){let i=e.ctx.constructor.name.replace("Context",""),n=this.ctx.constructor.name.replace("Context","");throw i==="ErrorNode"?new Ql(`Express\xE3o inv\xE1lida: ${e.ctx.getText()}`,e.ctx):(console.error(new Error(`Encontrado '${i}' como filho de '${n}', n\xE3o esperado: '${e.ctx.getText()}'`)),new Ql(`Encontrado '${i}' como filho de '${n}', n\xE3o esperado: '${e.ctx.getText()}'`,e.ctx))}addChild(e){this.children.push(e)}};var Ot=class extends qn{};var oe=class extends qn{};var h4=class extends oe{constructor(){super(...arguments),this.linhas=[]}addChild(e){e instanceof oe?this.linhas.push(e):this.unexpectedChild(e),this.children.push(e)}};var ar=class extends oe{constructor(e){super(e),this.ctx=e;let[i,n]=[e.INT(),e.HEXADECIMAL()],r=i?.getText()??n?.getText();Fe(r,e),this.valor=Number.parseInt(r,n?16:10)}addChild(e){this.unexpectedChild(e)}};var f4=class extends oe{constructor(e){super(e),this.ctx=e;let i=e.ID()?.getText();Fe(i,e),this.nome=i}};var fn=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof f4?(Fe(!this.escopoBiblioteca,e.ctx,"Escopo de biblioteca j\xE1 definido"),this.escopoBiblioteca=e):this.unexpectedChild(e),this.children.push(e)}};var p4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof ar||e instanceof fn?this.linhas?this.colunas?this.unexpectedChild(e):this.colunas=e:this.linhas=e:e instanceof h4?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var m4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof oe?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var g4=class extends oe{constructor(){super(...arguments),this.valores=[]}addChild(e){e instanceof oe?this.valores.push(e):this.unexpectedChild(e),this.children.push(e)}};var _4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof ar||e instanceof fn?(Fe(!this.tamanho,e.ctx,"Tamanho j\xE1 definido"),this.tamanho=e):e instanceof g4?(Fe(!this.inicializa\u00E7\u00E3o,e.ctx,"Inicializa\xE7\xE3o j\xE1 definida"),this.inicializa\u00E7\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var Su=class extends Ot{constructor(e){super(e),this.ctx=e,Fe(e.parent instanceof Zo,e),this.tipo={primitivo:d4(e.parent.TIPO())},this.constante=!!e.parent.CONSTANTE()}addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),e instanceof _4?(this.nome=e.nome,this.tipo={dimens\u00E3o:"vetor",tamanho:e.tamanho,primitivo:this.tipo.primitivo},this.express\u00E3o=e.inicializa\u00E7\u00E3o):e instanceof p4?(this.nome=e.nome,this.tipo={dimens\u00E3o:"matriz",linhas:e.linhas,colunas:e.colunas,primitivo:this.tipo.primitivo}):e instanceof m4?(this.nome=e.nome,this.express\u00E3o=e.valor):this.unexpectedChild(e)):this.unexpectedChild(e),this.children.push(e)}};var F3=class extends qn{constructor(e,i){super(e),this.ctx=e,this.type=i}addChild(e){this.unexpectedChild(e)}};var wu=class extends qn{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.tipo={primitivo:d4(this.ctx.TIPO())},this.refer\u00EAncia=!!this.ctx.E_COMERCIAL()}addChild(e){e instanceof F3?e.ctx instanceof z1&&!Object.hasOwn(this.tipo,"dimens\xE3o")?this.tipo={dimens\u00E3o:"vetor",primitivo:this.tipo.primitivo}:e.ctx instanceof $1&&!Object.hasOwn(this.tipo,"dimens\xE3o")?this.tipo={dimens\u00E3o:"matriz",primitivo:this.tipo.primitivo}:this.unexpectedChild(e):this.unexpectedChild(e),this.children.push(e)}};var xu=class extends qn{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.par\u00E2metros=[],this.retorno={primitivo:d4(this.ctx.TIPO())},this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof wu?this.par\u00E2metros.push(e):e instanceof oe||e instanceof Ot?this.instru\u00E7\u00F5es.push(e):(console.log(e),this.unexpectedChild(e)),this.children.push(e)}};var v4=class extends qn{constructor(e){super(e),this.ctx=e;let i=e.ID();Fe(i.length===1||i.length===2,e,"Inclus\xE3o de biblioteca inv\xE1lida"),this.nome=i[0].getText(),i.length===2&&(this.alias=i[1].getText())}addChild(e){this.unexpectedChild(e)}};var b4=class extends qn{constructor(){super(...arguments),this.bibliotecas=[],this.declara\u00E7\u00F5es=[],this.fun\u00E7\u00F5es=[]}addChild(e){e instanceof xu?this.fun\u00E7\u00F5es.push(e):e instanceof v4?this.bibliotecas.push(e):e instanceof Su?this.declara\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var Jl=class extends oe{addChild(e){e instanceof oe?(Fe(!this.\u00EDndice,e.ctx,"\xCDndice j\xE1 definido"),this.\u00EDndice=e):this.unexpectedChild(e),this.children.push(e)}};var us=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}addChild(e){e instanceof Jl?(Fe(!this.\u00EDndice,e.ctx,"\xCDndice j\xE1 definido"),this.\u00EDndice=e):this.unexpectedChild(e),this.children.push(e)}};var cs=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}addChild(e){e instanceof Jl&&!this.linha?this.linha=e:e instanceof Jl&&!this.coluna?this.coluna=e:this.unexpectedChild(e),this.children.push(e)}};var ur=class extends Ot{addChild(e){super.addChild(e),(e instanceof fn||e instanceof us||e instanceof cs)&&!this.vari\u00E1vel?this.vari\u00E1vel=e:e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var R_=class extends ur{};var M_=class extends ur{};var k_=class extends ur{};var N_=class extends ur{};var yi=class extends qn{};var y4=class extends oe{constructor(){super(...arguments),this.conte\u00FAdo=this.ctx.STRING().getText().slice(1,-1)}addChild(e){this.unexpectedChild(e)}};var E4=class extends oe{constructor(e){super(e),this.ctx=e,this.conte\u00FAdo=e.CARACTER().getText().slice(1,-1),Fe(this.conte\u00FAdo.length===1,e,"Caractere inv\xE1lido")}addChild(e){this.unexpectedChild(e)}};var E6=class extends oe{constructor(e){super(e),this.ctx=e,Fe(e.getText()==="contrario",e)}addChild(e){this.unexpectedChild(e)}};var C4=class extends Ot{constructor(e){super(e),this.ctx=e,this.instru\u00E7\u00F5es=[];let i=e.CONTRARIO();i&&(this.condi\u00E7\u00E3o=new E6(i))}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var I4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.argumentos=[],this.escopoBiblioteca=this.ctx.escopoBiblioteca()?.ID()?.getText()}addChild(e){e instanceof oe?this.argumentos.push(e):this.unexpectedChild(e),this.children.push(e)}};var Xs=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}};var T4=class extends Xs{};var S4=class extends Xs{};var bt=class extends oe{addChild(e){e instanceof oe?this.esquerda?this.direita?this.unexpectedChild(e):this.direita=e:this.esquerda=e:this.unexpectedChild(e),this.children.push(e)}};var w4=class extends bt{};var x4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var A4=class extends Ot{constructor(){super(...arguments),this.casos=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof C4?this.casos.push(e):this.unexpectedChild(e),this.children.push(e)}};var D4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var O4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var R4=class extends Xs{};var M4=class extends Xs{};var k4=class extends oe{constructor(){super(...arguments),this.valor=this.ctx.getText()==="verdadeiro"}addChild(e){this.unexpectedChild(e)}};var Qo=class extends oe{constructor(e){super(e),this.ctx=e;let i=e.REAL().getText();this.valor=Number.parseFloat(i),Fe(!Number.isNaN(this.valor),e,"Valor inv\xE1lido")}addChild(e){this.unexpectedChild(e)}};var N4=class extends oe{addChild(e){e instanceof fn||e instanceof us||e instanceof cs||e instanceof ar||e instanceof Qo?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var P4=class extends oe{addChild(e){e instanceof fn||e instanceof us||e instanceof cs||e instanceof ar||e instanceof Qo?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var L4=class extends bt{};var F4=class extends bt{};var V4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var B4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var U4=class extends bt{};var j4=class extends bt{};var H4=class extends bt{};var z4=class extends bt{};var $4=class extends bt{};var G4=class extends bt{};var W4=class extends bt{};var q4=class extends bt{};var K4=class extends bt{};var Y4=class extends bt{};var Z4=class extends bt{};var X4=class extends bt{};var Q4=class extends bt{};var J4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[],this.#e=y6(this.ctx.inicializacaoPara()),this.#t=y6(this.ctx.condicao()),this.#n=y6(this.ctx.incrementoPara())}#e;#t;#n;addChild(e){(e instanceof oe||e instanceof Ot)&&this.#e.includes(e.ctx)?(Fe(!this.inicializa\u00E7\u00E3o,e.ctx,"Inicializa\xE7\xE3o j\xE1 definida"),this.inicializa\u00E7\u00E3o=e):e instanceof oe&&this.#t.includes(e.ctx)?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof oe&&this.#n.includes(e.ctx)?(Fe(!this.incremento,e.ctx,"Incremento j\xE1 definido"),this.incremento=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var P_=class extends Ot{addChild(e){this.unexpectedChild(e)}};var Au=class extends Ot{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var e5=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var t5=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof e5?(Fe(!this.sen\u00E3o,e.ctx,"Sen\xE3o j\xE1 definido"),this.sen\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var n5=class extends bt{};var i5=class extends bt{};var C6=class extends oe{};var FH={AdicaoContext:n5,ArquivoContext:b4,AtribuicaoCompostaDivisaoContext:R_,AtribuicaoCompostaMultiplicacaoContext:M_,AtribuicaoCompostaSomaContext:k_,AtribuicaoCompostaSubtracaoContext:N_,AtribuicaoContext:ur,CaracterContext:E4,CasoContext:C4,ChamadaFuncaoContext:I4,ColunaMatrizContext:yi,ComandoContext:yi,CondicaoContext:yi,DeclaracaoArrayContext:_4,DeclaracaoContext:Su,DeclaracaoFuncaoContext:xu,DeclaracaoMatrizContext:p4,DeclaracaoVariavelContext:m4,DecrementoUnarioPosfixadoContext:S4,DecrementoUnarioPrefixadoContext:T4,DivisaoContext:w4,EnquantoContext:x4,EscolhaContext:A4,EscopoBibliotecaContext:f4,ExpressaoEntreParentesesContext:D4,FacaEnquantoContext:O4,InclusaoBibliotecaContext:v4,IncrementoParaContext:yi,IncrementoUnarioPosfixadoContext:M4,IncrementoUnarioPrefixadoContext:R4,IndiceArrayContext:Jl,InicializacaoArrayContext:g4,InicializacaoMatrizContext:h4,InicializacaoParaContext:yi,LinhaMatrizContext:yi,ListaComandosContext:yi,ListaDeclaracoesContext:yi,ListaExpressoesContext:yi,ListaParametrosContext:yi,MaisUnarioContext:N4,MenosUnarioContext:P4,ModuloContext:F4,MultiplicacaoContext:L4,NegacaoBitwiseContext:V4,NegacaoContext:B4,NumeroInteiroContext:ar,NumeroRealContext:Qo,OperacaoAndBitwiseContext:U4,OperacaoDiferencaContext:H4,OperacaoELogicoContext:j4,OperacaoIgualdadeContext:z4,OperacaoMaiorContext:G4,OperacaoMaiorIgualContext:$4,OperacaoMenorContext:q4,OperacaoMenorIgualContext:W4,OperacaoOrBitwiseContext:K4,OperacaoOuLogicoContext:Y4,OperacaoShiftLeftContext:Z4,OperacaoShiftRightContext:X4,OperacaoXorContext:Q4,ParaContext:J4,ParametroContext:wu,ParametroFuncaoContext:yi,PareContext:P_,ReferenciaArrayContext:us,ReferenciaMatrizContext:cs,ReferenciaParaVariavelContext:fn,RetorneContext:Au,SeContext:t5,SenaoContext:e5,StringContext:y4,SubtracaoContext:i5,TamanhoArrayContext:yi,ValorLogicoContext:k4};var L_=class extends t6{defaultResult(){return{}}aggregateResult(e,i){throw new Error("Shouldn't need to aggregate results")}visitChildrenFromParent(e,i){for(let n=0;nHhe,checarFun\u00E7\u00F5esComRetorno:()=>zhe});function*Hhe(t){let e=t.fun\u00E7\u00F5es.find(i=>i.nome==="inicio");e?(e.par\u00E2metros.length>0&&(yield _i.fromContext(e.ctx,"A fun\xE7\xE3o 'inicio' n\xE3o deve receber par\xE2metros")),e.retorno.primitivo!==m.VAZIO&&(yield _i.fromContext(e.ctx,"A fun\xE7\xE3o 'inicio' n\xE3o deve retornar valores"))):yield _i.fromContext(t.ctx,"O programa deve conter uma fun\xE7\xE3o chamada 'inicio'")}function*zhe(t){for(let e of t.fun\u00E7\u00F5es)e.retorno.primitivo!==m.VAZIO&&(nx(e).some(i=>i instanceof Au)||(yield _i.fromContext(e.ctx,`A fun\xE7\xE3o '${e.nome}' deve retornar um valor`)))}var rx={};dx(rx,{checarUsoEscopo:()=>$he});var _=function(t){return t[t.COMPAT\u00CDVEL=0]="COMPAT\xCDVEL",t[t.INCOMPAT\u00CDVEL=1]="INCOMPAT\xCDVEL",t[t.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA=2]="COMPAT\xCDVEL_COM_CONVERS\xC3O_IMPL\xCDCITA",t[t.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O=3]="COMPAT\xCDVEL_COM_CONVERS\xC3O_DE_OPERA\xC7\xC3O",t}(_||{}),pWe={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},VH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.COMPAT\u00CDVEL}},BH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},UH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.REAL],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},jH={[m.CADEIA]:{[m.CADEIA]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},HH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},mWe={[m.CADEIA]:{[m.CADEIA]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},zH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},$H={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},GH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.L\u00D3GICO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.REAL],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}};var F_=class{constructor(e={vari\u00E1veis:new Map,fun\u00E7\u00F5es:new Map([["escreva",{primitivo:m.VAZIO}],["leia",{primitivo:m.CADEIA}],["limpa",{primitivo:m.VAZIO}]])}){this.pilha=[],this.pilha.push(e)}push(){this.pilha.push({vari\u00E1veis:new Map,fun\u00E7\u00F5es:new Map,fun\u00E7\u00E3o:this.atual.fun\u00E7\u00E3o})}pop(){if(this.pilha.length===1)throw new Error("N\xE3o \xE9 poss\xEDvel remover o escopo global");this.pilha.pop()}get atual(){return this.pilha.at(-1)}get global(){return this.pilha[0]}get vari\u00E1veis(){return this.atual.vari\u00E1veis}get fun\u00E7\u00F5es(){return this.atual.fun\u00E7\u00F5es}get fun\u00E7\u00E3o(){return this.atual.fun\u00E7\u00E3o}set fun\u00E7\u00E3o(e){this.atual.fun\u00E7\u00E3o=e}hasVari\u00E1vel(e){for(let i of this.pilha)if(i.vari\u00E1veis.has(e))return!0;return!1}hasFun\u00E7\u00E3o(e){for(let i of this.pilha)if(i.fun\u00E7\u00F5es.has(e))return!0;return!1}getVari\u00E1vel(e){for(let i of this.pilha)if(i.vari\u00E1veis.has(e))return i.vari\u00E1veis.get(e);return this.vari\u00E1veis.get(e)}getFun\u00E7\u00E3o(e){for(let i of this.pilha)if(i.fun\u00E7\u00F5es.has(e))return i.fun\u00E7\u00F5es.get(e);return this.fun\u00E7\u00F5es.get(e)}};function Kn(t,e){if(!t)return m.VAZIO;switch(t.constructor){case y4:return m.CADEIA;case E4:return m.CARACTER;case ar:return m.INTEIRO;case k4:return m.L\u00D3GICO;case Qo:return m.REAL;case C6:return m.VAZIO;case w4:case L4:case i5:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=UH[n][r];if(Array.isArray(s))return s[1];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de divis\xE3o, multiplica\xE7\xE3o ou subtra\xE7\xE3o entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case n5:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=GH[n][r];if(Array.isArray(s))return s[1];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de soma entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.CADEIA||r===m.CADEIA?m.CADEIA:n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case F4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if(zH[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de m\xF3dulo entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case R4:case M4:case T4:case S4:return Kn(t.vari\u00E1vel,e);case D4:return Kn(t.express\u00E3o,e);case fn:{let i=t,n=e.getVari\u00E1vel(i.nome);if(!n)throw new Error(`Vari\xE1vel n\xE3o declarada: ${i.nome}`);return n.primitivo}case us:case cs:{let i=t,n=e.getVari\u00E1vel(i.vari\u00E1vel.nome);if(!n)throw new Error(`Vari\xE1vel n\xE3o declarada: ${i.vari\u00E1vel.nome}`);return n.primitivo}case z4:case H4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=jH[n][r];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de igualdade ou diferen\xE7a entre express\xF5es dos tipos '${n}' e '${r}'`);return Array.isArray(s)?s[1]:m.L\u00D3GICO}case j4:case Y4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if(HH[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de 'e' ou 'ou' entre express\xF5es dos tipos '${n}' e '${r}'`);return m.L\u00D3GICO}case G4:case $4:case q4:case W4:return m.L\u00D3GICO;case K4:case U4:case Z4:case X4:case Q4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if($H[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o bitwise entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case V4:case B4:return Kn(t.express\u00E3o,e);case N4:case P4:return Kn(t.valor,e)===m.REAL?m.REAL:m.INTEIRO;case I4:{let i=t,n=e.getFun\u00E7\u00E3o(i.nome);if(i.escopoBiblioteca)throw new Error("TODO");if(!n)throw new Error(`Fun\xE7\xE3o n\xE3o declarada: ${i.nome}`);return n.primitivo}default:return m.VAZIO}}function*$he(t){let e=new F_;function*i(r){for(let s of r)yield*$i(n(s))}function*n(r){switch(r.constructor){case Su:case wu:{let s=r;e.vari\u00E1veis.set(s.nome,s.tipo);break}case xu:{let s=r;e.fun\u00E7\u00F5es.set(s.nome,s.retorno),e.push(),e.fun\u00E7\u00E3o=s.retorno,yield*$i(i(r.children)),e.pop();break}case fn:{let s=r;if(s.escopoBiblioteca)break;e.hasVari\u00E1vel(s.nome)||(yield _i.fromContext(s.ctx,`Vari\xE1vel n\xE3o declarada: ${s.nome}`));break}case ur:{let s=r;if(yield*$i(i(s.children)),s.vari\u00E1vel instanceof fn&&!s.vari\u00E1vel.escopoBiblioteca){let o=e.vari\u00E1veis.get(s.vari\u00E1vel.nome);if(!o)break;try{let l=Kn(s.express\u00E3o,e);BH[o.primitivo][l]===_.INCOMPAT\u00CDVEL&&(yield _i.fromContext(s.ctx,`N\xE3o \xE9 poss\xEDvel atribuir um valor do tipo '${l}' a uma vari\xE1vel do tipo '${o.primitivo}'`))}catch(l){let a=l instanceof Error?l.message:"N\xE3o foi poss\xEDvel resolver o tipo da express\xE3o";if(a==="TODO")break;yield _i.fromContext(s.ctx,a)}}break}case x4:case A4:case O4:case J4:{e.push(),yield*$i(i(r.children)),e.pop();break}case t5:{let s=r;e.push(),yield*$i(n(s.condi\u00E7\u00E3o)),yield*$i(i(s.instru\u00E7\u00F5es)),e.pop(),s.sen\u00E3o&&(e.push(),yield*$i(i(s.sen\u00E3o.instru\u00E7\u00F5es)),e.pop());break}case Au:{let s=r;if(s.express\u00E3o&&(yield*$i(n(s.express\u00E3o))),e.fun\u00E7\u00E3o)try{let o=Kn(s.express\u00E3o,e);VH[e.fun\u00E7\u00E3o.primitivo][o]===_.INCOMPAT\u00CDVEL&&(yield _i.fromContext(s.ctx,`N\xE3o \xE9 poss\xEDvel retornar um valor do tipo '${o}' em uma fun\xE7\xE3o que retorna '${e.fun\u00E7\u00E3o.primitivo}'`))}catch(o){let l=o instanceof Error?o.message:"N\xE3o foi poss\xEDvel resolver o tipo da express\xE3o";if(l==="TODO")break;yield _i.fromContext(s.ctx,l)}break}default:{yield*$i(i(r.children));break}}}yield*$i(n(t))}var WH=[ix,rx].flatMap(t=>Object.values(t));var B_=class B_{static checkCode(e){let i=Cu.fromString(e),n=new V1(i),r=new L1(n),s=new O(r),o=s.arquivo();return s.addErrorListener(this.errorListener),this.checkTree(o)}static checkTree(e){this.errorListener.reset();try{let i=this.portugolNode.visit(e),n=[];for(let r of WH)for(let s of r(i))n.push(s);return this.errorListener.getErrors().concat(n)}catch(i){return i instanceof Ql?this.errorListener.getErrors().concat(_i.fromContext(i.ctx,i.message)):this.errorListener.getErrors().concat(_i.fromContext(e,String(i)))}}};B_.portugolNode=new L_,B_.errorListener=new nd;var V_=B_;var ce=class{constructor(){this.buffer=[]}append(...e){this.buffer.push(...e.filter(Boolean).map(String))}pop(){return this.buffer.pop()}toString(){return this.buffer.join("")}};var qH=(()=>{let e=class e extends t6{constructor(){super(...arguments),this.debug=!1,this.pad=0,this.hasScope=!1}DEBUG(n,r){return this.debug?`${this.PAD()}/*! ${n} !*/ +`&&i++;return i}return 1}get inputStream(){return this.i0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(this.sourceName!==null)return this.sourceName;let e=this.inputStream;return e!==null?e.getSourceName():"List"}},N(m1,"ListTokenSource"),m1),Vp,g1,Fhe=(g1=class extends Ke{constructor(i,n,r){super(n,r);Ee(this,Vp);ie(this,Vp,i)}get ruleIndex(){return y(this,Vp)}},Vp=new WeakMap,N(g1,"InterpreterRuleContext"),g1),_1,Vhe=(_1=class{parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},N(_1,"TraceListener"),_1),Hl,d3,h3,v1,tx=(v1=class extends OH{constructor(i){super();T(this,"printer",null);T(this,"buildParseTrees",!0);T(this,"errorHandler",new NH);T(this,"context",null);T(this,"precedenceStack",[]);T(this,"parseListeners",null);T(this,"syntaxErrors",0);T(this,"matchedEOF",!1);Ee(this,Hl,null);Ee(this,d3,null);Ee(this,h3);this.precedenceStack.push(0),this.syntaxErrors=0,ie(this,h3,i)}reset(i=!0){i&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(i){let n=this.getCurrentToken();return n.type===i?(this.errorHandler.reportMatch(this),this.consume()):(n=this.errorHandler.recoverInline(this),this.buildParseTrees&&n.tokenIndex===-1&&this.context.addErrorNode(this.createErrorNode(this.context,n))),n}matchWildcard(){let i=this.getCurrentToken();return i.type>0?(this.errorHandler.reportMatch(this),this.consume()):(i=this.errorHandler.recoverInline(this),this.buildParseTrees&&i.tokenIndex===-1&&this.context.addErrorNode(this.createErrorNode(this.context,i))),i}getParseListeners(){return this.parseListeners??[]}addParseListener(i){if(i===null)throw new Error("listener");this.parseListeners===null&&(this.parseListeners=[]),this.parseListeners.push(i)}removeParseListener(i){if(this.parseListeners!==null&&i!==null){let n=this.parseListeners.indexOf(i);n>=0&&this.parseListeners.splice(n,1),this.parseListeners.length===0&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(this.parseListeners!==null){let i=this.context;this.parseListeners.forEach(n=>{n.enterEveryRule(i),i.enterRule(n)})}}triggerExitRuleEvent(){if(this.parseListeners!==null){let i=this.context;this.parseListeners.slice(0).reverse().forEach(n=>{i.exitRule(n),n.exitEveryRule(i)})}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(i){this.inputStream.tokenSource.tokenFactory=i}compileParseTreePattern(i,n,r){if(!r&&this.tokenStream!==null){let o=this.tokenStream.tokenSource;o instanceof Yo&&(r=o)}if(!r)throw new Error("Parser can't discover a lexer to use");return new Uhe(r,this).compile(i,n)}getATNWithBypassAlts(){let i=this.getSerializedATN();if(i===null)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(y(this,d3)!==null)return y(this,d3);let n={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0};return ie(this,d3,new Iu(n).deserialize(i)),y(this,d3)}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return y(this,h3)}set inputStream(i){this.tokenStream=i}get tokenStream(){return y(this,h3)}set tokenStream(i){this.reset(!1),ie(this,h3,i)}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(i,n,r){n=n??null,r=r??null,n===null&&(n=this.getCurrentToken()),this.syntaxErrors+=1;let s=n.line,o=n.column;this.errorListenerDispatch.syntaxError(this,n,s,o,i,r)}consume(){let i=this.getCurrentToken();i.type!==Q.EOF&&this.tokenStream.consume();let n=this.parseListeners!==null&&this.parseListeners.length>0;if(this.buildParseTrees||n){let r;this.errorHandler.inErrorRecoveryMode(this)?r=this.context.addErrorNode(this.createErrorNode(this.context,i)):r=this.context.addTokenNode(i),n&&this.parseListeners.forEach(s=>{r instanceof Rp?s.visitErrorNode(r):s.visitTerminal(r)})}return i}addContextToParseTree(){this.context?.parent!==null&&this.context.parent.addChild(this.context)}enterRule(i,n,r){this.state=n,this.context=i,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(i,n){i.setAltNumber(n),this.buildParseTrees&&this.context!==i&&this.context.parent!==null&&(this.context.parent.removeLastChild(),this.context.parent.addChild(i)),this.context=i}getPrecedence(){return this.precedenceStack.length===0?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(i,n,r,s){this.state=n,this.precedenceStack.push(s),this.context=i,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(i,n,r){let s=this.context;s.parent=i,s.invokingState=n,s.stop=this.inputStream.LT(-1),this.context=i,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(i){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);let n=this.context,r=this.getParseListeners();if(r!==null&&r.length>0)for(;this.context!==i;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=i;n.parent=i,this.buildParseTrees&&i!==null&&i.addChild(n)}getInvokingContext(i){let n=this.context;for(;n!==null;){if(n.ruleIndex===i)return n;n=n.parent}return null}precpred(i,n){return n>=this.precedenceStack[this.precedenceStack.length-1]}inContext(i){return!1}isExpectedToken(i){let n=this.interpreter.atn,r=this.context,s=n.states[this.state],o=n.nextTokens(s);if(o.contains(i))return!0;if(!o.contains(Q.EPSILON))return!1;for(;r!==null&&r.invokingState>=0&&o.contains(Q.EPSILON);){let a=n.states[r.invokingState].transitions[0];if(o=n.nextTokens(a.followState),o.contains(i))return!0;r=r.parent}return!!(o.contains(Q.EPSILON)&&i===Q.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let i=this.interpreter.atn,n=i.states[this.state];return i.nextTokens(n)}getRuleIndex(i){return this.getRuleIndexMap().get(i)??-1}getRuleInvocationStack(i){i=i??null,i===null&&(i=this.context);let n=[];for(;i!==null;){let r=i.ruleIndex;r<0?n.push("n/a"):n.push(this.ruleNames[r]),i=i.parent}return n}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let i=!1;for(let n of this.interpreter.decisionToDFA)n.length>0&&(i&&console.log(),this.printer&&(this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.vocabulary))),i=!0)}getSourceName(){return this.inputStream.getSourceName()}setProfile(i){let n=this.interpreter,r=n.predictionMode;if(i)n instanceof zw||(this.interpreter=new zw(this));else if(n instanceof zw){let s=n.sharedContextCache;if(s){let o=new e6(this,this.atn,n.decisionToDFA,s);this.interpreter=o}}this.interpreter.predictionMode=r}setTrace(i){i?(y(this,Hl)!==null&&this.removeParseListener(y(this,Hl)),ie(this,Hl,new Vhe(this)),this.addParseListener(y(this,Hl))):(this.removeParseListener(y(this,Hl)),ie(this,Hl,null))}createTerminalNode(i,n){return new qo(n)}createErrorNode(i,n){return new Rp(n)}},Hl=new WeakMap,d3=new WeakMap,h3=new WeakMap,N(v1,"Parser"),v1),Bp,Up,jp,b1,Hp,zp,Ws,$p,Gp,Wp,a_,y1,E1,Bhe=(E1=class extends tx{constructor(i,n,r,s,o){super(o);T(this,"rootContext");T(this,"parentContextStack",[]);Ee(this,Bp,-1);Ee(this,Up,-1);Ee(this,jp,-1);Ee(this,b1,!1);Ee(this,Hp,null);Ee(this,zp);Ee(this,Ws);Ee(this,$p);Ee(this,Gp);Ee(this,Wp);Ee(this,a_,new O3);Ee(this,y1);ie(this,zp,i),ie(this,Ws,s),ie(this,$p,r.slice(0)),ie(this,Gp,n),ie(this,y1,new Ko);for(let l of s.states)l instanceof Qa&&l.precedenceRuleDecision&&y(this,y1).set(l.stateNumber);ie(this,Wp,s.decisionToState.map((l,a)=>new Kl(l,a))),this.interpreter=new e6(this,s,y(this,Wp),y(this,a_))}reset(){super.reset(),ie(this,b1,!1),ie(this,Hp,null)}get atn(){return y(this,Ws)}get vocabulary(){return y(this,Gp)}get ruleNames(){return y(this,$p)}get grammarFileName(){return y(this,zp)}get atnState(){return y(this,Ws).states[this.state]}parse(i){let n=y(this,Ws).ruleToStartState[i];for(this.rootContext=this.createInterpreterRuleContext(null,je.INVALID_STATE_NUMBER,i),n.isPrecedenceRule?this.enterRecursionRule(this.rootContext,n.stateNumber,i,0):this.enterRule(this.rootContext,n.stateNumber,i);;){let r=this.atnState;switch(r.constructor.stateType){case je.RULE_STOP:if(this.context?.isEmpty)if(n.isPrecedenceRule){let s=this.context,o=this.parentContextStack.pop();return this.unrollRecursionContexts(o[0]),s}else return this.exitRule(),this.rootContext;this.visitRuleStopState(r);break;default:try{this.visitState(r)}catch(s){if(s instanceof rt)this.state=y(this,Ws).ruleToStopState[r.ruleIndex].stateNumber,this.errorHandler.reportError(this,s),this.recover(s);else throw s}break}}}addDecisionOverride(i,n,r){ie(this,Bp,i),ie(this,Up,n),ie(this,jp,r)}get overrideDecisionRoot(){return y(this,Hp)}enterRecursionRule(i,n,r,s){this.parentContextStack.push([this.context,i.invokingState]),super.enterRecursionRule(i,n,r,s)}visitState(i){let n=1;i instanceof A3&&(n=this.visitDecisionState(i));let r=i.transitions[n-1];switch(r.transitionType){case Ie.EPSILON:if(y(this,y1).get(i.stateNumber)&&r.target.constructor.stateType!==je.LOOP_END){let c=this.parentContextStack[this.parentContextStack.length-1],d=this.createInterpreterRuleContext(c[0],c[1],this.context.ruleIndex);this.pushNewRecursionContext(d,y(this,Ws).ruleToStartState[i.ruleIndex].stateNumber,this.context.ruleIndex)}break;case Ie.ATOM:this.match(r.label.minElement);break;case Ie.RANGE:case Ie.SET:case Ie.NOT_SET:r.matches(this.inputStream.LA(1),Q.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case Ie.WILDCARD:this.matchWildcard();break;case Ie.RULE:let s=r.target,o=s.ruleIndex,l=this.createInterpreterRuleContext(this.context,i.stateNumber,o);s.isPrecedenceRule?this.enterRecursionRule(l,s.stateNumber,o,r.precedence):this.enterRule(l,r.target.stateNumber,o);break;case Ie.PREDICATE:let a=r;if(!this.sempred(this.context,a.ruleIndex,a.predIndex))throw new Mp(this);break;case Ie.ACTION:let u=r;this.action(this.context,u.ruleIndex,u.actionIndex);break;case Ie.PRECEDENCE:if(!this.precpred(this.context,r.precedence)){let c=r.precedence;throw new Mp(this,`precpred(_ctx, ${c})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(i){let n=1;if(i.transitions.length>1){this.errorHandler.sync(this);let r=i.decision;r===y(this,Bp)&&this.inputStream.index===y(this,Up)&&!y(this,b1)?(n=y(this,jp),ie(this,b1,!0)):n=this.interpreter.adaptivePredict(this.inputStream,r,this.context)}return n}createInterpreterRuleContext(i,n,r){return new Fhe(r,i,n)}visitRuleStopState(i){if(y(this,Ws).ruleToStartState[i.ruleIndex].isPrecedenceRule){let[s,o]=this.parentContextStack.pop();this.unrollRecursionContexts(s),this.state=o}else this.exitRule();let r=y(this,Ws).states[this.state].transitions[0];this.state=r.followState.stateNumber}recover(i){let n=this.inputStream.index;if(this.errorHandler.recover(this,i),this.inputStream.index===n){let r=i.offendingToken;if(!r)throw new Error("Expected exception to have an offending token");let s=r.tokenSource,o=s?.inputStream??null,l=[s,o];if(i instanceof Op){let a=i.getExpectedTokens();if(!a)throw new Error("Expected the exception to provide expected tokens");let u=Q.INVALID_TYPE;a.length!==0&&(u=a.minElement);let c=this.getTokenFactory().create(l,u,r.text,Q.DEFAULT_CHANNEL,-1,-1,r.line,r.column);this.context.addErrorNode(this.createErrorNode(this.context,c))}else{let a=this.getTokenFactory().create(l,Q.INVALID_TYPE,r.text,Q.DEFAULT_CHANNEL,-1,-1,r.line,r.column);this.context.addErrorNode(this.createErrorNode(this.context,a))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Bp=new WeakMap,Up=new WeakMap,jp=new WeakMap,b1=new WeakMap,Hp=new WeakMap,zp=new WeakMap,Ws=new WeakMap,$p=new WeakMap,Gp=new WeakMap,Wp=new WeakMap,a_=new WeakMap,y1=new WeakMap,N(E1,"ParserInterpreter"),E1),C1,EH=(C1=class extends Map{map(e,i){let n=this.get(e);n||(n=new Array,this.set(e,n)),n.push(i)}getPairs(){let e=new Array;for(let i of this.keys()){let n=this.get(i)??[];for(let r of n)e.push([i,r])}return e}},N(C1,"MultiMap"),C1),I1,CH=(I1=class{label;ruleName;bypassTokenType;constructor(e,i,n){this.ruleName=e,this.bypassTokenType=i,this.label=n}get channel(){return Q.DEFAULT_CHANNEL}get text(){return this.label!==null?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},N(I1,"RuleTagToken"),I1),T1,IH=(T1=class extends kH{tag;label;constructor(...e){let i,n;if(e.length===1?n=e[0]:(i=e[0],n=e[1]),super(),!n)throw new Error("tag cannot be null or empty");this.label=i,this.tag=n}toString(){return this.label!==null?this.label+":"+this.tag:this.tag}},N(T1,"TagChunk"),T1),S1,rd=(S1=class extends kH{text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},N(S1,"TextChunk"),S1),w1,TH=(w1=class extends Kw{tokenName;label;constructor(e,i,n){super({type:i,source:Kw.EMPTY_SOURCE}),this.tokenName=e,this.label=n}get text(){return this.label!==null?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},N(w1,"TokenTagToken"),w1),x1,A1,Wo,Uhe=(Wo=class{start="<";stop=">";escape="\\";lexer;parser;constructor(e,i){this.lexer=e,this.parser=i}setDelimiters(e,i,n){if(e===null||e.length===0)throw new Error("start cannot be null or empty");if(i===null||i.length===0)throw new Error("stop cannot be null or empty");this.start=e,this.stop=i,this.escape=n}matches(...e){switch(e.length){case 2:{let[i,n]=e,r=new EH;return this.matchImpl(i,n.getPatternTree(),r)===null}case 3:{let[i,n,r]=e,s=this.compile(n,r);return this.matches(i,s)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{let[i,n]=e,r=new EH,s=this.matchImpl(i,n.getPatternTree(),r);return new Mhe(i,n,r,s)}case 3:{let[i,n,r]=e,s=this.compile(n,r);return this.match(i,s)}default:throw new Error("Invalid number of arguments")}}compile(e,i){let n=this.tokenize(e),r=new Lhe(n),s=new L1(r),o=new Bhe(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),s),l=null;try{o.errorHandler=new Phe,l=o.parse(i)}catch(a){throw a instanceof Yw?a.cause:a instanceof rt?a:a instanceof Error?new Wo.CannotInvokeStartRule(a):a}if(s.LA(1)!==Q.EOF)throw new Wo.StartRuleDoesNotConsumeFullPattern;return new khe(this,e,i,l)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){let i=this.split(e),n=new Array;for(let r of i)if(r instanceof IH){let s=r,o=s.tag[0];if(o===o.toUpperCase()){let l=this.parser.getTokenType(s.tag);if(l===Q.INVALID_TYPE)throw new Error("Unknown token "+s.tag+" in pattern: "+e);let a=new TH(s.tag,l,s.label);n.push(a)}else if(o===o.toLowerCase()){let l=this.parser.getRuleIndex(s.tag);if(l===-1)throw new Error("Unknown rule "+s.tag+" in pattern: "+e);let a=this.parser.getATNWithBypassAlts().ruleToTokenType[l];n.push(new CH(s.tag,a,s.label))}else throw new Error("invalid tag: "+s.tag+" in pattern: "+e)}else{let s=r,o=Cu.fromString(s.text);this.lexer.inputStream=o;let l=this.lexer.nextToken();for(;l.type!==Q.EOF;)n.push(l),l=this.lexer.nextToken()}return n}split(e){let i=0,n=e.length,r=new Array,s=new Array,o=new Array;for(;io.length)throw new Error("unterminated tag in pattern: "+e);if(s.length=o[a])throw new Error("tag delimiters out of order in pattern: "+e);if(l===0){let a=e.substring(0,n);r.push(new rd(a))}if(l>0&&s[0]>0){let a=e.substring(0,s[0]);r.push(new rd(a))}for(let a=0;a=0&&(d=u.substring(0,h),c=u.substring(h+1,u.length)),r.push(new IH(d,c)),a+10){let a=o[l-1]+this.stop.length;if(a{if(this.exactOnly&&!s)return;let a=this.getDecisionDescription(e,i),u=this.getConflictingAlts(o,l),c=e.tokenStream?.getTextFromInterval(hn.of(n,r)),d=`reportAmbiguity d=${a}: ambigAlts=${u}, input='${c}'`;e.notifyErrorListeners(d,null,null)};reportAttemptingFullContext=(e,i,n,r,s,o)=>{let l=this.getDecisionDescription(e,i),a=e.tokenStream?.getTextFromInterval(hn.of(n,r)),u=`reportAttemptingFullContext d=${l}, input='${a}'`;e.notifyErrorListeners(u,null,null)};reportContextSensitivity=(e,i,n,r,s,o)=>{let l=this.getDecisionDescription(e,i),a=e.tokenStream?.getTextFromInterval(hn.of(n,r)),u=`reportContextSensitivity d=${l}, input='${a}'`;e.notifyErrorListeners(u,null,null)};getDecisionDescription=(e,i)=>{let n=i.decision,r=i.atnStartState.ruleIndex,s=e.ruleNames;if(r<0||r>=s.length)return n.toString();let o=s[r];return o.length===0?n.toString():`${n} (${o})`};getConflictingAlts=(e,i)=>{if(e)return e;let n=new Ko;for(let r=0;rnew Kl(u,c))),this.interpreter=new P1(this,l,y(this,Jp),y(this,u_))}get atn(){return y(this,Kp)}get grammarFileName(){return y(this,qp)}get ruleNames(){return y(this,Yp)}get channelNames(){return y(this,Zp)}get modeNames(){return y(this,Xp)}get vocabulary(){return y(this,Qp)}},qp=new WeakMap,Kp=new WeakMap,Yp=new WeakMap,Zp=new WeakMap,Xp=new WeakMap,Qp=new WeakMap,Jp=new WeakMap,u_=new WeakMap,N(O1,"LexerInterpreter"),O1);var R1,PH=(R1=class{instructionIndex;index;text;tokens;constructor(e,i,n,r){this.tokens=e,this.instructionIndex=n,this.index=i,this.text=r===void 0?"":r}execute(e){return this.index}toString(){return"'}},N(R1,"RewriteOperation"),R1),M1,jhe=(M1=class extends PH{constructor(e,i,n,r){super(e,i,n,r)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==Q.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"'}},N(M1,"InsertBeforeOp"),M1),k1,vUe=(k1=class extends jhe{constructor(e,i,n,r){super(e,i+1,n,r)}toString(){return"'}},N(k1,"InsertAfterOp"),k1),N1,bUe=(N1=class extends PH{lastIndex;constructor(e,i,n,r,s){super(e,i,r,s),this.lastIndex=n}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return this.text==null?"":"'}},N(N1,"ReplaceOp"),N1);var re=class re extends Yo{constructor(e){super(e),this.interpreter=new P1(this,re._ATN,re.decisionsToDFA,new O3)}get grammarFileName(){return"Portugol.g4"}get literalNames(){return re.literalNames}get symbolicNames(){return re.symbolicNames}get ruleNames(){return re.ruleNames}get serializedATN(){return re._serializedATN}get channelNames(){return re.channelNames}get modeNames(){return re.modeNames}action(e,i,n){switch(i){case 64:this.INT_action(e,n);break}}INT_action(e,i){switch(i){case 0:if(isNaN(parseInt(this.text)))throw new Error(`D\xEDgito inv\xE1lido: ${this.text}`);break}}static get _ATN(){return re.__ATN||(re.__ATN=new Iu().deserialize(re._serializedATN)),re.__ATN}get vocabulary(){return re.vocabulary}};re.ABRE_PARENTESES=1,re.FECHA_PARENTESES=2,re.ABRE_COLCHETES=3,re.FECHA_COLCHETES=4,re.ABRE_CHAVES=5,re.FECHA_CHAVES=6,re.TIPO=7,re.FACA=8,re.ENQUANTO=9,re.PARA=10,re.SE=11,re.SENAO=12,re.CONSTANTE=13,re.FUNCAO=14,re.PROGRAMA=15,re.ESCOLHA=16,re.CASO=17,re.CONTRARIO=18,re.PARE=19,re.RETORNE=20,re.INCLUA=21,re.BIBLIOTECA=22,re.OP_NAO=23,re.OP_E_LOGICO=24,re.OP_OU_LOGICO=25,re.OP_SUBTRACAO=26,re.OP_ADICAO=27,re.OP_MULTIPLICACAO=28,re.OP_DIVISAO=29,re.OP_MOD=30,re.OP_ATRIBUICAO=31,re.OP_IGUALDADE=32,re.OP_DIFERENCA=33,re.OP_MAIOR=34,re.OP_MENOR=35,re.OP_MENOR_IGUAL=36,re.OP_MAIOR_IGUAL=37,re.OP_INCREMENTO_UNARIO=38,re.OP_DECREMENTO_UNARIO=39,re.OP_SHIFT_LEFT=40,re.OP_SHIFT_RIGHT=41,re.OP_XOR=42,re.OP_OU_BITWISE=43,re.OP_NOT_BITWISE=44,re.OP_ALIAS_BIBLIOTECA=45,re.E_COMERCIAL=46,re.OP_MAIS_IGUAL=47,re.OP_MENOS_IGUAL=48,re.OP_MULTIPLICACAO_IGUAL=49,re.OP_DIVISAO_IGUAL=50,re.LOGICO=51,re.VERDADEIRO=52,re.FALSO=53,re.CARACTER=54,re.STRING=55,re.ID=56,re.REAL=57,re.INT=58,re.HEXADECIMAL=59,re.COMENTARIO=60,re.COMENTARIO_SIMPLES=61,re.WS=62,re.PONTO=63,re.VIRGULA=64,re.PONTOVIRGULA=65,re.DOISPONTOS=66,re.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],re.literalNames=[null,"'('","')'","'['","']'","'{'","'}'",null,"'faca'","'enquanto'","'para'","'se'","'senao'","'const'","'funcao'","'programa'","'escolha'","'caso'","'contrario'","'pare'","'retorne'","'inclua'","'biblioteca'","'nao'","'e'","'ou'","'-'","'+'","'*'","'/'","'%'","'='","'=='","'!='","'>'","'<'","'<='","'>='","'++'","'--'","'<<'","'>>'","'^'","'|'","'~'","'-->'","'&'","'+='","'-='","'*='","'/='",null,"'verdadeiro'","'falso'",null,null,null,null,null,null,null,null,null,"'.'","','","';'","':'"],re.symbolicNames=[null,"ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","STRING","ID","REAL","INT","HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],re.modeNames=["DEFAULT_MODE"],re.ruleNames=["ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","SEQ_ESC","ESC_OCTAL","ESC_UNICODE","ESC_CARACTER","DIGIT_HEX","STRING","ID","LETRA","REAL","DIGITO","INT","HEXADECIMAL","SIMBOLO_HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],re._serializedATN=[4,0,66,552,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,198,8,6,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,50,1,50,3,50,379,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,3,53,401,8,53,1,53,1,53,1,54,1,54,1,54,1,54,3,54,409,8,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,3,55,420,8,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,3,57,432,8,57,1,58,1,58,1,59,1,59,1,59,5,59,439,8,59,10,59,12,59,442,9,59,1,59,1,59,1,60,1,60,3,60,448,8,60,1,60,1,60,5,60,452,8,60,10,60,12,60,455,9,60,1,61,1,61,1,62,4,62,460,8,62,11,62,12,62,461,1,62,1,62,5,62,466,8,62,10,62,12,62,469,9,62,1,62,1,62,4,62,473,8,62,11,62,12,62,474,3,62,477,8,62,1,63,1,63,1,64,4,64,482,8,64,11,64,12,64,483,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,3,65,496,8,65,3,65,498,8,65,3,65,500,8,65,3,65,502,8,65,3,65,504,8,65,1,66,1,66,3,66,508,8,66,1,67,1,67,1,67,1,67,5,67,514,8,67,10,67,12,67,517,9,67,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,5,68,528,8,68,10,68,12,68,531,9,68,1,68,3,68,534,8,68,1,68,1,68,1,69,4,69,539,8,69,11,69,12,69,540,1,69,1,69,1,70,1,70,1,71,1,71,1,72,1,72,1,73,1,73,3,440,515,529,0,74,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,0,111,0,113,0,115,0,117,0,119,55,121,56,123,0,125,57,127,0,129,58,131,59,133,0,135,60,137,61,139,62,141,63,143,64,145,65,147,66,1,0,10,1,0,39,39,7,0,34,34,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57,65,70,97,102,2,0,48,57,95,95,2,0,65,90,97,122,1,0,48,57,2,0,88,88,120,120,2,0,65,70,97,102,1,1,10,10,3,0,9,10,13,13,32,32,574,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,125,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,1,149,1,0,0,0,3,151,1,0,0,0,5,153,1,0,0,0,7,155,1,0,0,0,9,157,1,0,0,0,11,159,1,0,0,0,13,197,1,0,0,0,15,199,1,0,0,0,17,204,1,0,0,0,19,213,1,0,0,0,21,218,1,0,0,0,23,221,1,0,0,0,25,227,1,0,0,0,27,233,1,0,0,0,29,240,1,0,0,0,31,249,1,0,0,0,33,257,1,0,0,0,35,262,1,0,0,0,37,272,1,0,0,0,39,277,1,0,0,0,41,285,1,0,0,0,43,292,1,0,0,0,45,303,1,0,0,0,47,307,1,0,0,0,49,309,1,0,0,0,51,312,1,0,0,0,53,314,1,0,0,0,55,316,1,0,0,0,57,318,1,0,0,0,59,320,1,0,0,0,61,322,1,0,0,0,63,324,1,0,0,0,65,327,1,0,0,0,67,330,1,0,0,0,69,332,1,0,0,0,71,334,1,0,0,0,73,337,1,0,0,0,75,340,1,0,0,0,77,343,1,0,0,0,79,346,1,0,0,0,81,349,1,0,0,0,83,352,1,0,0,0,85,354,1,0,0,0,87,356,1,0,0,0,89,358,1,0,0,0,91,362,1,0,0,0,93,364,1,0,0,0,95,367,1,0,0,0,97,370,1,0,0,0,99,373,1,0,0,0,101,378,1,0,0,0,103,380,1,0,0,0,105,391,1,0,0,0,107,397,1,0,0,0,109,408,1,0,0,0,111,419,1,0,0,0,113,421,1,0,0,0,115,431,1,0,0,0,117,433,1,0,0,0,119,435,1,0,0,0,121,447,1,0,0,0,123,456,1,0,0,0,125,476,1,0,0,0,127,478,1,0,0,0,129,481,1,0,0,0,131,487,1,0,0,0,133,507,1,0,0,0,135,509,1,0,0,0,137,523,1,0,0,0,139,538,1,0,0,0,141,544,1,0,0,0,143,546,1,0,0,0,145,548,1,0,0,0,147,550,1,0,0,0,149,150,5,40,0,0,150,2,1,0,0,0,151,152,5,41,0,0,152,4,1,0,0,0,153,154,5,91,0,0,154,6,1,0,0,0,155,156,5,93,0,0,156,8,1,0,0,0,157,158,5,123,0,0,158,10,1,0,0,0,159,160,5,125,0,0,160,12,1,0,0,0,161,162,5,114,0,0,162,163,5,101,0,0,163,164,5,97,0,0,164,198,5,108,0,0,165,166,5,105,0,0,166,167,5,110,0,0,167,168,5,116,0,0,168,169,5,101,0,0,169,170,5,105,0,0,170,171,5,114,0,0,171,198,5,111,0,0,172,173,5,118,0,0,173,174,5,97,0,0,174,175,5,122,0,0,175,176,5,105,0,0,176,198,5,111,0,0,177,178,5,108,0,0,178,179,5,111,0,0,179,180,5,103,0,0,180,181,5,105,0,0,181,182,5,99,0,0,182,198,5,111,0,0,183,184,5,99,0,0,184,185,5,97,0,0,185,186,5,100,0,0,186,187,5,101,0,0,187,188,5,105,0,0,188,198,5,97,0,0,189,190,5,99,0,0,190,191,5,97,0,0,191,192,5,114,0,0,192,193,5,97,0,0,193,194,5,99,0,0,194,195,5,116,0,0,195,196,5,101,0,0,196,198,5,114,0,0,197,161,1,0,0,0,197,165,1,0,0,0,197,172,1,0,0,0,197,177,1,0,0,0,197,183,1,0,0,0,197,189,1,0,0,0,198,14,1,0,0,0,199,200,5,102,0,0,200,201,5,97,0,0,201,202,5,99,0,0,202,203,5,97,0,0,203,16,1,0,0,0,204,205,5,101,0,0,205,206,5,110,0,0,206,207,5,113,0,0,207,208,5,117,0,0,208,209,5,97,0,0,209,210,5,110,0,0,210,211,5,116,0,0,211,212,5,111,0,0,212,18,1,0,0,0,213,214,5,112,0,0,214,215,5,97,0,0,215,216,5,114,0,0,216,217,5,97,0,0,217,20,1,0,0,0,218,219,5,115,0,0,219,220,5,101,0,0,220,22,1,0,0,0,221,222,5,115,0,0,222,223,5,101,0,0,223,224,5,110,0,0,224,225,5,97,0,0,225,226,5,111,0,0,226,24,1,0,0,0,227,228,5,99,0,0,228,229,5,111,0,0,229,230,5,110,0,0,230,231,5,115,0,0,231,232,5,116,0,0,232,26,1,0,0,0,233,234,5,102,0,0,234,235,5,117,0,0,235,236,5,110,0,0,236,237,5,99,0,0,237,238,5,97,0,0,238,239,5,111,0,0,239,28,1,0,0,0,240,241,5,112,0,0,241,242,5,114,0,0,242,243,5,111,0,0,243,244,5,103,0,0,244,245,5,114,0,0,245,246,5,97,0,0,246,247,5,109,0,0,247,248,5,97,0,0,248,30,1,0,0,0,249,250,5,101,0,0,250,251,5,115,0,0,251,252,5,99,0,0,252,253,5,111,0,0,253,254,5,108,0,0,254,255,5,104,0,0,255,256,5,97,0,0,256,32,1,0,0,0,257,258,5,99,0,0,258,259,5,97,0,0,259,260,5,115,0,0,260,261,5,111,0,0,261,34,1,0,0,0,262,263,5,99,0,0,263,264,5,111,0,0,264,265,5,110,0,0,265,266,5,116,0,0,266,267,5,114,0,0,267,268,5,97,0,0,268,269,5,114,0,0,269,270,5,105,0,0,270,271,5,111,0,0,271,36,1,0,0,0,272,273,5,112,0,0,273,274,5,97,0,0,274,275,5,114,0,0,275,276,5,101,0,0,276,38,1,0,0,0,277,278,5,114,0,0,278,279,5,101,0,0,279,280,5,116,0,0,280,281,5,111,0,0,281,282,5,114,0,0,282,283,5,110,0,0,283,284,5,101,0,0,284,40,1,0,0,0,285,286,5,105,0,0,286,287,5,110,0,0,287,288,5,99,0,0,288,289,5,108,0,0,289,290,5,117,0,0,290,291,5,97,0,0,291,42,1,0,0,0,292,293,5,98,0,0,293,294,5,105,0,0,294,295,5,98,0,0,295,296,5,108,0,0,296,297,5,105,0,0,297,298,5,111,0,0,298,299,5,116,0,0,299,300,5,101,0,0,300,301,5,99,0,0,301,302,5,97,0,0,302,44,1,0,0,0,303,304,5,110,0,0,304,305,5,97,0,0,305,306,5,111,0,0,306,46,1,0,0,0,307,308,5,101,0,0,308,48,1,0,0,0,309,310,5,111,0,0,310,311,5,117,0,0,311,50,1,0,0,0,312,313,5,45,0,0,313,52,1,0,0,0,314,315,5,43,0,0,315,54,1,0,0,0,316,317,5,42,0,0,317,56,1,0,0,0,318,319,5,47,0,0,319,58,1,0,0,0,320,321,5,37,0,0,321,60,1,0,0,0,322,323,5,61,0,0,323,62,1,0,0,0,324,325,5,61,0,0,325,326,5,61,0,0,326,64,1,0,0,0,327,328,5,33,0,0,328,329,5,61,0,0,329,66,1,0,0,0,330,331,5,62,0,0,331,68,1,0,0,0,332,333,5,60,0,0,333,70,1,0,0,0,334,335,5,60,0,0,335,336,5,61,0,0,336,72,1,0,0,0,337,338,5,62,0,0,338,339,5,61,0,0,339,74,1,0,0,0,340,341,5,43,0,0,341,342,5,43,0,0,342,76,1,0,0,0,343,344,5,45,0,0,344,345,5,45,0,0,345,78,1,0,0,0,346,347,5,60,0,0,347,348,5,60,0,0,348,80,1,0,0,0,349,350,5,62,0,0,350,351,5,62,0,0,351,82,1,0,0,0,352,353,5,94,0,0,353,84,1,0,0,0,354,355,5,124,0,0,355,86,1,0,0,0,356,357,5,126,0,0,357,88,1,0,0,0,358,359,5,45,0,0,359,360,5,45,0,0,360,361,5,62,0,0,361,90,1,0,0,0,362,363,5,38,0,0,363,92,1,0,0,0,364,365,5,43,0,0,365,366,5,61,0,0,366,94,1,0,0,0,367,368,5,45,0,0,368,369,5,61,0,0,369,96,1,0,0,0,370,371,5,42,0,0,371,372,5,61,0,0,372,98,1,0,0,0,373,374,5,47,0,0,374,375,5,61,0,0,375,100,1,0,0,0,376,379,3,103,51,0,377,379,3,105,52,0,378,376,1,0,0,0,378,377,1,0,0,0,379,102,1,0,0,0,380,381,5,118,0,0,381,382,5,101,0,0,382,383,5,114,0,0,383,384,5,100,0,0,384,385,5,97,0,0,385,386,5,100,0,0,386,387,5,101,0,0,387,388,5,105,0,0,388,389,5,114,0,0,389,390,5,111,0,0,390,104,1,0,0,0,391,392,5,102,0,0,392,393,5,97,0,0,393,394,5,108,0,0,394,395,5,115,0,0,395,396,5,111,0,0,396,106,1,0,0,0,397,400,5,39,0,0,398,401,3,115,57,0,399,401,8,0,0,0,400,398,1,0,0,0,400,399,1,0,0,0,401,402,1,0,0,0,402,403,5,39,0,0,403,108,1,0,0,0,404,405,5,92,0,0,405,409,7,1,0,0,406,409,3,113,56,0,407,409,3,111,55,0,408,404,1,0,0,0,408,406,1,0,0,0,408,407,1,0,0,0,409,110,1,0,0,0,410,411,5,92,0,0,411,412,2,48,51,0,412,413,2,48,55,0,413,420,2,48,55,0,414,415,5,92,0,0,415,416,2,48,55,0,416,420,2,48,55,0,417,418,5,92,0,0,418,420,2,48,55,0,419,410,1,0,0,0,419,414,1,0,0,0,419,417,1,0,0,0,420,112,1,0,0,0,421,422,5,92,0,0,422,423,5,117,0,0,423,424,3,117,58,0,424,425,3,117,58,0,425,426,3,117,58,0,426,427,3,117,58,0,427,114,1,0,0,0,428,432,3,109,54,0,429,430,5,92,0,0,430,432,5,39,0,0,431,428,1,0,0,0,431,429,1,0,0,0,432,116,1,0,0,0,433,434,7,2,0,0,434,118,1,0,0,0,435,440,5,34,0,0,436,439,3,109,54,0,437,439,9,0,0,0,438,436,1,0,0,0,438,437,1,0,0,0,439,442,1,0,0,0,440,441,1,0,0,0,440,438,1,0,0,0,441,443,1,0,0,0,442,440,1,0,0,0,443,444,5,34,0,0,444,120,1,0,0,0,445,448,3,123,61,0,446,448,5,95,0,0,447,445,1,0,0,0,447,446,1,0,0,0,448,453,1,0,0,0,449,452,3,123,61,0,450,452,7,3,0,0,451,449,1,0,0,0,451,450,1,0,0,0,452,455,1,0,0,0,453,451,1,0,0,0,453,454,1,0,0,0,454,122,1,0,0,0,455,453,1,0,0,0,456,457,7,4,0,0,457,124,1,0,0,0,458,460,3,127,63,0,459,458,1,0,0,0,460,461,1,0,0,0,461,459,1,0,0,0,461,462,1,0,0,0,462,463,1,0,0,0,463,467,5,46,0,0,464,466,3,127,63,0,465,464,1,0,0,0,466,469,1,0,0,0,467,465,1,0,0,0,467,468,1,0,0,0,468,477,1,0,0,0,469,467,1,0,0,0,470,472,5,46,0,0,471,473,3,127,63,0,472,471,1,0,0,0,473,474,1,0,0,0,474,472,1,0,0,0,474,475,1,0,0,0,475,477,1,0,0,0,476,459,1,0,0,0,476,470,1,0,0,0,477,126,1,0,0,0,478,479,7,5,0,0,479,128,1,0,0,0,480,482,3,127,63,0,481,480,1,0,0,0,482,483,1,0,0,0,483,481,1,0,0,0,483,484,1,0,0,0,484,485,1,0,0,0,485,486,6,64,0,0,486,130,1,0,0,0,487,488,5,48,0,0,488,489,7,6,0,0,489,503,3,133,66,0,490,501,3,133,66,0,491,499,3,133,66,0,492,497,3,133,66,0,493,495,3,133,66,0,494,496,3,133,66,0,495,494,1,0,0,0,495,496,1,0,0,0,496,498,1,0,0,0,497,493,1,0,0,0,497,498,1,0,0,0,498,500,1,0,0,0,499,492,1,0,0,0,499,500,1,0,0,0,500,502,1,0,0,0,501,491,1,0,0,0,501,502,1,0,0,0,502,504,1,0,0,0,503,490,1,0,0,0,503,504,1,0,0,0,504,132,1,0,0,0,505,508,3,127,63,0,506,508,7,7,0,0,507,505,1,0,0,0,507,506,1,0,0,0,508,134,1,0,0,0,509,510,5,47,0,0,510,511,5,42,0,0,511,515,1,0,0,0,512,514,9,0,0,0,513,512,1,0,0,0,514,517,1,0,0,0,515,516,1,0,0,0,515,513,1,0,0,0,516,518,1,0,0,0,517,515,1,0,0,0,518,519,5,42,0,0,519,520,5,47,0,0,520,521,1,0,0,0,521,522,6,67,1,0,522,136,1,0,0,0,523,524,5,47,0,0,524,525,5,47,0,0,525,529,1,0,0,0,526,528,9,0,0,0,527,526,1,0,0,0,528,531,1,0,0,0,529,530,1,0,0,0,529,527,1,0,0,0,530,533,1,0,0,0,531,529,1,0,0,0,532,534,7,8,0,0,533,532,1,0,0,0,534,535,1,0,0,0,535,536,6,68,1,0,536,138,1,0,0,0,537,539,7,9,0,0,538,537,1,0,0,0,539,540,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,542,1,0,0,0,542,543,6,69,1,0,543,140,1,0,0,0,544,545,5,46,0,0,545,142,1,0,0,0,546,547,5,44,0,0,547,144,1,0,0,0,548,549,5,59,0,0,549,146,1,0,0,0,550,551,5,58,0,0,551,148,1,0,0,0,27,0,197,378,400,408,419,431,438,440,447,451,453,461,467,474,476,483,495,497,499,501,503,507,515,529,533,540,2,1,64,0,0,1,0],re.vocabulary=new Ys(re.literalNames,re.symbolicNames,[]),re.decisionsToDFA=re._ATN.decisionToState.map((e,i)=>new Kl(e,i));var V1=re;var g=class g extends tx{get grammarFileName(){return"Portugol.g4"}get literalNames(){return g.literalNames}get symbolicNames(){return g.symbolicNames}get ruleNames(){return g.ruleNames}get serializedATN(){return g._serializedATN}createFailedPredicateException(e,i){return new Mp(this,e,i)}constructor(e){super(e),this.interpreter=new e6(this,g._ATN,g.decisionsToDFA,new O3)}arquivo(){let e=new h_(this.context,this.state);this.enterRule(e,0,g.RULE_arquivo);let i;try{this.enterOuterAlt(e,1);{for(this.state=76,this.match(g.PROGRAMA),this.state=77,this.match(g.ABRE_CHAVES),this.state=81,this.errorHandler.sync(this),i=this.tokenStream.LA(1);i===21;)this.state=78,this.inclusaoBiblioteca(),this.state=83,this.errorHandler.sync(this),i=this.tokenStream.LA(1);for(this.state=88,this.errorHandler.sync(this),i=this.tokenStream.LA(1);!(i&-32)&&1<'","'<'","'<='","'>='","'++'","'--'","'<<'","'>>'","'^'","'|'","'~'","'-->'","'&'","'+='","'-='","'*='","'/='",null,"'verdadeiro'","'falso'",null,null,null,null,null,null,null,null,null,"'.'","','","';'","':'"],g.symbolicNames=[null,"ABRE_PARENTESES","FECHA_PARENTESES","ABRE_COLCHETES","FECHA_COLCHETES","ABRE_CHAVES","FECHA_CHAVES","TIPO","FACA","ENQUANTO","PARA","SE","SENAO","CONSTANTE","FUNCAO","PROGRAMA","ESCOLHA","CASO","CONTRARIO","PARE","RETORNE","INCLUA","BIBLIOTECA","OP_NAO","OP_E_LOGICO","OP_OU_LOGICO","OP_SUBTRACAO","OP_ADICAO","OP_MULTIPLICACAO","OP_DIVISAO","OP_MOD","OP_ATRIBUICAO","OP_IGUALDADE","OP_DIFERENCA","OP_MAIOR","OP_MENOR","OP_MENOR_IGUAL","OP_MAIOR_IGUAL","OP_INCREMENTO_UNARIO","OP_DECREMENTO_UNARIO","OP_SHIFT_LEFT","OP_SHIFT_RIGHT","OP_XOR","OP_OU_BITWISE","OP_NOT_BITWISE","OP_ALIAS_BIBLIOTECA","E_COMERCIAL","OP_MAIS_IGUAL","OP_MENOS_IGUAL","OP_MULTIPLICACAO_IGUAL","OP_DIVISAO_IGUAL","LOGICO","VERDADEIRO","FALSO","CARACTER","STRING","ID","REAL","INT","HEXADECIMAL","COMENTARIO","COMENTARIO_SIMPLES","WS","PONTO","VIRGULA","PONTOVIRGULA","DOISPONTOS"],g.ruleNames=["arquivo","inclusaoBiblioteca","listaDeclaracoes","declaracao","declaracaoVariavel","declaracaoMatriz","inicializacaoMatriz","linhaMatriz","colunaMatriz","declaracaoArray","inicializacaoArray","tamanhoArray","declaracaoFuncao","parametroFuncao","listaParametros","parametro","parametroArray","parametroMatriz","comando","atribuicao","atribuicaoComposta","retorne","se","senao","enquanto","facaEnquanto","para","listaComandos","inicializacaoPara","condicao","incrementoPara","escolha","caso","pare","indiceArray","expressao","listaExpressoes","escopoBiblioteca"],g._serializedATN=[4,1,66,515,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,1,0,1,0,1,0,5,0,80,8,0,10,0,12,0,83,9,0,1,0,1,0,5,0,87,8,0,10,0,12,0,90,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,3,1,99,8,1,1,2,3,2,102,8,2,1,2,1,2,1,2,1,2,5,2,108,8,2,10,2,12,2,111,9,2,1,3,1,3,1,3,3,3,116,8,3,1,4,1,4,1,4,3,4,121,8,4,1,5,1,5,1,5,3,5,126,8,5,1,5,1,5,1,5,3,5,131,8,5,1,5,1,5,1,5,3,5,136,8,5,1,6,1,6,1,6,1,6,5,6,142,8,6,10,6,12,6,145,9,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,3,9,156,8,9,1,9,1,9,1,9,3,9,161,8,9,1,10,1,10,3,10,165,8,10,1,10,1,10,1,11,1,11,1,12,1,12,3,12,173,8,12,1,12,1,12,1,12,1,12,5,12,179,8,12,10,12,12,12,182,9,12,1,12,1,12,1,13,1,13,3,13,188,8,13,1,13,1,13,1,14,1,14,1,14,5,14,195,8,14,10,14,12,14,198,9,14,1,15,1,15,3,15,202,8,15,1,15,1,15,1,15,3,15,207,8,15,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,228,8,18,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20,250,8,20,1,21,1,21,3,21,254,8,21,1,22,1,22,1,22,1,22,1,22,1,22,3,22,262,8,22,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,3,26,283,8,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,5,27,294,8,27,10,27,12,27,297,9,27,1,27,1,27,3,27,301,8,27,1,28,1,28,1,28,3,28,306,8,28,1,29,1,29,1,30,1,30,1,30,3,30,313,8,30,1,31,1,31,1,31,1,31,1,31,1,31,5,31,321,8,31,10,31,12,31,324,9,31,1,31,1,31,1,32,1,32,1,32,3,32,331,8,32,1,32,1,32,5,32,335,8,32,10,32,12,32,338,9,32,1,32,1,32,5,32,342,8,32,10,32,12,32,345,9,32,1,32,3,32,348,8,32,1,32,3,32,351,8,32,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,3,35,361,8,35,1,35,1,35,1,35,3,35,366,8,35,1,35,1,35,3,35,370,8,35,1,35,1,35,1,35,3,35,375,8,35,1,35,1,35,1,35,3,35,380,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,393,8,35,3,35,395,8,35,1,35,1,35,1,35,1,35,3,35,401,8,35,3,35,403,8,35,1,35,1,35,1,35,1,35,1,35,3,35,410,8,35,3,35,412,8,35,1,35,1,35,1,35,1,35,3,35,418,8,35,3,35,420,8,35,1,35,3,35,423,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,435,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,5,35,491,8,35,10,35,12,35,494,9,35,1,36,1,36,1,36,3,36,499,8,36,1,36,1,36,1,36,1,36,3,36,505,8,36,5,36,507,8,36,10,36,12,36,510,9,36,1,37,1,37,1,37,1,37,0,1,70,38,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,0,1,1,0,58,59,581,0,76,1,0,0,0,2,93,1,0,0,0,4,101,1,0,0,0,6,115,1,0,0,0,8,117,1,0,0,0,10,122,1,0,0,0,12,137,1,0,0,0,14,148,1,0,0,0,16,150,1,0,0,0,18,152,1,0,0,0,20,162,1,0,0,0,22,168,1,0,0,0,24,170,1,0,0,0,26,185,1,0,0,0,28,191,1,0,0,0,30,199,1,0,0,0,32,208,1,0,0,0,34,211,1,0,0,0,36,227,1,0,0,0,38,229,1,0,0,0,40,249,1,0,0,0,42,251,1,0,0,0,44,255,1,0,0,0,46,263,1,0,0,0,48,266,1,0,0,0,50,272,1,0,0,0,52,279,1,0,0,0,54,300,1,0,0,0,56,305,1,0,0,0,58,307,1,0,0,0,60,312,1,0,0,0,62,314,1,0,0,0,64,327,1,0,0,0,66,352,1,0,0,0,68,354,1,0,0,0,70,434,1,0,0,0,72,498,1,0,0,0,74,511,1,0,0,0,76,77,5,15,0,0,77,81,5,5,0,0,78,80,3,2,1,0,79,78,1,0,0,0,80,83,1,0,0,0,81,79,1,0,0,0,81,82,1,0,0,0,82,88,1,0,0,0,83,81,1,0,0,0,84,87,3,24,12,0,85,87,3,4,2,0,86,84,1,0,0,0,86,85,1,0,0,0,87,90,1,0,0,0,88,86,1,0,0,0,88,89,1,0,0,0,89,91,1,0,0,0,90,88,1,0,0,0,91,92,5,6,0,0,92,1,1,0,0,0,93,94,5,21,0,0,94,95,5,22,0,0,95,98,5,56,0,0,96,97,5,45,0,0,97,99,5,56,0,0,98,96,1,0,0,0,98,99,1,0,0,0,99,3,1,0,0,0,100,102,5,13,0,0,101,100,1,0,0,0,101,102,1,0,0,0,102,103,1,0,0,0,103,104,5,7,0,0,104,109,3,6,3,0,105,106,5,64,0,0,106,108,3,6,3,0,107,105,1,0,0,0,108,111,1,0,0,0,109,107,1,0,0,0,109,110,1,0,0,0,110,5,1,0,0,0,111,109,1,0,0,0,112,116,3,8,4,0,113,116,3,18,9,0,114,116,3,10,5,0,115,112,1,0,0,0,115,113,1,0,0,0,115,114,1,0,0,0,116,7,1,0,0,0,117,120,5,56,0,0,118,119,5,31,0,0,119,121,3,70,35,0,120,118,1,0,0,0,120,121,1,0,0,0,121,9,1,0,0,0,122,123,5,56,0,0,123,125,5,3,0,0,124,126,3,14,7,0,125,124,1,0,0,0,125,126,1,0,0,0,126,127,1,0,0,0,127,128,5,4,0,0,128,130,5,3,0,0,129,131,3,16,8,0,130,129,1,0,0,0,130,131,1,0,0,0,131,132,1,0,0,0,132,135,5,4,0,0,133,134,5,31,0,0,134,136,3,12,6,0,135,133,1,0,0,0,135,136,1,0,0,0,136,11,1,0,0,0,137,138,5,5,0,0,138,143,3,20,10,0,139,140,5,64,0,0,140,142,3,20,10,0,141,139,1,0,0,0,142,145,1,0,0,0,143,141,1,0,0,0,143,144,1,0,0,0,144,146,1,0,0,0,145,143,1,0,0,0,146,147,5,6,0,0,147,13,1,0,0,0,148,149,3,22,11,0,149,15,1,0,0,0,150,151,3,22,11,0,151,17,1,0,0,0,152,153,5,56,0,0,153,155,5,3,0,0,154,156,3,22,11,0,155,154,1,0,0,0,155,156,1,0,0,0,156,157,1,0,0,0,157,160,5,4,0,0,158,159,5,31,0,0,159,161,3,20,10,0,160,158,1,0,0,0,160,161,1,0,0,0,161,19,1,0,0,0,162,164,5,5,0,0,163,165,3,72,36,0,164,163,1,0,0,0,164,165,1,0,0,0,165,166,1,0,0,0,166,167,5,6,0,0,167,21,1,0,0,0,168,169,3,70,35,0,169,23,1,0,0,0,170,172,5,14,0,0,171,173,5,7,0,0,172,171,1,0,0,0,172,173,1,0,0,0,173,174,1,0,0,0,174,175,5,56,0,0,175,176,3,26,13,0,176,180,5,5,0,0,177,179,3,36,18,0,178,177,1,0,0,0,179,182,1,0,0,0,180,178,1,0,0,0,180,181,1,0,0,0,181,183,1,0,0,0,182,180,1,0,0,0,183,184,5,6,0,0,184,25,1,0,0,0,185,187,5,1,0,0,186,188,3,28,14,0,187,186,1,0,0,0,187,188,1,0,0,0,188,189,1,0,0,0,189,190,5,2,0,0,190,27,1,0,0,0,191,196,3,30,15,0,192,193,5,64,0,0,193,195,3,30,15,0,194,192,1,0,0,0,195,198,1,0,0,0,196,194,1,0,0,0,196,197,1,0,0,0,197,29,1,0,0,0,198,196,1,0,0,0,199,201,5,7,0,0,200,202,5,46,0,0,201,200,1,0,0,0,201,202,1,0,0,0,202,203,1,0,0,0,203,206,5,56,0,0,204,207,3,32,16,0,205,207,3,34,17,0,206,204,1,0,0,0,206,205,1,0,0,0,206,207,1,0,0,0,207,31,1,0,0,0,208,209,5,3,0,0,209,210,5,4,0,0,210,33,1,0,0,0,211,212,5,3,0,0,212,213,5,4,0,0,213,214,5,3,0,0,214,215,5,4,0,0,215,35,1,0,0,0,216,228,3,4,2,0,217,228,3,44,22,0,218,228,3,48,24,0,219,228,3,50,25,0,220,228,3,52,26,0,221,228,3,62,31,0,222,228,3,42,21,0,223,228,3,66,33,0,224,228,3,38,19,0,225,228,3,40,20,0,226,228,3,70,35,0,227,216,1,0,0,0,227,217,1,0,0,0,227,218,1,0,0,0,227,219,1,0,0,0,227,220,1,0,0,0,227,221,1,0,0,0,227,222,1,0,0,0,227,223,1,0,0,0,227,224,1,0,0,0,227,225,1,0,0,0,227,226,1,0,0,0,228,37,1,0,0,0,229,230,3,70,35,0,230,231,5,31,0,0,231,232,3,70,35,0,232,39,1,0,0,0,233,234,3,70,35,0,234,235,5,47,0,0,235,236,3,70,35,0,236,250,1,0,0,0,237,238,3,70,35,0,238,239,5,48,0,0,239,240,3,70,35,0,240,250,1,0,0,0,241,242,3,70,35,0,242,243,5,49,0,0,243,244,3,70,35,0,244,250,1,0,0,0,245,246,3,70,35,0,246,247,5,50,0,0,247,248,3,70,35,0,248,250,1,0,0,0,249,233,1,0,0,0,249,237,1,0,0,0,249,241,1,0,0,0,249,245,1,0,0,0,250,41,1,0,0,0,251,253,5,20,0,0,252,254,3,70,35,0,253,252,1,0,0,0,253,254,1,0,0,0,254,43,1,0,0,0,255,256,5,11,0,0,256,257,5,1,0,0,257,258,3,70,35,0,258,259,5,2,0,0,259,261,3,54,27,0,260,262,3,46,23,0,261,260,1,0,0,0,261,262,1,0,0,0,262,45,1,0,0,0,263,264,5,12,0,0,264,265,3,54,27,0,265,47,1,0,0,0,266,267,5,9,0,0,267,268,5,1,0,0,268,269,3,70,35,0,269,270,5,2,0,0,270,271,3,54,27,0,271,49,1,0,0,0,272,273,5,8,0,0,273,274,3,54,27,0,274,275,5,9,0,0,275,276,5,1,0,0,276,277,3,70,35,0,277,278,5,2,0,0,278,51,1,0,0,0,279,280,5,10,0,0,280,282,5,1,0,0,281,283,3,56,28,0,282,281,1,0,0,0,282,283,1,0,0,0,283,284,1,0,0,0,284,285,5,65,0,0,285,286,3,58,29,0,286,287,5,65,0,0,287,288,3,60,30,0,288,289,5,2,0,0,289,290,3,54,27,0,290,53,1,0,0,0,291,295,5,5,0,0,292,294,3,36,18,0,293,292,1,0,0,0,294,297,1,0,0,0,295,293,1,0,0,0,295,296,1,0,0,0,296,298,1,0,0,0,297,295,1,0,0,0,298,301,5,6,0,0,299,301,3,36,18,0,300,291,1,0,0,0,300,299,1,0,0,0,301,55,1,0,0,0,302,306,3,38,19,0,303,306,3,4,2,0,304,306,5,56,0,0,305,302,1,0,0,0,305,303,1,0,0,0,305,304,1,0,0,0,306,57,1,0,0,0,307,308,3,70,35,0,308,59,1,0,0,0,309,313,3,70,35,0,310,313,3,40,20,0,311,313,3,38,19,0,312,309,1,0,0,0,312,310,1,0,0,0,312,311,1,0,0,0,313,61,1,0,0,0,314,315,5,16,0,0,315,316,5,1,0,0,316,317,3,70,35,0,317,318,5,2,0,0,318,322,5,5,0,0,319,321,3,64,32,0,320,319,1,0,0,0,321,324,1,0,0,0,322,320,1,0,0,0,322,323,1,0,0,0,323,325,1,0,0,0,324,322,1,0,0,0,325,326,5,6,0,0,326,63,1,0,0,0,327,330,5,17,0,0,328,331,5,18,0,0,329,331,3,70,35,0,330,328,1,0,0,0,330,329,1,0,0,0,331,332,1,0,0,0,332,347,5,66,0,0,333,335,3,36,18,0,334,333,1,0,0,0,335,338,1,0,0,0,336,334,1,0,0,0,336,337,1,0,0,0,337,348,1,0,0,0,338,336,1,0,0,0,339,343,5,5,0,0,340,342,3,36,18,0,341,340,1,0,0,0,342,345,1,0,0,0,343,341,1,0,0,0,343,344,1,0,0,0,344,346,1,0,0,0,345,343,1,0,0,0,346,348,5,6,0,0,347,336,1,0,0,0,347,339,1,0,0,0,348,350,1,0,0,0,349,351,3,66,33,0,350,349,1,0,0,0,350,351,1,0,0,0,351,65,1,0,0,0,352,353,5,19,0,0,353,67,1,0,0,0,354,355,5,3,0,0,355,356,3,70,35,0,356,357,5,4,0,0,357,69,1,0,0,0,358,360,6,35,-1,0,359,361,3,74,37,0,360,359,1,0,0,0,360,361,1,0,0,0,361,362,1,0,0,0,362,363,5,56,0,0,363,365,5,1,0,0,364,366,3,72,36,0,365,364,1,0,0,0,365,366,1,0,0,0,366,367,1,0,0,0,367,435,5,2,0,0,368,370,3,74,37,0,369,368,1,0,0,0,369,370,1,0,0,0,370,371,1,0,0,0,371,372,5,56,0,0,372,435,3,68,34,0,373,375,3,74,37,0,374,373,1,0,0,0,374,375,1,0,0,0,375,376,1,0,0,0,376,377,5,56,0,0,377,379,3,68,34,0,378,380,3,68,34,0,379,378,1,0,0,0,379,380,1,0,0,0,380,435,1,0,0,0,381,382,5,26,0,0,382,435,3,70,35,33,383,384,5,27,0,0,384,435,3,70,35,32,385,386,5,23,0,0,386,435,3,70,35,31,387,388,5,44,0,0,388,435,3,70,35,30,389,394,5,56,0,0,390,392,3,68,34,0,391,393,3,68,34,0,392,391,1,0,0,0,392,393,1,0,0,0,393,395,1,0,0,0,394,390,1,0,0,0,394,395,1,0,0,0,395,396,1,0,0,0,396,435,5,38,0,0,397,402,5,56,0,0,398,400,3,68,34,0,399,401,3,68,34,0,400,399,1,0,0,0,400,401,1,0,0,0,401,403,1,0,0,0,402,398,1,0,0,0,402,403,1,0,0,0,403,404,1,0,0,0,404,435,5,39,0,0,405,406,5,38,0,0,406,411,5,56,0,0,407,409,3,68,34,0,408,410,3,68,34,0,409,408,1,0,0,0,409,410,1,0,0,0,410,412,1,0,0,0,411,407,1,0,0,0,411,412,1,0,0,0,412,435,1,0,0,0,413,414,5,39,0,0,414,419,5,56,0,0,415,417,3,68,34,0,416,418,3,68,34,0,417,416,1,0,0,0,417,418,1,0,0,0,418,420,1,0,0,0,419,415,1,0,0,0,419,420,1,0,0,0,420,435,1,0,0,0,421,423,3,74,37,0,422,421,1,0,0,0,422,423,1,0,0,0,423,424,1,0,0,0,424,435,5,56,0,0,425,435,7,0,0,0,426,435,5,57,0,0,427,435,5,51,0,0,428,435,5,54,0,0,429,435,5,55,0,0,430,431,5,1,0,0,431,432,3,70,35,0,432,433,5,2,0,0,433,435,1,0,0,0,434,358,1,0,0,0,434,369,1,0,0,0,434,374,1,0,0,0,434,381,1,0,0,0,434,383,1,0,0,0,434,385,1,0,0,0,434,387,1,0,0,0,434,389,1,0,0,0,434,397,1,0,0,0,434,405,1,0,0,0,434,413,1,0,0,0,434,422,1,0,0,0,434,425,1,0,0,0,434,426,1,0,0,0,434,427,1,0,0,0,434,428,1,0,0,0,434,429,1,0,0,0,434,430,1,0,0,0,435,492,1,0,0,0,436,437,10,25,0,0,437,438,5,28,0,0,438,491,3,70,35,26,439,440,10,24,0,0,440,441,5,29,0,0,441,491,3,70,35,25,442,443,10,23,0,0,443,444,5,30,0,0,444,491,3,70,35,24,445,446,10,22,0,0,446,447,5,27,0,0,447,491,3,70,35,23,448,449,10,21,0,0,449,450,5,26,0,0,450,491,3,70,35,22,451,452,10,20,0,0,452,453,5,32,0,0,453,491,3,70,35,21,454,455,10,19,0,0,455,456,5,33,0,0,456,491,3,70,35,20,457,458,10,18,0,0,458,459,5,34,0,0,459,491,3,70,35,19,460,461,10,17,0,0,461,462,5,35,0,0,462,491,3,70,35,18,463,464,10,16,0,0,464,465,5,36,0,0,465,491,3,70,35,17,466,467,10,15,0,0,467,468,5,37,0,0,468,491,3,70,35,16,469,470,10,14,0,0,470,471,5,24,0,0,471,491,3,70,35,15,472,473,10,13,0,0,473,474,5,25,0,0,474,491,3,70,35,14,475,476,10,12,0,0,476,477,5,42,0,0,477,491,3,70,35,13,478,479,10,11,0,0,479,480,5,40,0,0,480,491,3,70,35,12,481,482,10,10,0,0,482,483,5,41,0,0,483,491,3,70,35,11,484,485,10,9,0,0,485,486,5,46,0,0,486,491,3,70,35,10,487,488,10,8,0,0,488,489,5,43,0,0,489,491,3,70,35,9,490,436,1,0,0,0,490,439,1,0,0,0,490,442,1,0,0,0,490,445,1,0,0,0,490,448,1,0,0,0,490,451,1,0,0,0,490,454,1,0,0,0,490,457,1,0,0,0,490,460,1,0,0,0,490,463,1,0,0,0,490,466,1,0,0,0,490,469,1,0,0,0,490,472,1,0,0,0,490,475,1,0,0,0,490,478,1,0,0,0,490,481,1,0,0,0,490,484,1,0,0,0,490,487,1,0,0,0,491,494,1,0,0,0,492,490,1,0,0,0,492,493,1,0,0,0,493,71,1,0,0,0,494,492,1,0,0,0,495,499,3,70,35,0,496,499,3,40,20,0,497,499,3,38,19,0,498,495,1,0,0,0,498,496,1,0,0,0,498,497,1,0,0,0,499,508,1,0,0,0,500,504,5,64,0,0,501,505,3,70,35,0,502,505,3,40,20,0,503,505,3,38,19,0,504,501,1,0,0,0,504,502,1,0,0,0,504,503,1,0,0,0,505,507,1,0,0,0,506,500,1,0,0,0,507,510,1,0,0,0,508,506,1,0,0,0,508,509,1,0,0,0,509,73,1,0,0,0,510,508,1,0,0,0,511,512,5,56,0,0,512,513,5,63,0,0,513,75,1,0,0,0,56,81,86,88,98,101,109,115,120,125,130,135,143,155,160,164,172,180,187,196,201,206,227,249,253,261,282,295,300,305,312,322,330,336,343,347,350,360,365,369,374,379,392,394,400,402,409,411,417,419,422,434,490,492,498,504,508],g.vocabulary=new Ys(g.literalNames,g.symbolicNames,[]),g.decisionsToDFA=g._ATN.decisionToState.map((e,i)=>new Kl(e,i));var O=g,h_=class extends Ke{constructor(e,i){super(e,i)}PROGRAMA(){return this.getToken(O.PROGRAMA,0)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}inclusaoBiblioteca(e){return e===void 0?this.getRuleContexts(B1):this.getRuleContext(e,B1)}declaracaoFuncao(e){return e===void 0?this.getRuleContexts(j1):this.getRuleContext(e,j1)}listaDeclaracoes(e){return e===void 0?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}get ruleIndex(){return O.RULE_arquivo}enterRule(e){e.enterArquivo&&e.enterArquivo(this)}exitRule(e){e.exitArquivo&&e.exitArquivo(this)}accept(e){return e.visitArquivo?e.visitArquivo(this):e.visitChildren(this)}},B1=class extends Ke{constructor(e,i){super(e,i)}INCLUA(){return this.getToken(O.INCLUA,0)}BIBLIOTECA(){return this.getToken(O.BIBLIOTECA,0)}ID(e){return e===void 0?this.getTokens(O.ID):this.getToken(O.ID,e)}OP_ALIAS_BIBLIOTECA(){return this.getToken(O.OP_ALIAS_BIBLIOTECA,0)}get ruleIndex(){return O.RULE_inclusaoBiblioteca}enterRule(e){e.enterInclusaoBiblioteca&&e.enterInclusaoBiblioteca(this)}exitRule(e){e.exitInclusaoBiblioteca&&e.exitInclusaoBiblioteca(this)}accept(e){return e.visitInclusaoBiblioteca?e.visitInclusaoBiblioteca(this):e.visitChildren(this)}},Zo=class extends Ke{constructor(e,i){super(e,i)}TIPO(){return this.getToken(O.TIPO,0)}declaracao(e){return e===void 0?this.getRuleContexts(U1):this.getRuleContext(e,U1)}CONSTANTE(){return this.getToken(O.CONSTANTE,0)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaDeclaracoes}enterRule(e){e.enterListaDeclaracoes&&e.enterListaDeclaracoes(this)}exitRule(e){e.exitListaDeclaracoes&&e.exitListaDeclaracoes(this)}accept(e){return e.visitListaDeclaracoes?e.visitListaDeclaracoes(this):e.visitChildren(this)}},U1=class extends Ke{constructor(e,i){super(e,i)}declaracaoVariavel(){return this.getRuleContext(0,n6)}declaracaoArray(){return this.getRuleContext(0,l6)}declaracaoMatriz(){return this.getRuleContext(0,i6)}get ruleIndex(){return O.RULE_declaracao}enterRule(e){e.enterDeclaracao&&e.enterDeclaracao(this)}exitRule(e){e.exitDeclaracao&&e.exitDeclaracao(this)}accept(e){return e.visitDeclaracao?e.visitDeclaracao(this):e.visitChildren(this)}},n6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_declaracaoVariavel}enterRule(e){e.enterDeclaracaoVariavel&&e.enterDeclaracaoVariavel(this)}exitRule(e){e.exitDeclaracaoVariavel&&e.exitDeclaracaoVariavel(this)}accept(e){return e.visitDeclaracaoVariavel?e.visitDeclaracaoVariavel(this):e.visitChildren(this)}},i6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}ABRE_COLCHETES(e){return e===void 0?this.getTokens(O.ABRE_COLCHETES):this.getToken(O.ABRE_COLCHETES,e)}FECHA_COLCHETES(e){return e===void 0?this.getTokens(O.FECHA_COLCHETES):this.getToken(O.FECHA_COLCHETES,e)}linhaMatriz(){return this.getRuleContext(0,s6)}colunaMatriz(){return this.getRuleContext(0,o6)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}inicializacaoMatriz(){return this.getRuleContext(0,r6)}get ruleIndex(){return O.RULE_declaracaoMatriz}enterRule(e){e.enterDeclaracaoMatriz&&e.enterDeclaracaoMatriz(this)}exitRule(e){e.exitDeclaracaoMatriz&&e.exitDeclaracaoMatriz(this)}accept(e){return e.visitDeclaracaoMatriz?e.visitDeclaracaoMatriz(this):e.visitChildren(this)}},r6=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}inicializacaoArray(e){return e===void 0?this.getRuleContexts(Yl):this.getRuleContext(e,Yl)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_inicializacaoMatriz}enterRule(e){e.enterInicializacaoMatriz&&e.enterInicializacaoMatriz(this)}exitRule(e){e.exitInicializacaoMatriz&&e.exitInicializacaoMatriz(this)}accept(e){return e.visitInicializacaoMatriz?e.visitInicializacaoMatriz(this):e.visitChildren(this)}},s6=class extends Ke{constructor(e,i){super(e,i)}tamanhoArray(){return this.getRuleContext(0,R3)}get ruleIndex(){return O.RULE_linhaMatriz}enterRule(e){e.enterLinhaMatriz&&e.enterLinhaMatriz(this)}exitRule(e){e.exitLinhaMatriz&&e.exitLinhaMatriz(this)}accept(e){return e.visitLinhaMatriz?e.visitLinhaMatriz(this):e.visitChildren(this)}},o6=class extends Ke{constructor(e,i){super(e,i)}tamanhoArray(){return this.getRuleContext(0,R3)}get ruleIndex(){return O.RULE_colunaMatriz}enterRule(e){e.enterColunaMatriz&&e.enterColunaMatriz(this)}exitRule(e){e.exitColunaMatriz&&e.exitColunaMatriz(this)}accept(e){return e.visitColunaMatriz?e.visitColunaMatriz(this):e.visitChildren(this)}},l6=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}tamanhoArray(){return this.getRuleContext(0,R3)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}inicializacaoArray(){return this.getRuleContext(0,Yl)}get ruleIndex(){return O.RULE_declaracaoArray}enterRule(e){e.enterDeclaracaoArray&&e.enterDeclaracaoArray(this)}exitRule(e){e.exitDeclaracaoArray&&e.exitDeclaracaoArray(this)}accept(e){return e.visitDeclaracaoArray?e.visitDeclaracaoArray(this):e.visitChildren(this)}},Yl=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}listaExpressoes(){return this.getRuleContext(0,c4)}get ruleIndex(){return O.RULE_inicializacaoArray}enterRule(e){e.enterInicializacaoArray&&e.enterInicializacaoArray(this)}exitRule(e){e.exitInicializacaoArray&&e.exitInicializacaoArray(this)}accept(e){return e.visitInicializacaoArray?e.visitInicializacaoArray(this):e.visitChildren(this)}},R3=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_tamanhoArray}enterRule(e){e.enterTamanhoArray&&e.enterTamanhoArray(this)}exitRule(e){e.exitTamanhoArray&&e.exitTamanhoArray(this)}accept(e){return e.visitTamanhoArray?e.visitTamanhoArray(this):e.visitChildren(this)}},j1=class extends Ke{constructor(e,i){super(e,i)}FUNCAO(){return this.getToken(O.FUNCAO,0)}ID(){return this.getToken(O.ID,0)}parametroFuncao(){return this.getRuleContext(0,a6)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}TIPO(){return this.getToken(O.TIPO,0)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_declaracaoFuncao}enterRule(e){e.enterDeclaracaoFuncao&&e.enterDeclaracaoFuncao(this)}exitRule(e){e.exitDeclaracaoFuncao&&e.exitDeclaracaoFuncao(this)}accept(e){return e.visitDeclaracaoFuncao?e.visitDeclaracaoFuncao(this):e.visitChildren(this)}},a6=class extends Ke{constructor(e,i){super(e,i)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaParametros(){return this.getRuleContext(0,u6)}get ruleIndex(){return O.RULE_parametroFuncao}enterRule(e){e.enterParametroFuncao&&e.enterParametroFuncao(this)}exitRule(e){e.exitParametroFuncao&&e.exitParametroFuncao(this)}accept(e){return e.visitParametroFuncao?e.visitParametroFuncao(this):e.visitChildren(this)}},u6=class extends Ke{constructor(e,i){super(e,i)}parametro(e){return e===void 0?this.getRuleContexts(H1):this.getRuleContext(e,H1)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaParametros}enterRule(e){e.enterListaParametros&&e.enterListaParametros(this)}exitRule(e){e.exitListaParametros&&e.exitListaParametros(this)}accept(e){return e.visitListaParametros?e.visitListaParametros(this):e.visitChildren(this)}},H1=class extends Ke{constructor(e,i){super(e,i)}TIPO(){return this.getToken(O.TIPO,0)}ID(){return this.getToken(O.ID,0)}E_COMERCIAL(){return this.getToken(O.E_COMERCIAL,0)}parametroArray(){return this.getRuleContext(0,z1)}parametroMatriz(){return this.getRuleContext(0,$1)}get ruleIndex(){return O.RULE_parametro}enterRule(e){e.enterParametro&&e.enterParametro(this)}exitRule(e){e.exitParametro&&e.exitParametro(this)}accept(e){return e.visitParametro?e.visitParametro(this):e.visitChildren(this)}},z1=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}get ruleIndex(){return O.RULE_parametroArray}enterRule(e){e.enterParametroArray&&e.enterParametroArray(this)}exitRule(e){e.exitParametroArray&&e.exitParametroArray(this)}accept(e){return e.visitParametroArray?e.visitParametroArray(this):e.visitChildren(this)}},$1=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(e){return e===void 0?this.getTokens(O.ABRE_COLCHETES):this.getToken(O.ABRE_COLCHETES,e)}FECHA_COLCHETES(e){return e===void 0?this.getTokens(O.FECHA_COLCHETES):this.getToken(O.FECHA_COLCHETES,e)}get ruleIndex(){return O.RULE_parametroMatriz}enterRule(e){e.enterParametroMatriz&&e.enterParametroMatriz(this)}exitRule(e){e.exitParametroMatriz&&e.exitParametroMatriz(this)}accept(e){return e.visitParametroMatriz?e.visitParametroMatriz(this):e.visitChildren(this)}},Xo=class extends Ke{constructor(e,i){super(e,i)}listaDeclaracoes(){return this.getRuleContext(0,Zo)}se(){return this.getRuleContext(0,d6)}enquanto(){return this.getRuleContext(0,f6)}facaEnquanto(){return this.getRuleContext(0,p6)}para(){return this.getRuleContext(0,m6)}escolha(){return this.getRuleContext(0,b6)}retorne(){return this.getRuleContext(0,c6)}pare(){return this.getRuleContext(0,Z1)}atribuicao(){return this.getRuleContext(0,Zl)}atribuicaoComposta(){return this.getRuleContext(0,Zs)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_comando}enterRule(e){e.enterComando&&e.enterComando(this)}exitRule(e){e.exitComando&&e.exitComando(this)}accept(e){return e.visitComando?e.visitComando(this):e.visitChildren(this)}},Zl=class extends Ke{constructor(e,i){super(e,i)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_ATRIBUICAO(){return this.getToken(O.OP_ATRIBUICAO,0)}get ruleIndex(){return O.RULE_atribuicao}enterRule(e){e.enterAtribuicao&&e.enterAtribuicao(this)}exitRule(e){e.exitAtribuicao&&e.exitAtribuicao(this)}accept(e){return e.visitAtribuicao?e.visitAtribuicao(this):e.visitChildren(this)}},Zs=class extends Ke{constructor(e,i){super(e,i)}get ruleIndex(){return O.RULE_atribuicaoComposta}copyFrom(e){super.copyFrom(e)}},G1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIS_IGUAL(){return this.getToken(O.OP_MAIS_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaSoma&&e.enterAtribuicaoCompostaSoma(this)}exitRule(e){e.exitAtribuicaoCompostaSoma&&e.exitAtribuicaoCompostaSoma(this)}accept(e){return e.visitAtribuicaoCompostaSoma?e.visitAtribuicaoCompostaSoma(this):e.visitChildren(this)}},W1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOS_IGUAL(){return this.getToken(O.OP_MENOS_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaSubtracao&&e.enterAtribuicaoCompostaSubtracao(this)}exitRule(e){e.exitAtribuicaoCompostaSubtracao&&e.exitAtribuicaoCompostaSubtracao(this)}accept(e){return e.visitAtribuicaoCompostaSubtracao?e.visitAtribuicaoCompostaSubtracao(this):e.visitChildren(this)}},q1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MULTIPLICACAO_IGUAL(){return this.getToken(O.OP_MULTIPLICACAO_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaMultiplicacao&&e.enterAtribuicaoCompostaMultiplicacao(this)}exitRule(e){e.exitAtribuicaoCompostaMultiplicacao&&e.exitAtribuicaoCompostaMultiplicacao(this)}accept(e){return e.visitAtribuicaoCompostaMultiplicacao?e.visitAtribuicaoCompostaMultiplicacao(this):e.visitChildren(this)}},K1=class extends Zs{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIVISAO_IGUAL(){return this.getToken(O.OP_DIVISAO_IGUAL,0)}enterRule(e){e.enterAtribuicaoCompostaDivisao&&e.enterAtribuicaoCompostaDivisao(this)}exitRule(e){e.exitAtribuicaoCompostaDivisao&&e.exitAtribuicaoCompostaDivisao(this)}accept(e){return e.visitAtribuicaoCompostaDivisao?e.visitAtribuicaoCompostaDivisao(this):e.visitChildren(this)}},c6=class extends Ke{constructor(e,i){super(e,i)}RETORNE(){return this.getToken(O.RETORNE,0)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_retorne}enterRule(e){e.enterRetorne&&e.enterRetorne(this)}exitRule(e){e.exitRetorne&&e.exitRetorne(this)}accept(e){return e.visitRetorne?e.visitRetorne(this):e.visitChildren(this)}},d6=class extends Ke{constructor(e,i){super(e,i)}SE(){return this.getToken(O.SE,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}senao(){return this.getRuleContext(0,h6)}get ruleIndex(){return O.RULE_se}enterRule(e){e.enterSe&&e.enterSe(this)}exitRule(e){e.exitSe&&e.exitSe(this)}accept(e){return e.visitSe?e.visitSe(this):e.visitChildren(this)}},h6=class extends Ke{constructor(e,i){super(e,i)}SENAO(){return this.getToken(O.SENAO,0)}listaComandos(){return this.getRuleContext(0,Xl)}get ruleIndex(){return O.RULE_senao}enterRule(e){e.enterSenao&&e.enterSenao(this)}exitRule(e){e.exitSenao&&e.exitSenao(this)}accept(e){return e.visitSenao?e.visitSenao(this):e.visitChildren(this)}},f6=class extends Ke{constructor(e,i){super(e,i)}ENQUANTO(){return this.getToken(O.ENQUANTO,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}get ruleIndex(){return O.RULE_enquanto}enterRule(e){e.enterEnquanto&&e.enterEnquanto(this)}exitRule(e){e.exitEnquanto&&e.exitEnquanto(this)}accept(e){return e.visitEnquanto?e.visitEnquanto(this):e.visitChildren(this)}},p6=class extends Ke{constructor(e,i){super(e,i)}FACA(){return this.getToken(O.FACA,0)}listaComandos(){return this.getRuleContext(0,Xl)}ENQUANTO(){return this.getToken(O.ENQUANTO,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}get ruleIndex(){return O.RULE_facaEnquanto}enterRule(e){e.enterFacaEnquanto&&e.enterFacaEnquanto(this)}exitRule(e){e.exitFacaEnquanto&&e.exitFacaEnquanto(this)}accept(e){return e.visitFacaEnquanto?e.visitFacaEnquanto(this):e.visitChildren(this)}},m6=class extends Ke{constructor(e,i){super(e,i)}PARA(){return this.getToken(O.PARA,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}PONTOVIRGULA(e){return e===void 0?this.getTokens(O.PONTOVIRGULA):this.getToken(O.PONTOVIRGULA,e)}condicao(){return this.getRuleContext(0,_6)}incrementoPara(){return this.getRuleContext(0,v6)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}listaComandos(){return this.getRuleContext(0,Xl)}inicializacaoPara(){return this.getRuleContext(0,g6)}get ruleIndex(){return O.RULE_para}enterRule(e){e.enterPara&&e.enterPara(this)}exitRule(e){e.exitPara&&e.exitPara(this)}accept(e){return e.visitPara?e.visitPara(this):e.visitChildren(this)}},Xl=class extends Ke{constructor(e,i){super(e,i)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_listaComandos}enterRule(e){e.enterListaComandos&&e.enterListaComandos(this)}exitRule(e){e.exitListaComandos&&e.exitListaComandos(this)}accept(e){return e.visitListaComandos?e.visitListaComandos(this):e.visitChildren(this)}},g6=class extends Ke{constructor(e,i){super(e,i)}atribuicao(){return this.getRuleContext(0,Zl)}listaDeclaracoes(){return this.getRuleContext(0,Zo)}ID(){return this.getToken(O.ID,0)}get ruleIndex(){return O.RULE_inicializacaoPara}enterRule(e){e.enterInicializacaoPara&&e.enterInicializacaoPara(this)}exitRule(e){e.exitInicializacaoPara&&e.exitInicializacaoPara(this)}accept(e){return e.visitInicializacaoPara?e.visitInicializacaoPara(this):e.visitChildren(this)}},_6=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}get ruleIndex(){return O.RULE_condicao}enterRule(e){e.enterCondicao&&e.enterCondicao(this)}exitRule(e){e.exitCondicao&&e.exitCondicao(this)}accept(e){return e.visitCondicao?e.visitCondicao(this):e.visitChildren(this)}},v6=class extends Ke{constructor(e,i){super(e,i)}expressao(){return this.getRuleContext(0,W)}atribuicaoComposta(){return this.getRuleContext(0,Zs)}atribuicao(){return this.getRuleContext(0,Zl)}get ruleIndex(){return O.RULE_incrementoPara}enterRule(e){e.enterIncrementoPara&&e.enterIncrementoPara(this)}exitRule(e){e.exitIncrementoPara&&e.exitIncrementoPara(this)}accept(e){return e.visitIncrementoPara?e.visitIncrementoPara(this):e.visitChildren(this)}},b6=class extends Ke{constructor(e,i){super(e,i)}ESCOLHA(){return this.getToken(O.ESCOLHA,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}caso(e){return e===void 0?this.getRuleContexts(Y1):this.getRuleContext(e,Y1)}get ruleIndex(){return O.RULE_escolha}enterRule(e){e.enterEscolha&&e.enterEscolha(this)}exitRule(e){e.exitEscolha&&e.exitEscolha(this)}accept(e){return e.visitEscolha?e.visitEscolha(this):e.visitChildren(this)}},Y1=class extends Ke{constructor(e,i){super(e,i)}CASO(){return this.getToken(O.CASO,0)}DOISPONTOS(){return this.getToken(O.DOISPONTOS,0)}CONTRARIO(){return this.getToken(O.CONTRARIO,0)}expressao(){return this.getRuleContext(0,W)}ABRE_CHAVES(){return this.getToken(O.ABRE_CHAVES,0)}FECHA_CHAVES(){return this.getToken(O.FECHA_CHAVES,0)}pare(){return this.getRuleContext(0,Z1)}comando(e){return e===void 0?this.getRuleContexts(Xo):this.getRuleContext(e,Xo)}get ruleIndex(){return O.RULE_caso}enterRule(e){e.enterCaso&&e.enterCaso(this)}exitRule(e){e.exitCaso&&e.exitCaso(this)}accept(e){return e.visitCaso?e.visitCaso(this):e.visitChildren(this)}},Z1=class extends Ke{constructor(e,i){super(e,i)}PARE(){return this.getToken(O.PARE,0)}get ruleIndex(){return O.RULE_pare}enterRule(e){e.enterPare&&e.enterPare(this)}exitRule(e){e.exitPare&&e.exitPare(this)}accept(e){return e.visitPare?e.visitPare(this):e.visitChildren(this)}},Hi=class extends Ke{constructor(e,i){super(e,i)}ABRE_COLCHETES(){return this.getToken(O.ABRE_COLCHETES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_COLCHETES(){return this.getToken(O.FECHA_COLCHETES,0)}get ruleIndex(){return O.RULE_indiceArray}enterRule(e){e.enterIndiceArray&&e.enterIndiceArray(this)}exitRule(e){e.exitIndiceArray&&e.exitIndiceArray(this)}accept(e){return e.visitIndiceArray?e.visitIndiceArray(this):e.visitChildren(this)}},W=class extends Ke{constructor(e,i){super(e,i)}get ruleIndex(){return O.RULE_expressao}copyFrom(e){super.copyFrom(e)}},f_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}listaExpressoes(){return this.getRuleContext(0,c4)}enterRule(e){e.enterChamadaFuncao&&e.enterChamadaFuncao(this)}exitRule(e){e.exitChamadaFuncao&&e.exitChamadaFuncao(this)}accept(e){return e.visitChamadaFuncao?e.visitChamadaFuncao(this):e.visitChildren(this)}},p_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}STRING(){return this.getToken(O.STRING,0)}enterRule(e){e.enterString&&e.enterString(this)}exitRule(e){e.exitString&&e.exitString(this)}accept(e){return e.visitString?e.visitString(this):e.visitChildren(this)}},m_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_NOT_BITWISE(){return this.getToken(O.OP_NOT_BITWISE,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterNegacaoBitwise&&e.enterNegacaoBitwise(this)}exitRule(e){e.exitNegacaoBitwise&&e.exitNegacaoBitwise(this)}accept(e){return e.visitNegacaoBitwise?e.visitNegacaoBitwise(this):e.visitChildren(this)}},g_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}indiceArray(){return this.getRuleContext(0,Hi)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaArray&&e.enterReferenciaArray(this)}exitRule(e){e.exitReferenciaArray&&e.exitReferenciaArray(this)}accept(e){return e.visitReferenciaArray?e.visitReferenciaArray(this):e.visitChildren(this)}},__=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}REAL(){return this.getToken(O.REAL,0)}enterRule(e){e.enterNumeroReal&&e.enterNumeroReal(this)}exitRule(e){e.exitNumeroReal&&e.exitNumeroReal(this)}accept(e){return e.visitNumeroReal?e.visitNumeroReal(this):e.visitChildren(this)}},v_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_ADICAO(){return this.getToken(O.OP_ADICAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterMaisUnario&&e.enterMaisUnario(this)}exitRule(e){e.exitMaisUnario&&e.exitMaisUnario(this)}accept(e){return e.visitMaisUnario?e.visitMaisUnario(this):e.visitChildren(this)}},X1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIFERENCA(){return this.getToken(O.OP_DIFERENCA,0)}enterRule(e){e.enterOperacaoDiferenca&&e.enterOperacaoDiferenca(this)}exitRule(e){e.exitOperacaoDiferenca&&e.exitOperacaoDiferenca(this)}accept(e){return e.visitOperacaoDiferenca?e.visitOperacaoDiferenca(this):e.visitChildren(this)}},b_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_SUBTRACAO(){return this.getToken(O.OP_SUBTRACAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterMenosUnario&&e.enterMenosUnario(this)}exitRule(e){e.exitMenosUnario&&e.exitMenosUnario(this)}accept(e){return e.visitMenosUnario?e.visitMenosUnario(this):e.visitChildren(this)}},Q1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_ADICAO(){return this.getToken(O.OP_ADICAO,0)}enterRule(e){e.enterAdicao&&e.enterAdicao(this)}exitRule(e){e.exitAdicao&&e.exitAdicao(this)}accept(e){return e.visitAdicao?e.visitAdicao(this):e.visitChildren(this)}},M3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_XOR(){return this.getToken(O.OP_XOR,0)}enterRule(e){e.enterOperacaoXor&&e.enterOperacaoXor(this)}exitRule(e){e.exitOperacaoXor&&e.exitOperacaoXor(this)}accept(e){return e.visitOperacaoXor?e.visitOperacaoXor(this):e.visitChildren(this)}},J1=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIOR_IGUAL(){return this.getToken(O.OP_MAIOR_IGUAL,0)}enterRule(e){e.enterOperacaoMaiorIgual&&e.enterOperacaoMaiorIgual(this)}exitRule(e){e.exitOperacaoMaiorIgual&&e.exitOperacaoMaiorIgual(this)}accept(e){return e.visitOperacaoMaiorIgual?e.visitOperacaoMaiorIgual(this):e.visitChildren(this)}},y_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_DECREMENTO_UNARIO(){return this.getToken(O.OP_DECREMENTO_UNARIO,0)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterDecrementoUnarioPrefixado&&e.enterDecrementoUnarioPrefixado(this)}exitRule(e){e.exitDecrementoUnarioPrefixado&&e.exitDecrementoUnarioPrefixado(this)}accept(e){return e.visitDecrementoUnarioPrefixado?e.visitDecrementoUnarioPrefixado(this):e.visitChildren(this)}},E_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}OP_INCREMENTO_UNARIO(){return this.getToken(O.OP_INCREMENTO_UNARIO,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterIncrementoUnarioPosfixado&&e.enterIncrementoUnarioPosfixado(this)}exitRule(e){e.exitIncrementoUnarioPosfixado&&e.exitIncrementoUnarioPosfixado(this)}accept(e){return e.visitIncrementoUnarioPosfixado?e.visitIncrementoUnarioPosfixado(this):e.visitChildren(this)}},e4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MULTIPLICACAO(){return this.getToken(O.OP_MULTIPLICACAO,0)}enterRule(e){e.enterMultiplicacao&&e.enterMultiplicacao(this)}exitRule(e){e.exitMultiplicacao&&e.exitMultiplicacao(this)}accept(e){return e.visitMultiplicacao?e.visitMultiplicacao(this):e.visitChildren(this)}},t4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_OU_LOGICO(){return this.getToken(O.OP_OU_LOGICO,0)}enterRule(e){e.enterOperacaoOuLogico&&e.enterOperacaoOuLogico(this)}exitRule(e){e.exitOperacaoOuLogico&&e.exitOperacaoOuLogico(this)}accept(e){return e.visitOperacaoOuLogico?e.visitOperacaoOuLogico(this):e.visitChildren(this)}},n4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_IGUALDADE(){return this.getToken(O.OP_IGUALDADE,0)}enterRule(e){e.enterOperacaoIgualdade&&e.enterOperacaoIgualdade(this)}exitRule(e){e.exitOperacaoIgualdade&&e.exitOperacaoIgualdade(this)}accept(e){return e.visitOperacaoIgualdade?e.visitOperacaoIgualdade(this):e.visitChildren(this)}},k3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SHIFT_RIGHT(){return this.getToken(O.OP_SHIFT_RIGHT,0)}enterRule(e){e.enterOperacaoShiftRight&&e.enterOperacaoShiftRight(this)}exitRule(e){e.exitOperacaoShiftRight&&e.exitOperacaoShiftRight(this)}accept(e){return e.visitOperacaoShiftRight?e.visitOperacaoShiftRight(this):e.visitChildren(this)}},i4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_DIVISAO(){return this.getToken(O.OP_DIVISAO,0)}enterRule(e){e.enterDivisao&&e.enterDivisao(this)}exitRule(e){e.exitDivisao&&e.exitDivisao(this)}accept(e){return e.visitDivisao?e.visitDivisao(this):e.visitChildren(this)}},C_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ABRE_PARENTESES(){return this.getToken(O.ABRE_PARENTESES,0)}expressao(){return this.getRuleContext(0,W)}FECHA_PARENTESES(){return this.getToken(O.FECHA_PARENTESES,0)}enterRule(e){e.enterExpressaoEntreParenteses&&e.enterExpressaoEntreParenteses(this)}exitRule(e){e.exitExpressaoEntreParenteses&&e.exitExpressaoEntreParenteses(this)}accept(e){return e.visitExpressaoEntreParenteses?e.visitExpressaoEntreParenteses(this):e.visitChildren(this)}},r4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOR_IGUAL(){return this.getToken(O.OP_MENOR_IGUAL,0)}enterRule(e){e.enterOperacaoMenorIgual&&e.enterOperacaoMenorIgual(this)}exitRule(e){e.exitOperacaoMenorIgual&&e.exitOperacaoMenorIgual(this)}accept(e){return e.visitOperacaoMenorIgual?e.visitOperacaoMenorIgual(this):e.visitChildren(this)}},I_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaMatriz&&e.enterReferenciaMatriz(this)}exitRule(e){e.exitReferenciaMatriz&&e.exitReferenciaMatriz(this)}accept(e){return e.visitReferenciaMatriz?e.visitReferenciaMatriz(this):e.visitChildren(this)}},s4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MAIOR(){return this.getToken(O.OP_MAIOR,0)}enterRule(e){e.enterOperacaoMaior&&e.enterOperacaoMaior(this)}exitRule(e){e.exitOperacaoMaior&&e.exitOperacaoMaior(this)}accept(e){return e.visitOperacaoMaior?e.visitOperacaoMaior(this):e.visitChildren(this)}},T_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}INT(){return this.getToken(O.INT,0)}HEXADECIMAL(){return this.getToken(O.HEXADECIMAL,0)}enterRule(e){e.enterNumeroInteiro&&e.enterNumeroInteiro(this)}exitRule(e){e.exitNumeroInteiro&&e.exitNumeroInteiro(this)}accept(e){return e.visitNumeroInteiro?e.visitNumeroInteiro(this):e.visitChildren(this)}},S_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}CARACTER(){return this.getToken(O.CARACTER,0)}enterRule(e){e.enterCaracter&&e.enterCaracter(this)}exitRule(e){e.exitCaracter&&e.exitCaracter(this)}accept(e){return e.visitCaracter?e.visitCaracter(this):e.visitChildren(this)}},w_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}escopoBiblioteca(){return this.getRuleContext(0,Tu)}enterRule(e){e.enterReferenciaParaVariavel&&e.enterReferenciaParaVariavel(this)}exitRule(e){e.exitReferenciaParaVariavel&&e.exitReferenciaParaVariavel(this)}accept(e){return e.visitReferenciaParaVariavel?e.visitReferenciaParaVariavel(this):e.visitChildren(this)}},x_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}LOGICO(){return this.getToken(O.LOGICO,0)}enterRule(e){e.enterValorLogico&&e.enterValorLogico(this)}exitRule(e){e.exitValorLogico&&e.exitValorLogico(this)}accept(e){return e.visitValorLogico?e.visitValorLogico(this):e.visitChildren(this)}},o4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MENOR(){return this.getToken(O.OP_MENOR,0)}enterRule(e){e.enterOperacaoMenor&&e.enterOperacaoMenor(this)}exitRule(e){e.exitOperacaoMenor&&e.exitOperacaoMenor(this)}accept(e){return e.visitOperacaoMenor?e.visitOperacaoMenor(this):e.visitChildren(this)}},N3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SHIFT_LEFT(){return this.getToken(O.OP_SHIFT_LEFT,0)}enterRule(e){e.enterOperacaoShiftLeft&&e.enterOperacaoShiftLeft(this)}exitRule(e){e.exitOperacaoShiftLeft&&e.exitOperacaoShiftLeft(this)}accept(e){return e.visitOperacaoShiftLeft?e.visitOperacaoShiftLeft(this):e.visitChildren(this)}},A_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_INCREMENTO_UNARIO(){return this.getToken(O.OP_INCREMENTO_UNARIO,0)}ID(){return this.getToken(O.ID,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterIncrementoUnarioPrefixado&&e.enterIncrementoUnarioPrefixado(this)}exitRule(e){e.exitIncrementoUnarioPrefixado&&e.exitIncrementoUnarioPrefixado(this)}accept(e){return e.visitIncrementoUnarioPrefixado?e.visitIncrementoUnarioPrefixado(this):e.visitChildren(this)}},l4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_E_LOGICO(){return this.getToken(O.OP_E_LOGICO,0)}enterRule(e){e.enterOperacaoELogico&&e.enterOperacaoELogico(this)}exitRule(e){e.exitOperacaoELogico&&e.exitOperacaoELogico(this)}accept(e){return e.visitOperacaoELogico?e.visitOperacaoELogico(this):e.visitChildren(this)}},D_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}ID(){return this.getToken(O.ID,0)}OP_DECREMENTO_UNARIO(){return this.getToken(O.OP_DECREMENTO_UNARIO,0)}indiceArray(e){return e===void 0?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}enterRule(e){e.enterDecrementoUnarioPosfixado&&e.enterDecrementoUnarioPosfixado(this)}exitRule(e){e.exitDecrementoUnarioPosfixado&&e.exitDecrementoUnarioPosfixado(this)}accept(e){return e.visitDecrementoUnarioPosfixado?e.visitDecrementoUnarioPosfixado(this):e.visitChildren(this)}},P3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_OU_BITWISE(){return this.getToken(O.OP_OU_BITWISE,0)}enterRule(e){e.enterOperacaoOrBitwise&&e.enterOperacaoOrBitwise(this)}exitRule(e){e.exitOperacaoOrBitwise&&e.exitOperacaoOrBitwise(this)}accept(e){return e.visitOperacaoOrBitwise?e.visitOperacaoOrBitwise(this):e.visitChildren(this)}},a4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_MOD(){return this.getToken(O.OP_MOD,0)}enterRule(e){e.enterModulo&&e.enterModulo(this)}exitRule(e){e.exitModulo&&e.exitModulo(this)}accept(e){return e.visitModulo?e.visitModulo(this):e.visitChildren(this)}},u4=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}OP_SUBTRACAO(){return this.getToken(O.OP_SUBTRACAO,0)}enterRule(e){e.enterSubtracao&&e.enterSubtracao(this)}exitRule(e){e.exitSubtracao&&e.exitSubtracao(this)}accept(e){return e.visitSubtracao?e.visitSubtracao(this):e.visitChildren(this)}},O_=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}OP_NAO(){return this.getToken(O.OP_NAO,0)}expressao(){return this.getRuleContext(0,W)}enterRule(e){e.enterNegacao&&e.enterNegacao(this)}exitRule(e){e.exitNegacao&&e.exitNegacao(this)}accept(e){return e.visitNegacao?e.visitNegacao(this):e.visitChildren(this)}},L3=class extends W{constructor(e){super(e.parent,e.invokingState),super.copyFrom(e)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}E_COMERCIAL(){return this.getToken(O.E_COMERCIAL,0)}enterRule(e){e.enterOperacaoAndBitwise&&e.enterOperacaoAndBitwise(this)}exitRule(e){e.exitOperacaoAndBitwise&&e.exitOperacaoAndBitwise(this)}accept(e){return e.visitOperacaoAndBitwise?e.visitOperacaoAndBitwise(this):e.visitChildren(this)}},c4=class extends Ke{constructor(e,i){super(e,i)}expressao(e){return e===void 0?this.getRuleContexts(W):this.getRuleContext(e,W)}atribuicaoComposta(e){return e===void 0?this.getRuleContexts(Zs):this.getRuleContext(e,Zs)}atribuicao(e){return e===void 0?this.getRuleContexts(Zl):this.getRuleContext(e,Zl)}VIRGULA(e){return e===void 0?this.getTokens(O.VIRGULA):this.getToken(O.VIRGULA,e)}get ruleIndex(){return O.RULE_listaExpressoes}enterRule(e){e.enterListaExpressoes&&e.enterListaExpressoes(this)}exitRule(e){e.exitListaExpressoes&&e.exitListaExpressoes(this)}accept(e){return e.visitListaExpressoes?e.visitListaExpressoes(this):e.visitChildren(this)}},Tu=class extends Ke{constructor(e,i){super(e,i)}ID(){return this.getToken(O.ID,0)}PONTO(){return this.getToken(O.PONTO,0)}get ruleIndex(){return O.RULE_escopoBiblioteca}enterRule(e){e.enterEscopoBiblioteca&&e.enterEscopoBiblioteca(this)}exitRule(e){e.exitEscopoBiblioteca&&e.exitEscopoBiblioteca(this)}accept(e){return e.visitEscopoBiblioteca?e.visitEscopoBiblioteca(this):e.visitChildren(this)}};var Ql=class extends Error{constructor(e,i){super(e),this.message=e,this.ctx=i,this.name="ParseError"}};var m=function(t){return t.INTEIRO="inteiro",t.REAL="real",t.CADEIA="cadeia",t.L\u00D3GICO="logico",t.VAZIO="vazio",t.CARACTER="caracter",t}(m||{});function d4(t){if(!t)return m.VAZIO;let e=t.getText();switch(e){case"inteiro":case"real":case"cadeia":case"logico":case"vazio":case"caracter":return e;default:throw new Error(`Tipo desconhecido: ${e}`)}}function y6(t){if(!t)return[];let e=[];for(let i=0;i[e,...nx(e)])}function Fe(t,e,i){if(!t)throw new Ql(i??"Express\xE3o inv\xE1lida",e)}var qn=class{constructor(e){this.ctx=e,this.children=[]}unexpectedChild(e){let i=e.ctx.constructor.name.replace("Context",""),n=this.ctx.constructor.name.replace("Context","");throw i==="ErrorNode"?new Ql(`Express\xE3o inv\xE1lida: ${e.ctx.getText()}`,e.ctx):(console.error(new Error(`Encontrado '${i}' como filho de '${n}', n\xE3o esperado: '${e.ctx.getText()}'`)),new Ql(`Encontrado '${i}' como filho de '${n}', n\xE3o esperado: '${e.ctx.getText()}'`,e.ctx))}addChild(e){this.children.push(e)}};var Ot=class extends qn{};var oe=class extends qn{};var h4=class extends oe{constructor(){super(...arguments),this.linhas=[]}addChild(e){e instanceof oe?this.linhas.push(e):this.unexpectedChild(e),this.children.push(e)}};var ar=class extends oe{constructor(e){super(e),this.ctx=e;let[i,n]=[e.INT(),e.HEXADECIMAL()],r=i?.getText()??n?.getText();Fe(r,e),this.valor=Number.parseInt(r,n?16:10)}addChild(e){this.unexpectedChild(e)}};var f4=class extends oe{constructor(e){super(e),this.ctx=e;let i=e.ID()?.getText();Fe(i,e),this.nome=i}};var fn=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof f4?(Fe(!this.escopoBiblioteca,e.ctx,"Escopo de biblioteca j\xE1 definido"),this.escopoBiblioteca=e):this.unexpectedChild(e),this.children.push(e)}};var p4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof ar||e instanceof fn?this.linhas?this.colunas?this.unexpectedChild(e):this.colunas=e:this.linhas=e:e instanceof h4?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var m4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof oe?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var g4=class extends oe{constructor(){super(...arguments),this.valores=[]}addChild(e){e instanceof oe?this.valores.push(e):this.unexpectedChild(e),this.children.push(e)}};var _4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText()}addChild(e){e instanceof ar||e instanceof fn?(Fe(!this.tamanho,e.ctx,"Tamanho j\xE1 definido"),this.tamanho=e):e instanceof g4?(Fe(!this.inicializa\u00E7\u00E3o,e.ctx,"Inicializa\xE7\xE3o j\xE1 definida"),this.inicializa\u00E7\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var Su=class extends Ot{constructor(e){super(e),this.ctx=e,Fe(e.parent instanceof Zo,e),this.tipo={primitivo:d4(e.parent.TIPO())},this.constante=!!e.parent.CONSTANTE()}addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),e instanceof _4?(this.nome=e.nome,this.tipo={dimens\u00E3o:"vetor",tamanho:e.tamanho,primitivo:this.tipo.primitivo},this.express\u00E3o=e.inicializa\u00E7\u00E3o):e instanceof p4?(this.nome=e.nome,this.tipo={dimens\u00E3o:"matriz",linhas:e.linhas,colunas:e.colunas,primitivo:this.tipo.primitivo}):e instanceof m4?(this.nome=e.nome,this.express\u00E3o=e.valor):this.unexpectedChild(e)):this.unexpectedChild(e),this.children.push(e)}};var F3=class extends qn{constructor(e,i){super(e),this.ctx=e,this.type=i}addChild(e){this.unexpectedChild(e)}};var wu=class extends qn{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.tipo={primitivo:d4(this.ctx.TIPO())},this.refer\u00EAncia=!!this.ctx.E_COMERCIAL()}addChild(e){e instanceof F3?e.ctx instanceof z1&&!Object.hasOwn(this.tipo,"dimens\xE3o")?this.tipo={dimens\u00E3o:"vetor",primitivo:this.tipo.primitivo}:e.ctx instanceof $1&&!Object.hasOwn(this.tipo,"dimens\xE3o")?this.tipo={dimens\u00E3o:"matriz",primitivo:this.tipo.primitivo}:this.unexpectedChild(e):this.unexpectedChild(e),this.children.push(e)}};var xu=class extends qn{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.par\u00E2metros=[],this.retorno={primitivo:d4(this.ctx.TIPO())},this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof wu?this.par\u00E2metros.push(e):e instanceof oe||e instanceof Ot?this.instru\u00E7\u00F5es.push(e):(console.log(e),this.unexpectedChild(e)),this.children.push(e)}};var v4=class extends qn{constructor(e){super(e),this.ctx=e;let i=e.ID();Fe(i.length===1||i.length===2,e,"Inclus\xE3o de biblioteca inv\xE1lida"),this.nome=i[0].getText(),i.length===2&&(this.alias=i[1].getText())}addChild(e){this.unexpectedChild(e)}};var b4=class extends qn{constructor(){super(...arguments),this.bibliotecas=[],this.declara\u00E7\u00F5es=[],this.fun\u00E7\u00F5es=[]}addChild(e){e instanceof xu?this.fun\u00E7\u00F5es.push(e):e instanceof v4?this.bibliotecas.push(e):e instanceof Su?this.declara\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var Jl=class extends oe{addChild(e){e instanceof oe?(Fe(!this.\u00EDndice,e.ctx,"\xCDndice j\xE1 definido"),this.\u00EDndice=e):this.unexpectedChild(e),this.children.push(e)}};var us=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}addChild(e){e instanceof Jl?(Fe(!this.\u00EDndice,e.ctx,"\xCDndice j\xE1 definido"),this.\u00EDndice=e):this.unexpectedChild(e),this.children.push(e)}};var cs=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}addChild(e){e instanceof Jl&&!this.linha?this.linha=e:e instanceof Jl&&!this.coluna?this.coluna=e:this.unexpectedChild(e),this.children.push(e)}};var ur=class extends Ot{addChild(e){super.addChild(e),(e instanceof fn||e instanceof us||e instanceof cs)&&!this.vari\u00E1vel?this.vari\u00E1vel=e:e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var R_=class extends ur{};var M_=class extends ur{};var k_=class extends ur{};var N_=class extends ur{};var yi=class extends qn{};var y4=class extends oe{constructor(){super(...arguments),this.conte\u00FAdo=this.ctx.STRING().getText().slice(1,-1)}addChild(e){this.unexpectedChild(e)}};var E4=class extends oe{constructor(e){super(e),this.ctx=e,this.conte\u00FAdo=e.CARACTER().getText().slice(1,-1),Fe(this.conte\u00FAdo.length===1,e,"Caractere inv\xE1lido")}addChild(e){this.unexpectedChild(e)}};var E6=class extends oe{constructor(e){super(e),this.ctx=e,Fe(e.getText()==="contrario",e)}addChild(e){this.unexpectedChild(e)}};var C4=class extends Ot{constructor(e){super(e),this.ctx=e,this.instru\u00E7\u00F5es=[];let i=e.CONTRARIO();i&&(this.condi\u00E7\u00E3o=new E6(i))}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var I4=class extends oe{constructor(){super(...arguments),this.nome=this.ctx.ID().getText(),this.argumentos=[],this.escopoBiblioteca=this.ctx.escopoBiblioteca()?.ID()?.getText()}addChild(e){e instanceof oe?this.argumentos.push(e):this.unexpectedChild(e),this.children.push(e)}};var Xs=class extends oe{constructor(){super(...arguments),this.vari\u00E1vel=new fn(this.ctx)}};var T4=class extends Xs{};var S4=class extends Xs{};var bt=class extends oe{addChild(e){e instanceof oe?this.esquerda?this.direita?this.unexpectedChild(e):this.direita=e:this.esquerda=e:this.unexpectedChild(e),this.children.push(e)}};var w4=class extends bt{};var x4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var A4=class extends Ot{constructor(){super(...arguments),this.casos=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof C4?this.casos.push(e):this.unexpectedChild(e),this.children.push(e)}};var D4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var O4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var R4=class extends Xs{};var M4=class extends Xs{};var k4=class extends oe{constructor(){super(...arguments),this.valor=this.ctx.getText()==="verdadeiro"}addChild(e){this.unexpectedChild(e)}};var Qo=class extends oe{constructor(e){super(e),this.ctx=e;let i=e.REAL().getText();this.valor=Number.parseFloat(i),Fe(!Number.isNaN(this.valor),e,"Valor inv\xE1lido")}addChild(e){this.unexpectedChild(e)}};var N4=class extends oe{addChild(e){e instanceof fn||e instanceof us||e instanceof cs||e instanceof ar||e instanceof Qo?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var P4=class extends oe{addChild(e){e instanceof fn||e instanceof us||e instanceof cs||e instanceof ar||e instanceof Qo?(Fe(!this.valor,e.ctx,"Valor j\xE1 definido"),this.valor=e):this.unexpectedChild(e),this.children.push(e)}};var L4=class extends bt{};var F4=class extends bt{};var V4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var B4=class extends oe{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var U4=class extends bt{};var j4=class extends bt{};var H4=class extends bt{};var z4=class extends bt{};var $4=class extends bt{};var G4=class extends bt{};var W4=class extends bt{};var q4=class extends bt{};var K4=class extends bt{};var Y4=class extends bt{};var Z4=class extends bt{};var X4=class extends bt{};var Q4=class extends bt{};var J4=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[],this.#e=y6(this.ctx.inicializacaoPara()),this.#t=y6(this.ctx.condicao()),this.#n=y6(this.ctx.incrementoPara())}#e;#t;#n;addChild(e){(e instanceof oe||e instanceof Ot)&&this.#e.includes(e.ctx)?(Fe(!this.inicializa\u00E7\u00E3o,e.ctx,"Inicializa\xE7\xE3o j\xE1 definida"),this.inicializa\u00E7\u00E3o=e):e instanceof oe&&this.#t.includes(e.ctx)?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof oe&&this.#n.includes(e.ctx)?(Fe(!this.incremento,e.ctx,"Incremento j\xE1 definido"),this.incremento=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var P_=class extends Ot{addChild(e){this.unexpectedChild(e)}};var Au=class extends Ot{addChild(e){e instanceof oe?(Fe(!this.express\u00E3o,e.ctx,"Express\xE3o j\xE1 definida"),this.express\u00E3o=e):this.unexpectedChild(e),this.children.push(e)}};var e5=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var t5=class extends Ot{constructor(){super(...arguments),this.instru\u00E7\u00F5es=[]}addChild(e){e instanceof oe&&e.ctx===this.ctx.expressao()?(Fe(!this.condi\u00E7\u00E3o,e.ctx,"Condi\xE7\xE3o j\xE1 definida"),this.condi\u00E7\u00E3o=e):e instanceof e5?(Fe(!this.sen\u00E3o,e.ctx,"Sen\xE3o j\xE1 definido"),this.sen\u00E3o=e):e instanceof Ot||e instanceof oe?this.instru\u00E7\u00F5es.push(e):this.unexpectedChild(e),this.children.push(e)}};var n5=class extends bt{};var i5=class extends bt{};var C6=class extends oe{};var FH={AdicaoContext:n5,ArquivoContext:b4,AtribuicaoCompostaDivisaoContext:R_,AtribuicaoCompostaMultiplicacaoContext:M_,AtribuicaoCompostaSomaContext:k_,AtribuicaoCompostaSubtracaoContext:N_,AtribuicaoContext:ur,CaracterContext:E4,CasoContext:C4,ChamadaFuncaoContext:I4,ColunaMatrizContext:yi,ComandoContext:yi,CondicaoContext:yi,DeclaracaoArrayContext:_4,DeclaracaoContext:Su,DeclaracaoFuncaoContext:xu,DeclaracaoMatrizContext:p4,DeclaracaoVariavelContext:m4,DecrementoUnarioPosfixadoContext:S4,DecrementoUnarioPrefixadoContext:T4,DivisaoContext:w4,EnquantoContext:x4,EscolhaContext:A4,EscopoBibliotecaContext:f4,ExpressaoEntreParentesesContext:D4,FacaEnquantoContext:O4,InclusaoBibliotecaContext:v4,IncrementoParaContext:yi,IncrementoUnarioPosfixadoContext:M4,IncrementoUnarioPrefixadoContext:R4,IndiceArrayContext:Jl,InicializacaoArrayContext:g4,InicializacaoMatrizContext:h4,InicializacaoParaContext:yi,LinhaMatrizContext:yi,ListaComandosContext:yi,ListaDeclaracoesContext:yi,ListaExpressoesContext:yi,ListaParametrosContext:yi,MaisUnarioContext:N4,MenosUnarioContext:P4,ModuloContext:F4,MultiplicacaoContext:L4,NegacaoBitwiseContext:V4,NegacaoContext:B4,NumeroInteiroContext:ar,NumeroRealContext:Qo,OperacaoAndBitwiseContext:U4,OperacaoDiferencaContext:H4,OperacaoELogicoContext:j4,OperacaoIgualdadeContext:z4,OperacaoMaiorContext:G4,OperacaoMaiorIgualContext:$4,OperacaoMenorContext:q4,OperacaoMenorIgualContext:W4,OperacaoOrBitwiseContext:K4,OperacaoOuLogicoContext:Y4,OperacaoShiftLeftContext:Z4,OperacaoShiftRightContext:X4,OperacaoXorContext:Q4,ParaContext:J4,ParametroContext:wu,ParametroFuncaoContext:yi,PareContext:P_,ReferenciaArrayContext:us,ReferenciaMatrizContext:cs,ReferenciaParaVariavelContext:fn,RetorneContext:Au,SeContext:t5,SenaoContext:e5,StringContext:y4,SubtracaoContext:i5,TamanhoArrayContext:yi,ValorLogicoContext:k4};var L_=class extends t6{defaultResult(){return{}}aggregateResult(e,i){throw new Error("Shouldn't need to aggregate results")}visitChildrenFromParent(e,i){for(let n=0;nHhe,checarFun\u00E7\u00F5esComRetorno:()=>zhe});function*Hhe(t){let e=t.fun\u00E7\u00F5es.find(i=>i.nome==="inicio");e?(e.par\u00E2metros.length>0&&(yield _i.fromContext(e.ctx,"A fun\xE7\xE3o 'inicio' n\xE3o deve receber par\xE2metros")),e.retorno.primitivo!==m.VAZIO&&(yield _i.fromContext(e.ctx,"A fun\xE7\xE3o 'inicio' n\xE3o deve retornar valores"))):yield _i.fromContext(t.ctx,"O programa deve conter uma fun\xE7\xE3o chamada 'inicio'")}function*zhe(t){for(let e of t.fun\u00E7\u00F5es)e.retorno.primitivo!==m.VAZIO&&(nx(e).some(i=>i instanceof Au)||(yield _i.fromContext(e.ctx,`A fun\xE7\xE3o '${e.nome}' deve retornar um valor`)))}var rx={};dx(rx,{checarUsoEscopo:()=>$he});var _=function(t){return t[t.COMPAT\u00CDVEL=0]="COMPAT\xCDVEL",t[t.INCOMPAT\u00CDVEL=1]="INCOMPAT\xCDVEL",t[t.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA=2]="COMPAT\xCDVEL_COM_CONVERS\xC3O_IMPL\xCDCITA",t[t.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O=3]="COMPAT\xCDVEL_COM_CONVERS\xC3O_DE_OPERA\xC7\xC3O",t}(_||{}),pWe={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},VH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.COMPAT\u00CDVEL}},BH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.COMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_IMPL\u00CDCITA,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},UH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.REAL],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},jH={[m.CADEIA]:{[m.CADEIA]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},HH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},mWe={[m.CADEIA]:{[m.CADEIA]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.L\u00D3GICO],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},zH={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},$H={[m.CADEIA]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}},GH={[m.CADEIA]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.L\u00D3GICO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.REAL]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.CARACTER]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.CADEIA],[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.INTEIRO]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.COMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.L\u00D3GICO]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.COMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.REAL]:{[m.CADEIA]:_.COMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:[_.COMPAT\u00CDVEL_COM_CONVERS\u00C3O_DE_OPERA\u00C7\u00C3O,m.REAL],[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.COMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL},[m.VAZIO]:{[m.CADEIA]:_.INCOMPAT\u00CDVEL,[m.CARACTER]:_.INCOMPAT\u00CDVEL,[m.INTEIRO]:_.INCOMPAT\u00CDVEL,[m.L\u00D3GICO]:_.INCOMPAT\u00CDVEL,[m.REAL]:_.INCOMPAT\u00CDVEL,[m.VAZIO]:_.INCOMPAT\u00CDVEL}};var F_=class{constructor(e={vari\u00E1veis:new Map,fun\u00E7\u00F5es:new Map([["escreva",{primitivo:m.VAZIO}],["leia",{primitivo:m.CADEIA}],["limpa",{primitivo:m.VAZIO}]])}){this.pilha=[],this.pilha.push(e)}push(){this.pilha.push({vari\u00E1veis:new Map,fun\u00E7\u00F5es:new Map,fun\u00E7\u00E3o:this.atual.fun\u00E7\u00E3o})}pop(){if(this.pilha.length===1)throw new Error("N\xE3o \xE9 poss\xEDvel remover o escopo global");this.pilha.pop()}get atual(){return this.pilha.at(-1)}get global(){return this.pilha[0]}get vari\u00E1veis(){return this.atual.vari\u00E1veis}get fun\u00E7\u00F5es(){return this.atual.fun\u00E7\u00F5es}get fun\u00E7\u00E3o(){return this.atual.fun\u00E7\u00E3o}set fun\u00E7\u00E3o(e){this.atual.fun\u00E7\u00E3o=e}hasVari\u00E1vel(e){for(let i of this.pilha)if(i.vari\u00E1veis.has(e))return!0;return!1}hasFun\u00E7\u00E3o(e){for(let i of this.pilha)if(i.fun\u00E7\u00F5es.has(e))return!0;return!1}getVari\u00E1vel(e){for(let i of this.pilha)if(i.vari\u00E1veis.has(e))return i.vari\u00E1veis.get(e);return this.vari\u00E1veis.get(e)}getFun\u00E7\u00E3o(e){for(let i of this.pilha)if(i.fun\u00E7\u00F5es.has(e))return i.fun\u00E7\u00F5es.get(e);return this.fun\u00E7\u00F5es.get(e)}};function Kn(t,e){if(!t)return m.VAZIO;switch(t.constructor){case y4:return m.CADEIA;case E4:return m.CARACTER;case ar:return m.INTEIRO;case k4:return m.L\u00D3GICO;case Qo:return m.REAL;case C6:return m.VAZIO;case w4:case L4:case i5:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=UH[n][r];if(Array.isArray(s))return s[1];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de divis\xE3o, multiplica\xE7\xE3o ou subtra\xE7\xE3o entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case n5:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=GH[n][r];if(Array.isArray(s))return s[1];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de soma entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.CADEIA||r===m.CADEIA?m.CADEIA:n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case F4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if(zH[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de m\xF3dulo entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case R4:case M4:case T4:case S4:return Kn(t.vari\u00E1vel,e);case D4:return Kn(t.express\u00E3o,e);case fn:{let i=t,n=e.getVari\u00E1vel(i.nome);if(!n)throw new Error(`Vari\xE1vel n\xE3o declarada: ${i.nome}`);return n.primitivo}case us:case cs:{let i=t,n=e.getVari\u00E1vel(i.vari\u00E1vel.nome);if(!n)throw new Error(`Vari\xE1vel n\xE3o declarada: ${i.vari\u00E1vel.nome}`);return n.primitivo}case z4:case H4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e),s=jH[n][r];if(s===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de igualdade ou diferen\xE7a entre express\xF5es dos tipos '${n}' e '${r}'`);return Array.isArray(s)?s[1]:m.L\u00D3GICO}case j4:case Y4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if(HH[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o de 'e' ou 'ou' entre express\xF5es dos tipos '${n}' e '${r}'`);return m.L\u00D3GICO}case G4:case $4:case q4:case W4:return m.L\u00D3GICO;case K4:case U4:case Z4:case X4:case Q4:{let i=t,n=Kn(i.esquerda,e),r=Kn(i.direita,e);if($H[n][r]===_.INCOMPAT\u00CDVEL)throw new Error(`N\xE3o \xE9 poss\xEDvel realizar uma opera\xE7\xE3o bitwise entre express\xF5es dos tipos '${n}' e '${r}'`);return n===m.REAL||r===m.REAL?m.REAL:m.INTEIRO}case V4:case B4:return Kn(t.express\u00E3o,e);case N4:case P4:return Kn(t.valor,e)===m.REAL?m.REAL:m.INTEIRO;case I4:{let i=t,n=e.getFun\u00E7\u00E3o(i.nome);if(i.escopoBiblioteca)throw new Error("TODO");if(!n)throw new Error(`Fun\xE7\xE3o n\xE3o declarada: ${i.nome}`);return n.primitivo}default:return m.VAZIO}}function*$he(t){let e=new F_;function*i(r){for(let s of r)yield*$i(n(s))}function*n(r){switch(r.constructor){case Su:case wu:{let s=r;e.vari\u00E1veis.set(s.nome,s.tipo);break}case xu:{let s=r;e.fun\u00E7\u00F5es.set(s.nome,s.retorno),e.push(),e.fun\u00E7\u00E3o=s.retorno,yield*$i(i(r.children)),e.pop();break}case fn:{let s=r;if(s.escopoBiblioteca)break;e.hasVari\u00E1vel(s.nome)||(yield _i.fromContext(s.ctx,`Vari\xE1vel n\xE3o declarada: ${s.nome}`));break}case ur:{let s=r;if(yield*$i(i(s.children)),s.vari\u00E1vel instanceof fn&&!s.vari\u00E1vel.escopoBiblioteca){let o=e.vari\u00E1veis.get(s.vari\u00E1vel.nome);if(!o)break;try{let l=Kn(s.express\u00E3o,e);BH[o.primitivo][l]===_.INCOMPAT\u00CDVEL&&(yield _i.fromContext(s.ctx,`N\xE3o \xE9 poss\xEDvel atribuir um valor do tipo '${l}' a uma vari\xE1vel do tipo '${o.primitivo}'`))}catch(l){let a=l instanceof Error?l.message:"N\xE3o foi poss\xEDvel resolver o tipo da express\xE3o";if(a==="TODO")break;yield _i.fromContext(s.ctx,a)}}break}case x4:case A4:case O4:case J4:{e.push(),yield*$i(i(r.children)),e.pop();break}case t5:{let s=r;e.push(),yield*$i(n(s.condi\u00E7\u00E3o)),yield*$i(i(s.instru\u00E7\u00F5es)),e.pop(),s.sen\u00E3o&&(e.push(),yield*$i(i(s.sen\u00E3o.instru\u00E7\u00F5es)),e.pop());break}case Au:{let s=r;if(s.express\u00E3o&&(yield*$i(n(s.express\u00E3o))),e.fun\u00E7\u00E3o)try{let o=Kn(s.express\u00E3o,e);VH[e.fun\u00E7\u00E3o.primitivo][o]===_.INCOMPAT\u00CDVEL&&(yield _i.fromContext(s.ctx,`N\xE3o \xE9 poss\xEDvel retornar um valor do tipo '${o}' em uma fun\xE7\xE3o que retorna '${e.fun\u00E7\u00E3o.primitivo}'`))}catch(o){let l=o instanceof Error?o.message:"N\xE3o foi poss\xEDvel resolver o tipo da express\xE3o";if(l==="TODO")break;yield _i.fromContext(s.ctx,l)}break}default:{yield*$i(i(r.children));break}}}yield*$i(n(t))}var WH=[ix,rx].flatMap(t=>Object.values(t));var B_=class B_{static checkCode(e){let i=Cu.fromString(e),n=new V1(i),r=new L1(n),s=new O(r),o=s.arquivo();return s.addErrorListener(this.errorListener),this.checkTree(o)}static checkTree(e){this.errorListener.reset();try{let i=this.portugolNode.visit(e),n=[];for(let r of WH)for(let s of r(i))n.push(s);return this.errorListener.getErrors().concat(n)}catch(i){return i instanceof Ql?this.errorListener.getErrors().concat(_i.fromContext(i.ctx,i.message)):this.errorListener.getErrors().concat(_i.fromContext(e,String(i)))}}};B_.portugolNode=new L_,B_.errorListener=new nd;var V_=B_;var ce=class{constructor(){this.buffer=[]}append(...e){this.buffer.push(...e.filter(Boolean).map(String))}pop(){return this.buffer.pop()}toString(){return this.buffer.join("")}};var qH=(()=>{let e=class e extends t6{constructor(){super(...arguments),this.debug=!1,this.pad=0,this.hasScope=!1}DEBUG(n,r){return this.debug?`${this.PAD()}/*! ${n} !*/ `:""}PAD(){return" ".repeat(this.pad)}defaultResult(){return""}aggregateResult(n,r){return n+r}visitChildrenArray(n){let r=[],s=n.getChildCount();for(let o=0;o{switch(n.data.type){case"stdOut":{this.stdOut$.next(n.data.content);break}case"stdIn":{this.waitingForInput=!0,this.waitingForInput$.next(this.waitingForInput),this._run.next({type:"stdIn"});break}case"error":{let r=new Error(n.data.error.message);r.stack=n.data.error.stack,this._run.next({type:"error",error:r}),this.destroy();break}case"clear":{this._run.next({type:"clear"});break}case"finish":{this.destroy();break}case"started":break;default:throw new Error(`Unknown message type: ${n.data.type}`)}}),this.worker.addEventListener("error",n=>{let r=n.error??new Error(n.message);this._run.next({type:"error",error:r}),this.destroy()}),this._stdIn$=this.stdIn.subscribe(n=>{this.waitingForInput&&(this.waitingForInput=!1,this.waitingForInput$.next(this.waitingForInput),this.worker.postMessage({type:"stdIn",content:n}))})}run(){return this.startedAt=new Date,this.stdIn.subscribe(e=>{this.worker.postMessage({type:"stdin",content:e})}),this.worker.postMessage({type:"start"}),this.running=!0,this.running$.next(this.running),this._run}destroy(){this.worker.terminate(),this._run.next({type:"finish",time:Date.now()-(this.startedAt?.getTime()??0)}),this._run.complete(),this.running=!1,this.running$.next(!1),this.running$.complete(),this._stdIn$?.unsubscribe(),this.stdIn.complete()}};var hz=hx(iz(),1);var fz=hx(cz(),1);var dz=(()=>{let e=class e{constructor(){this.busy=!1}init(){this.worker=new Worker("assets/portugol-worker/worker.js")}checkCode(n){return K(this,null,function*(){return this.worker||this.init(),new Promise(r=>{let s=Math.random().toString(36).slice(2,9),o=Date.now(),l=a=>{a.data.id===s&&(console.log("Checker Result",a.data,`${Date.now()-o}ms`),this.worker?.removeEventListener("message",l),r(a.data))};this.worker?.addEventListener("message",l),this.worker?.postMessage({code:n,id:s,action:"check"})})})}transpileCode(n){return K(this,null,function*(){return this.worker||this.init(),this.busy=!0,new Promise(r=>{let s=Math.random().toString(36).slice(2,9),o=Date.now(),l=a=>{a.data.id===s&&(console.log("Transpiler Result",a.data,`${Date.now()-o}ms`),this.worker?.removeEventListener("message",l),this.busy=!1,r(a.data))};this.worker?.addEventListener("message",l),this.worker?.postMessage({code:n,id:s,action:"transpile"})})})}abortTranspilation(){this.worker&&this.busy&&(this.worker.terminate(),this.worker=void 0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Zhe=["fileInput"],Xhe=["shareSnackTemplate"];function Qhe(t,e){if(t&1){let i=mt();R(0,"span",25)(1,"strong"),N(2,"Link gerado:"),F(),N(3,"\xA0\xA0"),R(4,"code")(5,"a",26),N(6),sh(7,"slice"),sh(8,"slice"),F()(),N(9," \xA0\xA0\xA0 "),R(10,"button",27),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.copyStringAndCloseSnack(r.url))}),N(11,"COPIAR"),F(),R(12,"small"),N(13,"\u2139\uFE0F Ir\xE1 expirar em 15 dias!"),F()()}if(t&2){let i=e.$implicit;G(5),J("href",i.url,bc),G(),B9("",EE(7,3,i.url,0,10),"\u2026",yE(8,7,i.url,i.url.length-14),"")}}var pz=(()=>{let e=class e{constructor(n,r,s,o){this.gaService=n,this.storage=r,this.snack=s,this.worker=o,this.titleChange=new Se,this.help=new Se,this.transpiling=!1,this.executor=new U_(H_),this.codeEditorOptions={theme:"portugol",language:"portugol",tabSize:2},this.stdOutEditorOptions={theme:"portugol",lineNumbers:"off",readOnly:!0,minimap:{enabled:!1},wordWrap:"on",language:"plaintext",tabSize:2},this.generatedCodeEditorOptions=ee(b({},this.stdOutEditorOptions),{language:"javascript"}),this.sharing=!1,this.shortcuts=[{key:"f1",preventDefault:!0,command:this.openHelp.bind(this)},{key:"ctrl + s",preventDefault:!0,command:this.saveFile.bind(this)},{key:"ctrl + o",preventDefault:!0,command:()=>{this.fileInput.nativeElement.click()}},{key:"ctrl + enter",preventDefault:!0,command:this.runCode.bind(this)}]}ngOnInit(){this.code||=`programa { + `;this.worker=new Worker(URL.createObjectURL(new Blob([sx,i],{type:"text/javascript"}))),this.worker.addEventListener("message",n=>{switch(n.data.type){case"stdOut":{this.stdOut$.next(n.data.content);break}case"stdIn":{this.waitingForInput=!0,this.waitingForInput$.next(this.waitingForInput),this._run.next({type:"stdIn"});break}case"error":{let r=new Error(n.data.error.message);r.stack=n.data.error.stack,this._run.next({type:"error",error:r}),this.destroy();break}case"clear":{this._run.next({type:"clear"});break}case"finish":{this.destroy();break}case"started":break;default:throw new Error(`Unknown message type: ${n.data.type}`)}}),this.worker.addEventListener("error",n=>{let r=n.error??new Error(n.message);this._run.next({type:"error",error:r}),this.destroy()}),this._stdIn$=this.stdIn.subscribe(n=>{this.waitingForInput&&(this.waitingForInput=!1,this.waitingForInput$.next(this.waitingForInput),this.worker.postMessage({type:"stdIn",content:n}))})}run(){return this.startedAt=new Date,this.stdIn.subscribe(e=>{this.worker.postMessage({type:"stdin",content:e})}),this.worker.postMessage({type:"start"}),this.running=!0,this.running$.next(this.running),this._run}destroy(){this.worker.terminate(),this._run.next({type:"finish",time:Date.now()-(this.startedAt?.getTime()??0)}),this._run.complete(),this.running=!1,this.running$.next(!1),this.running$.complete(),this._stdIn$?.unsubscribe(),this.stdIn.complete()}};var hz=hx(iz(),1);var fz=hx(cz(),1);var dz=(()=>{let e=class e{constructor(){this.busy=!1}init(){this.worker=new Worker("assets/portugol-worker/worker.js")}checkCode(n){return K(this,null,function*(){return this.worker||this.init(),new Promise(r=>{let s=Math.random().toString(36).slice(2,9),o=Date.now(),l=a=>{a.data.id===s&&(console.log("Checker Result",a.data,`${Date.now()-o}ms`),this.worker?.removeEventListener("message",l),r(a.data))};this.worker?.addEventListener("message",l),this.worker?.postMessage({code:n,id:s,action:"check"})})})}transpileCode(n){return K(this,null,function*(){return this.worker||this.init(),this.busy=!0,new Promise(r=>{let s=Math.random().toString(36).slice(2,9),o=Date.now(),l=a=>{a.data.id===s&&(console.log("Transpiler Result",a.data,`${Date.now()-o}ms`),this.worker?.removeEventListener("message",l),this.busy=!1,r(a.data))};this.worker?.addEventListener("message",l),this.worker?.postMessage({code:n,id:s,action:"transpile"})})})}abortTranspilation(){this.worker&&this.busy&&(this.worker.terminate(),this.worker=void 0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Zhe=["fileInput"],Xhe=["shareSnackTemplate"];function Qhe(t,e){if(t&1){let i=mt();R(0,"span",25)(1,"strong"),k(2,"Link gerado:"),F(),k(3,"\xA0\xA0"),R(4,"code")(5,"a",26),k(6),sh(7,"slice"),sh(8,"slice"),F()(),k(9," \xA0\xA0\xA0 "),R(10,"button",27),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.copyStringAndCloseSnack(r.url))}),k(11,"COPIAR"),F(),R(12,"small"),k(13,"\u2139\uFE0F Ir\xE1 expirar em 15 dias!"),F()()}if(t&2){let i=e.$implicit;G(5),J("href",i.url,bc),G(),B9("",EE(7,3,i.url,0,10),"\u2026",yE(8,7,i.url,i.url.length-14),"")}}var pz=(()=>{let e=class e{constructor(n,r,s,o){this.gaService=n,this.storage=r,this.snack=s,this.worker=o,this.titleChange=new Se,this.help=new Se,this.transpiling=!1,this.executor=new U_(H_),this.codeEditorOptions={theme:"portugol",language:"portugol",tabSize:2},this.stdOutEditorOptions={theme:"portugol",lineNumbers:"off",readOnly:!0,minimap:{enabled:!1},wordWrap:"on",language:"plaintext",tabSize:2},this.generatedCodeEditorOptions=ee(b({},this.stdOutEditorOptions),{language:"javascript"}),this.sharing=!1,this.shortcuts=[{key:"f1",preventDefault:!0,command:this.openHelp.bind(this)},{key:"ctrl + s",preventDefault:!0,command:this.saveFile.bind(this)},{key:"ctrl + o",preventDefault:!0,command:()=>{this.fileInput.nativeElement.click()}},{key:"ctrl + enter",preventDefault:!0,command:this.runCode.bind(this)}]}ngOnInit(){this.code||=`programa { funcao inicio() { } } -`,this._stdOut$=this.executor.stdOut$.subscribe(()=>{this.stdOutEditorCursorEnd()}),this._events$=this.executor.events.subscribe({next:n=>{switch(n.type){case"error":{this.gaService.event("execution_error","Execu\xE7\xE3o","Erro em execu\xE7\xE3o de c\xF3digo");break}case"parseError":{this.setEditorErrors(n.errors);break}default:break}},error:n=>{this.gaService.event("execution_runner_error","Execu\xE7\xE3o","Erro ao carregar o runner para rodar o c\xF3digo"),un(n,{extra:{code:this.code}})}})}ngOnDestroy(){this._code$?.unsubscribe(),this._events$?.unsubscribe(),this._stdOut$?.unsubscribe(),this.executor.stop()}runCode(){return K(this,null,function*(){this.gaService.event("editor_start_execution","Editor","Bot\xE3o de Iniciar Execu\xE7\xE3o"),O7("code",this.code),this.transpiling=!0;let n=this.code??"",r;try{r=yield this.worker.transpileCode(n)}catch(s){un(s,{tags:{transpile:!0},extra:{code:n}}),alert("Ocorreu um erro ao transpilar o c\xF3digo, possivelmente o seu navegador n\xE3o suporta Web Workers. Por favor, tente novamente em outro navegador. Caso o erro persista, acesse https://github.com/dgadelha/Portugol-Webstudio/issues/new/choose"),alert(s)}finally{this.transpiling=!1}r&&(this.setEditorErrors([]),this.executor.runTranspiled(ee(b({},r),{code:n})))})}stopCode(){this.gaService.event("editor_stop_execution","Editor","Bot\xE3o de Parar Execu\xE7\xE3o"),this.executor.stop(),this.transpiling&&(this.worker.abortTranspilation(),this.transpiling=!1),this.stdOutEditorCursorEnd()}openFile(n){this.gaService.event("editor_open_file","Editor","Bot\xE3o de Abrir arquivo");let{files:r}=n.target;if(!r||r.length===0)return;let s=new FileReader,o=r[0];s.addEventListener("load",l=>{let a=l.target?.result;this.title=o.name,this.titleChange.emit(o.name),this.code=a?.toString()}),s.readAsText(o,"ISO-8859-1")}saveFile(){this.gaService.event("editor_save_file","Editor","Bot\xE3o de Salvar arquivo");let r=new fz.TextEncoder("ISO-8859-1",{NONSTANDARD_allowLegacyEncoding:!0}).encode(this.code),s=new Blob([r],{type:"application/octet-stream; charset=ISO-8859-1"}),o=this.title||"Sem t\xEDtulo";o.endsWith(".por")||(o+=".por"),(0,hz.saveAs)(s,o,{autoBom:!1})}onStdOutEditorInit(n){this.initShortcuts(n),this.stdOutEditor=n,n.onKeyDown(r=>{this.executor.waitingForInput&&(r.code==="Enter"||r.browserEvent.keyCode===13||r.browserEvent.key==="Enter"?this.executor.stdIn.next("\r"):r.code==="Backspace"?this.executor.stdIn.next("\b"):r.browserEvent.key.length===1&&this.executor.stdIn.next(r.browserEvent.key))})}stdOutEditorCursorEnd(){if(!this.stdOutEditor)return;let n=this.stdOutEditor,r=n.getModel();r&&(setTimeout(()=>{n.setPosition({lineNumber:r.getLineCount(),column:r.getLineMaxColumn(r.getLineCount())}),n.setScrollPosition({scrollLeft:0,scrollTop:n.getScrollHeight()})},1),n.focus())}initShortcuts(n){n.addAction({id:"runCode",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],label:"Executar c\xF3digo",run:this.runCode.bind(this)}),n.addAction({id:"saveFile",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyS],label:"Salvar arquivo",run:this.saveFile.bind(this)}),n.addAction({id:"openFile",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyO],label:"Abrir arquivo",run:()=>{this.fileInput.nativeElement.click()}}),n.addAction({id:"openHelp",keybindings:[monaco.KeyCode.F1],label:"Ajuda",run:this.openHelp.bind(this)})}onEditorInit(n){this.codeEditor=n,this.initShortcuts(n),this._code$?.unsubscribe(),this._code$=o8(n.onDidChangeModelContent).pipe(Ki(500),dr(()=>K(this,null,function*(){return this.worker.checkCode(this.code??"")}))).subscribe({next:r=>{this.setEditorErrors(r.errors)},error(r){console.error(r)}})}openHelp(){this.gaService.event("editor_help_tab_open","Editor","Nova aba de ajuda atrav\xE9s do Editor"),this.help.emit()}shareFile(){return K(this,null,function*(){if(!this.code)return;this.sharing=!0;let n=(Math.random()+1).toString(36).slice(2,9);(yield _B(Gm(this.storage,n),this.code,void 0,{contentType:"text/plain"}).catch(s=>(console.error(s),null)))?(this.snack.openFromTemplate(this.shareSnackTemplate,{data:{url:`https://portugol.dev/#share=${n}`}}),this.gaService.event("share_code_success","Editor","C\xF3digo compartilhado com sucesso")):(this.snack.open("Ocorreu um erro ao compartilhar o arquivo. Tente novamente mais tarde.","OK",{duration:3e3}),this.gaService.event("share_code_error","Editor","Erro ao compartilhar c\xF3digo")),setTimeout(()=>{this.sharing=!1},1e3)})}copyStringAndCloseSnack(n){return K(this,null,function*(){yield navigator.clipboard.writeText(n),this.snack.dismiss()})}setEditorErrors(n){let r=this.codeEditor?.getModel();r&&monaco.editor.setModelMarkers(r,"owner",n.map(s=>({startLineNumber:s.startLine,startColumn:s.startCol+1,endLineNumber:s.endLine,endColumn:s.endCol+2,message:s.message,severity:monaco.MarkerSeverity.Error})))}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Al),I(up),I(dz))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-editor"]],viewQuery:function(r,s){if(r&1&&(Et(Zhe,5),Et(Xhe,5,xt)),r&2){let o;nt(o=it())&&(s.fileInput=o.first),nt(o=it())&&(s.shareSnackTemplate=o.first)}},inputs:{title:"title",code:"code"},outputs:{titleChange:"titleChange",help:"help"},decls:30,vars:14,consts:[["fileInput",""],["shareSnackTemplate",""],[3,"shortcuts"],[1,"sidebar"],["mat-ripple","","type","button","title","Iniciar execu\xE7\xE3o",1,"sidebar-button",3,"click","disabled"],["src","assets/icon-start.svg","svgAriaLabel","\xCDcone de iniciar execu\xE7\xE3o"],["mat-ripple","","type","button","title","Parar execu\xE7\xE3o",1,"sidebar-button",3,"click","disabled"],["src","assets/mdi/square-rounded-outline.svg","svgClass","text-tertiary","svgAriaLabel","\xCDcone de parar execu\xE7\xE3o"],[1,"sidebar-divider"],["mat-ripple","","type","button","title","Salvar arquivo",1,"sidebar-button",3,"click"],["src","assets/mdi/content-save-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de disquete para a\xE7\xE3o de salvar arquivo"],["mat-ripple","","type","button","title","Abrir arquivo",1,"sidebar-button",3,"click"],["src","assets/mdi/folder-open-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de pasta para a\xE7\xE3o de abrir arquivo"],["type","file","hidden","","accept",".por,text/plain",3,"change"],["mat-ripple","","type","button","title","Compartilhar c\xF3digo",1,"sidebar-button",3,"click","disabled"],["src","assets/mdi/share-variant-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de compartilhar c\xF3digo"],["mat-ripple","","type","button","title","Abrir se\xE7\xE3o de Ajuda",1,"sidebar-button",3,"click"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],[1,"editor-inner"],["direction","vertical"],[3,"size"],["direction","horizontal"],[3,"ngModelChange","init","options","ngModel"],[3,"ngModelChange","options","ngModel"],["id","output",3,"ngModelChange","init","options","ngModel"],[1,"share-snack"],["target","_blank",3,"href"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,s){if(r&1){let o=mt();pe(0,"ng-keyboard-shortcuts",2),R(1,"div",3)(2,"button",4),be("click",function(){return ae(o),ue(s.runCode())}),pe(3,"svg-icon",5),F(),R(4,"button",6),be("click",function(){return ae(o),ue(s.stopCode())}),pe(5,"svg-icon",7),F(),pe(6,"div",8),R(7,"button",9),be("click",function(){return ae(o),ue(s.saveFile())}),pe(8,"svg-icon",10),F(),R(9,"button",11),be("click",function(){ae(o);let a=Br(12);return ue(a.click())}),pe(10,"svg-icon",12),R(11,"input",13,0),be("change",function(a){return ae(o),ue(s.openFile(a))}),F()(),R(13,"button",14),be("click",function(){return ae(o),ue(s.shareFile())}),pe(14,"svg-icon",15),F(),pe(15,"div",8),R(16,"button",16),be("click",function(){return ae(o),ue(s.openHelp())}),pe(17,"svg-icon",17),F()(),R(18,"div",18)(19,"as-split",19)(20,"as-split-area",20)(21,"as-split",21)(22,"as-split-area",20)(23,"ngx-monaco-editor",22),yo("ngModelChange",function(a){return ae(o),ml(s.code,a)||(s.code=a),ue(a)}),be("init",function(a){return ae(o),ue(s.onEditorInit(a))}),F()(),R(24,"as-split-area",20)(25,"ngx-monaco-editor",23),yo("ngModelChange",function(a){return ae(o),ml(s.executor.byteCode,a)||(s.executor.byteCode=a),ue(a)}),F()()()(),R(26,"as-split-area",20)(27,"ngx-monaco-editor",24),yo("ngModelChange",function(a){return ae(o),ml(s.executor.stdOut,a)||(s.executor.stdOut=a),ue(a)}),be("init",function(a){return ae(o),ue(s.onStdOutEditorInit(a))}),F()()()(),ke(28,Qhe,14,10,"ng-template",null,1,a2)}r&2&&(J("shortcuts",s.shortcuts),G(2),J("disabled",s.executor.running||s.transpiling),G(2),J("disabled",!s.executor.running&&!s.transpiling),G(9),J("disabled",s.sharing),G(7),J("size",80),G(2),J("size",100),G(),J("options",s.codeEditorOptions),bo("ngModel",s.code),G(),J("size",0),G(),J("options",s.generatedCodeEditorOptions),bo("ngModel",s.executor.byteCode),G(),J("size",20),G(),J("options",s.stdOutEditorOptions),bo("ngModel",s.executor.stdOut))},dependencies:[Xm,Wf,Y2,J0,Y0,n_,Vo,is,Ga,uN],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;height:100%} .editor-inner .monaco-editor .monaco-hover{position:fixed;z-index:9999}.editor-inner[_ngcontent-%COMP%]{background-color:#202b30;flex-grow:1;display:flex}.editor-inner[_ngcontent-%COMP%] as-split-area[_ngcontent-%COMP%]{overflow:hidden}.editor-inner[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{flex-grow:1}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.sidebar-button[_ngcontent-%COMP%]{appearance:none;display:flex;align-items:center;justify-content:center;padding:1rem;background-color:#263238;color:#cdcdcd;border:none;transition:all .2s ease;cursor:pointer}.sidebar-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#354046}.sidebar-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;pointer-events:none}.sidebar-button[_ngcontent-%COMP%]:disabled svg[_ngcontent-%COMP%]{filter:grayscale(1);-webkit-transform:translateZ(0)}.sidebar-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .sidebar-button[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;fill:currentColor}.sidebar-divider[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem;width:100%;height:1px;background-color:#445056} #output .monaco-editor-overlaymessage{display:none!important}#bug[_ngcontent-%COMP%]{position:absolute;bottom:7.5px;right:7.5px}.share-snack[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:9pt;margin:0;display:block;text-align:center}"]});let t=e;return t})();var $_=(()=>{let e=class e{constructor(n){this.observer=n}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}};e.\u0275fac=function(r){return new(r||e)(x(L0))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function efe(t,e){t&1&&pe(0,"mat-spinner",6),t&2&&J("diameter",50)}function tfe(t,e){if(t&1){let i=mt();R(0,"mat-tree-node")(1,"li",16),be("click",function(){let r=ae(i).$implicit,s=ne(2);return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne(2);return ue(s.loadItem(r))}),R(2,"button",17),pe(3,"svg-icon"),F(),R(4,"span"),N(5),F()()()}if(t&2){let i=e.$implicit,n=ne(2);G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(4),Fn(i.name)}}function nfe(t,e){t&1&&pe(0,"svg-icon",23)}function ife(t,e){t&1&&pe(0,"svg-icon",24)}function rfe(t,e){if(t&1&&(R(0,"mat-nested-tree-node")(1,"li",18)(2,"button",19),ke(3,nfe,1,0,"svg-icon",20)(4,ife,1,0,"svg-icon",21),F(),R(5,"span"),N(6),F()(),R(7,"ul"),Dn(8,22),F()()),t&2){let i=e.$implicit,n=ne(2);G(2),J("ngSwitch",n.treeControl.isExpanded(i)),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1),G(2),Fn(i.name),G(),ut("hidden",!n.treeControl.isExpanded(i))}}function sfe(t,e){t&1&&(R(0,"div",25)(1,"p"),N(2,"Selecione um exemplo ao lado."),F()())}function ofe(t,e){if(t&1){let i=mt();R(0,"div",26)(1,"h3"),N(2),F(),R(3,"p"),N(4),F(),R(5,"ngx-monaco-editor",27),yo("ngModelChange",function(r){ae(i);let s=ne(2);return ml(s.exampleCode,r)||(s.exampleCode=r),ue(r)}),be("init",function(r){ae(i);let s=ne(2);return ue(s.editor=r)}),F(),R(6,"button",28),be("click",function(){ae(i);let r=ne(2);return ue(r.openExample(r.current))}),N(7,"Abrir"),F()()}if(t&2){let i=ne(2);G(2),Fn(i.current==null?null:i.current.name),G(2),Fn(i.current==null?null:i.current.description),G(),J("options",i.editorOptions),bo("ngModel",i.exampleCode)}}function lfe(t,e){if(t&1&&(R(0,"div")(1,"as-split",7)(2,"as-split-area",8)(3,"ul",9)(4,"mat-tree",10),ke(5,tfe,6,3,"mat-tree-node",11)(6,rfe,9,6,"mat-nested-tree-node",12),F()()(),R(7,"as-split-area",13),ke(8,sfe,3,0,"div",14)(9,ofe,8,4,"div",15),F()()()),t&2){let i=ne();G(),J("direction",i.isBelowMd?"vertical":"horizontal"),G(),J("size",40),G(2),J("dataSource",i.dataSource)("treeControl",i.treeControl),G(2),J("matTreeNodeDefWhen",i.hasChildren),G(),J("size",60)("ngSwitch",i.current),G(),J("ngSwitchCase",null)}}var gz=(()=>{let e=class e{constructor(n,r){this.http=n,this.responsive=r,this.exampleOpened=new Se,this.current=null,this.loading=!0,this.isBelowMd=!1,this.rawExampleCode="",this.rawExampleCodeId="",this.exampleCode="",this.editorOptions={theme:"portugol",lineNumbers:"off",readOnly:!0,minimap:{enabled:!1},language:"portugol"},this.treeControl=new z0(s=>s.children),this.dataSource=new G0}ngOnInit(){this._data$=this.http.get("assets/recursos/exemplos/index.json").pipe(yv()).subscribe(n=>{this.loading=!1,this.dataSource.data=n})}ngAfterViewInit(){this._responsive$=this.responsive.isBelowMd().subscribe(n=>{this.isBelowMd=n.matches})}ngOnDestroy(){this._responsive$?.unsubscribe(),this._data$?.unsubscribe()}hasChildren(n,r){return r.children?.length??0}loadItem(n){this._loadSubscription$?.unsubscribe(),this.current=n,this.exampleCode="// Carregando\u2026",this.rawExampleCode="",this.rawExampleCodeId="",this._loadSubscription$=this.http.get(`assets/recursos/exemplos/${n.file}`,{responseType:"text"}).subscribe(r=>{if(this.current?.id===n.id){this.rawExampleCode=r,this.rawExampleCodeId=n.id;let s=r.indexOf("*/");this.exampleCode=r.slice(s===-1?0:r.indexOf("*/")+2).trim()}})}openExample(n){if(this.rawExampleCode&&this.rawExampleCodeId===n.id){this.exampleOpened.emit({title:n.name,code:this.rawExampleCode});return}this.loading=!0,this._loadSubscription$?.unsubscribe(),this._loadSubscription$=this.http.get(`assets/recursos/exemplos/${n.file}`,{responseType:"text"}).subscribe(r=>{this.current?.id===n.id&&this.exampleOpened.emit({title:n.name,code:r})})}};e.\u0275fac=function(r){return new(r||e)(I(h2),I($_))},e.\u0275cmp=Me({type:e,selectors:[["app-dialog-open-example"]],outputs:{exampleOpened:"exampleOpened"},decls:9,vars:3,consts:[["mat-dialog-title",""],["tabindex","-1","mat-dialog-close","","mat-icon-button","","aria-label","Fechar di\xE1logo"],["src","assets/mdi/close.svg","svgAriaLabel","\xCDcone de fechar di\xE1logo"],["mat-dialog-content","",3,"ngSwitch"],[3,"diameter",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"diameter"],[3,"direction"],[3,"size"],["id","root"],[3,"dataSource","treeControl"],[4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"d-flex",3,"size","ngSwitch"],["id","empty",4,"ngSwitchCase"],["id","content",4,"ngSwitchDefault"],["mat-ripple","","tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","disabled","","title","Expandir/retrair"],["matTreeNodeToggle",""],["tabindex","-1","mat-icon-button","","matTreeNodeToggle","","aria-label","Expandir/retrair conte\xFAdo da pasta",3,"ngSwitch"],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido",4,"ngSwitchCase"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido",4,"ngSwitchCase"],["matTreeNodeOutlet",""],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido"],["id","empty"],["id","content"],[3,"ngModelChange","init","options","ngModel"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,s){r&1&&(R(0,"header",0)(1,"span"),N(2,"Abrir Exemplo\u2026"),F(),pe(3,"s"),R(4,"button",1),pe(5,"svg-icon",2),F()(),R(6,"main",3),ke(7,efe,1,1,"mat-spinner",4)(8,lfe,10,8,"div",5),F()),r&2&&(G(6),J("ngSwitch",s.loading),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1))},dependencies:[Ia,Bc,aN,Xm,Wf,Y2,J0,Y0,Vo,is,BU,RU,MU,kU,Ga,V0,wg,Sg,Ag,xg,Tg,$0],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;--mdc-dialog-supporting-text-size: 14px;--mdc-dialog-supporting-text-line-height: 21px;--mdc-dialog-supporting-text-color: #fff;height:100%}header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px;border-bottom:1px solid rgba(229,229,229,.4)}mat-spinner[_ngcontent-%COMP%]{margin:0 auto}.hidden[_ngcontent-%COMP%]{display:none!important}as-split-area[_ngcontent-%COMP%]{scrollbar-width:thin}.mat-mdc-tree-node[_ngcontent-%COMP%]{min-height:0!important}ul[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;overflow:hidden;width:100%;cursor:pointer;display:flex}ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center}.mat-mdc-dialog-content[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{display:flex;max-height:100%}main[_ngcontent-%COMP%], main[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-grow:1} .as-split-gutter{background-color:#0003!important}#empty[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center}#empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto}#content[_ngcontent-%COMP%]{width:100%;padding:1rem 1.5rem 1.5rem;position:relative;display:flex;flex-direction:column}#content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}#content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:justify}#content[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{flex-grow:1;margin-bottom:3.75rem}#content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:calc(100% - 22.5px);text-transform:uppercase;position:absolute;bottom:20px;left:15px;right:7.5px;font-size:1.15rem;line-height:3rem}"]});let t=e;return t})();var _z=(()=>{let e=class e{constructor(n,r,s){this.gaService=n,this.sanitizer=r,this.dialog=s,this.newTab=new Se,this.help=new Se;let o=new Date().getMonth()+1,l=new Date().getDate();o===2&&l>=10||o===3&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/carnaval.svg"):o===3&&l>=20||o===4&&l<=25?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/pascoa.svg"):o===10&&l>=20||o===11&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/halloween.svg"):o===12&&l>=15&&l<=29?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/natal.svg"):o===12&&l>=30||o===1&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/ano-novo.svg"):this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/default.svg")}openFile(n){this.gaService.event("home_open_file","Aba Inicial","Abrir arquivo atrav\xE9s da aba Inicial");let{files:r}=n.target;if(!(!r||r.length===0))for(let s=0;s{let u=a.target?.result;this.newTab.emit({name:l.name,contents:u})}),o.readAsText(l,"ISO-8859-1")}}openExamplesDialog(){this.gaService.event("open_examples_dialog","Aba Inicial","Abrir di\xE1logo de exemplos");let n=this.dialog.open(gz,{width:"min(85vw, 780px)",height:"min(85vh, 600px)"});this._dialogExample$=n.componentInstance.exampleOpened.subscribe(r=>{this.gaService.event("open_example","Di\xE1logo de Exemplos",`Abrir exemplo: ${r.title}`),n.close(),this.newTab.emit({name:r.title,contents:r.code})}),this._dialogRef$=n.beforeClosed().subscribe(()=>{this._dialogRef$?.unsubscribe(),this._dialogExample$?.unsubscribe()})}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Eh),I(lp))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-start"]],outputs:{newTab:"newTab",help:"help"},decls:63,vars:1,consts:[["fileInput",""],["width","100%","alt","Logomarca do Portugol Webstudio",1,"logo",3,"src"],["mat-ripple","",3,"click"],["src","assets/mdi/file-plus-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de novo arquivo"],["src","assets/mdi/folder-open-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de pasta para a\xE7\xE3o de abrir arquivo"],["type","file","hidden","","multiple","","accept",".por,text/plain",3,"change"],["src","assets/mdi/book-open-page-variant-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de livro para a\xE7\xE3o de abrir exemplo"],["src","assets/mdi/help.svg","svgClass","text-quaternary","alt","\xCDcone de ajuda"],["href","https://github.com/dgadelha/Portugol-Webstudio/discussions/categories/ideias-e-sugest%C3%B5es","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/lightbulb-on-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de l\xE2mpada para a\xE7\xE3o de enviar sugest\xF5es"],["href","https://github.com/dgadelha/Portugol-Webstudio/discussions/categories/d%C3%BAvidas-perguntas","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/comment-question-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de bal\xE3o de di\xE1logo para a\xE7\xE3o de enviar d\xFAvidas"],["href","https://github.com/dgadelha/Portugol-Webstudio/issues/new?template=bug.yml","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/bug-outline.svg","svgClass","text-tertiary","svgAriaLabel","\xCDcone de inseto para a\xE7\xE3o de reportar um problema"],["href","https://github.com/dgadelha/Portugol-Webstudio","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/icon-github.svg","svgAriaLabel","\xCDcone do GitHub"],[1,"info"],["src","assets/mdi/newspaper.svg","svgAriaLabel","\xCDcone de jornal para not\xEDcias"],["matTooltip","25/07/2024 01:58:46 AM UTC"]],template:function(r,s){if(r&1){let o=mt();pe(0,"img",1),R(1,"nav")(2,"button",2),be("click",function(){return ae(o),ue(s.newTab.emit())}),pe(3,"svg-icon",3),R(4,"span"),N(5,"Novo Arquivo"),F()(),R(6,"button",2),be("click",function(){ae(o);let a=Br(11);return ue(a.click())}),pe(7,"svg-icon",4),R(8,"span"),N(9,"Abrir Arquivo"),F(),R(10,"input",5,0),be("change",function(a){return ae(o),ue(s.openFile(a))}),F()(),R(12,"button",2),be("click",function(){return ae(o),ue(s.openExamplesDialog())}),pe(13,"svg-icon",6),R(14,"span"),N(15,"Abrir Exemplo"),F()(),R(16,"button",2),be("click",function(){return ae(o),ue(s.help.emit())}),pe(17,"svg-icon",7),R(18,"span"),N(19,"Ajuda"),F()(),R(20,"a",8),be("click",function(){return ae(o),ue(s.gaService.event("suggest_features","Aba Inicial","Enviar sugest\xF5es"))}),pe(21,"svg-icon",9),R(22,"span"),N(23,"Sugest\xF5es"),F()(),R(24,"a",10),be("click",function(){return ae(o),ue(s.gaService.event("ask_questions","Aba Inicial","Enviar d\xFAvidas"))}),pe(25,"svg-icon",11),R(26,"span"),N(27,"D\xFAvidas e Perguntas"),F()(),R(28,"a",12),be("click",function(){return ae(o),ue(s.gaService.event("ask_questions","Aba Inicial","Enviar d\xFAvidas"))}),pe(29,"svg-icon",13),R(30,"span"),N(31,"Reportar um problema"),F()(),R(32,"a",14),be("click",function(){return ae(o),ue(s.gaService.event("view_source_code","Aba Inicial","Ver c\xF3digo-fonte"))}),pe(33,"svg-icon",15),R(34,"span"),N(35,"C\xF3digo-fonte"),F()()(),R(36,"section",16)(37,"h4"),pe(38,"svg-icon",17),N(39,"Novidades"),F(),R(40,"p")(41,"strong"),N(42,"02/05/2024:"),F(),N(43," Portugol Webstudio como PWA: funcionamento offline"),F(),R(44,"p")(45,"strong"),N(46,"01/05/2024:"),F(),N(47," Corre\xE7\xE3o de retorno em fun\xE7\xE3o vazia"),F(),R(48,"p")(49,"strong"),N(50,"30/04/2024:"),F()(),R(51,"ul")(52,"li"),N(53,"Melhorias de acessibilidade e ajustes na tela inicial e \xEDcones"),F(),R(54,"li"),N(55,"Corre\xE7\xE3o nas verifica\xE7\xF5es de erros relacionados a escopo e tipos"),F(),R(56,"li"),N(57,"Melhorias na experi\xEAncia de erros e de estabilidade no geral"),F()()(),R(58,"footer")(59,"summary"),N(60,"Vers\xE3o: "),R(61,"span",18),N(62,"703f93a"),F()()()}r&2&&J("src",s.logo,bc)},dependencies:[Vo,is,Cg],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;min-height:100%;padding:2rem}.logo[_ngcontent-%COMP%]{max-width:20rem;margin-bottom:2rem}nav[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr;gap:.5rem;align-items:center;justify-content:center}@media (max-width: 576px){nav[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media (min-width: 768px){nav[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (min-width: 992px){nav[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}}@media (min-width: 768px){nav[_ngcontent-%COMP%]{max-width:50vw}}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;background-color:#121e24;appearance:none;border:none;border-radius:.25rem;color:#fff;font-weight:700;cursor:pointer;transition:all .2s ease;text-decoration:none;font-size:.85rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:100%;text-align:center}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:tint(#121e24,15);color:tint(#fff,15)}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-bottom:1rem;width:2.5rem;height:2.5rem}section[_ngcontent-%COMP%]{max-width:600px;margin:2rem;letter-spacing:.25px;padding:.25rem 1rem;font-family:Lato,sans-serif;font-size:.95rem;color:#fff;border:1px solid rgba(30,30,30,.1);border-radius:.75rem;box-shadow:.3px .5px .7px #0206085c,.8px 1.6px 2px -.8px #0206085c,2.1px 4.1px 5.2px -1.7px #0206085c,5px 10px 12.6px -2.5px #0206085c}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:.5rem 0;line-height:1.5;list-style-type:square}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:top}section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:1rem}section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:1.25rem}section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline;color:#fafafa}section.alert[_ngcontent-%COMP%]{background:#8c2626}section.info[_ngcontent-%COMP%]{background-color:#2559b3}hr[_ngcontent-%COMP%]{margin:1rem 0;border:none;border-top:1px solid rgba(255,255,255,.25)}footer[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}footer[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{font-size:.75rem;color:#fff}footer[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:monospace;color:#c2c2c3;text-transform:uppercase}"]});let t=e;return t})();function ufe(t,e){if(t&1){let i=mt();R(0,"mat-tree-node")(1,"li",8),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))}),R(2,"button",9),pe(3,"svg-icon"),F(),R(4,"span"),N(5),F()()()}if(t&2){let i=e.$implicit,n=ne();G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(4),Fn(i.text)}}function cfe(t,e){t&1&&pe(0,"svg-icon",15)}function dfe(t,e){t&1&&pe(0,"svg-icon",16)}function hfe(t,e){if(t&1){let i=mt();R(0,"mat-nested-tree-node")(1,"li",10),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))}),R(2,"button",11),ke(3,cfe,1,0,"svg-icon",12)(4,dfe,1,0,"svg-icon",13),F(),R(5,"span"),N(6),F()(),R(7,"ul"),Dn(8,14),F()()}if(t&2){let i=e.$implicit,n=ne();G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(),J("ngSwitch",n.treeControl.isExpanded(i)),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1),G(2),Fn(i.text),G(),ut("hidden",!n.treeControl.isExpanded(i))}}function ffe(t,e){if(t&1&&pe(0,"iframe",17),t&2){let i=ne();J("src",i.currentUrl,v9)}}var vz=(()=>{let e=class e{constructor(n,r,s,o,l){this.http=n,this.sanitizer=r,this.ngZone=s,this.gaService=o,this.responsive=l,this.isBelowMd=!1,this.newTab=new Se,this.treeControl=new z0(a=>a.children),this.dataSource=new G0}ngOnInit(){window.portugol={abrirExemplo:(n,r)=>{this.ngZone.run(()=>{this.newTab.emit({name:r,contents:n})})}},this.http.get("assets/recursos/ajuda/scripts/topicos.json").subscribe(n=>{this.dataSource.data=n,this.treeControl.expand(n[0]),this.loadItem(n[0])},()=>{})}ngOnDestroy(){this.responsive$?.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(n=>{this.isBelowMd=n.matches})}hasChildren(n,r){return r.children?.length??0}loadItem(n){this.gaService.event("help_navigation","Ajuda",n.href),this.current=n,this.currentUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`assets/recursos/ajuda/${n.href}`)}};e.\u0275fac=function(r){return new(r||e)(I(h2),I(Eh),I(le),I(Xa),I($_))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-help"]],outputs:{newTab:"newTab"},decls:12,vars:6,consts:[["unit","pixel",3,"direction"],[3,"size"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],["id","root"],[3,"dataSource","treeControl"],[4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[3,"src",4,"ngIf"],["mat-ripple","","tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","disabled","","title","\xCDcone de pasta"],["tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","matTreeNodeToggle","","aria-label","Expandir/retrair conte\xFAdo da pasta",3,"ngSwitch"],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido",4,"ngSwitchCase"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido",4,"ngSwitchCase"],["matTreeNodeOutlet",""],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido"],[3,"src"]],template:function(r,s){r&1&&(R(0,"as-split",0)(1,"as-split-area",1)(2,"header"),pe(3,"svg-icon",2),R(4,"span"),N(5,"Ajuda"),F()(),R(6,"ul",3)(7,"mat-tree",4),ke(8,ufe,6,3,"mat-tree-node",5)(9,hfe,9,8,"mat-nested-tree-node",6),F()()(),R(10,"as-split-area"),ke(11,ffe,1,1,"iframe",7),F()()),r&2&&(J("direction",s.isBelowMd?"vertical":"horizontal"),G(),J("size",350),G(6),J("dataSource",s.dataSource)("treeControl",s.treeControl),G(2),J("matTreeNodeDefWhen",s.hasChildren),G(2),J("ngIf",s.current))},dependencies:[Vc,Ia,Bc,Y2,J0,Vo,is,V0,wg,Sg,Ag,xg,Tg,$0],styles:["header[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#121e24;margin:7.5px;padding:12.5px 15px;font-size:1rem;gap:.5rem}header[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:1.3rem;height:1.3rem}.hidden[_ngcontent-%COMP%]{display:none!important}as-split-area[_ngcontent-%COMP%]{scrollbar-width:thin}.mat-mdc-tree-node[_ngcontent-%COMP%]{min-height:0!important}ul[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#263238}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;overflow:hidden;width:100%;background-color:#263238;cursor:pointer;display:flex}ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#121e24}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center}iframe[_ngcontent-%COMP%]{width:100%;height:100%;display:block;border:0 none}"]});let t=e;return t})();var mfe=()=>({marginLeft:0}),gfe=()=>({});function _fe(t,e){t&1&&(R(0,"span",8),pe(1,"svg-icon",9),F(),R(2,"span",10),N(3,"Portugol Webstudio"),F())}function vfe(t,e){t&1&&pe(0,"svg-icon",21)}function bfe(t,e){t&1&&pe(0,"svg-icon",22)}function yfe(t,e){if(t&1){let i=mt();R(0,"button",23),be("click",function(){ae(i);let r=ne(2).$implicit,s=ne();return ue(s.changeTabTitle(r))}),pe(1,"svg-icon",24),F()}}function Efe(t,e){if(t&1){let i=mt();R(0,"span")(1,"span",14),ke(2,vfe,1,0,"svg-icon",15)(3,bfe,1,0,"svg-icon",16),F(),R(4,"span",10),N(5),F()(),R(6,"span",17),ke(7,yfe,2,0,"button",18),R(8,"button",19),be("click",function(){ae(i);let r=ne().$implicit,s=ne();return ue(s.closeTab(r))}),pe(9,"svg-icon",20),F()()}if(t&2){let i=ne().$implicit;G(),J("ngSwitch",i.type),G(),J("ngSwitchCase","editor"),G(),J("ngSwitchCase","help"),G(2),Fn(i.title),G(2),J("ngIf",i.type==="editor"),G(),Fr(i.type==="editor"?U9(7,mfe):U9(8,gfe))}}function Cfe(t,e){if(t&1){let i=mt();R(0,"app-tab-editor",25),yo("titleChange",function(r){ae(i);let s=ne().$implicit;return ml(s.title,r)||(s.title=r),ue(r)}),be("help",function(){ae(i);let r=ne(2);return ue(r.upsertHelpTab())}),F()}if(t&2){let i=ne().$implicit;bo("title",i.title),J("code",i.contents)}}function Ife(t,e){if(t&1){let i=mt();R(0,"app-tab-help",26),be("newTab",function(r){ae(i);let s=ne(2);return ue(s.addTab(r==null?null:r.name,r==null?null:r.contents))}),F()}}function Tfe(t,e){if(t&1&&(R(0,"mat-tab"),ke(1,Efe,10,9,"ng-template",3),ya(2,11),ke(3,Cfe,1,2,"app-tab-editor",12)(4,Ife,1,0,"app-tab-help",13),Ea(),F()),t&2){let i=e.$implicit;G(2),J("ngSwitch",i.type),G(),J("ngSwitchCase","editor"),G(),J("ngSwitchCase","help")}}function Sfe(t,e){if(t&1){let i=mt();R(0,"button",27),be("click",function(){ae(i);let r=ne();return ue(r.addTab())}),pe(1,"svg-icon",28),F()}}var bz=(()=>{let e=class e{constructor(n,r,s){this.gaService=n,this.storage=r,this.snack=s,this.selected=new aS(0),this.tabs=[],this.tabIndex=1,this.shortcuts=[{key:"ctrl + q",preventDefault:!0,command:()=>{this.closeTab(this.tabs[this.selected.value??0])}},{key:"ctrl + n",preventDefault:!0,command:()=>{this.addTab()}}]}ngOnInit(){return K(this,null,function*(){try{if(window.location.hash.startsWith("#share=")){this.snack.open("Carregando c\xF3digo compartilhado\u2026",void 0,{duration:-1});let n=window.location.hash.slice(7),s=yield(yield mB(Gm(this.storage,n))).text();this.addTab(`C\xF3digo compartilhado (#${n})`,s),this.snack.dismiss(),this.gaService.event("load_shared_code_success","Interface","C\xF3digo compartilhado carregado")}}catch(n){console.error(n),this.snack.dismiss(),this.snack.open("Erro ao carregar c\xF3digo compartilhado","FECHAR",{duration:1e4}),this.gaService.event("load_shared_code_error","Interface","Erro ao carregar c\xF3digo compartilhado")}})}addTab(n,r){this.tabs.push({id:this.tabIndex++,title:n||"Sem t\xEDtulo",contents:r,type:"editor"}),this.selected.setValue(this.tabs.length),this.gaService.event("new_tab_top","Editor","Nova aba",this.tabs.length)}closeTab(n){n.type==="editor"&&!window.confirm("Tem certeza que deseja fechar a aba? O c\xF3digo n\xE3o salvo ser\xE1 perdido.")||(this.tabs.splice(this.tabs.indexOf(n),1),this.selected.setValue(0),this.gaService.event("close_tab","Interface","Fechar aba",this.tabs.length))}changeTabTitle(n){if(this.selected.value!==n.id||n.type!=="editor")return;this.gaService.event("edit_tab_title","Interface","Editar t\xEDtulo de aba");let r=prompt("Digite o novo t\xEDtulo",n.title);r&&(n.title=r)}upsertHelpTab(){let n=this.tabs.findIndex(r=>r.type==="help");n===-1?(this.tabs.push({id:this.tabIndex++,title:"Ajuda",type:"help"}),this.gaService.event("help_tab_open","Interface","Nova aba de ajuda"),this.selected.setValue(this.tabs.length)):(this.gaService.event("help_tab_select","Interface","Selecionar aba de ajuda j\xE1 aberta"),this.selected.setValue(n+1))}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Al),I(up))},e.\u0275cmp=Me({type:e,selectors:[["app-root"]],decls:10,vars:3,consts:[[3,"shortcuts"],["id","preload"],["animationDuration","0","mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[3,"newTab","help"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label","",1,"tab-add"],[1,"tab-icon"],["src","assets/lightbulb.svg","svgClass","text-primary cap-my-height","svgAriaLabel","\xCDcone do Portugol"],[1,"tab-text"],[3,"ngSwitch"],[3,"title","code","titleChange","help",4,"ngSwitchCase"],[3,"newTab",4,"ngSwitchCase"],[1,"tab-icon",3,"ngSwitch"],["src","assets/mdi/file.svg","svgAriaLabel","\xCDcone de arquivo",4,"ngSwitchCase"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda",4,"ngSwitchCase"],[1,"tab-actions"],["mat-icon-button","","aria-label","Renomear aba","matTooltip","Renomear aba",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Fechar aba","matTooltip","Fechar aba",3,"click"],["src","assets/mdi/close.svg","svgAriaLabel","\xCDcone de fechar aba"],["src","assets/mdi/file.svg","svgAriaLabel","\xCDcone de arquivo"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],["mat-icon-button","","aria-label","Renomear aba","matTooltip","Renomear aba",3,"click"],["src","assets/mdi/rename-outline.svg","svgAriaLabel","\xCDcone de renomear aba"],[3,"titleChange","help","title","code"],[3,"newTab"],["mat-icon-button","","aria-label","Nova aba de editor de c\xF3digo","matTooltip","Nova aba de editor de c\xF3digo",1,"add-button",3,"click"],["src","assets/mdi/plus.svg","svgAriaLabel","\xCDcone de adicionar aba"]],template:function(r,s){r&1&&(pe(0,"ng-keyboard-shortcuts",0),R(1,"div",1),pe(2,"ngx-monaco-editor"),F(),R(3,"mat-tab-group",2),be("selectedIndexChange",function(l){return s.selected.setValue(l)}),R(4,"mat-tab"),ke(5,_fe,4,0,"ng-template",3),R(6,"app-tab-start",4),be("newTab",function(l){return s.addTab(l==null?null:l.name,l==null?null:l.contents)})("help",function(){return s.upsertHelpTab()}),F()(),ke(7,Tfe,5,3,"mat-tab",5),R(8,"mat-tab",6),ke(9,Sfe,2,0,"ng-template",7),F()()),r&2&&(J("shortcuts",s.shortcuts),G(3),J("selectedIndex",s.selected.value),G(4),J("ngForOf",s.tabs))},dependencies:[K9,Vc,Ia,Bc,Y0,n_,Vo,$S,GS,QU,V0,Cg,pz,_z,vz],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.5rem}#preload[_ngcontent-%COMP%]{width:0;height:0;opacity:0;z-index:-1} mat-tab-group{display:flex;flex-direction:row;flex-wrap:nowrap;flex-grow:1;border-radius:10px;overflow:hidden} mat-tab-group .mat-mdc-tab{--mdc-secondary-navigation-tab-container-height: 40px;--mat-tab-header-active-label-text-color: $tab-active-color;--mat-tab-header-active-focus-label-text-color: $tab-active-color;--mat-tab-header-active-hover-label-text-color: $tab-active-color;--mat-tab-header-active-hover-indicator-color: $tab-active-color;position:relative;background-color:#445056;color:#cdcdcd;font-weight:700;font-size:14px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding:.5rem 1rem;height:40px;margin-right:1px;text-decoration:none;transition:all .2s ease;opacity:1;justify-content:flex-start;min-width:0;font-family:Lato,sans-serif;-webkit-user-select:none;-moz-user-select:none;user-select:none} mat-tab-group .mat-mdc-tab .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0} mat-tab-group .mat-mdc-tab:hover .mdc-tab__ripple:before{opacity:0} mat-tab-group .mat-mdc-tab.mat-mdc-tab-disabled{opacity:1;pointer-events:auto} mat-tab-group .mat-mdc-tab .mdc-tab-indicator{display:none} mat-tab-group .mat-mdc-tab .mdc-tab__text-label>span{display:inline-flex} mat-tab-group .mat-mdc-tab:last-child{padding:0!important;color:#fff} mat-tab-group .mat-mdc-tab:last-child button{border-radius:0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0){padding-right:0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0):not(.mdc-tab--active){padding-right:16px} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0):not(.mdc-tab--active) .tab-actions{display:none} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0) .add-button{--mdc-icon-button-state-layer-size: 40px;padding:8px 0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mdc-tab__content, mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mat-mdc-tab-ripple, mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mdc-tab__ripple:before{pointer-events:all} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0) button:not(.add-button){border-radius:0;display:inline-block;margin-left:10px;padding:0;width:30px;height:30px;line-height:0;--mdc-icon-button-icon-size: 20px} mat-tab-group .mat-mdc-tab.mdc-tab--active, mat-tab-group .mat-mdc-tab:focus:not(.mat-mdc-tab-disabled){background-color:#263238!important;color:#cdcdcd!important} mat-tab-group .mat-mdc-tab.mdc-tab--active:after, mat-tab-group .mat-mdc-tab:focus:not(.mat-mdc-tab-disabled):after{content:"";position:absolute;top:0;left:0;right:0;width:100%;height:1px;background-color:#ffc200} mat-tab-group .mat-mdc-tab .tab-icon svg, mat-tab-group .mat-mdc-tab .tab-icon img, mat-tab-group .mat-mdc-tab .tab-add-icon{display:flex;align-items:center;justify-content:center;width:1rem;margin-right:.5rem;color:#cdcdcd;fill:currentColor} mat-tab-group .mat-mdc-tab .tab-text{flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:normal} mat-tab-group .mat-mdc-tab-body-wrapper{flex-grow:1} mat-tab-group .mat-mdc-tab-body-wrapper mat-tab-body{background-color:#263238;color:#cdcdcd;flex-grow:1;overflow:hidden}.cap-my-height[_ngcontent-%COMP%]{height:1.15rem}']});let t=e;return t})();var ax=(()=>{let e=class e{constructor(n){this.monacoLoaderService=n,this.monacoLoaderService.isMonacoLoaded$.pipe(Ge(r=>r),en(1)).subscribe(()=>{try{monaco.languages.register({id:"portugol",extensions:[".por"],aliases:["Portugol"]}),monaco.languages.setLanguageConfiguration("portugol",{wordPattern:/(-?\d*\.\d\w*)|([^\s!"#%&'()*+,./:;<=>?@[\\\]^`{|}~\-]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:monaco.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^*]|\*(?!\/))*$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|( {2}))* \*( ([^*]|\*(?!\/))*)?$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|( {2}))* \*\/\s*$/,action:{indentAction:monaco.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:/^\s*\/\/\s*#?region\b/,end:/^\s*\/\/\s*#?endregion\b/}}}),monaco.languages.setMonarchTokensProvider("portugol",{defaultToken:"invalid",tokenPostfix:".portugol",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],keywords:["faca","enquanto","para","se","senao","const","funcao","programa","escolha","caso","contrario","pare","retorne","inclua","biblioteca","verdadeiro","falso"],typeKeywords:["real","inteiro","vazio","logico","cadeia","caracter"],operators:["nao","e","ou","-","+","*","/","%","=","==","!=",">","<","<=",">=","++","--","<<",">>","^","|","~","-->","&","+=","-=","*=","/="],symbols:/[!%&*+/:<=>?^|~\-]+/,escapes:/\\(?:["'\\abfnrtv]|x[\dA-Fa-f]{1,4}|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[01]+(_+[01]+)*/,hexdigits:/[\dA-F[a-f]+(_+[\dA-Fa-f]+)*/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/([1A-Z_a-z{}]\w+)(?=\s*\()/,"functions"],{include:"common"}],common:[[/[$_a-z][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w$]*/,"type.identifier"],{include:"@whitespace"},[/[()[\]{}]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([Ee][+\-]?\d+)?/,"number.float"],[/0[Xx][\dA-Fa-f]+/,"number.hex"],[/\d+/,"number"],[/[,.;]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'[^'\\]'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],comment:[[/[^*/]+/,"comment"],[/\/\*/,"comment","@push"],[String.raw`\*/`,"comment","@pop"],[/[*/]/,"comment"]],string:[[/[^"\\]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[\t\n\r ]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],bracketCounting:[[/{/,"delimiter.bracket","@bracketCounting"],[/}/,"delimiter.bracket","@pop"],{include:"common"}]}}),monaco.editor.defineTheme("portugol",{base:"vs-dark",inherit:!0,rules:[{token:"functions",foreground:"F5D7A9"},{token:"string.escape",foreground:"D2BB85"},{token:"string.escape.invalid",foreground:"DF5953"}],colors:{}})}catch(r){console.error(r),window.location.reload()}})}};e.\u0275fac=function(r){return new(r||e)(x(ww))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var yz=(()=>{let e=class e{constructor(n){this.toastRef=n}onReload(){confirm(`Lembre-se de salvar seu c\xF3digo antes de recarregar a p\xE1gina! +`,this._stdOut$=this.executor.stdOut$.subscribe(()=>{this.stdOutEditorCursorEnd()}),this._events$=this.executor.events.subscribe({next:n=>{switch(n.type){case"error":{this.gaService.event("execution_error","Execu\xE7\xE3o","Erro em execu\xE7\xE3o de c\xF3digo");break}case"parseError":{this.setEditorErrors(n.errors);break}default:break}},error:n=>{this.gaService.event("execution_runner_error","Execu\xE7\xE3o","Erro ao carregar o runner para rodar o c\xF3digo"),un(n,{extra:{code:this.code}})}})}ngOnDestroy(){this._code$?.unsubscribe(),this._events$?.unsubscribe(),this._stdOut$?.unsubscribe(),this.executor.stop()}runCode(){return K(this,null,function*(){this.gaService.event("editor_start_execution","Editor","Bot\xE3o de Iniciar Execu\xE7\xE3o"),O7("code",this.code),this.transpiling=!0;let n=this.code??"",r;try{r=yield this.worker.transpileCode(n)}catch(s){un(s,{tags:{transpile:!0},extra:{code:n}}),alert("Ocorreu um erro ao transpilar o c\xF3digo, possivelmente o seu navegador n\xE3o suporta Web Workers. Por favor, tente novamente em outro navegador. Caso o erro persista, acesse https://github.com/dgadelha/Portugol-Webstudio/issues/new/choose"),alert(s)}finally{this.transpiling=!1}r&&(this.setEditorErrors([]),this.executor.runTranspiled(ee(b({},r),{code:n})))})}stopCode(){this.gaService.event("editor_stop_execution","Editor","Bot\xE3o de Parar Execu\xE7\xE3o"),this.executor.stop(),this.transpiling&&(this.worker.abortTranspilation(),this.transpiling=!1),this.stdOutEditorCursorEnd()}openFile(n){this.gaService.event("editor_open_file","Editor","Bot\xE3o de Abrir arquivo");let{files:r}=n.target;if(!r||r.length===0)return;let s=new FileReader,o=r[0];s.addEventListener("load",l=>{let a=l.target?.result;this.title=o.name,this.titleChange.emit(o.name),this.code=a?.toString()}),s.readAsText(o,"ISO-8859-1")}saveFile(){this.gaService.event("editor_save_file","Editor","Bot\xE3o de Salvar arquivo");let r=new fz.TextEncoder("ISO-8859-1",{NONSTANDARD_allowLegacyEncoding:!0}).encode(this.code),s=new Blob([r],{type:"application/octet-stream; charset=ISO-8859-1"}),o=this.title||"Sem t\xEDtulo";o.endsWith(".por")||(o+=".por"),(0,hz.saveAs)(s,o,{autoBom:!1})}onStdOutEditorInit(n){this.initShortcuts(n),this.stdOutEditor=n,n.onKeyDown(r=>{this.executor.waitingForInput&&(r.code==="Enter"||r.browserEvent.keyCode===13||r.browserEvent.key==="Enter"?this.executor.stdIn.next("\r"):r.code==="Backspace"?this.executor.stdIn.next("\b"):r.browserEvent.key.length===1&&this.executor.stdIn.next(r.browserEvent.key))})}stdOutEditorCursorEnd(){if(!this.stdOutEditor)return;let n=this.stdOutEditor,r=n.getModel();r&&(setTimeout(()=>{n.setPosition({lineNumber:r.getLineCount(),column:r.getLineMaxColumn(r.getLineCount())}),n.setScrollPosition({scrollLeft:0,scrollTop:n.getScrollHeight()})},1),n.focus())}initShortcuts(n){n.addAction({id:"runCode",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],label:"Executar c\xF3digo",run:this.runCode.bind(this)}),n.addAction({id:"saveFile",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyS],label:"Salvar arquivo",run:this.saveFile.bind(this)}),n.addAction({id:"openFile",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyO],label:"Abrir arquivo",run:()=>{this.fileInput.nativeElement.click()}}),n.addAction({id:"openHelp",keybindings:[monaco.KeyCode.F1],label:"Ajuda",run:this.openHelp.bind(this)})}onEditorInit(n){this.codeEditor=n,this.initShortcuts(n),this._code$?.unsubscribe(),this._code$=o8(n.onDidChangeModelContent).pipe(Ki(500),dr(()=>K(this,null,function*(){return this.worker.checkCode(this.code??"")}))).subscribe({next:r=>{this.setEditorErrors(r.errors)},error(r){console.error(r)}})}openHelp(){this.gaService.event("editor_help_tab_open","Editor","Nova aba de ajuda atrav\xE9s do Editor"),this.help.emit()}shareFile(){return K(this,null,function*(){if(!this.code)return;this.sharing=!0;let n=(Math.random()+1).toString(36).slice(2,9);(yield _B(Gm(this.storage,n),this.code,void 0,{contentType:"text/plain"}).catch(s=>(console.error(s),null)))?(this.snack.openFromTemplate(this.shareSnackTemplate,{data:{url:`https://portugol.dev/#share=${n}`}}),this.gaService.event("share_code_success","Editor","C\xF3digo compartilhado com sucesso")):(this.snack.open("Ocorreu um erro ao compartilhar o arquivo. Tente novamente mais tarde.","OK",{duration:3e3}),this.gaService.event("share_code_error","Editor","Erro ao compartilhar c\xF3digo")),setTimeout(()=>{this.sharing=!1},1e3)})}copyStringAndCloseSnack(n){return K(this,null,function*(){yield navigator.clipboard.writeText(n),this.snack.dismiss()})}setEditorErrors(n){let r=this.codeEditor?.getModel();r&&monaco.editor.setModelMarkers(r,"owner",n.map(s=>({startLineNumber:s.startLine,startColumn:s.startCol+1,endLineNumber:s.endLine,endColumn:s.endCol+2,message:s.message,severity:monaco.MarkerSeverity.Error})))}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Al),I(up),I(dz))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-editor"]],viewQuery:function(r,s){if(r&1&&(Et(Zhe,5),Et(Xhe,5,xt)),r&2){let o;nt(o=it())&&(s.fileInput=o.first),nt(o=it())&&(s.shareSnackTemplate=o.first)}},inputs:{title:"title",code:"code"},outputs:{titleChange:"titleChange",help:"help"},decls:30,vars:14,consts:[["fileInput",""],["shareSnackTemplate",""],[3,"shortcuts"],[1,"sidebar"],["mat-ripple","","type","button","title","Iniciar execu\xE7\xE3o",1,"sidebar-button",3,"click","disabled"],["src","assets/icon-start.svg","svgAriaLabel","\xCDcone de iniciar execu\xE7\xE3o"],["mat-ripple","","type","button","title","Parar execu\xE7\xE3o",1,"sidebar-button",3,"click","disabled"],["src","assets/mdi/square-rounded-outline.svg","svgClass","text-tertiary","svgAriaLabel","\xCDcone de parar execu\xE7\xE3o"],[1,"sidebar-divider"],["mat-ripple","","type","button","title","Salvar arquivo",1,"sidebar-button",3,"click"],["src","assets/mdi/content-save-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de disquete para a\xE7\xE3o de salvar arquivo"],["mat-ripple","","type","button","title","Abrir arquivo",1,"sidebar-button",3,"click"],["src","assets/mdi/folder-open-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de pasta para a\xE7\xE3o de abrir arquivo"],["type","file","hidden","","accept",".por,text/plain",3,"change"],["mat-ripple","","type","button","title","Compartilhar c\xF3digo",1,"sidebar-button",3,"click","disabled"],["src","assets/mdi/share-variant-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de compartilhar c\xF3digo"],["mat-ripple","","type","button","title","Abrir se\xE7\xE3o de Ajuda",1,"sidebar-button",3,"click"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],[1,"editor-inner"],["direction","vertical"],[3,"size"],["direction","horizontal"],[3,"ngModelChange","init","options","ngModel"],[3,"ngModelChange","options","ngModel"],["id","output",3,"ngModelChange","init","options","ngModel"],[1,"share-snack"],["target","_blank",3,"href"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,s){if(r&1){let o=mt();pe(0,"ng-keyboard-shortcuts",2),R(1,"div",3)(2,"button",4),be("click",function(){return ae(o),ue(s.runCode())}),pe(3,"svg-icon",5),F(),R(4,"button",6),be("click",function(){return ae(o),ue(s.stopCode())}),pe(5,"svg-icon",7),F(),pe(6,"div",8),R(7,"button",9),be("click",function(){return ae(o),ue(s.saveFile())}),pe(8,"svg-icon",10),F(),R(9,"button",11),be("click",function(){ae(o);let a=Br(12);return ue(a.click())}),pe(10,"svg-icon",12),R(11,"input",13,0),be("change",function(a){return ae(o),ue(s.openFile(a))}),F()(),R(13,"button",14),be("click",function(){return ae(o),ue(s.shareFile())}),pe(14,"svg-icon",15),F(),pe(15,"div",8),R(16,"button",16),be("click",function(){return ae(o),ue(s.openHelp())}),pe(17,"svg-icon",17),F()(),R(18,"div",18)(19,"as-split",19)(20,"as-split-area",20)(21,"as-split",21)(22,"as-split-area",20)(23,"ngx-monaco-editor",22),yo("ngModelChange",function(a){return ae(o),ml(s.code,a)||(s.code=a),ue(a)}),be("init",function(a){return ae(o),ue(s.onEditorInit(a))}),F()(),R(24,"as-split-area",20)(25,"ngx-monaco-editor",23),yo("ngModelChange",function(a){return ae(o),ml(s.executor.byteCode,a)||(s.executor.byteCode=a),ue(a)}),F()()()(),R(26,"as-split-area",20)(27,"ngx-monaco-editor",24),yo("ngModelChange",function(a){return ae(o),ml(s.executor.stdOut,a)||(s.executor.stdOut=a),ue(a)}),be("init",function(a){return ae(o),ue(s.onStdOutEditorInit(a))}),F()()()(),ke(28,Qhe,14,10,"ng-template",null,1,a2)}r&2&&(J("shortcuts",s.shortcuts),G(2),J("disabled",s.executor.running||s.transpiling),G(2),J("disabled",!s.executor.running&&!s.transpiling),G(9),J("disabled",s.sharing),G(7),J("size",80),G(2),J("size",100),G(),J("options",s.codeEditorOptions),bo("ngModel",s.code),G(),J("size",0),G(),J("options",s.generatedCodeEditorOptions),bo("ngModel",s.executor.byteCode),G(),J("size",20),G(),J("options",s.stdOutEditorOptions),bo("ngModel",s.executor.stdOut))},dependencies:[Xm,Wf,Y2,J0,Y0,n_,Vo,is,Ga,uN],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;height:100%} .editor-inner .monaco-editor .monaco-hover{position:fixed;z-index:9999}.editor-inner[_ngcontent-%COMP%]{background-color:#202b30;flex-grow:1;display:flex}.editor-inner[_ngcontent-%COMP%] as-split-area[_ngcontent-%COMP%]{overflow:hidden}.editor-inner[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{flex-grow:1}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.sidebar-button[_ngcontent-%COMP%]{appearance:none;display:flex;align-items:center;justify-content:center;padding:1rem;background-color:#263238;color:#cdcdcd;border:none;transition:all .2s ease;cursor:pointer}.sidebar-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#354046}.sidebar-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;pointer-events:none}.sidebar-button[_ngcontent-%COMP%]:disabled svg[_ngcontent-%COMP%]{filter:grayscale(1);-webkit-transform:translateZ(0)}.sidebar-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .sidebar-button[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;fill:currentColor}.sidebar-divider[_ngcontent-%COMP%]{margin-top:.5rem;margin-bottom:.5rem;width:100%;height:1px;background-color:#445056} #output .monaco-editor-overlaymessage{display:none!important}#bug[_ngcontent-%COMP%]{position:absolute;bottom:7.5px;right:7.5px}.share-snack[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:9pt;margin:0;display:block;text-align:center}"]});let t=e;return t})();var $_=(()=>{let e=class e{constructor(n){this.observer=n}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}};e.\u0275fac=function(r){return new(r||e)(x(L0))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function efe(t,e){t&1&&pe(0,"mat-spinner",6),t&2&&J("diameter",50)}function tfe(t,e){if(t&1){let i=mt();R(0,"mat-tree-node")(1,"li",16),be("click",function(){let r=ae(i).$implicit,s=ne(2);return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne(2);return ue(s.loadItem(r))}),R(2,"button",17),pe(3,"svg-icon"),F(),R(4,"span"),k(5),F()()()}if(t&2){let i=e.$implicit,n=ne(2);G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(4),Fn(i.name)}}function nfe(t,e){t&1&&pe(0,"svg-icon",23)}function ife(t,e){t&1&&pe(0,"svg-icon",24)}function rfe(t,e){if(t&1&&(R(0,"mat-nested-tree-node")(1,"li",18)(2,"button",19),ke(3,nfe,1,0,"svg-icon",20)(4,ife,1,0,"svg-icon",21),F(),R(5,"span"),k(6),F()(),R(7,"ul"),Dn(8,22),F()()),t&2){let i=e.$implicit,n=ne(2);G(2),J("ngSwitch",n.treeControl.isExpanded(i)),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1),G(2),Fn(i.name),G(),ut("hidden",!n.treeControl.isExpanded(i))}}function sfe(t,e){t&1&&(R(0,"div",25)(1,"p"),k(2,"Selecione um exemplo ao lado."),F()())}function ofe(t,e){if(t&1){let i=mt();R(0,"div",26)(1,"h3"),k(2),F(),R(3,"p"),k(4),F(),R(5,"ngx-monaco-editor",27),yo("ngModelChange",function(r){ae(i);let s=ne(2);return ml(s.exampleCode,r)||(s.exampleCode=r),ue(r)}),be("init",function(r){ae(i);let s=ne(2);return ue(s.editor=r)}),F(),R(6,"button",28),be("click",function(){ae(i);let r=ne(2);return ue(r.openExample(r.current))}),k(7,"Abrir"),F()()}if(t&2){let i=ne(2);G(2),Fn(i.current==null?null:i.current.name),G(2),Fn(i.current==null?null:i.current.description),G(),J("options",i.editorOptions),bo("ngModel",i.exampleCode)}}function lfe(t,e){if(t&1&&(R(0,"div")(1,"as-split",7)(2,"as-split-area",8)(3,"ul",9)(4,"mat-tree",10),ke(5,tfe,6,3,"mat-tree-node",11)(6,rfe,9,6,"mat-nested-tree-node",12),F()()(),R(7,"as-split-area",13),ke(8,sfe,3,0,"div",14)(9,ofe,8,4,"div",15),F()()()),t&2){let i=ne();G(),J("direction",i.isBelowMd?"vertical":"horizontal"),G(),J("size",40),G(2),J("dataSource",i.dataSource)("treeControl",i.treeControl),G(2),J("matTreeNodeDefWhen",i.hasChildren),G(),J("size",60)("ngSwitch",i.current),G(),J("ngSwitchCase",null)}}var gz=(()=>{let e=class e{constructor(n,r){this.http=n,this.responsive=r,this.exampleOpened=new Se,this.current=null,this.loading=!0,this.isBelowMd=!1,this.rawExampleCode="",this.rawExampleCodeId="",this.exampleCode="",this.editorOptions={theme:"portugol",lineNumbers:"off",readOnly:!0,minimap:{enabled:!1},language:"portugol"},this.treeControl=new z0(s=>s.children),this.dataSource=new G0}ngOnInit(){this._data$=this.http.get("assets/recursos/exemplos/index.json").pipe(yv()).subscribe(n=>{this.loading=!1,this.dataSource.data=n})}ngAfterViewInit(){this._responsive$=this.responsive.isBelowMd().subscribe(n=>{this.isBelowMd=n.matches})}ngOnDestroy(){this._responsive$?.unsubscribe(),this._data$?.unsubscribe()}hasChildren(n,r){return r.children?.length??0}loadItem(n){this._loadSubscription$?.unsubscribe(),this.current=n,this.exampleCode="// Carregando\u2026",this.rawExampleCode="",this.rawExampleCodeId="",this._loadSubscription$=this.http.get(`assets/recursos/exemplos/${n.file}`,{responseType:"text"}).subscribe(r=>{if(this.current?.id===n.id){this.rawExampleCode=r,this.rawExampleCodeId=n.id;let s=r.indexOf("*/");this.exampleCode=r.slice(s===-1?0:r.indexOf("*/")+2).trim()}})}openExample(n){if(this.rawExampleCode&&this.rawExampleCodeId===n.id){this.exampleOpened.emit({title:n.name,code:this.rawExampleCode});return}this.loading=!0,this._loadSubscription$?.unsubscribe(),this._loadSubscription$=this.http.get(`assets/recursos/exemplos/${n.file}`,{responseType:"text"}).subscribe(r=>{this.current?.id===n.id&&this.exampleOpened.emit({title:n.name,code:r})})}};e.\u0275fac=function(r){return new(r||e)(I(h2),I($_))},e.\u0275cmp=Me({type:e,selectors:[["app-dialog-open-example"]],outputs:{exampleOpened:"exampleOpened"},decls:9,vars:3,consts:[["mat-dialog-title",""],["tabindex","-1","mat-dialog-close","","mat-icon-button","","aria-label","Fechar di\xE1logo"],["src","assets/mdi/close.svg","svgAriaLabel","\xCDcone de fechar di\xE1logo"],["mat-dialog-content","",3,"ngSwitch"],[3,"diameter",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"diameter"],[3,"direction"],[3,"size"],["id","root"],[3,"dataSource","treeControl"],[4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"d-flex",3,"size","ngSwitch"],["id","empty",4,"ngSwitchCase"],["id","content",4,"ngSwitchDefault"],["mat-ripple","","tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","disabled","","title","Expandir/retrair"],["matTreeNodeToggle",""],["tabindex","-1","mat-icon-button","","matTreeNodeToggle","","aria-label","Expandir/retrair conte\xFAdo da pasta",3,"ngSwitch"],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido",4,"ngSwitchCase"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido",4,"ngSwitchCase"],["matTreeNodeOutlet",""],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido"],["id","empty"],["id","content"],[3,"ngModelChange","init","options","ngModel"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,s){r&1&&(R(0,"header",0)(1,"span"),k(2,"Abrir Exemplo\u2026"),F(),pe(3,"s"),R(4,"button",1),pe(5,"svg-icon",2),F()(),R(6,"main",3),ke(7,efe,1,1,"mat-spinner",4)(8,lfe,10,8,"div",5),F()),r&2&&(G(6),J("ngSwitch",s.loading),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1))},dependencies:[Ia,Bc,aN,Xm,Wf,Y2,J0,Y0,Vo,is,BU,RU,MU,kU,Ga,V0,wg,Sg,Ag,xg,Tg,$0],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;--mdc-dialog-supporting-text-size: 14px;--mdc-dialog-supporting-text-line-height: 21px;--mdc-dialog-supporting-text-color: #fff;height:100%}header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px;border-bottom:1px solid rgba(229,229,229,.4)}mat-spinner[_ngcontent-%COMP%]{margin:0 auto}.hidden[_ngcontent-%COMP%]{display:none!important}as-split-area[_ngcontent-%COMP%]{scrollbar-width:thin}.mat-mdc-tree-node[_ngcontent-%COMP%]{min-height:0!important}ul[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;overflow:hidden;width:100%;cursor:pointer;display:flex}ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center}.mat-mdc-dialog-content[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{display:flex;max-height:100%}main[_ngcontent-%COMP%], main[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-grow:1} .as-split-gutter{background-color:#0003!important}#empty[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center}#empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto}#content[_ngcontent-%COMP%]{width:100%;padding:1rem 1.5rem 1.5rem;position:relative;display:flex;flex-direction:column}#content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}#content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:justify}#content[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{flex-grow:1;margin-bottom:3.75rem}#content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:calc(100% - 22.5px);text-transform:uppercase;position:absolute;bottom:20px;left:15px;right:7.5px;font-size:1.15rem;line-height:3rem}"]});let t=e;return t})();var _z=(()=>{let e=class e{constructor(n,r,s){this.gaService=n,this.sanitizer=r,this.dialog=s,this.newTab=new Se,this.help=new Se;let o=new Date().getMonth()+1,l=new Date().getDate();o===2&&l>=10||o===3&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/carnaval.svg"):o===3&&l>=20||o===4&&l<=25?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/pascoa.svg"):o===10&&l>=20||o===11&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/halloween.svg"):o===12&&l>=15&&l<=29?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/natal.svg"):o===12&&l>=30||o===1&&l<=5?this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/ano-novo.svg"):this.logo=this.sanitizer.bypassSecurityTrustResourceUrl("assets/logo/default.svg")}openFile(n){this.gaService.event("home_open_file","Aba Inicial","Abrir arquivo atrav\xE9s da aba Inicial");let{files:r}=n.target;if(!(!r||r.length===0))for(let s=0;s{let u=a.target?.result;this.newTab.emit({name:l.name,contents:u})}),o.readAsText(l,"ISO-8859-1")}}openExamplesDialog(){this.gaService.event("open_examples_dialog","Aba Inicial","Abrir di\xE1logo de exemplos");let n=this.dialog.open(gz,{width:"min(85vw, 780px)",height:"min(85vh, 600px)"});this._dialogExample$=n.componentInstance.exampleOpened.subscribe(r=>{this.gaService.event("open_example","Di\xE1logo de Exemplos",`Abrir exemplo: ${r.title}`),n.close(),this.newTab.emit({name:r.title,contents:r.code})}),this._dialogRef$=n.beforeClosed().subscribe(()=>{this._dialogRef$?.unsubscribe(),this._dialogExample$?.unsubscribe()})}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Eh),I(lp))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-start"]],outputs:{newTab:"newTab",help:"help"},decls:65,vars:1,consts:[["fileInput",""],["width","100%","alt","Logomarca do Portugol Webstudio",1,"logo",3,"src"],["mat-ripple","",3,"click"],["src","assets/mdi/file-plus-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de novo arquivo"],["src","assets/mdi/folder-open-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de pasta para a\xE7\xE3o de abrir arquivo"],["type","file","hidden","","multiple","","accept",".por,text/plain",3,"change"],["src","assets/mdi/book-open-page-variant-outline.svg","svgClass","text-primary","svgAriaLabel","\xCDcone de livro para a\xE7\xE3o de abrir exemplo"],["src","assets/mdi/help.svg","svgClass","text-quaternary","alt","\xCDcone de ajuda"],["href","https://github.com/dgadelha/Portugol-Webstudio/discussions/categories/ideias-e-sugest%C3%B5es","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/lightbulb-on-outline.svg","svgClass","text-secondary","svgAriaLabel","\xCDcone de l\xE2mpada para a\xE7\xE3o de enviar sugest\xF5es"],["href","https://github.com/dgadelha/Portugol-Webstudio/discussions/categories/d%C3%BAvidas-perguntas","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/comment-question-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de bal\xE3o de di\xE1logo para a\xE7\xE3o de enviar d\xFAvidas"],["href","https://github.com/dgadelha/Portugol-Webstudio/issues/new?template=bug.yml","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/mdi/bug-outline.svg","svgClass","text-tertiary","svgAriaLabel","\xCDcone de inseto para a\xE7\xE3o de reportar um problema"],["href","https://github.com/dgadelha/Portugol-Webstudio","target","_blank","rel","external noreferrer noopener nofollow","mat-ripple","",3,"click"],["src","assets/icon-github.svg","svgAriaLabel","\xCDcone do GitHub"],[1,"info"],["src","assets/mdi/newspaper.svg","svgAriaLabel","\xCDcone de jornal para not\xEDcias"],["matTooltip","25/07/2024 02:07:27 AM UTC"]],template:function(r,s){if(r&1){let o=mt();pe(0,"img",1),R(1,"nav")(2,"button",2),be("click",function(){return ae(o),ue(s.newTab.emit())}),pe(3,"svg-icon",3),R(4,"span"),k(5,"Novo Arquivo"),F()(),R(6,"button",2),be("click",function(){ae(o);let a=Br(11);return ue(a.click())}),pe(7,"svg-icon",4),R(8,"span"),k(9,"Abrir Arquivo"),F(),R(10,"input",5,0),be("change",function(a){return ae(o),ue(s.openFile(a))}),F()(),R(12,"button",2),be("click",function(){return ae(o),ue(s.openExamplesDialog())}),pe(13,"svg-icon",6),R(14,"span"),k(15,"Abrir Exemplo"),F()(),R(16,"button",2),be("click",function(){return ae(o),ue(s.help.emit())}),pe(17,"svg-icon",7),R(18,"span"),k(19,"Ajuda"),F()(),R(20,"a",8),be("click",function(){return ae(o),ue(s.gaService.event("suggest_features","Aba Inicial","Enviar sugest\xF5es"))}),pe(21,"svg-icon",9),R(22,"span"),k(23,"Sugest\xF5es"),F()(),R(24,"a",10),be("click",function(){return ae(o),ue(s.gaService.event("ask_questions","Aba Inicial","Enviar d\xFAvidas"))}),pe(25,"svg-icon",11),R(26,"span"),k(27,"D\xFAvidas e Perguntas"),F()(),R(28,"a",12),be("click",function(){return ae(o),ue(s.gaService.event("ask_questions","Aba Inicial","Enviar d\xFAvidas"))}),pe(29,"svg-icon",13),R(30,"span"),k(31,"Reportar um problema"),F()(),R(32,"a",14),be("click",function(){return ae(o),ue(s.gaService.event("view_source_code","Aba Inicial","Ver c\xF3digo-fonte"))}),pe(33,"svg-icon",15),R(34,"span"),k(35,"C\xF3digo-fonte"),F()()(),R(36,"section",16)(37,"h4"),pe(38,"svg-icon",17),k(39,"Novidades"),F(),R(40,"p")(41,"strong"),k(42,"24/07/2024:"),F(),k(43," Corre\xE7\xE3o nas fun\xE7\xF5es "),R(44,"code"),k(45,"maior_numero"),F(),k(46," e "),R(47,"code"),k(48,"menor_numero"),F(),k(49," da biblioteca "),R(50,"code"),k(51,"Matematica"),F()(),R(52,"p")(53,"strong"),k(54,"02/05/2024:"),F(),k(55," Portugol Webstudio como PWA: funcionamento offline"),F(),R(56,"p")(57,"strong"),k(58,"01/05/2024:"),F(),k(59," Corre\xE7\xE3o de retorno em fun\xE7\xE3o vazia"),F()(),R(60,"footer")(61,"summary"),k(62,"Vers\xE3o: "),R(63,"span",18),k(64,"442fce4"),F()()()}r&2&&J("src",s.logo,bc)},dependencies:[Vo,is,Cg],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;min-height:100%;padding:2rem}.logo[_ngcontent-%COMP%]{max-width:20rem;margin-bottom:2rem}nav[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr;gap:.5rem;align-items:center;justify-content:center}@media (max-width: 576px){nav[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media (min-width: 768px){nav[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (min-width: 992px){nav[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}}@media (min-width: 768px){nav[_ngcontent-%COMP%]{max-width:50vw}}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;background-color:#121e24;appearance:none;border:none;border-radius:.25rem;color:#fff;font-weight:700;cursor:pointer;transition:all .2s ease;text-decoration:none;font-size:.85rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:100%;text-align:center}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:tint(#121e24,15);color:tint(#fff,15)}nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > svg-icon[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-bottom:1rem;width:2.5rem;height:2.5rem}section[_ngcontent-%COMP%]{max-width:600px;margin:2rem;letter-spacing:.25px;padding:.25rem 1rem;font-family:Lato,sans-serif;font-size:.95rem;color:#fff;border:1px solid rgba(30,30,30,.1);border-radius:.75rem;box-shadow:.3px .5px .7px #0206085c,.8px 1.6px 2px -.8px #0206085c,2.1px 4.1px 5.2px -1.7px #0206085c,5px 10px 12.6px -2.5px #0206085c}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:.5rem 0;line-height:1.5;list-style-type:square}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], section[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:top}section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:1rem}section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:1.25rem}section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline;color:#fafafa}code[_ngcontent-%COMP%]{font-family:Lato,sans-serif;font-size:.85rem;border-radius:.25rem;background-color:#2d2d2d;color:#fff;padding:.25rem .5rem;margin:0 .25rem}section.alert[_ngcontent-%COMP%]{background:#8c2626}section.info[_ngcontent-%COMP%]{background-color:#2559b3}hr[_ngcontent-%COMP%]{margin:1rem 0;border:none;border-top:1px solid rgba(255,255,255,.25)}footer[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}footer[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{font-size:.75rem;color:#fff}footer[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:monospace;color:#c2c2c3;text-transform:uppercase}"]});let t=e;return t})();function ufe(t,e){if(t&1){let i=mt();R(0,"mat-tree-node")(1,"li",8),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))}),R(2,"button",9),pe(3,"svg-icon"),F(),R(4,"span"),k(5),F()()()}if(t&2){let i=e.$implicit,n=ne();G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(4),Fn(i.text)}}function cfe(t,e){t&1&&pe(0,"svg-icon",15)}function dfe(t,e){t&1&&pe(0,"svg-icon",16)}function hfe(t,e){if(t&1){let i=mt();R(0,"mat-nested-tree-node")(1,"li",10),be("click",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))})("keydown.enter",function(){let r=ae(i).$implicit,s=ne();return ue(s.loadItem(r))}),R(2,"button",11),ke(3,cfe,1,0,"svg-icon",12)(4,dfe,1,0,"svg-icon",13),F(),R(5,"span"),k(6),F()(),R(7,"ul"),Dn(8,14),F()()}if(t&2){let i=e.$implicit,n=ne();G(),ut("active",(n.current==null?null:n.current.id)===i.id),G(),J("ngSwitch",n.treeControl.isExpanded(i)),G(),J("ngSwitchCase",!0),G(),J("ngSwitchCase",!1),G(2),Fn(i.text),G(),ut("hidden",!n.treeControl.isExpanded(i))}}function ffe(t,e){if(t&1&&pe(0,"iframe",17),t&2){let i=ne();J("src",i.currentUrl,v9)}}var vz=(()=>{let e=class e{constructor(n,r,s,o,l){this.http=n,this.sanitizer=r,this.ngZone=s,this.gaService=o,this.responsive=l,this.isBelowMd=!1,this.newTab=new Se,this.treeControl=new z0(a=>a.children),this.dataSource=new G0}ngOnInit(){window.portugol={abrirExemplo:(n,r)=>{this.ngZone.run(()=>{this.newTab.emit({name:r,contents:n})})}},this.http.get("assets/recursos/ajuda/scripts/topicos.json").subscribe(n=>{this.dataSource.data=n,this.treeControl.expand(n[0]),this.loadItem(n[0])},()=>{})}ngOnDestroy(){this.responsive$?.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(n=>{this.isBelowMd=n.matches})}hasChildren(n,r){return r.children?.length??0}loadItem(n){this.gaService.event("help_navigation","Ajuda",n.href),this.current=n,this.currentUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`assets/recursos/ajuda/${n.href}`)}};e.\u0275fac=function(r){return new(r||e)(I(h2),I(Eh),I(le),I(Xa),I($_))},e.\u0275cmp=Me({type:e,selectors:[["app-tab-help"]],outputs:{newTab:"newTab"},decls:12,vars:6,consts:[["unit","pixel",3,"direction"],[3,"size"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],["id","root"],[3,"dataSource","treeControl"],[4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[3,"src",4,"ngIf"],["mat-ripple","","tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","disabled","","title","\xCDcone de pasta"],["tabindex","0",3,"click","keydown.enter"],["mat-icon-button","","matTreeNodeToggle","","aria-label","Expandir/retrair conte\xFAdo da pasta",3,"ngSwitch"],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido",4,"ngSwitchCase"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido",4,"ngSwitchCase"],["matTreeNodeOutlet",""],["src","assets/mdi/chevron-down.svg","svgAriaLabel","\xCDcone de seta para baixo indicando o conte\xFAdo expandido"],["src","assets/mdi/chevron-right.svg","svgAriaLabel","\xCDcone de seta para direita indicando o conte\xFAdo recolhido"],[3,"src"]],template:function(r,s){r&1&&(R(0,"as-split",0)(1,"as-split-area",1)(2,"header"),pe(3,"svg-icon",2),R(4,"span"),k(5,"Ajuda"),F()(),R(6,"ul",3)(7,"mat-tree",4),ke(8,ufe,6,3,"mat-tree-node",5)(9,hfe,9,8,"mat-nested-tree-node",6),F()()(),R(10,"as-split-area"),ke(11,ffe,1,1,"iframe",7),F()()),r&2&&(J("direction",s.isBelowMd?"vertical":"horizontal"),G(),J("size",350),G(6),J("dataSource",s.dataSource)("treeControl",s.treeControl),G(2),J("matTreeNodeDefWhen",s.hasChildren),G(2),J("ngIf",s.current))},dependencies:[Vc,Ia,Bc,Y2,J0,Vo,is,V0,wg,Sg,Ag,xg,Tg,$0],styles:["header[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#121e24;margin:7.5px;padding:12.5px 15px;font-size:1rem;gap:.5rem}header[_ngcontent-%COMP%] svg-icon[_ngcontent-%COMP%]{width:1.3rem;height:1.3rem}.hidden[_ngcontent-%COMP%]{display:none!important}as-split-area[_ngcontent-%COMP%]{scrollbar-width:thin}.mat-mdc-tree-node[_ngcontent-%COMP%]{min-height:0!important}ul[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#263238}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;overflow:hidden;width:100%;background-color:#263238;cursor:pointer;display:flex}ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#121e24}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center}iframe[_ngcontent-%COMP%]{width:100%;height:100%;display:block;border:0 none}"]});let t=e;return t})();var mfe=()=>({marginLeft:0}),gfe=()=>({});function _fe(t,e){t&1&&(R(0,"span",8),pe(1,"svg-icon",9),F(),R(2,"span",10),k(3,"Portugol Webstudio"),F())}function vfe(t,e){t&1&&pe(0,"svg-icon",21)}function bfe(t,e){t&1&&pe(0,"svg-icon",22)}function yfe(t,e){if(t&1){let i=mt();R(0,"button",23),be("click",function(){ae(i);let r=ne(2).$implicit,s=ne();return ue(s.changeTabTitle(r))}),pe(1,"svg-icon",24),F()}}function Efe(t,e){if(t&1){let i=mt();R(0,"span")(1,"span",14),ke(2,vfe,1,0,"svg-icon",15)(3,bfe,1,0,"svg-icon",16),F(),R(4,"span",10),k(5),F()(),R(6,"span",17),ke(7,yfe,2,0,"button",18),R(8,"button",19),be("click",function(){ae(i);let r=ne().$implicit,s=ne();return ue(s.closeTab(r))}),pe(9,"svg-icon",20),F()()}if(t&2){let i=ne().$implicit;G(),J("ngSwitch",i.type),G(),J("ngSwitchCase","editor"),G(),J("ngSwitchCase","help"),G(2),Fn(i.title),G(2),J("ngIf",i.type==="editor"),G(),Fr(i.type==="editor"?U9(7,mfe):U9(8,gfe))}}function Cfe(t,e){if(t&1){let i=mt();R(0,"app-tab-editor",25),yo("titleChange",function(r){ae(i);let s=ne().$implicit;return ml(s.title,r)||(s.title=r),ue(r)}),be("help",function(){ae(i);let r=ne(2);return ue(r.upsertHelpTab())}),F()}if(t&2){let i=ne().$implicit;bo("title",i.title),J("code",i.contents)}}function Ife(t,e){if(t&1){let i=mt();R(0,"app-tab-help",26),be("newTab",function(r){ae(i);let s=ne(2);return ue(s.addTab(r==null?null:r.name,r==null?null:r.contents))}),F()}}function Tfe(t,e){if(t&1&&(R(0,"mat-tab"),ke(1,Efe,10,9,"ng-template",3),ya(2,11),ke(3,Cfe,1,2,"app-tab-editor",12)(4,Ife,1,0,"app-tab-help",13),Ea(),F()),t&2){let i=e.$implicit;G(2),J("ngSwitch",i.type),G(),J("ngSwitchCase","editor"),G(),J("ngSwitchCase","help")}}function Sfe(t,e){if(t&1){let i=mt();R(0,"button",27),be("click",function(){ae(i);let r=ne();return ue(r.addTab())}),pe(1,"svg-icon",28),F()}}var bz=(()=>{let e=class e{constructor(n,r,s){this.gaService=n,this.storage=r,this.snack=s,this.selected=new aS(0),this.tabs=[],this.tabIndex=1,this.shortcuts=[{key:"ctrl + q",preventDefault:!0,command:()=>{this.closeTab(this.tabs[this.selected.value??0])}},{key:"ctrl + n",preventDefault:!0,command:()=>{this.addTab()}}]}ngOnInit(){return K(this,null,function*(){try{if(window.location.hash.startsWith("#share=")){this.snack.open("Carregando c\xF3digo compartilhado\u2026",void 0,{duration:-1});let n=window.location.hash.slice(7),s=yield(yield mB(Gm(this.storage,n))).text();this.addTab(`C\xF3digo compartilhado (#${n})`,s),this.snack.dismiss(),this.gaService.event("load_shared_code_success","Interface","C\xF3digo compartilhado carregado")}}catch(n){console.error(n),this.snack.dismiss(),this.snack.open("Erro ao carregar c\xF3digo compartilhado","FECHAR",{duration:1e4}),this.gaService.event("load_shared_code_error","Interface","Erro ao carregar c\xF3digo compartilhado")}})}addTab(n,r){this.tabs.push({id:this.tabIndex++,title:n||"Sem t\xEDtulo",contents:r,type:"editor"}),this.selected.setValue(this.tabs.length),this.gaService.event("new_tab_top","Editor","Nova aba",this.tabs.length)}closeTab(n){n.type==="editor"&&!window.confirm("Tem certeza que deseja fechar a aba? O c\xF3digo n\xE3o salvo ser\xE1 perdido.")||(this.tabs.splice(this.tabs.indexOf(n),1),this.selected.setValue(0),this.gaService.event("close_tab","Interface","Fechar aba",this.tabs.length))}changeTabTitle(n){if(this.selected.value!==n.id||n.type!=="editor")return;this.gaService.event("edit_tab_title","Interface","Editar t\xEDtulo de aba");let r=prompt("Digite o novo t\xEDtulo",n.title);r&&(n.title=r)}upsertHelpTab(){let n=this.tabs.findIndex(r=>r.type==="help");n===-1?(this.tabs.push({id:this.tabIndex++,title:"Ajuda",type:"help"}),this.gaService.event("help_tab_open","Interface","Nova aba de ajuda"),this.selected.setValue(this.tabs.length)):(this.gaService.event("help_tab_select","Interface","Selecionar aba de ajuda j\xE1 aberta"),this.selected.setValue(n+1))}};e.\u0275fac=function(r){return new(r||e)(I(Xa),I(Al),I(up))},e.\u0275cmp=Me({type:e,selectors:[["app-root"]],decls:10,vars:3,consts:[[3,"shortcuts"],["id","preload"],["animationDuration","0","mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[3,"newTab","help"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label","",1,"tab-add"],[1,"tab-icon"],["src","assets/lightbulb.svg","svgClass","text-primary cap-my-height","svgAriaLabel","\xCDcone do Portugol"],[1,"tab-text"],[3,"ngSwitch"],[3,"title","code","titleChange","help",4,"ngSwitchCase"],[3,"newTab",4,"ngSwitchCase"],[1,"tab-icon",3,"ngSwitch"],["src","assets/mdi/file.svg","svgAriaLabel","\xCDcone de arquivo",4,"ngSwitchCase"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda",4,"ngSwitchCase"],[1,"tab-actions"],["mat-icon-button","","aria-label","Renomear aba","matTooltip","Renomear aba",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Fechar aba","matTooltip","Fechar aba",3,"click"],["src","assets/mdi/close.svg","svgAriaLabel","\xCDcone de fechar aba"],["src","assets/mdi/file.svg","svgAriaLabel","\xCDcone de arquivo"],["src","assets/mdi/help-circle-outline.svg","svgClass","text-quaternary","svgAriaLabel","\xCDcone de ajuda"],["mat-icon-button","","aria-label","Renomear aba","matTooltip","Renomear aba",3,"click"],["src","assets/mdi/rename-outline.svg","svgAriaLabel","\xCDcone de renomear aba"],[3,"titleChange","help","title","code"],[3,"newTab"],["mat-icon-button","","aria-label","Nova aba de editor de c\xF3digo","matTooltip","Nova aba de editor de c\xF3digo",1,"add-button",3,"click"],["src","assets/mdi/plus.svg","svgAriaLabel","\xCDcone de adicionar aba"]],template:function(r,s){r&1&&(pe(0,"ng-keyboard-shortcuts",0),R(1,"div",1),pe(2,"ngx-monaco-editor"),F(),R(3,"mat-tab-group",2),be("selectedIndexChange",function(l){return s.selected.setValue(l)}),R(4,"mat-tab"),ke(5,_fe,4,0,"ng-template",3),R(6,"app-tab-start",4),be("newTab",function(l){return s.addTab(l==null?null:l.name,l==null?null:l.contents)})("help",function(){return s.upsertHelpTab()}),F()(),ke(7,Tfe,5,3,"mat-tab",5),R(8,"mat-tab",6),ke(9,Sfe,2,0,"ng-template",7),F()()),r&2&&(J("shortcuts",s.shortcuts),G(3),J("selectedIndex",s.selected.value),G(4),J("ngForOf",s.tabs))},dependencies:[K9,Vc,Ia,Bc,Y0,n_,Vo,$S,GS,QU,V0,Cg,pz,_z,vz],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.5rem}#preload[_ngcontent-%COMP%]{width:0;height:0;opacity:0;z-index:-1} mat-tab-group{display:flex;flex-direction:row;flex-wrap:nowrap;flex-grow:1;border-radius:10px;overflow:hidden} mat-tab-group .mat-mdc-tab{--mdc-secondary-navigation-tab-container-height: 40px;--mat-tab-header-active-label-text-color: $tab-active-color;--mat-tab-header-active-focus-label-text-color: $tab-active-color;--mat-tab-header-active-hover-label-text-color: $tab-active-color;--mat-tab-header-active-hover-indicator-color: $tab-active-color;position:relative;background-color:#445056;color:#cdcdcd;font-weight:700;font-size:14px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding:.5rem 1rem;height:40px;margin-right:1px;text-decoration:none;transition:all .2s ease;opacity:1;justify-content:flex-start;min-width:0;font-family:Lato,sans-serif;-webkit-user-select:none;-moz-user-select:none;user-select:none} mat-tab-group .mat-mdc-tab .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0} mat-tab-group .mat-mdc-tab:hover .mdc-tab__ripple:before{opacity:0} mat-tab-group .mat-mdc-tab.mat-mdc-tab-disabled{opacity:1;pointer-events:auto} mat-tab-group .mat-mdc-tab .mdc-tab-indicator{display:none} mat-tab-group .mat-mdc-tab .mdc-tab__text-label>span{display:inline-flex} mat-tab-group .mat-mdc-tab:last-child{padding:0!important;color:#fff} mat-tab-group .mat-mdc-tab:last-child button{border-radius:0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0){padding-right:0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0):not(.mdc-tab--active){padding-right:16px} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0):not(.mdc-tab--active) .tab-actions{display:none} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0) .add-button{--mdc-icon-button-state-layer-size: 40px;padding:8px 0} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mdc-tab__content, mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mat-mdc-tab-ripple, mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0).mat-mdc-tab-disabled .mdc-tab__ripple:before{pointer-events:all} mat-tab-group .mat-mdc-tab:not(#mat-tab-label-0-0) button:not(.add-button){border-radius:0;display:inline-block;margin-left:10px;padding:0;width:30px;height:30px;line-height:0;--mdc-icon-button-icon-size: 20px} mat-tab-group .mat-mdc-tab.mdc-tab--active, mat-tab-group .mat-mdc-tab:focus:not(.mat-mdc-tab-disabled){background-color:#263238!important;color:#cdcdcd!important} mat-tab-group .mat-mdc-tab.mdc-tab--active:after, mat-tab-group .mat-mdc-tab:focus:not(.mat-mdc-tab-disabled):after{content:"";position:absolute;top:0;left:0;right:0;width:100%;height:1px;background-color:#ffc200} mat-tab-group .mat-mdc-tab .tab-icon svg, mat-tab-group .mat-mdc-tab .tab-icon img, mat-tab-group .mat-mdc-tab .tab-add-icon{display:flex;align-items:center;justify-content:center;width:1rem;margin-right:.5rem;color:#cdcdcd;fill:currentColor} mat-tab-group .mat-mdc-tab .tab-text{flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:normal} mat-tab-group .mat-mdc-tab-body-wrapper{flex-grow:1} mat-tab-group .mat-mdc-tab-body-wrapper mat-tab-body{background-color:#263238;color:#cdcdcd;flex-grow:1;overflow:hidden}.cap-my-height[_ngcontent-%COMP%]{height:1.15rem}']});let t=e;return t})();var ax=(()=>{let e=class e{constructor(n){this.monacoLoaderService=n,this.monacoLoaderService.isMonacoLoaded$.pipe(Ge(r=>r),en(1)).subscribe(()=>{try{monaco.languages.register({id:"portugol",extensions:[".por"],aliases:["Portugol"]}),monaco.languages.setLanguageConfiguration("portugol",{wordPattern:/(-?\d*\.\d\w*)|([^\s!"#%&'()*+,./:;<=>?@[\\\]^`{|}~\-]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:monaco.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^*]|\*(?!\/))*$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|( {2}))* \*( ([^*]|\*(?!\/))*)?$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|( {2}))* \*\/\s*$/,action:{indentAction:monaco.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:/^\s*\/\/\s*#?region\b/,end:/^\s*\/\/\s*#?endregion\b/}}}),monaco.languages.setMonarchTokensProvider("portugol",{defaultToken:"invalid",tokenPostfix:".portugol",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],keywords:["faca","enquanto","para","se","senao","const","funcao","programa","escolha","caso","contrario","pare","retorne","inclua","biblioteca","verdadeiro","falso"],typeKeywords:["real","inteiro","vazio","logico","cadeia","caracter"],operators:["nao","e","ou","-","+","*","/","%","=","==","!=",">","<","<=",">=","++","--","<<",">>","^","|","~","-->","&","+=","-=","*=","/="],symbols:/[!%&*+/:<=>?^|~\-]+/,escapes:/\\(?:["'\\abfnrtv]|x[\dA-Fa-f]{1,4}|u[\dA-Fa-f]{4}|U[\dA-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[01]+(_+[01]+)*/,hexdigits:/[\dA-F[a-f]+(_+[\dA-Fa-f]+)*/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/([1A-Z_a-z{}]\w+)(?=\s*\()/,"functions"],{include:"common"}],common:[[/[$_a-z][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w$]*/,"type.identifier"],{include:"@whitespace"},[/[()[\]{}]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([Ee][+\-]?\d+)?/,"number.float"],[/0[Xx][\dA-Fa-f]+/,"number.hex"],[/\d+/,"number"],[/[,.;]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'[^'\\]'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],comment:[[/[^*/]+/,"comment"],[/\/\*/,"comment","@push"],[String.raw`\*/`,"comment","@pop"],[/[*/]/,"comment"]],string:[[/[^"\\]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[\t\n\r ]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],bracketCounting:[[/{/,"delimiter.bracket","@bracketCounting"],[/}/,"delimiter.bracket","@pop"],{include:"common"}]}}),monaco.editor.defineTheme("portugol",{base:"vs-dark",inherit:!0,rules:[{token:"functions",foreground:"F5D7A9"},{token:"string.escape",foreground:"D2BB85"},{token:"string.escape.invalid",foreground:"DF5953"}],colors:{}})}catch(r){console.error(r),window.location.reload()}})}};e.\u0275fac=function(r){return new(r||e)(x(ww))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var yz=(()=>{let e=class e{constructor(n){this.toastRef=n}onReload(){confirm(`Lembre-se de salvar seu c\xF3digo antes de recarregar a p\xE1gina! -Aperte "OK" para recarregar a p\xE1gina, ou "Cancelar" para abortar.`)&&window.location.reload()}onIgnore(){this.toastRef?.close()}};e.\u0275fac=function(r){return new(r||e)(I(K2,8))},e.\u0275cmp=Me({type:e,selectors:[["app-new-version-available"]],standalone:!0,features:[ot],decls:11,vars:0,consts:[[1,"buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],["mat-button","","color","primary","type","button",3,"click"]],template:function(r,s){r&1&&(R(0,"strong"),N(1,"Uma nova vers\xE3o do Portugol Webstudio est\xE1 dispon\xEDvel"),F(),R(2,"p"),N(3,"Lembre-se de salvar os seus arquivos antes de atualizar."),F(),R(4,"p"),N(5,"Quando estiver pronto, basta atualizar a p\xE1gina ou clicar no bot\xE3o abaixo."),F(),R(6,"div",0)(7,"button",1),be("click",function(){return s.onReload()}),N(8,"Atualizar"),F(),R(9,"button",2),be("click",function(){return s.onIgnore()}),N(10,"Ignorar"),F()())},dependencies:[B0,Ga],styles:[".buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}"]});let t=e;return t})();var ux=(()=>{let e=class e{constructor(n,r){this.swUpdate=n,this.toast=r,this.swUpdate.isEnabled&&(this.swUpdate.versionUpdates.subscribe(s=>{switch(s.type){case"VERSION_DETECTED":{this.loadingToast=this.toast.loading("Baixando atualiza\xE7\xF5es\u2026",{autoClose:!0,duration:5e3});break}case"VERSION_READY":{this.loadingToast?.close(),this.toast.success(yz,{autoClose:!1,dismissible:!0});break}default:break}}),this.swUpdate.checkForUpdate().catch(()=>{}),mv(30*60*1e3).subscribe(()=>{this.swUpdate.checkForUpdate().catch(()=>{})}))}};e.\u0275fac=function(r){return new(r||e)(x(r_),x(Nw))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ez=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e,bootstrap:[bz]}),e.\u0275inj=we({providers:[TV(()=>SV(xp.firebase)),pB(()=>gB()),IN(TN()),Wj({position:"bottom-right"}),ax,ux,{provide:Zi,useValue:KF({showDialog:!1})},{provide:u2,useFactory:()=>()=>{},multi:!0,deps:[ax,ux]}],imports:[n7,Vj,FB,Xj,Bj,tH.forRoot(),sH.forRoot("G-ZKM28VG4G5"),Qj.forRoot(),zU,dg,UU,PU,JU,B0,FU,rj,lj,cH.register("ngsw-worker.js",{enabled:!c2(),registrationStrategy:"registerWhenStable:30000"})]});let t=e;return t})();WF({dsn:"https://620518162f784d2aa3e3ee7223d08594@o1070945.ingest.sentry.io/6067438",debug:!1,tracesSampleRate:.1,replaysOnErrorSampleRate:.1,integrations:[nT({maskAllInputs:!1,maskAllText:!1}),L7(),F7(),YF()]});xp.production&&void 0;RN().bootstrapModule(Ez).then(()=>{"serviceWorker"in navigator&&xp.production&&navigator.serviceWorker.register("/ngsw-worker.js")}).catch(t=>{console.error(t)}); +Aperte "OK" para recarregar a p\xE1gina, ou "Cancelar" para abortar.`)&&window.location.reload()}onIgnore(){this.toastRef?.close()}};e.\u0275fac=function(r){return new(r||e)(I(K2,8))},e.\u0275cmp=Me({type:e,selectors:[["app-new-version-available"]],standalone:!0,features:[ot],decls:11,vars:0,consts:[[1,"buttons"],["mat-raised-button","","color","primary","type","button",3,"click"],["mat-button","","color","primary","type","button",3,"click"]],template:function(r,s){r&1&&(R(0,"strong"),k(1,"Uma nova vers\xE3o do Portugol Webstudio est\xE1 dispon\xEDvel"),F(),R(2,"p"),k(3,"Lembre-se de salvar os seus arquivos antes de atualizar."),F(),R(4,"p"),k(5,"Quando estiver pronto, basta atualizar a p\xE1gina ou clicar no bot\xE3o abaixo."),F(),R(6,"div",0)(7,"button",1),be("click",function(){return s.onReload()}),k(8,"Atualizar"),F(),R(9,"button",2),be("click",function(){return s.onIgnore()}),k(10,"Ignorar"),F()())},dependencies:[B0,Ga],styles:[".buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}"]});let t=e;return t})();var ux=(()=>{let e=class e{constructor(n,r){this.swUpdate=n,this.toast=r,this.swUpdate.isEnabled&&(this.swUpdate.versionUpdates.subscribe(s=>{switch(s.type){case"VERSION_DETECTED":{this.loadingToast=this.toast.loading("Baixando atualiza\xE7\xF5es\u2026",{autoClose:!0,duration:5e3});break}case"VERSION_READY":{this.loadingToast?.close(),this.toast.success(yz,{autoClose:!1,dismissible:!0});break}default:break}}),this.swUpdate.checkForUpdate().catch(()=>{}),mv(30*60*1e3).subscribe(()=>{this.swUpdate.checkForUpdate().catch(()=>{})}))}};e.\u0275fac=function(r){return new(r||e)(x(r_),x(Nw))},e.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ez=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=xe({type:e,bootstrap:[bz]}),e.\u0275inj=we({providers:[TV(()=>SV(xp.firebase)),pB(()=>gB()),IN(TN()),Wj({position:"bottom-right"}),ax,ux,{provide:Zi,useValue:KF({showDialog:!1})},{provide:u2,useFactory:()=>()=>{},multi:!0,deps:[ax,ux]}],imports:[n7,Vj,FB,Xj,Bj,tH.forRoot(),sH.forRoot("G-ZKM28VG4G5"),Qj.forRoot(),zU,dg,UU,PU,JU,B0,FU,rj,lj,cH.register("ngsw-worker.js",{enabled:!c2(),registrationStrategy:"registerWhenStable:30000"})]});let t=e;return t})();WF({dsn:"https://620518162f784d2aa3e3ee7223d08594@o1070945.ingest.sentry.io/6067438",debug:!1,tracesSampleRate:.1,replaysOnErrorSampleRate:.1,integrations:[nT({maskAllInputs:!1,maskAllText:!1}),L7(),F7(),YF()]});xp.production&&void 0;RN().bootstrapModule(Ez).then(()=>{"serviceWorker"in navigator&&xp.production&&navigator.serviceWorker.register("/ngsw-worker.js")}).catch(t=>{console.error(t)}); diff --git a/ngsw.json b/ngsw.json index 9eb7967c..64c09d1f 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1721872743364, + "timestamp": 1721873264830, "index": "/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/favicon.ico", "/index.html", - "/main-QEVTXVBU.js", + "/main-VR6OYD6Z.js", "/manifest.webmanifest", "/polyfills-MH5IBZ74.js", "/styles-JFUGDC3T.css" @@ -19260,8 +19260,8 @@ "/assets/recursos/exercicios/exercicio60.pex": "6082892362c640c5b7c9e63b12d6594dab32128d", "/assets/recursos/exercicios/schema.xsd": "cd13152ea836b1eed121a6972a619f595ac5d46c", "/favicon.ico": "a3dadb5b6906874517b9a2bc021bb3f154290edd", - "/index.html": "b0bd1453444f922a50ffa9cc7f638a49a43c6f98", - "/main-QEVTXVBU.js": "e3e02559dc4413b05b12950b7844f035ba6e58da", + "/index.html": "b87cfd37a48f30971237b70b71184d287b433a44", + "/main-VR6OYD6Z.js": "1e3efb0a649a7bd423dc65364a9be540e85aaa29", "/manifest.webmanifest": "ea9afcc9f466e61c4f2a5fb56f9ad31683c1de7f", "/polyfills-MH5IBZ74.js": "c7fdbc7259367a3112d05e61e33c04c4b2efa9b4", "/styles-JFUGDC3T.css": "2bc6250900698af88a81d7f55c4ce815c3d27ad4"