@mxtommy/kip 3.12.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/copilot-instructions.md +102 -27
- package/.github/instructions/angular.instructions.md +1 -1
- package/CHANGELOG.md +17 -0
- package/README.md +94 -74
- package/docs/widget-schematic.md +102 -0
- package/images/ChartplotterMode.png +0 -0
- package/package.json +8 -3
- package/public/3rdpartylicenses.txt +67 -41
- package/public/assets/help-docs/chartplotter.md +122 -0
- package/public/assets/help-docs/community.md +1 -11
- package/public/assets/help-docs/kiosk.md +15 -15
- package/public/assets/help-docs/menu.json +1 -0
- package/public/assets/help-docs/welcome.md +3 -0
- package/public/assets/svg/icons.svg +4 -6
- package/public/{chunk-XLJT6YPP.js → chunk-4HLTLR5F.js} +1 -1
- package/public/chunk-52M2PJJL.js +4 -0
- package/public/chunk-5FWE6Y4K.js +52 -0
- package/public/{chunk-3LKIOGV7.js → chunk-75QTGQOO.js} +1 -1
- package/public/{chunk-I454VRMK.js → chunk-AB255PKD.js} +1 -1
- package/public/{chunk-RMLGKVWE.js → chunk-ACTDISHE.js} +1 -1
- package/public/chunk-AYVYZ27A.js +2 -0
- package/public/chunk-B3P2F52Y.js +9 -0
- package/public/{chunk-ZEV6YXHP.js → chunk-BMDGKBYM.js} +23 -23
- package/public/chunk-CTZYGIOB.js +8 -0
- package/public/{chunk-YVLZ2UAQ.js → chunk-CVTWABMM.js} +2 -2
- package/public/chunk-CZJ7AC6N.js +1 -0
- package/public/{chunk-ZPCYFQPB.js → chunk-HIADZ4BV.js} +1 -1
- package/public/{chunk-IQG4DDQX.js → chunk-IJ22WXFB.js} +1 -1
- package/public/chunk-IPSRX374.js +1 -0
- package/public/chunk-JCW5H5WP.js +1 -0
- package/public/{chunk-UTCRLFYC.js → chunk-KHL7FGID.js} +1 -1
- package/public/{chunk-YPUCOH35.js → chunk-OB3QLUH6.js} +12 -12
- package/public/{chunk-6MRJ4C55.js → chunk-OQULS6SV.js} +1 -1
- package/public/chunk-P3OU5V2Y.js +1 -0
- package/public/{chunk-EPTIEPMQ.js → chunk-RYHOAWDD.js} +1 -1
- package/public/chunk-SVP7ZRWY.js +5 -0
- package/public/{chunk-NOLKBYOV.js → chunk-SZ2GUIT5.js} +1 -1
- package/public/chunk-TCZ5ZAXQ.js +3 -0
- package/public/chunk-V7PWLOQ2.js +6 -0
- package/public/index.html +2 -2
- package/public/main-3LAUI5JW.js +5 -0
- package/public/scripts-7HSGK5LZ.js +14 -0
- package/public/styles-MJ4EO4B4.css +1 -0
- package/tools/schematics/collection.json +9 -0
- package/tools/schematics/create-host2-widget/files/readme/README.md.template +109 -0
- package/tools/schematics/create-host2-widget/files/spec/widget-__name@dasherize__.component.spec.ts +38 -0
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.html +6 -0
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.scss +5 -0
- package/tools/schematics/create-host2-widget/files/widget/widget-__name@dasherize__.component.ts.template +94 -0
- package/tools/schematics/create-host2-widget/index.js +138 -0
- package/tools/schematics/create-host2-widget/schema.json +89 -0
- package/tools/schematics/create-host2-widget/test/create-host2-widget.spec.ts +70 -0
- package/tools/schematics/create-host2-widget/utils/formatting.js +119 -0
- package/public/chunk-65TR3CWM.js +0 -6
- package/public/chunk-7S37JBY2.js +0 -2
- package/public/chunk-A5CYPNMD.js +0 -2
- package/public/chunk-BSAAN2EI.js +0 -2
- package/public/chunk-CDPHRRZR.js +0 -3
- package/public/chunk-D4DROTBC.js +0 -8
- package/public/chunk-D4MWDRNW.js +0 -5
- package/public/chunk-K5OOC3CF.js +0 -4
- package/public/chunk-QOXZFV6P.js +0 -47
- package/public/chunk-T6TC7KWG.js +0 -1
- package/public/chunk-UHKP2PC3.js +0 -1
- package/public/chunk-VEJNBHWJ.js +0 -5
- package/public/chunk-YCW2UBVQ.js +0 -1
- package/public/chunk-Z5MCM3TT.js +0 -11
- package/public/main-7TSLA2U5.js +0 -5
- package/public/styles-PDNHT2L2.css +0 -1
package/public/main-7TSLA2U5.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as k,b as te,c as Bi,d as un,e as Ee,f as bt,g as Ge,h as or,i as ar,j as Ct,l as sr,m as lr}from"./chunk-QOXZFV6P.js";import{a as Ti,b as er,c as kt}from"./chunk-D4DROTBC.js";import"./chunk-F5X5MWHG.js";import"./chunk-K5OOC3CF.js";import{f as Et}from"./chunk-65TR3CWM.js";import{a as mr,b as pr,c as hr,d as _r}from"./chunk-CDPHRRZR.js";import{a as cr}from"./chunk-IQG4DDQX.js";import{c as tr,f as nr,g as ir,h as rr}from"./chunk-EPTIEPMQ.js";import{b as gr,g as yr}from"./chunk-ZEV6YXHP.js";import{a as ur,b as dr,c as fr}from"./chunk-I454VRMK.js";import{c as Ji}from"./chunk-UTCRLFYC.js";import"./chunk-ZPCYFQPB.js";import{a as De,b as wt}from"./chunk-YCW2UBVQ.js";import{a as Zi}from"./chunk-6MRJ4C55.js";import{A as Yi,a as Ue,c as ke,d as Re,e as Fe,g as Le,m as Xi}from"./chunk-VEJNBHWJ.js";import{a as cn,b as ki,c as Ci,e as Ie,f as gt,h as ge,i as yt,j as ue}from"./chunk-A5CYPNMD.js";import{a as Qe,b as $i,c as ji,f as fn,j as Ui,k as Tt,n as Gi,o as Qi,p as Wi,s as mn}from"./chunk-NOLKBYOV.js";import{$c as Fi,Ab as tn,Bb as nn,Db as hi,Eb as _i,F as st,Fa as x,Fb as gi,Ga as li,Ha as ci,Hb as ht,Hc as Ei,Id as xe,Jd as ve,Kb as N,Lb as rn,Lc as Mi,Ma as ui,Mb as $e,Mc as Pi,Nc as Ni,Nd as At,O as ei,Oa as ee,Pb as on,Pc as je,Pd as dn,Qa as ut,Qb as an,Qc as Z,Rb as sn,Rc as Oi,Sa as di,Sc as Ii,Tc as Di,Ua as fi,V as ti,Vc as vt,X as ni,Xa as dt,Xc as xi,Xd as Hi,Ya as Jt,Yc as ye,Zd as Be,_a as mi,_c as Ri,_d as qi,a as Q,aa as P,ab as ft,ac as yi,ad as Li,ae as pe,b as Wn,bb as X,c as Xn,ca as H,cb as Y,cc as vi,d as Fo,db as pi,e as Yn,ea as Yt,f as Xt,fa as lt,fb as mt,fc as bi,ga as v,gb as pt,gc as _t,ha as ii,hb as me,hd as Vi,ib as S,j as Ae,ja as I,jb as T,ka as D,kb as ce,l as at,lc as Si,mc as wi,na as Te,oa as ct,oc as ln,pa as ri,pc as Ai,q as Zn,ra as oi,rb as K,rd as St,tb as F,va as ai,vb as V,w as Oe,wa as si,wd as Ki,x as Jn,yd as zi,za as Zt,zb as en}from"./chunk-YPUCOH35.js";var hn=Fo(Mt=>{(function(){"use strict";var o=function(){this.init()};o.prototype={init:function(){var i=this||t;return i._counter=1e3,i._html5AudioPool=[],i.html5PoolSize=10,i._codecs={},i._howls=[],i._muted=!1,i._volume=1,i._canPlayEvent="canplaythrough",i._navigator=typeof window<"u"&&window.navigator?window.navigator:null,i.masterGain=null,i.noAudio=!1,i.usingWebAudio=!0,i.autoSuspend=!0,i.ctx=null,i.autoUnlock=!0,i._setup(),i},volume:function(i){var a=this||t;if(i=parseFloat(i),a.ctx||_(),typeof i<"u"&&i>=0&&i<=1){if(a._volume=i,a._muted)return a;a.usingWebAudio&&a.masterGain.gain.setValueAtTime(i,t.ctx.currentTime);for(var c=0;c<a._howls.length;c++)if(!a._howls[c]._webAudio)for(var f=a._howls[c]._getSoundIds(),m=0;m<f.length;m++){var h=a._howls[c]._soundById(f[m]);h&&h._node&&(h._node.volume=h._volume*i)}return a}return a._volume},mute:function(i){var a=this||t;a.ctx||_(),a._muted=i,a.usingWebAudio&&a.masterGain.gain.setValueAtTime(i?0:a._volume,t.ctx.currentTime);for(var c=0;c<a._howls.length;c++)if(!a._howls[c]._webAudio)for(var f=a._howls[c]._getSoundIds(),m=0;m<f.length;m++){var h=a._howls[c]._soundById(f[m]);h&&h._node&&(h._node.muted=i?!0:h._muted)}return a},stop:function(){for(var i=this||t,a=0;a<i._howls.length;a++)i._howls[a].stop();return i},unload:function(){for(var i=this||t,a=i._howls.length-1;a>=0;a--)i._howls[a].unload();return i.usingWebAudio&&i.ctx&&typeof i.ctx.close<"u"&&(i.ctx.close(),i.ctx=null,_()),i},codecs:function(i){return(this||t)._codecs[i.replace(/^x-/,"")]},_setup:function(){var i=this||t;if(i.state=i.ctx&&i.ctx.state||"suspended",i._autoSuspend(),!i.usingWebAudio)if(typeof Audio<"u")try{var a=new Audio;typeof a.oncanplaythrough>"u"&&(i._canPlayEvent="canplay")}catch{i.noAudio=!0}else i.noAudio=!0;try{var a=new Audio;a.muted&&(i.noAudio=!0)}catch{}return i.noAudio||i._setupCodecs(),i},_setupCodecs:function(){var i=this||t,a=null;try{a=typeof Audio<"u"?new Audio:null}catch{return i}if(!a||typeof a.canPlayType!="function")return i;var c=a.canPlayType("audio/mpeg;").replace(/^no$/,""),f=i._navigator?i._navigator.userAgent:"",m=f.match(/OPR\/(\d+)/g),h=m&&parseInt(m[0].split("/")[1],10)<33,p=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,g=f.match(/Version\/(.*?) /),w=p&&g&&parseInt(g[1],10)<15;return i._codecs={mp3:!!(!h&&(c||a.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!c,opus:!!a.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(a.canPlayType('audio/wav; codecs="1"')||a.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!a.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!a.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(a.canPlayType("audio/x-m4b;")||a.canPlayType("audio/m4b;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(a.canPlayType("audio/x-mp4;")||a.canPlayType("audio/mp4;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!a.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(a.canPlayType("audio/x-flac;")||a.canPlayType("audio/flac;")).replace(/^no$/,"")},i},_unlockAudio:function(){var i=this||t;if(!(i._audioUnlocked||!i.ctx)){i._audioUnlocked=!1,i.autoUnlock=!1,!i._mobileUnloaded&&i.ctx.sampleRate!==44100&&(i._mobileUnloaded=!0,i.unload()),i._scratchBuffer=i.ctx.createBuffer(1,1,22050);var a=function(c){for(;i._html5AudioPool.length<i.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,i._releaseHtml5Audio(f)}catch{i.noAudio=!0;break}for(var m=0;m<i._howls.length;m++)if(!i._howls[m]._webAudio)for(var h=i._howls[m]._getSoundIds(),p=0;p<h.length;p++){var g=i._howls[m]._soundById(h[p]);g&&g._node&&!g._node._unlocked&&(g._node._unlocked=!0,g._node.load())}i._autoResume();var w=i.ctx.createBufferSource();w.buffer=i._scratchBuffer,w.connect(i.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof i.ctx.resume=="function"&&i.ctx.resume(),w.onended=function(){w.disconnect(0),i._audioUnlocked=!0,document.removeEventListener("touchstart",a,!0),document.removeEventListener("touchend",a,!0),document.removeEventListener("click",a,!0),document.removeEventListener("keydown",a,!0);for(var C=0;C<i._howls.length;C++)i._howls[C]._emit("unlock")}};return document.addEventListener("touchstart",a,!0),document.addEventListener("touchend",a,!0),document.addEventListener("click",a,!0),document.addEventListener("keydown",a,!0),i}},_obtainHtml5Audio:function(){var i=this||t;if(i._html5AudioPool.length)return i._html5AudioPool.pop();var a=new Audio().play();return a&&typeof Promise<"u"&&(a instanceof Promise||typeof a.then=="function")&&a.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(i){var a=this||t;return i._unlocked&&a._html5AudioPool.push(i),a},_autoSuspend:function(){var i=this;if(!(!i.autoSuspend||!i.ctx||typeof i.ctx.suspend>"u"||!t.usingWebAudio)){for(var a=0;a<i._howls.length;a++)if(i._howls[a]._webAudio){for(var c=0;c<i._howls[a]._sounds.length;c++)if(!i._howls[a]._sounds[c]._paused)return i}return i._suspendTimer&&clearTimeout(i._suspendTimer),i._suspendTimer=setTimeout(function(){if(i.autoSuspend){i._suspendTimer=null,i.state="suspending";var f=function(){i.state="suspended",i._resumeAfterSuspend&&(delete i._resumeAfterSuspend,i._autoResume())};i.ctx.suspend().then(f,f)}},3e4),i}},_autoResume:function(){var i=this;if(!(!i.ctx||typeof i.ctx.resume>"u"||!t.usingWebAudio))return i.state==="running"&&i.ctx.state!=="interrupted"&&i._suspendTimer?(clearTimeout(i._suspendTimer),i._suspendTimer=null):i.state==="suspended"||i.state==="running"&&i.ctx.state==="interrupted"?(i.ctx.resume().then(function(){i.state="running";for(var a=0;a<i._howls.length;a++)i._howls[a]._emit("resume")}),i._suspendTimer&&(clearTimeout(i._suspendTimer),i._suspendTimer=null)):i.state==="suspending"&&(i._resumeAfterSuspend=!0),i}};var t=new o,e=function(i){var a=this;if(!i.src||i.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}a.init(i)};e.prototype={init:function(i){var a=this;return t.ctx||_(),a._autoplay=i.autoplay||!1,a._format=typeof i.format!="string"?i.format:[i.format],a._html5=i.html5||!1,a._muted=i.mute||!1,a._loop=i.loop||!1,a._pool=i.pool||5,a._preload=typeof i.preload=="boolean"||i.preload==="metadata"?i.preload:!0,a._rate=i.rate||1,a._sprite=i.sprite||{},a._src=typeof i.src!="string"?i.src:[i.src],a._volume=i.volume!==void 0?i.volume:1,a._xhr={method:i.xhr&&i.xhr.method?i.xhr.method:"GET",headers:i.xhr&&i.xhr.headers?i.xhr.headers:null,withCredentials:i.xhr&&i.xhr.withCredentials?i.xhr.withCredentials:!1},a._duration=0,a._state="unloaded",a._sounds=[],a._endTimers={},a._queue=[],a._playLock=!1,a._onend=i.onend?[{fn:i.onend}]:[],a._onfade=i.onfade?[{fn:i.onfade}]:[],a._onload=i.onload?[{fn:i.onload}]:[],a._onloaderror=i.onloaderror?[{fn:i.onloaderror}]:[],a._onplayerror=i.onplayerror?[{fn:i.onplayerror}]:[],a._onpause=i.onpause?[{fn:i.onpause}]:[],a._onplay=i.onplay?[{fn:i.onplay}]:[],a._onstop=i.onstop?[{fn:i.onstop}]:[],a._onmute=i.onmute?[{fn:i.onmute}]:[],a._onvolume=i.onvolume?[{fn:i.onvolume}]:[],a._onrate=i.onrate?[{fn:i.onrate}]:[],a._onseek=i.onseek?[{fn:i.onseek}]:[],a._onunlock=i.onunlock?[{fn:i.onunlock}]:[],a._onresume=[],a._webAudio=t.usingWebAudio&&!a._html5,typeof t.ctx<"u"&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(a),a._autoplay&&a._queue.push({event:"play",action:function(){a.play()}}),a._preload&&a._preload!=="none"&&a.load(),a},load:function(){var i=this,a=null;if(t.noAudio){i._emit("loaderror",null,"No audio support.");return}typeof i._src=="string"&&(i._src=[i._src]);for(var c=0;c<i._src.length;c++){var f,m;if(i._format&&i._format[c])f=i._format[c];else{if(m=i._src[c],typeof m!="string"){i._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(m),f||(f=/\.([^.]+)$/.exec(m.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&t.codecs(f)){a=i._src[c];break}}if(!a){i._emit("loaderror",null,"No codec support for selected audio sources.");return}return i._src=a,i._state="loading",window.location.protocol==="https:"&&a.slice(0,5)==="http:"&&(i._html5=!0,i._webAudio=!1),new n(i),i._webAudio&&s(i),i},play:function(i,a){var c=this,f=null;if(typeof i=="number")f=i,i=null;else{if(typeof i=="string"&&c._state==="loaded"&&!c._sprite[i])return null;if(typeof i>"u"&&(i="__default",!c._playLock)){for(var m=0,h=0;h<c._sounds.length;h++)c._sounds[h]._paused&&!c._sounds[h]._ended&&(m++,f=c._sounds[h]._id);m===1?i=null:f=null}}var p=f?c._soundById(f):c._inactiveSound();if(!p)return null;if(f&&!i&&(i=p._sprite||"__default"),c._state!=="loaded"){p._sprite=i,p._ended=!1;var g=p._id;return c._queue.push({event:"play",action:function(){c.play(g)}}),g}if(f&&!p._paused)return a||c._loadQueue("play"),p._id;c._webAudio&&t._autoResume();var w=Math.max(0,p._seek>0?p._seek:c._sprite[i][0]/1e3),C=Math.max(0,(c._sprite[i][0]+c._sprite[i][1])/1e3-w),O=C*1e3/Math.abs(p._rate),U=c._sprite[i][0]/1e3,q=(c._sprite[i][0]+c._sprite[i][1])/1e3;p._sprite=i,p._ended=!1;var L=function(){p._paused=!1,p._seek=w,p._start=U,p._stop=q,p._loop=!!(p._loop||c._sprite[i][2])};if(w>=q){c._ended(p);return}var E=p._node;if(c._webAudio){var oe=function(){c._playLock=!1,L(),c._refreshBuffer(p);var se=p._muted||c._muted?0:p._volume;E.gain.setValueAtTime(se,t.ctx.currentTime),p._playStart=t.ctx.currentTime,typeof E.bufferSource.start>"u"?p._loop?E.bufferSource.noteGrainOn(0,w,86400):E.bufferSource.noteGrainOn(0,w,C):p._loop?E.bufferSource.start(0,w,86400):E.bufferSource.start(0,w,C),O!==1/0&&(c._endTimers[p._id]=setTimeout(c._ended.bind(c,p),O)),a||setTimeout(function(){c._emit("play",p._id),c._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?oe():(c._playLock=!0,c.once("resume",oe),c._clearTimer(p._id))}else{var fe=function(){E.currentTime=w,E.muted=p._muted||c._muted||t._muted||E.muted,E.volume=p._volume*t.volume(),E.playbackRate=p._rate;try{var se=E.play();if(se&&typeof Promise<"u"&&(se instanceof Promise||typeof se.then=="function")?(c._playLock=!0,L(),se.then(function(){c._playLock=!1,E._unlocked=!0,a?c._loadQueue():c._emit("play",p._id)}).catch(function(){c._playLock=!1,c._emit("playerror",p._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),p._ended=!0,p._paused=!0})):a||(c._playLock=!1,L(),c._emit("play",p._id)),E.playbackRate=p._rate,E.paused){c._emit("playerror",p._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}i!=="__default"||p._loop?c._endTimers[p._id]=setTimeout(c._ended.bind(c,p),O):(c._endTimers[p._id]=function(){c._ended(p),E.removeEventListener("ended",c._endTimers[p._id],!1)},E.addEventListener("ended",c._endTimers[p._id],!1))}catch(rt){c._emit("playerror",p._id,rt)}};E.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(E.src=c._src,E.load());var it=window&&window.ejecta||!E.readyState&&t._navigator.isCocoonJS;if(E.readyState>=3||it)fe();else{c._playLock=!0,c._state="loading";var ae=function(){c._state="loaded",fe(),E.removeEventListener(t._canPlayEvent,ae,!1)};E.addEventListener(t._canPlayEvent,ae,!1),c._clearTimer(p._id)}}return p._id},pause:function(i){var a=this;if(a._state!=="loaded"||a._playLock)return a._queue.push({event:"pause",action:function(){a.pause(i)}}),a;for(var c=a._getSoundIds(i),f=0;f<c.length;f++){a._clearTimer(c[f]);var m=a._soundById(c[f]);if(m&&!m._paused&&(m._seek=a.seek(c[f]),m._rateSeek=0,m._paused=!0,a._stopFade(c[f]),m._node))if(a._webAudio){if(!m._node.bufferSource)continue;typeof m._node.bufferSource.stop>"u"?m._node.bufferSource.noteOff(0):m._node.bufferSource.stop(0),a._cleanBuffer(m._node)}else(!isNaN(m._node.duration)||m._node.duration===1/0)&&m._node.pause();arguments[1]||a._emit("pause",m?m._id:null)}return a},stop:function(i,a){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"stop",action:function(){c.stop(i)}}),c;for(var f=c._getSoundIds(i),m=0;m<f.length;m++){c._clearTimer(f[m]);var h=c._soundById(f[m]);h&&(h._seek=h._start||0,h._rateSeek=0,h._paused=!0,h._ended=!0,c._stopFade(f[m]),h._node&&(c._webAudio?h._node.bufferSource&&(typeof h._node.bufferSource.stop>"u"?h._node.bufferSource.noteOff(0):h._node.bufferSource.stop(0),c._cleanBuffer(h._node)):(!isNaN(h._node.duration)||h._node.duration===1/0)&&(h._node.currentTime=h._start||0,h._node.pause(),h._node.duration===1/0&&c._clearSound(h._node))),a||c._emit("stop",h._id))}return c},mute:function(i,a){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"mute",action:function(){c.mute(i,a)}}),c;if(typeof a>"u")if(typeof i=="boolean")c._muted=i;else return c._muted;for(var f=c._getSoundIds(a),m=0;m<f.length;m++){var h=c._soundById(f[m]);h&&(h._muted=i,h._interval&&c._stopFade(h._id),c._webAudio&&h._node?h._node.gain.setValueAtTime(i?0:h._volume,t.ctx.currentTime):h._node&&(h._node.muted=t._muted?!0:i),c._emit("mute",h._id))}return c},volume:function(){var i=this,a=arguments,c,f;if(a.length===0)return i._volume;if(a.length===1||a.length===2&&typeof a[1]>"u"){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):c=parseFloat(a[0])}else a.length>=2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));var p;if(typeof c<"u"&&c>=0&&c<=1){if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,a)}}),i;typeof f>"u"&&(i._volume=c),f=i._getSoundIds(f);for(var g=0;g<f.length;g++)p=i._soundById(f[g]),p&&(p._volume=c,a[2]||i._stopFade(f[g]),i._webAudio&&p._node&&!p._muted?p._node.gain.setValueAtTime(c,t.ctx.currentTime):p._node&&!p._muted&&(p._node.volume=c*t.volume()),i._emit("volume",p._id))}else return p=f?i._soundById(f):i._sounds[0],p?p._volume:0;return i},fade:function(i,a,c,f){var m=this;if(m._state!=="loaded"||m._playLock)return m._queue.push({event:"fade",action:function(){m.fade(i,a,c,f)}}),m;i=Math.min(Math.max(0,parseFloat(i)),1),a=Math.min(Math.max(0,parseFloat(a)),1),c=parseFloat(c),m.volume(i,f);for(var h=m._getSoundIds(f),p=0;p<h.length;p++){var g=m._soundById(h[p]);if(g){if(f||m._stopFade(h[p]),m._webAudio&&!g._muted){var w=t.ctx.currentTime,C=w+c/1e3;g._volume=i,g._node.gain.setValueAtTime(i,w),g._node.gain.linearRampToValueAtTime(a,C)}m._startFadeInterval(g,i,a,c,h[p],typeof f>"u")}}return m},_startFadeInterval:function(i,a,c,f,m,h){var p=this,g=a,w=c-a,C=Math.abs(w/.01),O=Math.max(4,C>0?f/C:f),U=Date.now();i._fadeTo=c,i._interval=setInterval(function(){var q=(Date.now()-U)/f;U=Date.now(),g+=w*q,g=Math.round(g*100)/100,w<0?g=Math.max(c,g):g=Math.min(c,g),p._webAudio?i._volume=g:p.volume(g,i._id,!0),h&&(p._volume=g),(c<a&&g<=c||c>a&&g>=c)&&(clearInterval(i._interval),i._interval=null,i._fadeTo=null,p.volume(c,i._id),p._emit("fade",i._id))},O)},_stopFade:function(i){var a=this,c=a._soundById(i);return c&&c._interval&&(a._webAudio&&c._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(c._interval),c._interval=null,a.volume(c._fadeTo,i),c._fadeTo=null,a._emit("fade",i)),a},loop:function(){var i=this,a=arguments,c,f,m;if(a.length===0)return i._loop;if(a.length===1)if(typeof a[0]=="boolean")c=a[0],i._loop=c;else return m=i._soundById(parseInt(a[0],10)),m?m._loop:!1;else a.length===2&&(c=a[0],f=parseInt(a[1],10));for(var h=i._getSoundIds(f),p=0;p<h.length;p++)m=i._soundById(h[p]),m&&(m._loop=c,i._webAudio&&m._node&&m._node.bufferSource&&(m._node.bufferSource.loop=c,c&&(m._node.bufferSource.loopStart=m._start||0,m._node.bufferSource.loopEnd=m._stop,i.playing(h[p])&&(i.pause(h[p],!0),i.play(h[p],!0)))));return i},rate:function(){var i=this,a=arguments,c,f;if(a.length===0)f=i._sounds[0]._id;else if(a.length===1){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):c=parseFloat(a[0])}else a.length===2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));var p;if(typeof c=="number"){if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,a)}}),i;typeof f>"u"&&(i._rate=c),f=i._getSoundIds(f);for(var g=0;g<f.length;g++)if(p=i._soundById(f[g]),p){i.playing(f[g])&&(p._rateSeek=i.seek(f[g]),p._playStart=i._webAudio?t.ctx.currentTime:p._playStart),p._rate=c,i._webAudio&&p._node&&p._node.bufferSource?p._node.bufferSource.playbackRate.setValueAtTime(c,t.ctx.currentTime):p._node&&(p._node.playbackRate=c);var w=i.seek(f[g]),C=(i._sprite[p._sprite][0]+i._sprite[p._sprite][1])/1e3-w,O=C*1e3/Math.abs(p._rate);(i._endTimers[f[g]]||!p._paused)&&(i._clearTimer(f[g]),i._endTimers[f[g]]=setTimeout(i._ended.bind(i,p),O)),i._emit("rate",p._id)}}else return p=i._soundById(f),p?p._rate:i._rate;return i},seek:function(){var i=this,a=arguments,c,f;if(a.length===0)i._sounds.length&&(f=i._sounds[0]._id);else if(a.length===1){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):i._sounds.length&&(f=i._sounds[0]._id,c=parseFloat(a[0]))}else a.length===2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));if(typeof f>"u")return 0;if(typeof c=="number"&&(i._state!=="loaded"||i._playLock))return i._queue.push({event:"seek",action:function(){i.seek.apply(i,a)}}),i;var p=i._soundById(f);if(p)if(typeof c=="number"&&c>=0){var g=i.playing(f);g&&i.pause(f,!0),p._seek=c,p._ended=!1,i._clearTimer(f),!i._webAudio&&p._node&&!isNaN(p._node.duration)&&(p._node.currentTime=c);var w=function(){g&&i.play(f,!0),i._emit("seek",f)};if(g&&!i._webAudio){var C=function(){i._playLock?setTimeout(C,0):w()};setTimeout(C,0)}else w()}else if(i._webAudio){var O=i.playing(f)?t.ctx.currentTime-p._playStart:0,U=p._rateSeek?p._rateSeek-p._seek:0;return p._seek+(U+O*Math.abs(p._rate))}else return p._node.currentTime;return i},playing:function(i){var a=this;if(typeof i=="number"){var c=a._soundById(i);return c?!c._paused:!1}for(var f=0;f<a._sounds.length;f++)if(!a._sounds[f]._paused)return!0;return!1},duration:function(i){var a=this,c=a._duration,f=a._soundById(i);return f&&(c=a._sprite[f._sprite][1]/1e3),c},state:function(){return this._state},unload:function(){for(var i=this,a=i._sounds,c=0;c<a.length;c++)a[c]._paused||i.stop(a[c]._id),i._webAudio||(i._clearSound(a[c]._node),a[c]._node.removeEventListener("error",a[c]._errorFn,!1),a[c]._node.removeEventListener(t._canPlayEvent,a[c]._loadFn,!1),a[c]._node.removeEventListener("ended",a[c]._endFn,!1),t._releaseHtml5Audio(a[c]._node)),delete a[c]._node,i._clearTimer(a[c]._id);var f=t._howls.indexOf(i);f>=0&&t._howls.splice(f,1);var m=!0;for(c=0;c<t._howls.length;c++)if(t._howls[c]._src===i._src||i._src.indexOf(t._howls[c]._src)>=0){m=!1;break}return r&&m&&delete r[i._src],t.noAudio=!1,i._state="unloaded",i._sounds=[],i=null,null},on:function(i,a,c,f){var m=this,h=m["_on"+i];return typeof a=="function"&&h.push(f?{id:c,fn:a,once:f}:{id:c,fn:a}),m},off:function(i,a,c){var f=this,m=f["_on"+i],h=0;if(typeof a=="number"&&(c=a,a=null),a||c)for(h=0;h<m.length;h++){var p=c===m[h].id;if(a===m[h].fn&&p||!a&&p){m.splice(h,1);break}}else if(i)f["_on"+i]=[];else{var g=Object.keys(f);for(h=0;h<g.length;h++)g[h].indexOf("_on")===0&&Array.isArray(f[g[h]])&&(f[g[h]]=[])}return f},once:function(i,a,c){var f=this;return f.on(i,a,c,1),f},_emit:function(i,a,c){for(var f=this,m=f["_on"+i],h=m.length-1;h>=0;h--)(!m[h].id||m[h].id===a||i==="load")&&(setTimeout((function(p){p.call(this,a,c)}).bind(f,m[h].fn),0),m[h].once&&f.off(i,m[h].fn,m[h].id));return f._loadQueue(i),f},_loadQueue:function(i){var a=this;if(a._queue.length>0){var c=a._queue[0];c.event===i&&(a._queue.shift(),a._loadQueue()),i||c.action()}return a},_ended:function(i){var a=this,c=i._sprite;if(!a._webAudio&&i._node&&!i._node.paused&&!i._node.ended&&i._node.currentTime<i._stop)return setTimeout(a._ended.bind(a,i),100),a;var f=!!(i._loop||a._sprite[c][2]);if(a._emit("end",i._id),!a._webAudio&&f&&a.stop(i._id,!0).play(i._id),a._webAudio&&f){a._emit("play",i._id),i._seek=i._start||0,i._rateSeek=0,i._playStart=t.ctx.currentTime;var m=(i._stop-i._start)*1e3/Math.abs(i._rate);a._endTimers[i._id]=setTimeout(a._ended.bind(a,i),m)}return a._webAudio&&!f&&(i._paused=!0,i._ended=!0,i._seek=i._start||0,i._rateSeek=0,a._clearTimer(i._id),a._cleanBuffer(i._node),t._autoSuspend()),!a._webAudio&&!f&&a.stop(i._id,!0),a},_clearTimer:function(i){var a=this;if(a._endTimers[i]){if(typeof a._endTimers[i]!="function")clearTimeout(a._endTimers[i]);else{var c=a._soundById(i);c&&c._node&&c._node.removeEventListener("ended",a._endTimers[i],!1)}delete a._endTimers[i]}return a},_soundById:function(i){for(var a=this,c=0;c<a._sounds.length;c++)if(i===a._sounds[c]._id)return a._sounds[c];return null},_inactiveSound:function(){var i=this;i._drain();for(var a=0;a<i._sounds.length;a++)if(i._sounds[a]._ended)return i._sounds[a].reset();return new n(i)},_drain:function(){var i=this,a=i._pool,c=0,f=0;if(!(i._sounds.length<a)){for(f=0;f<i._sounds.length;f++)i._sounds[f]._ended&&c++;for(f=i._sounds.length-1;f>=0;f--){if(c<=a)return;i._sounds[f]._ended&&(i._webAudio&&i._sounds[f]._node&&i._sounds[f]._node.disconnect(0),i._sounds.splice(f,1),c--)}}},_getSoundIds:function(i){var a=this;if(typeof i>"u"){for(var c=[],f=0;f<a._sounds.length;f++)c.push(a._sounds[f]._id);return c}else return[i]},_refreshBuffer:function(i){var a=this;return i._node.bufferSource=t.ctx.createBufferSource(),i._node.bufferSource.buffer=r[a._src],i._panner?i._node.bufferSource.connect(i._panner):i._node.bufferSource.connect(i._node),i._node.bufferSource.loop=i._loop,i._loop&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop||0),i._node.bufferSource.playbackRate.setValueAtTime(i._rate,t.ctx.currentTime),a},_cleanBuffer:function(i){var a=this,c=t._navigator&&t._navigator.vendor.indexOf("Apple")>=0;if(!i.bufferSource)return a;if(t._scratchBuffer&&i.bufferSource&&(i.bufferSource.onended=null,i.bufferSource.disconnect(0),c))try{i.bufferSource.buffer=t._scratchBuffer}catch{}return i.bufferSource=null,a},_clearSound:function(i){var a=/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent);a||(i.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(i){this._parent=i,this.init()};n.prototype={init:function(){var i=this,a=i._parent;return i._muted=a._muted,i._loop=a._loop,i._volume=a._volume,i._rate=a._rate,i._seek=0,i._paused=!0,i._ended=!0,i._sprite="__default",i._id=++t._counter,a._sounds.push(i),i.create(),i},create:function(){var i=this,a=i._parent,c=t._muted||i._muted||i._parent._muted?0:i._volume;return a._webAudio?(i._node=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),i._node.gain.setValueAtTime(c,t.ctx.currentTime),i._node.paused=!0,i._node.connect(t.masterGain)):t.noAudio||(i._node=t._obtainHtml5Audio(),i._errorFn=i._errorListener.bind(i),i._node.addEventListener("error",i._errorFn,!1),i._loadFn=i._loadListener.bind(i),i._node.addEventListener(t._canPlayEvent,i._loadFn,!1),i._endFn=i._endListener.bind(i),i._node.addEventListener("ended",i._endFn,!1),i._node.src=a._src,i._node.preload=a._preload===!0?"auto":a._preload,i._node.volume=c*t.volume(),i._node.load()),i},reset:function(){var i=this,a=i._parent;return i._muted=a._muted,i._loop=a._loop,i._volume=a._volume,i._rate=a._rate,i._seek=0,i._rateSeek=0,i._paused=!0,i._ended=!0,i._sprite="__default",i._id=++t._counter,i},_errorListener:function(){var i=this;i._parent._emit("loaderror",i._id,i._node.error?i._node.error.code:0),i._node.removeEventListener("error",i._errorFn,!1)},_loadListener:function(){var i=this,a=i._parent;a._duration=Math.ceil(i._node.duration*10)/10,Object.keys(a._sprite).length===0&&(a._sprite={__default:[0,a._duration*1e3]}),a._state!=="loaded"&&(a._state="loaded",a._emit("load"),a._loadQueue()),i._node.removeEventListener(t._canPlayEvent,i._loadFn,!1)},_endListener:function(){var i=this,a=i._parent;a._duration===1/0&&(a._duration=Math.ceil(i._node.duration*10)/10,a._sprite.__default[1]===1/0&&(a._sprite.__default[1]=a._duration*1e3),a._ended(i)),i._node.removeEventListener("ended",i._endFn,!1)}};var r={},s=function(i){var a=i._src;if(r[a]){i._duration=r[a].duration,d(i);return}if(/^data:[^;]+;base64,/.test(a)){for(var c=atob(a.split(",")[1]),f=new Uint8Array(c.length),m=0;m<c.length;++m)f[m]=c.charCodeAt(m);u(f.buffer,i)}else{var h=new XMLHttpRequest;h.open(i._xhr.method,a,!0),h.withCredentials=i._xhr.withCredentials,h.responseType="arraybuffer",i._xhr.headers&&Object.keys(i._xhr.headers).forEach(function(p){h.setRequestHeader(p,i._xhr.headers[p])}),h.onload=function(){var p=(h.status+"")[0];if(p!=="0"&&p!=="2"&&p!=="3"){i._emit("loaderror",null,"Failed loading audio file with status: "+h.status+".");return}u(h.response,i)},h.onerror=function(){i._webAudio&&(i._html5=!0,i._webAudio=!1,i._sounds=[],delete r[a],i.load())},l(h)}},l=function(i){try{i.send()}catch{i.onerror()}},u=function(i,a){var c=function(){a._emit("loaderror",null,"Decoding audio data failed.")},f=function(m){m&&a._sounds.length>0?(r[a._src]=m,d(a,m)):c()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(i).then(f).catch(c):t.ctx.decodeAudioData(i,f,c)},d=function(i,a){a&&!i._duration&&(i._duration=a.duration),Object.keys(i._sprite).length===0&&(i._sprite={__default:[0,i._duration*1e3]}),i._state!=="loaded"&&(i._state="loaded",i._emit("load"),i._loadQueue())},_=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var i=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),a=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=a?parseInt(a[1],10):null;if(i&&c&&c<9){var f=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!f&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};typeof define=="function"&&define.amd&&define([],function(){return{Howler:t,Howl:e}}),typeof Mt<"u"&&(Mt.Howler=t,Mt.Howl=e),typeof global<"u"?(global.HowlerGlobal=o,global.Howler=t,global.Howl=e,global.Sound=n):typeof window<"u"&&(window.HowlerGlobal=o,window.Howler=t,window.Howl=e,window.Sound=n)})();(function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var e=this;if(!e.ctx||!e.ctx.listener)return e;for(var n=e._howls.length-1;n>=0;n--)e._howls[n].stereo(t);return e},HowlerGlobal.prototype.pos=function(t,e,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(e=typeof e!="number"?r._pos[1]:e,n=typeof n!="number"?r._pos[2]:n,typeof t=="number")r._pos=[t,e,n],typeof r.ctx.listener.positionX<"u"?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]);else return r._pos;return r},HowlerGlobal.prototype.orientation=function(t,e,n,r,s,l){var u=this;if(!u.ctx||!u.ctx.listener)return u;var d=u._orientation;if(e=typeof e!="number"?d[1]:e,n=typeof n!="number"?d[2]:n,r=typeof r!="number"?d[3]:r,s=typeof s!="number"?d[4]:s,l=typeof l!="number"?d[5]:l,typeof t=="number")u._orientation=[t,e,n,r,s,l],typeof u.ctx.listener.forwardX<"u"?(u.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(s,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(t,e,n,r,s,l);else return d;return u},Howl.prototype.init=(function(t){return function(e){var n=this;return n._orientation=e.orientation||[1,0,0],n._stereo=e.stereo||null,n._pos=e.pos||null,n._pannerAttr={coneInnerAngle:typeof e.coneInnerAngle<"u"?e.coneInnerAngle:360,coneOuterAngle:typeof e.coneOuterAngle<"u"?e.coneOuterAngle:360,coneOuterGain:typeof e.coneOuterGain<"u"?e.coneOuterGain:0,distanceModel:typeof e.distanceModel<"u"?e.distanceModel:"inverse",maxDistance:typeof e.maxDistance<"u"?e.maxDistance:1e4,panningModel:typeof e.panningModel<"u"?e.panningModel:"HRTF",refDistance:typeof e.refDistance<"u"?e.refDistance:1,rolloffFactor:typeof e.rolloffFactor<"u"?e.rolloffFactor:1},n._onstereo=e.onstereo?[{fn:e.onstereo}]:[],n._onpos=e.onpos?[{fn:e.onpos}]:[],n._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}})(Howl.prototype.init),Howl.prototype.stereo=function(t,e){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(t,e)}}),n;var r=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof e>"u")if(typeof t=="number")n._stereo=t,n._pos=[t,0,0];else return n._stereo;for(var s=n._getSoundIds(e),l=0;l<s.length;l++){var u=n._soundById(s[l]);if(u)if(typeof t=="number")u._stereo=t,u._pos=[t,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&o(u,r),r==="spatial"?typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(t,0,0):u._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),n._emit("stereo",u._id);else return u._stereo}return n},Howl.prototype.pos=function(t,e,n,r){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"pos",action:function(){s.pos(t,e,n,r)}}),s;if(e=typeof e!="number"?0:e,n=typeof n!="number"?-.5:n,typeof r>"u")if(typeof t=="number")s._pos=[t,e,n];else return s._pos;for(var l=s._getSoundIds(r),u=0;u<l.length;u++){var d=s._soundById(l[u]);if(d)if(typeof t=="number")d._pos=[t,e,n],d._node&&((!d._panner||d._panner.pan)&&o(d,"spatial"),typeof d._panner.positionX<"u"?(d._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),d._panner.positionY.setValueAtTime(e,Howler.ctx.currentTime),d._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):d._panner.setPosition(t,e,n)),s._emit("pos",d._id);else return d._pos}return s},Howl.prototype.orientation=function(t,e,n,r){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"orientation",action:function(){s.orientation(t,e,n,r)}}),s;if(e=typeof e!="number"?s._orientation[1]:e,n=typeof n!="number"?s._orientation[2]:n,typeof r>"u")if(typeof t=="number")s._orientation=[t,e,n];else return s._orientation;for(var l=s._getSoundIds(r),u=0;u<l.length;u++){var d=s._soundById(l[u]);if(d)if(typeof t=="number")d._orientation=[t,e,n],d._node&&(d._panner||(d._pos||(d._pos=s._pos||[0,0,-.5]),o(d,"spatial")),typeof d._panner.orientationX<"u"?(d._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),d._panner.orientationY.setValueAtTime(e,Howler.ctx.currentTime),d._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):d._panner.setOrientation(t,e,n)),s._emit("orientation",d._id);else return d._orientation}return s},Howl.prototype.pannerAttr=function(){var t=this,e=arguments,n,r,s;if(!t._webAudio)return t;if(e.length===0)return t._pannerAttr;if(e.length===1)if(typeof e[0]=="object")n=e[0],typeof r>"u"&&(n.pannerAttr||(n.pannerAttr={coneInnerAngle:n.coneInnerAngle,coneOuterAngle:n.coneOuterAngle,coneOuterGain:n.coneOuterGain,distanceModel:n.distanceModel,maxDistance:n.maxDistance,refDistance:n.refDistance,rolloffFactor:n.rolloffFactor,panningModel:n.panningModel}),t._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:t._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:t._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:t._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:t._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:t._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:t._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:t._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:t._panningModel});else return s=t._soundById(parseInt(e[0],10)),s?s._pannerAttr:t._pannerAttr;else e.length===2&&(n=e[0],r=parseInt(e[1],10));for(var l=t._getSoundIds(r),u=0;u<l.length;u++)if(s=t._soundById(l[u]),s){var d=s._pannerAttr;d={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:d.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:d.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:d.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:d.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:d.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:d.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:d.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:d.panningModel};var _=s._panner;_||(s._pos||(s._pos=t._pos||[0,0,-.5]),o(s,"spatial"),_=s._panner),_.coneInnerAngle=d.coneInnerAngle,_.coneOuterAngle=d.coneOuterAngle,_.coneOuterGain=d.coneOuterGain,_.distanceModel=d.distanceModel,_.maxDistance=d.maxDistance,_.refDistance=d.refDistance,_.rolloffFactor=d.rolloffFactor,_.panningModel=d.panningModel}return t},Sound.prototype.init=(function(t){return function(){var e=this,n=e._parent;e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,t.call(this),e._stereo?n.stereo(e._stereo):e._pos&&n.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(t){return function(){var e=this,n=e._parent;return e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,e._stereo?n.stereo(e._stereo):e._pos?n.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,n._refreshBuffer(e)),t.call(this)}})(Sound.prototype.reset);var o=function(t,e){e=e||"spatial",e==="spatial"?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,typeof t._panner.positionX<"u"?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),typeof t._panner.orientationX<"u"?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}})()});var pn=(o,t)=>{let e=v(ue),n=v(ye),r=e.getSplitShellEnabled(),s="/"+t.map(d=>d.path).join("/"),l=s.startsWith("/chartplotter"),u=s.startsWith("/dashboard");if(r&&u&&!l){let d=t.length>1?t[1].path:void 0;return n.createUrlTree(["chartplotter",d??""])}if(!r&&l){let d=t.length>1?t[1].path:void 0;return n.createUrlTree(["dashboard",d??""])}return!0};var vr=[{path:"dashboard/:id",component:lr,canMatch:[pn]},{path:"chartplotter/:id",loadComponent:()=>import("./chunk-T6TC7KWG.js").then(o=>o.SplitShellComponent),canMatch:[pn]},{path:"settings",loadComponent:()=>import("./chunk-YVLZ2UAQ.js").then(o=>o.SettingsComponent),title:"KIP - Settings"},{path:"options",loadComponent:()=>import("./chunk-Z5MCM3TT.js").then(o=>o.TabsComponent),title:"KIP - Options"},{path:"remote",loadComponent:()=>import("./chunk-BSAAN2EI.js").then(o=>o.RemoteControlComponent),title:"KIP - Remote Control"},{path:"help",loadComponent:()=>import("./chunk-UHKP2PC3.js").then(o=>o.AppHelpComponent),title:"KIP - Help"},{path:"data",loadComponent:()=>import("./chunk-7S37JBY2.js").then(o=>o.DataInspectorComponent),title:"KIP - Data Inspector"},{path:"login",loadComponent:()=>import("./chunk-3LKIOGV7.js").then(o=>o.WidgetLoginComponent),title:"Login"},{path:"**",redirectTo:"dashboard/0"}];var br={production:!0};var Nr=Yn(hn());function Vo(o,t){if(o&1){let e=K();S(0,"div",1)(1,"button",2),F("click",function(){I(e);let r=V();return D(r.action())}),N(2),T()()}if(o&2){let e=V();x(2),$e(" ",e.data.action," ")}}var Ko=["label"];function zo(o,t){}var Ho=Math.pow(2,31)-1,We=class{_overlayRef;instance;containerInstance;_afterDismissed=new Ae;_afterOpened=new Ae;_onAction=new Ae;_durationTimeoutId;_dismissedByAction=!1;constructor(t,e){this._overlayRef=e,this.containerInstance=t,t._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(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Ho))}_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}},Sr=new Yt("MatSnackBarData"),Ve=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},qo=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return o})(),$o=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return o})(),jo=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return o})(),Uo=(()=>{class o{snackBarRef=v(We);data=v(Sr);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(S(0,"div",0),N(1),T(),X(2,Vo,3,1,"div",1)),n&2&&(x(),$e(" ",r.data.message,`
|
|
2
|
-
`),x(),Y(r.hasAction?2:-1))},dependencies:[Be,qo,$o,jo],styles:[`.mat-mdc-simple-snack-bar{display:flex}
|
|
3
|
-
`],encapsulation:2,changeDetection:0})}return o})(),_n="_mat-snack-bar-enter",gn="_mat-snack-bar-exit",Go=(()=>{class o extends ji{_ngZone=v(dt);_elementRef=v(si);_changeDetectorRef=v(Ai);_platform=v(Vi);_animationsDisabled=dn();snackBarConfig=v(Ve);_document=v(ct);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=v(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Ae;_onExit=new Ae;_onEnter=new Ae;_animationState="void";_live;_label;_role;_liveElementId=v(zi).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===gn?this._completeExit():e===_n&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Jt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_n)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(_n)},200)))}exit(){return this._destroyed?Zn(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Jt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(gn)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(gn),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(l=>e.classList.add(l)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,s="mdc-snackbar__label";r.classList.toggle(s,!r.querySelector(`.${s}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let s=n[r],l=s.getAttribute("aria-owns");this._trackedModals.add(s),l?l.indexOf(e)===-1&&s.setAttribute("aria-owns",l+" "+e):s.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),r=e.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)})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(en(fn,7),en(Ko,7)),n&2){let s;tn(s=nn())&&(r._portalOutlet=s.first),tn(s=nn())&&(r._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,r){n&1&&F("animationend",function(l){return r.onAnimationEnd(l.animationName)})("animationcancel",function(l){return r.onAnimationEnd(l.animationName)}),n&2&&ht("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[di],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(n,r){n&1&&(S(0,"div",1)(1,"div",2,0)(3,"div",3),fi(4,zo,0,0,"ng-template",4),T(),ce(5,"div"),T()()),n&2&&(x(5),ft("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[fn],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.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-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.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}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.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(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-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){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
|
|
4
|
-
`],encapsulation:2})}return o})();function Qo(){return new Ve}var Wo=new Yt("mat-snack-bar-default-options",{providedIn:"root",factory:Qo}),wr=(()=>{class o{_live=v(Ki);_injector=v(Te);_breakpointObserver=v(St);_parentSnackBar=v(o,{optional:!0,skipSelf:!0});_defaultConfig=v(Wo);_animationsDisabled=dn();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Uo;snackBarContainerComponent=Go;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let s=Q(Q({},this._defaultConfig),r);return s.data={message:e,action:n},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=Te.create({parent:r||this._injector,providers:[{provide:Ve,useValue:n}]}),l=new Qe(this.snackBarContainerComponent,n.viewContainerRef,s),u=e.attach(l);return u.instance.snackBarConfig=n,u.instance}_attach(e,n){let r=Q(Q(Q({},new Ve),this._defaultConfig),n),s=this._createOverlay(r),l=this._attachSnackBarContainer(s,r),u=new We(l,s);if(e instanceof li){let d=new $i(e,null,{$implicit:r.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{let d=this._createInjector(r,u),_=new Qe(e,void 0,d),i=l.attachComponentPortal(_);u.instance=i.instance}return this._breakpointObserver.observe(At.HandsetPortrait).pipe(ni(s.detachments())).subscribe(d=>{s.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(u,r),this._openedSnackBarRef=u,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Ui;n.direction=e.direction;let r=Gi(this._injector),s=e.direction==="rtl",l=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!s||e.horizontalPosition==="end"&&s,u=!l&&e.horizontalPosition!=="center";return l?r.left("0"):u?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,n.disableAnimations=this._animationsDisabled,Qi(this._injector,n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:r||this._injector,providers:[{provide:We,useValue:n},{provide:Sr,useValue:e.data}]})}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ar=Yn(hn());var Xo={1e3:"notification",1001:"alert",1002:"warn",1003:"alarm",1004:"emergency"},be=(()=>{class o{settings=v(ue);data=v(Le);requests=v(or);static ALARM_SEVERITIES={normal:{sound:0,visual:0},nominal:{sound:0,visual:0},alert:{sound:1,visual:0},warn:{sound:2,visual:1},alarm:{sound:3,visual:2},emergency:{sound:4,visual:2}};_notificationSettingsSubscription=null;_notificationDataStreamSubscription=null;_notificationMetaStreamSubscription=null;_resetServiceSubscription=null;_notificationConfig;_notificationConfig$=new at(ki);_notifications=[];_notifications$=new at([]);_alarmsInfo$=new at({audioSev:0,visualSev:0,alarmCount:0,isMuted:!1});_players=new Map;_activeAlarmSoundtrack=null;_activeHowlId=null;_isHowlIdMuted=!1;_lastEmittedValue=null;constructor(){this._notificationSettingsSubscription=this.settings.getNotificationServiceConfigAsO().subscribe(e=>{this._notificationConfig=e,this.reset(),this._notificationConfig$.next(e),this._notificationConfig.disableNotifications&&!this._notificationDataStreamSubscription?.closed&&this.stopNotificationStream(),!this._notificationConfig.disableNotifications&&(this._notificationDataStreamSubscription===null||this._notificationDataStreamSubscription?.closed)&&this.startNotificationStream(),this._notificationConfig.sound.disableSound?this.playAlarm(1e3):this.updateNotificationsState()}),this._resetServiceSubscription=this.data.isResetService().subscribe(e=>{e&&this.reset()}),this.getPlayer(1e3)}startNotificationStream(){this._notificationDataStreamSubscription=this.data.getNotificationMsgObservable().subscribe(e=>this.processNotificationDeltaMsg(e)),this._notificationMetaStreamSubscription=this.data.getNotificationMetaObservable().subscribe(e=>this.processNotificationDeltaMeta(e))}stopNotificationStream(){this._notificationDataStreamSubscription?.unsubscribe(),this._notificationMetaStreamSubscription?.unsubscribe(),this.reset()}reset(){this._notificationConfig.disableNotifications&&(this._notifications=[],this._notifications$.next([])),this.updateNotificationsState()}observeNotifications(){return this._notifications$}addValue(e){this._notifications.push({path:e.path,value:e.value}),this.updateNotificationsState(),this._notifications$.next(this._notifications)}updateValue(e){let n=this._notifications.find(r=>r.path==e.path);n?(n.value=Q({},e.value),this.updateNotificationsState(),this._notifications$.next(this._notifications)):console.log("[Notification Service] Update path not found for: "+e.path)}deleteValue(e){let n=this._notifications.find(r=>r.path==e);n?(delete n.value,this.updateNotificationsState(),this._notifications$.next(this._notifications)):console.log("[Notification Service] Notification to delete not found for: "+e)}updateNotificationsState(){let e=0,n=0,r=0;for(let l of this._notifications){if(!l.value||!("method"in l.value)||l.value.method.length===0||l.value.state===ke.Normal&&!this._notificationConfig.devices.showNormalState||l.value.state===ke.Nominal&&!this._notificationConfig.devices.showNominalState)continue;r++;let{aSev:u,vSev:d}=this.getNotificationSeverity(l);e=Math.max(e,u),n=Math.max(n,d)}this._notificationConfig.sound.disableSound||this.playAlarm(1e3+e);let s={audioSev:e,visualSev:n,alarmCount:r,isMuted:this._isHowlIdMuted};Ue(s,this._lastEmittedValue)||(this._alarmsInfo$.next(s),this._lastEmittedValue=s)}processNotificationDeltaMsg(e){if(!e.path.startsWith("notifications.security"))if(e.value===null)this.deleteValue(e.path);else{let n=this._notifications.find(r=>r.path==e.path);n?(!n.value||n.value.state!==e.value.state||n.value.message!==e.value.message||!Ue(n.value.method,e.value.method))&&this.updateValue(e):this.addValue(e)}}processNotificationDeltaMeta(e){let n=this._notifications.find(r=>r.path==e.path);n?n.meta=e.meta:this._notifications.push({path:e.path,meta:e.meta}),this._notifications$.next(this._notifications)}getNotificationSeverity(e){let n=e.value.state,r=o.ALARM_SEVERITIES[n];if(!r)return console.log(`[Notification Service] Unknown Notification State
|
|
5
|
-
`+JSON.stringify(e)),{aSev:0,vSev:0};let s=r.sound,l=r.visual;return(!e.value.method.includes(Re.Sound)||this._notificationConfig.sound[`mute${n.charAt(0).toUpperCase()+n.slice(1)}`]||this._isHowlIdMuted)&&(s=0),e.value.method.includes(Re.Visual)||(l=0),{aSev:s,vSev:l}}setSkMethod(e,n){this.requests.putRequest(`${e}.method`,n,cn.create())}setSkState(e,n){this.requests.putRequest(`${e}.state`,n,cn.create())}observerNotificationsInfo(){return this._alarmsInfo$.pipe(Oe(e=>{let n=!1,r=!1;switch(e.visualSev){case 1:n=!0;break;case 2:r=!0;break}return Wn(Q({},e),{isWarn:n,isAlarmEmergency:r})}))}getPlayer(e){if(this._players.has(e))return this._players.get(e);let n=Xo[e];if(!n)return console.warn("[Notification Service] Unknown track id",e),this.getPlayer(1e3);let r=new Ar.Howl({src:[`assets/${n}.mp3`],autoplay:!1,preload:!0,loop:!0,onloaderror:(s,l)=>{console.log("[Notification Service] load error track:",e,l)},onplayerror:(s,l)=>{console.log("[Notification Service] play locked track:",e,l),r.once("unlock",()=>r.play())}});return this._players.set(e,r),r}mutePlayer(e){if(this._activeAlarmSoundtrack!=null&&this._activeAlarmSoundtrack!==1e3){let n=this._players.get(this._activeAlarmSoundtrack);n&&this._activeHowlId!=null&&n.mute(e,this._activeHowlId)}this._isHowlIdMuted=e,this.updateNotificationsState()}playAlarm(e){if(this._activeAlarmSoundtrack===e)return;if(this._activeAlarmSoundtrack!=null&&this._players.get(this._activeAlarmSoundtrack)?.stop(),e===1e3){this._activeAlarmSoundtrack=1e3,this._activeHowlId=null;return}let n=this.getPlayer(e);this._activeAlarmSoundtrack=e,this._activeHowlId=n.play(),n.mute(this._isHowlIdMuted,this._activeHowlId)}observeNotificationConfiguration(){return this._notificationConfig$.asObservable()}ngOnDestroy(){this._notificationSettingsSubscription?.unsubscribe(),this._resetServiceSubscription?.unsubscribe(),this._notificationDataStreamSubscription?.unsubscribe(),this._notificationMetaStreamSubscription?.unsubscribe(),this._notificationConfig$.complete(),this._notifications$.complete(),this._alarmsInfo$.complete();for(let e of this._players.values())try{e.unload()}catch{}this._players.clear()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Yo=(o,t)=>t.path;function Zo(o,t){o&1&&(S(0,"mat-icon"),N(1,"info"),T())}function Jo(o,t){o&1&&(S(0,"mat-icon"),N(1,"info"),T())}function ea(o,t){o&1&&(S(0,"mat-icon",3),N(1,"report"),T())}function ta(o,t){o&1&&(S(0,"mat-icon",4),N(1,"warning"),T())}function na(o,t){o&1&&(S(0,"mat-icon",5),N(1,"error"),T())}function ia(o,t){o&1&&(S(0,"mat-icon",6),N(1,"emergency_home"),T())}function ra(o,t){if(o&1){let e=K();S(0,"div",2),X(1,Zo,2,0,"mat-icon")(2,Jo,2,0,"mat-icon")(3,ea,2,0,"mat-icon",3)(4,ta,2,0,"mat-icon",4)(5,na,2,0,"mat-icon",5)(6,ia,2,0,"mat-icon",6),S(7,"div",7),N(8),T(),S(9,"div",8),N(10),yi(11,"slice"),T(),S(12,"div",9),N(13),T(),S(14,"button",10),F("click",function(){let r=I(e).$implicit,s=V();return D(s.silence(r.path))}),S(15,"mat-icon"),N(16,"music_off"),T()(),S(17,"button",11),F("click",function(){let r=I(e).$implicit,s=V();return D(s.clear(r.path))}),S(18,"mat-icon"),N(19,"published_with_changes"),T()()(),ce(20,"mat-divider",12)}if(o&2){let e,n=t.$implicit;x(),Y((e=n.value.state)==="nominal"?1:e==="normal"?2:e==="alert"?3:e==="warn"?4:e==="alarm"?5:e==="emergency"?6:-1),x(7),rn(n.value.state),x(2),$e(" ",vi(11,5,n.path,14)," "),x(3),rn(n.value.message),x(),me("disabled",!(n.value.method!=null&&n.value.method.includes("sound")))}}function oa(o,t){o&1&&(S(0,"mat-list-item",13)(1,"span",15),N(2,"Notifications Disabled"),T(),S(3,"span")(4,"i"),N(5,"*Enable notifications in Settings."),T()()())}function aa(o,t){o&1&&(S(0,"mat-list-item",14)(1,"i"),N(2,'"No Notification"'),T()())}function sa(o,t){if(o&1&&X(0,oa,6,0,"mat-list-item",13)(1,aa,3,0,"mat-list-item",14),o&2){let e=V();Y(e.notificationConfig().disableNotifications?0:1)}}function la(o,t){if(o&1){let e=K();S(0,"button",17),F("click",function(){I(e);let r=V(2);return D(r.mutePlayer(!r.isMuted))}),S(1,"span",18),N(2,"volume_up"),T(),N(3," Unmute Audio "),T()}}function ca(o,t){if(o&1){let e=K();S(0,"button",17),F("click",function(){I(e);let r=V(2);return D(r.mutePlayer(!r.isMuted))}),S(1,"span",18),N(2,"volume_off"),T(),N(3," Mute Audio "),T()}}function ua(o,t){if(o&1&&X(0,la,4,0,"button",16)(1,ca,4,0,"button",16),o&2){let e=V();Y(e.isMuted?0:1)}}var kr=(()=>{class o{_notificationsService=v(be);_notifications$=this._notificationsService.observeNotifications();notificationConfig=Z(this._notificationsService.observeNotificationConfiguration(),{requireSync:!0});menuNotifications=Z(Jn([this._notifications$,this._notificationsService.observeNotificationConfiguration()]).pipe(Oe(([e,n])=>{let r=[];return n.devices.showNormalState||r.push(ke.Normal),n.devices.showNominalState||r.push(ke.Nominal),e.filter(s=>s.value&&s.value.state&&!r.includes(s.value.state)).filter(s=>s.value&&s.value.method&&s.value.method.includes(Re.Visual))})),{requireSync:!0,equal:Ue});isMuted=!1;mutePlayer(e){this.isMuted=e,this._notificationsService.mutePlayer(e)}silence(e){this._notificationsService.setSkMethod(e,[Re.Visual])}clear(e){this._notificationsService.setSkState(e,ke.Normal)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["menu-notifications"]],decls:6,vars:2,consts:[[1,"menu-item-container"],[1,"actions-container","actions-bottom-container"],[1,"notification-container"],[1,"icon-alert-color"],[1,"icon-warn-color"],[1,"icon-alarm-color"],[1,"icon-emergency-color"],[1,"notification-title"],[1,"notification-path","scrollable-text"],[1,"notification-text"],["mat-icon-button","",1,"notification-action-btn",3,"click","disabled"],["mat-icon-button","",1,"notification-action-btn",3,"click"],[1,"notification-divider"],["lines","3","disabled","true",2,"text-align","center"],["disabled","true",2,"text-align","center"],["matListItemTitle",""],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button"],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button",3,"click"],[1,"material-icons"]],template:function(n,r){n&1&&(S(0,"mat-list",0),mt(1,ra,21,8,null,null,Yo,!1,sa,2,1),T(),S(4,"div",1),X(5,ua,2,1),T()),n&2&&(x(),pt(r.menuNotifications()),x(4),Y(r.notificationConfig().disableNotifications?-1:5))},dependencies:[rr,nr,ir,Zi,tr,pe,Be,Hi,Ct,fr,dr,ve,xe,Ei],styles:[".notification-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;padding:2px 10px 7px;scroll-behavior:smooth}mat-icon[_ngcontent-%COMP%]{margin-right:10px}.scrollable-text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.scrollable-text[_ngcontent-%COMP%]:hover{overflow:auto;white-space:normal;word-wrap:break-word}.notification-title[_ngcontent-%COMP%]{text-transform:capitalize;font-size:var(--mat-sys-headline-small-size);width:calc(100% - 34px)}.notification-path[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-size);word-break:break-all;width:100%}.notification-text[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-line-height);font-style:italic;width:100%;overflow:auto;white-space:normal;word-wrap:break-word}.notification-action-btn[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container)}.notification-btn-container[_ngcontent-%COMP%]{display:inline-block;width:50%;height:48px;text-align:center}.menu-item-container[_ngcontent-%COMP%]{width:230px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;height:calc(100% - 48px)}.notification-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:var(--mat-sys-surface-container)}.actions-container[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column}.actions-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;height:48px}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large))}.icon-alert-color[_ngcontent-%COMP%]{color:var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{color:var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{color:var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:transparent}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.notification-divider[_ngcontent-%COMP%]{padding-top:10px}"],changeDetection:0})}return o})();var da=["badgeButton"],Cr=(()=>{class o{badgeButton=wi.required("badgeButton");_notifications=v(be);notificationsInfo=Z(this._notifications.observerNotificationsInfo());openNotificationMenu(){let e=new Event("openRightSidenav",{bubbles:!0,cancelable:!0});window.document.dispatchEvent(e)}onKeyDown(e){let n=e.key?.toLowerCase();(n==="enter"||n===" "||n==="spacebar")&&(e.preventDefault(),this.openNotificationMenu())}focus(){try{let e=this.badgeButton&&this.badgeButton(),n=e&&e.nativeElement;n&&typeof n.focus=="function"&&n.focus()}catch{}}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["notification-badge"]],viewQuery:function(n,r){n&1&&hi(r.badgeButton,da,5),n&2&&_i()},decls:5,vars:7,consts:[["badgeButton",""],["mat-fab","","role","button","aria-label","Open notifications",1,"layout-action-btn",3,"click","keydown"],["aria-hidden","false","matBadgeSize","large","matBadgePosition","after","matBadgeOverlap","true",1,"icon-alert-color",3,"matBadgeHidden","matBadge"]],template:function(n,r){if(n&1){let s=K();S(0,"div")(1,"button",1,0),F("click",function(){return I(s),D(r.openNotificationMenu())})("keydown",function(u){return I(s),D(r.onKeyDown(u))}),S(3,"mat-icon",2),N(4,"notifications "),T()()()}n&2&&(x(),ht("warn",r.notificationsInfo().isWarn)("alarm-emergency-blink",r.notificationsInfo().isAlarmEmergency),ft("aria-haspopup",!0),x(2),me("matBadgeHidden",!r.notificationsInfo().alarmCount)("matBadge",r.notificationsInfo().alarmCount))},dependencies:[pe,qi,ve,xe,Ct,ar],styles:["[_nghost-%COMP%]{display:block}.layout-action-btn[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary);background-color:var(--mat-sys-primary)}.icon-alert-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:var(--mat-sys-primary)}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}"]})}return o})();var Mr=(()=>{class o{overlayRef=null;overlay=v(Wi);injector=v(Te);open(){if(this.overlayRef)return;this.overlayRef=this.overlay.create({hasBackdrop:!1,panelClass:"notification-overlay-panel",positionStrategy:this.overlay.position().global().bottom("20px").left("20px"),scrollStrategy:this.overlay.scrollStrategies.reposition()});let e=new Qe(Cr,null,this.injector),n=this.overlayRef.attach(e);try{let r=n&&n.instance;if(r&&typeof r.focus=="function")r.focus();else{let s=this.overlayRef.overlayElement,l=s&&s.querySelector("button[mat-fab], .layout-action-btn");l&&typeof l.focus=="function"&&l.focus()}}catch{}}close(){try{this.overlayRef&&this.overlayRef.dispose()}catch(e){console.warn("[NotificationOverlayService] dispose failed",e)}finally{this.overlayRef=null}}toggle(e){e?this.open():this.close()}isOpen(){return!!this.overlayRef}ngOnDestroy(){try{this.overlayRef&&this.overlayRef.dispose()}catch{}finally{this.overlayRef=null}}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function fa(o,t){if(o&1){let e=K();S(0,"button",12),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("toggleFullScreen"))}),S(1,"span",10),N(2,"fullscreen"),T()()}}function ma(o,t){if(o&1){let e=K();S(0,"button",12),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("toggleFullScreen"))}),S(1,"span",10),N(2,"close_fullscreen"),T()()}}function pa(o,t){if(o&1&&X(0,fa,3,0,"button",11)(1,ma,3,0,"button",11),o&2){let e=V();Y(e.uiEvent.fullscreenStatus()?1:0)}}function ha(o,t){if(o&1){let e=K();S(0,"button",14),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("nightMode"))}),S(1,"span",10),N(2,"mode_night"),T()()}}function _a(o,t){if(o&1){let e=K();S(0,"button",14),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("nightMode"))}),S(1,"span",10),N(2,"light_mode"),T()()}}function ga(o,t){if(o&1&&X(0,ha,3,0,"button",13)(1,_a,3,0,"button",13),o&2){let e=V();Y(e.app.isNightMode()?1:0)}}function ya(o,t){if(o&1){let e=K();S(0,"tile-large-icon",15,1),F("click",function(){let r=I(e).$index,s=V();return D(s.navigateToDashboard(r))}),T()}if(o&2){let e=t.$implicit;me("active",e.active)("svgIcon",e.svgIcon)("iconSize",e.iconSize)("label",e.label)}}var Pr=(()=>{class o{actionsSidenav=Si.required();_router=v(ye);uiEvent=v(kt);dashboard=v(De);app=v(wt);_settings=v(ue);isAutoNightMode=Z(this._settings.getAutoNightModeAsO(),{requireSync:!0});_initialDashboardMatch=(()=>{let n=this._router.parseUrl(this._router.url).root.children.primary,r=n?n.segments.map(s=>s.path):[];return r.length===0||r[0]==="dashboard"||r[0]==="chartplotter"})();isDashboardContext=Z(this._router.events.pipe(st(e=>e instanceof vt),ti(null),Oe(()=>{let n=this._router.parseUrl(this._router.url).root.children.primary,r=n?n.segments.map(s=>s.path):[];return r.length===0||r[0]==="dashboard"||r[0]==="chartplotter"}),ei()),{initialValue:this._initialDashboardMatch});menuItems=bi(()=>{let e=this.dashboard.dashboards(),n=this.dashboard.activeDashboard();return e.map((r,s)=>({id:Number(r.id),active:s===n,pinned:!1,svgIcon:r.icon||"dashboard-dashboard",iconSize:60,label:r.name||`Dashboard ${s+1}`}))});ngAfterViewInit(){this.uiEvent.addHotkeyListener((e,n)=>this.handleKeyDown(e,n),{ctrlKey:!0,shiftKey:!0,keys:["e","f","n"]})}ngOnDestroy(){this.uiEvent.removeHotkeyListener(this.handleKeyDown.bind(this))}handleKeyDown(e,n){switch(e){case"e":this.onActionItem("layout");break;case"f":this.onActionItem("toggleFullScreen");break;case"n":this.onActionItem("nightMode");break;default:break}}onActionItem(e){switch(this.actionsSidenav().close(),e){case"toggleFullScreen":this.uiEvent.toggleFullScreen();break;case"settings":this._router.navigate(["/settings"]);break;case"layout":this.dashboard.toggleStaticDashboard();break;case"nightMode":this.app.isNightMode.set(!this.app.isNightMode()),this.app.toggleDayNightMode();break;default:break}}navigateToDashboard(e){this.actionsSidenav().close(),this._router.navigate([`dashboard/${e}`])}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["menu-actions"]],inputs:{actionsSidenav:[1,"actionsSidenav"]},decls:14,vars:3,consts:[["tileContainer",""],["tile",""],[1,"actions-container"],[1,"actions-top-container"],["mat-flat-button","","tabindex","0",1,"action-button","home-btn",3,"click"],["height","24px","width","24px","svgIcon","kip","aria-hidden","false",1,"home-icon",2,"height","24px","width","24px"],[1,"menu-item-container"],["tabindex","0",3,"active","svgIcon","iconSize","label"],[1,"actions-bottom-container"],["mat-flat-button","",1,"action-button",2,"width","135px",3,"click","disabled"],[1,"material-icons"],["mat-flat-button","","tabindex","0",1,"action-button"],["mat-flat-button","","tabindex","0",1,"action-button",3,"click"],["mat-flat-button","",1,"action-button"],["mat-flat-button","",1,"action-button",3,"click"],["tabindex","0",3,"click","active","svgIcon","iconSize","label"]],template:function(n,r){if(n&1){let s=K();S(0,"div",2)(1,"div",3),X(2,pa,2,1),X(3,ga,2,1),S(4,"button",4),F("click",function(){return I(s),D(r.onActionItem("settings"))}),ce(5,"mat-icon",5),T()(),S(6,"div",6,0),mt(8,ya,2,4,"tile-large-icon",7,pi),T(),S(10,"div",8)(11,"button",9),F("click",function(){return I(s),D(r.onActionItem("layout"))}),S(12,"span",10),N(13,"lock_open"),T()()()()}n&2&&(x(2),Y(r.uiEvent.fullscreenSupported()?2:-1),x(),Y(r.isAutoNightMode()?-1:3),x(5),pt(r.menuItems()),x(3),me("disabled",!r.isDashboardContext()))},dependencies:[ve,xe,pe,Be,cr],styles:[".actions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:135px}.actions-top-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.actions-bottom-container[_ngcontent-%COMP%]{height:48px;width:100%}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;flex:1 1 48px;min-height:0;overflow:hidden;border:1px solid var(--mat-sidenav-container-background-color, var(--mat-sys-surface))}.home-btn[_ngcontent-%COMP%]{--mat-icon-button-icon-size: 24px;--mat-button-filled-icon-offset: 0px;--mat-button-filled-icon-spacing: 0px;--mat-button-filled-label-text-size: 0px}.home-icon[_ngcontent-%COMP%] .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{font-size:0px}.full-size[_ngcontent-%COMP%]{width:135px}.menu-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;padding:3px 1px;gap:5px;width:135px;overflow-y:auto;scrollbar-width:none;overflow-x:hidden;scroll-behavior:smooth;flex:1 1 auto;min-height:0}"]})}return o})();var Or=(()=>{class o{_snackBar=v(wr);_deltaService=v(Fe);_connectionStateMachine=v(Ie);_app=v(wt);_dashboard=v(De);_notifications=v(be);_uiEvent=v(kt);_dialog=v(er);appSettingsService=v(ue);authenticationService=v(ge);_dataSet=v(Et);_responsive=v(St);_destroyRef=v(ri);_notificationOverlay=v(Mr);_router=v(ye);notificationHowl;_upgradeShown=!1;actionsSidenavOpened=ln(!1);notificationsSidenavOpened=ln(!1);notificationsInfo=Z(this._notifications.observerNotificationsInfo());isDashboardStatic=Z(this._dashboard.isDashboardStatic$);dashboardVisible=oi(!1);isPhonePortrait;scheduledOpen=null;OPEN_DELAY_MS=300;_swipeLeftHandler=e=>this.onSwipeLeft(e);_swipeRightHandler=e=>this.onSwipeRight(e);_hotkeyHandler=(e,n)=>this.handleKeyDown(e,n);constructor(){_t(()=>{!this._upgradeShown&&this.appSettingsService.configUpgrade()&&(this._upgradeShown=!0,this._dialog.openFrameDialog({title:"Upgrade Instructions",component:"upgrade-config"},!0).pipe(je(this._destroyRef)).subscribe())});try{this.dashboardVisible.set(this.isUrlDashboard(this._router.url))}catch{}this._router.events.pipe(st(e=>e instanceof vt),je(this._destroyRef)).subscribe(e=>{try{this.dashboardVisible.set(this.isUrlDashboard(e.urlAfterRedirects||e.url))}catch{}}),_t(()=>{let e=this.dashboardVisible()&&this.isDashboardStatic()&&this.notificationsInfo().alarmCount>0;if(this.notificationsSidenavOpened()){this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch{}return}if(e){if(this.scheduledOpen)return;this.scheduledOpen=window.setTimeout(()=>{this.scheduledOpen=null;try{this._notificationOverlay.open()}catch{}},this.OPEN_DELAY_MS)}else{this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch{}}}),_t(()=>{if(this.notificationsSidenavOpened())try{this._notificationOverlay.close()}catch{}}),this.isPhonePortrait=Z(this._responsive.observe(At.HandsetPortrait)),this._connectionStateMachine.status$.pipe(je(this._destroyRef)).subscribe(e=>this.displayConnectionsStatusNotification(e)),this._app.getSnackbarAppNotifications().pipe(je(this._destroyRef)).subscribe(e=>{this._snackBar.open(e.message,e.action,{duration:e.duration,verticalPosition:"top"}),!this.appSettingsService.getNotificationConfig().sound.disableSound&&!e.silent&&(this.notificationHowl||(this.notificationHowl=new Nr.Howl({src:["assets/notification.mp3"],preload:!0,volume:.3})),this.notificationHowl.stop(),this.notificationHowl.play())})}isUrlDashboard(e){if(!e)return!1;let n=e.split("?")[0].replace(/\/+$/,"");return n==="/dashboard"||/^\/dashboard(\/\d+)?$/.test(n)||n==="/"}ngOnInit(){this._uiEvent.addGestureListeners(this._swipeLeftHandler,this._swipeRightHandler)}ngAfterViewInit(){this._uiEvent.addHotkeyListener(this._hotkeyHandler,{ctrlKey:!0,keys:["arrowright","arrowleft"]})}handleKeyDown(e,n){switch(e){case"arrowright":this.onSwipeRight(n);break;case"arrowleft":this.onSwipeLeft(n);break;case"escape":this.backdropClicked();break}}escapeKeyPressed(e){e=e.toLowerCase(),e==="escape"&&this.backdropClicked()}displayConnectionsStatusNotification(e){let n=e.message;switch(e.operation){case 0:this._app.sendSnackbarNotification(n,5e3,!0);break;case 1:case 2:break;case 3:this._app.sendSnackbarNotification(n,3e3,!1,"");break;case 4:this._app.sendSnackbarNotification(n,3e3,!0,"");break;case 5:this._app.sendSnackbarNotification(n,0,!1);break;default:console.error("[AppComponent] Unknown operation code:",e.operation),this._app.sendSnackbarNotification(`Unknown connection status: ${e.state}`,0,!1)}}onSwipeRight(e){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(e.preventDefault(),this.isPhonePortrait().matches?(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.set(!0)):(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.update(n=>!n)))}backdropClicked(){this.notificationsSidenavOpened.update(e=>e?!e:!1),this.actionsSidenavOpened.update(e=>e?!e:!1)}onSwipeLeft(e){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(e.preventDefault(),this.isPhonePortrait().matches?(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.set(!0)):(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.update(n=>!n)))}ngOnDestroy(){this._uiEvent.removeGestureListeners(this._swipeLeftHandler,this._swipeRightHandler),this._uiEvent.removeHotkeyListener(this._hotkeyHandler),this.notificationHowl?.unload(),this.notificationHowl=void 0,this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["app-root"]],inputs:{actionsSidenavOpened:[1,"actionsSidenavOpened"],notificationsSidenavOpened:[1,"notificationsSidenavOpened"]},outputs:{actionsSidenavOpened:"actionsSidenavOpenedChange",notificationsSidenavOpened:"notificationsSidenavOpenedChange"},decls:8,vars:3,consts:[["actionsSidenav",""],["kipGestures","",1,"sidenav-container",3,"swipeleft","swiperight","backdropClick"],["mode","over","position","start","autoFocus","true","disableClose","",1,"sidenav-notifications",3,"openedChange","keydown","opened"],["mode","over","position","end","autoFocus","true","disableClose","",1,"sidenav-actions",3,"openedChange","keydown","opened"],[3,"actionsSidenav"],[1,"router-outlet-container"]],template:function(n,r){if(n&1){let s=K();S(0,"mat-sidenav-container",1),F("swipeleft",function(u){return I(s),D(r.onSwipeLeft(u))})("swiperight",function(u){return I(s),D(r.onSwipeRight(u))})("backdropClick",function(){return I(s),D(r.backdropClicked())}),S(1,"mat-sidenav",2),sn("openedChange",function(u){return I(s),an(r.notificationsSidenavOpened,u)||(r.notificationsSidenavOpened=u),D(u)}),F("keydown",function(u){return I(s),D(r.escapeKeyPressed(u.key))}),ce(2,"menu-notifications"),T(),S(3,"mat-sidenav",3,0),sn("openedChange",function(u){return I(s),an(r.actionsSidenavOpened,u)||(r.actionsSidenavOpened=u),D(u)}),F("keydown",function(u){return I(s),D(r.escapeKeyPressed(u.key))}),ce(5,"menu-actions",4),T(),S(6,"mat-sidenav-content"),ce(7,"router-outlet",5),T()()}if(n&2){let s=gi(4);x(),on("opened",r.notificationsSidenavOpened),x(2),on("opened",r.actionsSidenavOpened),x(2),me("actionsSidenav",s)}},dependencies:[kr,Pr,pe,yr,ve,Li,xi,_r,pr,hr,mr,Ti,mn],styles:[".sidenav-container[_ngcontent-%COMP%]{height:100%;width:100%}mat-sidenav-content[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden}mat-sidenav.sidenav-notifications[_ngcontent-%COMP%]{width:230px;z-index:1200}mat-sidenav.sidenav-actions[_ngcontent-%COMP%]{width:135px;z-index:1200;overflow-x:hidden}"]})}return o})();function Ir(o){return new P(3e3,!1)}function va(){return new P(3100,!1)}function ba(){return new P(3101,!1)}function Sa(o){return new P(3001,!1)}function wa(o){return new P(3003,!1)}function Aa(o){return new P(3004,!1)}function xr(o,t){return new P(3005,!1)}function Rr(){return new P(3006,!1)}function Fr(){return new P(3007,!1)}function Lr(o,t){return new P(3008,!1)}function Br(o){return new P(3002,!1)}function Vr(o,t,e,n,r){return new P(3010,!1)}function Kr(){return new P(3011,!1)}function zr(){return new P(3012,!1)}function Hr(){return new P(3200,!1)}function qr(){return new P(3202,!1)}function $r(){return new P(3013,!1)}function jr(o){return new P(3014,!1)}function Ur(o){return new P(3015,!1)}function Gr(o){return new P(3016,!1)}function Qr(o,t){return new P(3404,!1)}function Ta(o){return new P(3502,!1)}function Wr(o){return new P(3503,!1)}function Xr(){return new P(3300,!1)}function Yr(o){return new P(3504,!1)}function Zr(o){return new P(3301,!1)}function Jr(o,t){return new P(3302,!1)}function eo(o){return new P(3303,!1)}function to(o,t){return new P(3400,!1)}function no(o){return new P(3401,!1)}function io(o){return new P(3402,!1)}function ro(o,t){return new P(3505,!1)}function he(o){switch(o.length){case 0:return new Ee;case 1:return o[0];default:return new bt(o)}}function Sn(o,t,e=new Map,n=new Map){let r=[],s=[],l=-1,u=null;if(t.forEach(d=>{let _=d.get("offset"),i=_==l,a=i&&u||new Map;d.forEach((c,f)=>{let m=f,h=c;if(f!=="offset")switch(m=o.normalizePropertyName(m,r),h){case Ge:h=e.get(f);break;case te:h=n.get(f);break;default:h=o.normalizeStyleValue(f,m,h,r);break}a.set(m,h)}),i||s.push(a),u=a,l=_}),r.length)throw Ta(r);return s}function Pt(o,t,e,n){switch(t){case"start":o.onStart(()=>n(e&&yn(e,"start",o)));break;case"done":o.onDone(()=>n(e&&yn(e,"done",o)));break;case"destroy":o.onDestroy(()=>n(e&&yn(e,"destroy",o)));break}}function yn(o,t,e){let n=e.totalTime,r=!!e.disabled,s=Nt(o.element,o.triggerName,o.fromState,o.toState,t||o.phaseName,n??o.totalTime,r),l=o._data;return l!=null&&(s._data=l),s}function Nt(o,t,e,n,r="",s=0,l){return{element:o,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:s,disabled:!!l}}function $(o,t,e){let n=o.get(t);return n||o.set(t,n=e),n}function wn(o){let t=o.indexOf(":"),e=o.substring(1,t),n=o.slice(t+1);return[e,n]}var Ea=typeof document>"u"?null:document.documentElement;function Ot(o){let t=o.parentNode||o.host||null;return t===Ea?null:t}function ka(o){return o.substring(1,6)=="ebkit"}var Ce=null,Dr=!1;function oo(o){Ce||(Ce=Ca()||{},Dr=Ce.style?"WebkitAppearance"in Ce.style:!1);let t=!0;return Ce.style&&!ka(o)&&(t=o in Ce.style,!t&&Dr&&(t="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Ce.style)),t}function Ca(){return typeof document<"u"?document.body:null}function An(o,t){for(;t;){if(t===o)return!0;t=Ot(t)}return!1}function Tn(o,t,e){if(e)return Array.from(o.querySelectorAll(t));let n=o.querySelector(t);return n?[n]:[]}var Ma=1e3,En="{{",Pa="}}",kn="ng-enter",It="ng-leave",Xe="ng-trigger",Ye=".ng-trigger",Cn="ng-animating",Dt=".ng-animating";function de(o){if(typeof o=="number")return o;let t=o.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:vn(parseFloat(t[1]),t[2])}function vn(o,t){switch(t){case"s":return o*Ma;default:return o}}function Ze(o,t,e){return o.hasOwnProperty("duration")?o:Oa(o,t,e)}var Na=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Oa(o,t,e){let n,r=0,s="";if(typeof o=="string"){let l=o.match(Na);if(l===null)return t.push(Ir(o)),{duration:0,delay:0,easing:""};n=vn(parseFloat(l[1]),l[2]);let u=l[3];u!=null&&(r=vn(parseFloat(u),l[4]));let d=l[5];d&&(s=d)}else n=o;if(!e){let l=!1,u=t.length;n<0&&(t.push(va()),l=!0),r<0&&(t.push(ba()),l=!0),l&&t.splice(u,0,Ir(o))}return{duration:n,delay:r,easing:s}}function ao(o){return o.length?o[0]instanceof Map?o:o.map(t=>new Map(Object.entries(t))):[]}function ie(o,t,e){t.forEach((n,r)=>{let s=xt(r);e&&!e.has(r)&&e.set(r,o.style[s]),o.style[s]=n})}function Se(o,t){t.forEach((e,n)=>{let r=xt(n);o.style[r]=""})}function Ke(o){return Array.isArray(o)?o.length==1?o[0]:Bi(o):o}function so(o,t,e){let n=t.params||{},r=Mn(o);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||e.push(Sa(s))})}var bn=new RegExp(`${En}\\s*(.+?)\\s*${Pa}`,"g");function Mn(o){let t=[];if(typeof o=="string"){let e;for(;e=bn.exec(o);)t.push(e[1]);bn.lastIndex=0}return t}function ze(o,t,e){let n=`${o}`,r=n.replace(bn,(s,l)=>{let u=t[l];return u==null&&(e.push(wa(l)),u=""),u.toString()});return r==n?o:r}var Ia=/-+([a-z0-9])/g;function xt(o){return o.replace(Ia,(...t)=>t[1].toUpperCase())}function lo(o,t){return o===0||t===0}function co(o,t,e){if(e.size&&t.length){let n=t[0],r=[];if(e.forEach((s,l)=>{n.has(l)||r.push(l),n.set(l,s)}),r.length)for(let s=1;s<t.length;s++){let l=t[s];r.forEach(u=>l.set(u,Rt(o,u)))}}return t}function j(o,t,e){switch(t.type){case k.Trigger:return o.visitTrigger(t,e);case k.State:return o.visitState(t,e);case k.Transition:return o.visitTransition(t,e);case k.Sequence:return o.visitSequence(t,e);case k.Group:return o.visitGroup(t,e);case k.Animate:return o.visitAnimate(t,e);case k.Keyframes:return o.visitKeyframes(t,e);case k.Style:return o.visitStyle(t,e);case k.Reference:return o.visitReference(t,e);case k.AnimateChild:return o.visitAnimateChild(t,e);case k.AnimateRef:return o.visitAnimateRef(t,e);case k.Query:return o.visitQuery(t,e);case k.Stagger:return o.visitStagger(t,e);default:throw Aa(t.type)}}function Rt(o,t){return window.getComputedStyle(o)[t]}var jn=(()=>{class o{validateStyleProperty(e){return oo(e)}containsElement(e,n){return An(e,n)}getParentElement(e){return Ot(e)}query(e,n,r){return Tn(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,s,l,u=[],d){return new Ee(r,s)}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})(),Pe=class{static NOOP=new jn},Ne=class{};var Da=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"]),Kt=class extends Ne{normalizePropertyName(t,e){return xt(t)}normalizeStyleValue(t,e,n,r){let s="",l=n.toString().trim();if(Da.has(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&r.push(xr(t,n))}return l+s}};var zt="*";function xa(o,t){let e=[];return typeof o=="string"?o.split(/\s*,\s*/).forEach(n=>Ra(n,e,t)):e.push(o),e}function Ra(o,t,e){if(o[0]==":"){let d=Fa(o,e);if(typeof d=="function"){t.push(d);return}o=d}let n=o.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(Ur(o)),t;let r=n[1],s=n[2],l=n[3];t.push(uo(r,l));let u=r==zt&&l==zt;s[0]=="<"&&!u&&t.push(uo(l,r))}function Fa(o,t){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return t.push(Gr(o)),"* => *"}}var Ft=new Set(["true","1"]),Lt=new Set(["false","0"]);function uo(o,t){let e=Ft.has(o)||Lt.has(o),n=Ft.has(t)||Lt.has(t);return(r,s)=>{let l=o==zt||o==r,u=t==zt||t==s;return!l&&e&&typeof r=="boolean"&&(l=r?Ft.has(o):Lt.has(o)),!u&&n&&typeof s=="boolean"&&(u=s?Ft.has(t):Lt.has(t)),l&&u}}var So=":self",La=new RegExp(`s*${So}s*,?`,"g");function wo(o,t,e,n){return new xn(o).build(t,e,n)}var fo="",xn=class{_driver;constructor(t){this._driver=t}build(t,e,n){let r=new Rn(e);return this._resetContextStyleTimingState(r),j(this,Ke(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=fo,t.collectedStyles=new Map,t.collectedStyles.set(fo,new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0,s=[],l=[];return t.name.charAt(0)=="@"&&e.errors.push(Rr()),t.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),u.type==k.State){let d=u,_=d.name;_.toString().split(/\s*,\s*/).forEach(i=>{d.name=i,s.push(this.visitState(d,e))}),d.name=_}else if(u.type==k.Transition){let d=this.visitTransition(u,e);n+=d.queryCount,r+=d.depCount,l.push(d)}else e.errors.push(Fr())}),{type:k.Trigger,name:t.name,states:s,transitions:l,queryCount:n,depCount:r,options:null}}visitState(t,e){let n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){let s=new Set,l=r||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(d=>{Mn(d).forEach(_=>{l.hasOwnProperty(_)||s.add(_)})})}),s.size&&e.errors.push(Lr(t.name,[...s.values()]))}return{type:k.State,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let n=j(this,Ke(t.animation),e),r=xa(t.expr,e.errors);return{type:k.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Me(t.options)}}visitSequence(t,e){return{type:k.Sequence,steps:t.steps.map(n=>j(this,n,e)),options:Me(t.options)}}visitGroup(t,e){let n=e.currentTime,r=0,s=t.steps.map(l=>{e.currentTime=n;let u=j(this,l,e);return r=Math.max(r,e.currentTime),u});return e.currentTime=r,{type:k.Group,steps:s,options:Me(t.options)}}visitAnimate(t,e){let n=za(t.timings,e.errors);e.currentAnimateTimings=n;let r,s=t.styles?t.styles:un({});if(s.type==k.Keyframes)r=this.visitKeyframes(s,e);else{let l=t.styles,u=!1;if(!l){u=!0;let _={};n.easing&&(_.easing=n.easing),l=un(_)}e.currentTime+=n.duration+n.delay;let d=this.visitStyle(l,e);d.isEmptyStep=u,r=d}return e.currentAnimateTimings=null,{type:k.Animate,timings:n,style:r,options:null}}visitStyle(t,e){let n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){let n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let u of r)typeof u=="string"?u===te?n.push(u):e.errors.push(Br(u)):n.push(new Map(Object.entries(u)));let s=!1,l=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(l=u.get("easing"),u.delete("easing")),!s)){for(let d of u.values())if(d.toString().indexOf(En)>=0){s=!0;break}}}),{type:k.Style,styles:n,easing:l,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let n=e.currentAnimateTimings,r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(l=>{typeof l!="string"&&l.forEach((u,d)=>{let _=e.collectedStyles.get(e.currentQuerySelector),i=_.get(d),a=!0;i&&(s!=r&&s>=i.startTime&&r<=i.endTime&&(e.errors.push(Vr(d,i.startTime,i.endTime,s,r)),a=!1),s=i.startTime),a&&_.set(d,{startTime:s,endTime:r}),e.options&&so(u,e.options,e.errors)})})}visitKeyframes(t,e){let n={type:k.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Kr()),n;let r=1,s=0,l=[],u=!1,d=!1,_=0,i=t.steps.map(g=>{let w=this._makeStyleAst(g,e),C=w.offset!=null?w.offset:Ka(w.styles),O=0;return C!=null&&(s++,O=w.offset=C),d=d||O<0||O>1,u=u||O<_,_=O,l.push(O),w});d&&e.errors.push(zr()),u&&e.errors.push(Hr());let a=t.steps.length,c=0;s>0&&s<a?e.errors.push(qr()):s==0&&(c=r/(a-1));let f=a-1,m=e.currentTime,h=e.currentAnimateTimings,p=h.duration;return i.forEach((g,w)=>{let C=c>0?w==f?1:c*w:l[w],O=C*p;e.currentTime=m+h.delay+O,h.duration=O,this._validateStyleAst(g,e),g.offset=C,n.styles.push(g)}),n}visitReference(t,e){return{type:k.Reference,animation:j(this,Ke(t.animation),e),options:Me(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:k.AnimateChild,options:Me(t.options)}}visitAnimateRef(t,e){return{type:k.AnimateRef,animation:this.visitReference(t.animation,e),options:Me(t.options)}}visitQuery(t,e){let n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[s,l]=Ba(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,$(e.collectedStyles,e.currentQuerySelector,new Map);let u=j(this,Ke(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:k.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:u,originalSelector:t.selector,options:Me(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push($r());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Ze(t.timings,e.errors,!0);return{type:k.Stagger,animation:j(this,Ke(t.animation),e),timings:n,options:null}}};function Ba(o){let t=!!o.split(/\s*,\s*/).find(e=>e==So);return t&&(o=o.replace(La,"")),o=o.replace(/@\*/g,Ye).replace(/@\w+/g,e=>Ye+"-"+e.slice(1)).replace(/:animating/g,Dt),[o,t]}function Va(o){return o?Q({},o):null}var Rn=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function Ka(o){if(typeof o=="string")return null;let t=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(o instanceof Map&&o.has("offset")){let e=o;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function za(o,t){if(o.hasOwnProperty("duration"))return o;if(typeof o=="number"){let s=Ze(o,t).duration;return Pn(s,0,"")}let e=o;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Pn(0,0,"");return s.dynamic=!0,s.strValue=e,s}let r=Ze(e,t);return Pn(r.duration,r.delay,r.easing)}function Me(o){return o?(o=Q({},o),o.params&&(o.params=Va(o.params))):o={},o}function Pn(o,t,e){return{duration:o,delay:t,easing:e}}function Un(o,t,e,n,r,s,l=null,u=!1){return{type:1,element:o,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:l,subTimeline:u}}var et=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},Ha=1,qa=":enter",$a=new RegExp(qa,"g"),ja=":leave",Ua=new RegExp(ja,"g");function Ao(o,t,e,n,r,s=new Map,l=new Map,u,d,_=[]){return new Fn().buildKeyframes(o,t,e,n,r,s,l,u,d,_)}var Fn=class{buildKeyframes(t,e,n,r,s,l,u,d,_,i=[]){_=_||new et;let a=new Ln(t,e,_,r,s,i,[]);a.options=d;let c=d.delay?de(d.delay):0;a.currentTimeline.delayNextStep(c),a.currentTimeline.setStyles([l],null,a.errors,d),j(this,n,a);let f=a.timelines.filter(m=>m.containsAnimation());if(f.length&&u.size){let m;for(let h=f.length-1;h>=0;h--){let p=f[h];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([u],null,a.errors,d)}return f.length?f.map(m=>m.buildKeyframes()):[Un(e,[],[],[],0,c,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,l=this._visitSubInstructions(n,r,r.options);s!=l&&e.transformIntoNewTimeline(l)}e.previousNode=t}visitAnimateRef(t,e){let n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(let r of t){let s=r?.delay;if(s){let l=typeof s=="number"?s:de(ze(s,r?.params??{},e.errors));n.delayNextStep(l)}}}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime,l=n.duration!=null?de(n.duration):null,u=n.delay!=null?de(n.delay):null;return l!==0&&t.forEach(d=>{let _=e.appendInstructionToTimeline(d,l,u);s=Math.max(s,_.duration+_.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),j(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let n=e.subContextCount,r=e,s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==k.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ht);let l=de(s.delay);r.delayNextStep(l)}t.steps.length&&(t.steps.forEach(l=>j(this,l,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let n=[],r=e.currentTimeline.currentTime,s=t.options&&t.options.delay?de(t.options.delay):0;t.steps.forEach(l=>{let u=e.createSubContext(t.options);s&&u.delayNextStep(s),j(this,l,u),r=Math.max(r,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let n=t.strValue,r=e.params?ze(n,e.params,e.errors):n;return Ze(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let s=t.style;s.type==k.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,t.styles.forEach(d=>{let _=d.offset||0;u.forwardTime(_*s),u.setStyles(d.styles,d.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){let n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?de(r.delay):0;s&&(e.previousNode.type===k.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ht);let l=n,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=u.length;let d=null;u.forEach((_,i)=>{e.currentQueryIndex=i;let a=e.createSubContext(t.options,_);s&&a.delayNextStep(s),_===e.element&&(d=a.currentTimeline),j(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe();let c=a.currentTimeline.currentTime;l=Math.max(l,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let n=e.parentContext,r=e.currentTimeline,s=t.timings,l=Math.abs(s.duration),u=l*(e.currentQueryTotal-1),d=l*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=n.currentStaggerTime;break}let i=e.currentTimeline;d&&i.delayNextStep(d);let a=i.currentTime;j(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-a+(r.startTime-n.currentTimeline.startTime)}},Ht={},Ln=class o{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ht;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,n,r,s,l,u,d){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=l,this.timelines=u,this.currentTimeline=d||new qt(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=de(n.duration)),n.delay!=null&&(r.delay=de(n.delay));let s=n.params;if(s){let l=r.params;l||(l=this.options.params={}),Object.keys(s).forEach(u=>{(!e||!l.hasOwnProperty(u))&&(l[u]=ze(s[u],l,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){let r=e||this.element,s=new o(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(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},s=new Bn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,l){let u=[];if(r&&u.push(this.element),t.length>0){t=t.replace($a,"."+this._enterClassName),t=t.replace(Ua,"."+this._leaveClassName);let d=n!=1,_=this._driver.query(this.element,t,d);n!==0&&(_=n<0?_.slice(_.length+n,_.length):_.slice(0,n)),u.push(..._)}return!s&&u.length==0&&l.push(jr(e)),u}},qt=class o{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new o(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ha,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||te),this._currentKeyframe.set(e,te);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&this._previousKeyframe.set("easing",e);let s=r&&r.params||{},l=Ga(t,this._globalTimelineStyles);for(let[u,d]of l){let _=ze(d,s,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??te),this._updateStyle(u,_)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((u,d)=>{let _=new Map([...this._backFill,...u]);_.forEach((i,a)=>{i===Ge?t.add(a):i===te&&e.add(a)}),n||_.set("offset",d/this.duration),r.push(_)});let s=[...t.values()],l=[...e.values()];if(n){let u=r[0],d=new Map(u);u.set("offset",0),d.set("offset",1),r=[u,d]}return Un(this.element,r,s,l,this.duration,this.startTime,this.easing,!1)}},Bn=class extends qt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,n,r,s,l,u=!1){super(t,e,l.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=u,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],l=n+e,u=e/l,d=new Map(t[0]);d.set("offset",0),s.push(d);let _=new Map(t[0]);_.set("offset",mo(u)),s.push(_);let i=t.length-1;for(let a=1;a<=i;a++){let c=new Map(t[a]),f=c.get("offset"),m=e+f*n;c.set("offset",mo(m/l)),s.push(c)}n=l,e=0,r="",t=s}return Un(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function mo(o,t=3){let e=Math.pow(10,t-1);return Math.round(o*e)/e}function Ga(o,t){let e=new Map,n;return o.forEach(r=>{if(r==="*"){n??=t.keys();for(let s of n)e.set(s,te)}else for(let[s,l]of r)e.set(s,l)}),e}function po(o,t,e,n,r,s,l,u,d,_,i,a,c){return{type:0,element:o,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:n,toStyles:l,timelines:u,queriedElements:d,preStyleProps:_,postStyleProps:i,totalTime:a,errors:c}}var Nn={},$t=class{_triggerName;ast;_stateStyles;constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return Qa(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,n):new Map}build(t,e,n,r,s,l,u,d,_,i){let a=[],c=this.ast.options&&this.ast.options.params||Nn,f=u&&u.params||Nn,m=this.buildStyles(n,f,a),h=d&&d.params||Nn,p=this.buildStyles(r,h,a),g=new Set,w=new Map,C=new Map,O=r==="void",U={params:To(h,c),delay:this.ast.options?.delay},q=i?[]:Ao(t,e,this.ast.animation,s,l,m,p,U,_,a),L=0;return q.forEach(E=>{L=Math.max(E.duration+E.delay,L)}),a.length?po(e,this._triggerName,n,r,O,m,p,[],[],w,C,L,a):(q.forEach(E=>{let oe=E.element,fe=$(w,oe,new Set);E.preStyleProps.forEach(ae=>fe.add(ae));let it=$(C,oe,new Set);E.postStyleProps.forEach(ae=>it.add(ae)),oe!==e&&g.add(oe)}),po(e,this._triggerName,n,r,O,m,p,q,[...g.values()],w,C,L))}};function Qa(o,t,e,n,r){return o.some(s=>s(t,e,n,r))}function To(o,t){let e=Q({},t);return Object.entries(o).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var Vn=class{styles;defaultParams;normalizer;constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){let n=new Map,r=To(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((l,u)=>{l&&(l=ze(l,r,e));let d=this.normalizer.normalizePropertyName(u,e);l=this.normalizer.normalizeStyleValue(u,d,l,e),n.set(u,l)})}),n}};function Wa(o,t,e){return new Kn(o,t,e)}var Kn=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,e.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Vn(r.style,s,n))}),ho(this.states,"true","1"),ho(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new $t(t,r,this.states))}),this.fallbackTransition=Xa(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(l=>l.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}};function Xa(o,t,e){let n=[(l,u)=>!0],r={type:k.Sequence,steps:[],options:null},s={type:k.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new $t(o,s,t)}function ho(o,t,e){o.has(t)?o.has(e)||o.set(e,o.get(t)):o.has(e)&&o.set(t,o.get(e))}var Ya=new et,zn=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n}register(t,e){let n=[],r=[],s=wo(this._driver,e,n,r);if(n.length)throw Wr(n);this._animations.set(t,s)}_buildPlayer(t,e,n){let r=t.element,s=Sn(this._normalizer,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){let r=[],s=this._animations.get(t),l,u=new Map;if(s?(l=Ao(this._driver,e,s,kn,It,new Map,new Map,n,Ya,r),l.forEach(i=>{let a=$(u,i.element,new Map);i.postStyleProps.forEach(c=>a.set(c,null))})):(r.push(Xr()),l=[]),r.length)throw Yr(r);u.forEach((i,a)=>{i.forEach((c,f)=>{i.set(f,this._driver.computeStyle(a,f,te))})});let d=l.map(i=>{let a=u.get(i.element);return this._buildPlayer(i,new Map,a)}),_=he(d);return this._playersById.set(t,_),_.onDestroy(()=>this.destroy(t)),this.players.push(_),_}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw Zr(t);return e}listen(t,e,n,r){let s=Nt(e,"","","");return Pt(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if(n=="register"){this.register(t,r[0]);return}if(n=="create"){let l=r[0]||{};this.create(t,e,l);return}let s=this._getPlayer(t);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(t);break}}},_o="ng-animate-queued",Za=".ng-animate-queued",On="ng-animate-disabled",Ja=".ng-animate-disabled",es="ng-star-inserted",ts=".ng-star-inserted",ns=[],Eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},is={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},re="__ng_removed",tt=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let n=t&&t.hasOwnProperty("value"),r=n?t.value:t;if(this.value=os(r),n){let s=t,{value:l}=s,u=Xn(s,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},Je="void",In=new tt(Je),Hn=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+t,J(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.has(e))throw Jr(n,e);if(n==null||n.length==0)throw eo(e);if(!as(n))throw to(n,e);let s=$(this._elementListeners,t,[]),l={name:e,phase:n,callback:r};s.push(l);let u=$(this._engine.statesByElement,t,new Map);return u.has(e)||(J(t,Xe),J(t,Xe+"-"+e),u.set(e,In)),()=>{this._engine.afterFlush(()=>{let d=s.indexOf(l);d>=0&&s.splice(d,1),this._triggers.has(e)||u.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw no(t);return e}trigger(t,e,n,r=!0){let s=this._getTrigger(e),l=new nt(this.id,e,t),u=this._engine.statesByElement.get(t);u||(J(t,Xe),J(t,Xe+"-"+e),this._engine.statesByElement.set(t,u=new Map));let d=u.get(e),_=new tt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&d&&_.absorbOptions(d.options),u.set(e,_),d||(d=In),!(_.value===Je)&&d.value===_.value){if(!cs(d.params,_.params)){let h=[],p=s.matchStyles(d.value,d.params,h),g=s.matchStyles(_.value,_.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush(()=>{Se(t,p),ie(t,g)})}return}let c=$(this._engine.playersByElement,t,[]);c.forEach(h=>{h.namespaceId==this.id&&h.triggerName==e&&h.queued&&h.destroy()});let f=s.matchTransition(d.value,_.value,t,_.params),m=!1;if(!f){if(!r)return;f=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:d,toState:_,player:l,isFallbackTransition:m}),m||(J(t,_o),l.onStart(()=>{He(t,_o)})),l.onDone(()=>{let h=this.players.indexOf(l);h>=0&&this.players.splice(h,1);let p=this._engine.playersByElement.get(t);if(p){let g=p.indexOf(l);g>=0&&p.splice(g,1)}}),this.players.push(l),c.push(l),l}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let n=this._engine.driver.query(t,Ye,!0);n.forEach(r=>{if(r[re])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(l=>l.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){let s=this._engine.statesByElement.get(t),l=new Map;if(s){let u=[];if(s.forEach((d,_)=>{if(l.set(_,d.value),this._triggers.has(_)){let i=this.trigger(t,_,Je,r);i&&u.push(i)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&he(u).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){let r=new Set;e.forEach(s=>{let l=s.name;if(r.has(l))return;r.add(l);let d=this._triggers.get(l).fallbackTransition,_=n.get(l)||In,i=new tt(Je),a=new nt(this.id,l,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:l,transition:d,fromState:_,toState:i,player:a,isFallbackTransition:!0})})}}removeNode(t,e){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let l=t;for(;l=l.parentNode;)if(n.statesByElement.get(l)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{let s=t[re];(!s||s===Eo)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){J(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,l=this._elementListeners.get(s);l&&l.forEach(u=>{if(u.name==n.triggerName){let d=Nt(s,n.triggerName,n.fromState.value,n.toState.value);d._data=t,Pt(n.player,u.phase,d,u.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let s=n.transition.ast.depCount,l=r.transition.ast.depCount;return s==0||l==0?s-l:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},qn=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){let n=new Hn(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let l=!1,u=this.driver.getParentElement(e);for(;u;){let d=r.get(u);if(d){let _=n.indexOf(d);n.splice(_+1,0,t),l=!0;break}u=this.driver.getParentElement(u)}l||n.unshift(t)}else n.push(t);return r.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,n=this.statesByElement.get(t);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}}return e}trigger(t,e,n,r){if(Bt(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Bt(e))return;let s=e[re];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let l=this.collectedLeaveElements.indexOf(e);l>=0&&this.collectedLeaveElements.splice(l,1)}if(t){let l=this._fetchNamespace(t);l&&l.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),J(t,On)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),He(t,On))}removeNode(t,e,n){if(Bt(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,r,s){this.collectedLeaveElements.push(e),e[re]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,n,r,s){return Bt(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ye,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Dt,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return he(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[re];if(e&&e.setForRemoval){if(t[re]=Eo,e.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(On)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ja,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];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;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];J(r,es)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,t)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?he(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw io(t)}_flushAnimations(t,e){let n=new et,r=[],s=new Map,l=[],u=new Map,d=new Map,_=new Map,i=new Set;this.disabledNodes.forEach(y=>{i.add(y);let b=this.driver.query(y,Za,!0);for(let A=0;A<b.length;A++)i.add(b[A])});let a=this.bodyNode,c=Array.from(this.statesByElement.keys()),f=vo(c,this.collectedEnterElements),m=new Map,h=0;f.forEach((y,b)=>{let A=kn+h++;m.set(b,A),y.forEach(M=>J(M,A))});let p=[],g=new Set,w=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let b=this.collectedLeaveElements[y],A=b[re];A&&A.setForRemoval&&(p.push(b),g.add(b),A.hasAnimation?this.driver.query(b,ts,!0).forEach(M=>g.add(M)):w.add(b))}let C=new Map,O=vo(c,Array.from(g));O.forEach((y,b)=>{let A=It+h++;C.set(b,A),y.forEach(M=>J(M,A))}),t.push(()=>{f.forEach((y,b)=>{let A=m.get(b);y.forEach(M=>He(M,A))}),O.forEach((y,b)=>{let A=C.get(b);y.forEach(M=>He(M,A))}),p.forEach(y=>{this.processLeaveNode(y)})});let U=[],q=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(A=>{let M=A.player,B=A.element;if(U.push(M),this.collectedEnterElements.length){let z=B[re];if(z&&z.setForMove){if(z.previousTriggersValues&&z.previousTriggersValues.has(A.triggerName)){let we=z.previousTriggersValues.get(A.triggerName),W=this.statesByElement.get(A.element);if(W&&W.has(A.triggerName)){let ot=W.get(A.triggerName);ot.value=we,W.set(A.triggerName,ot)}}M.destroy();return}}let le=!a||!this.driver.containsElement(a,B),G=C.get(B),_e=m.get(B),R=this._buildInstruction(A,n,_e,G,le);if(R.errors&&R.errors.length){q.push(R);return}if(le){M.onStart(()=>Se(B,R.fromStyles)),M.onDestroy(()=>ie(B,R.toStyles)),r.push(M);return}if(A.isFallbackTransition){M.onStart(()=>Se(B,R.fromStyles)),M.onDestroy(()=>ie(B,R.toStyles)),r.push(M);return}let Qn=[];R.timelines.forEach(z=>{z.stretchStartingKeyframe=!0,this.disabledNodes.has(z.element)||Qn.push(z)}),R.timelines=Qn,n.append(B,R.timelines);let Ro={instruction:R,player:M,element:B};l.push(Ro),R.queriedElements.forEach(z=>$(u,z,[]).push(M)),R.preStyleProps.forEach((z,we)=>{if(z.size){let W=d.get(we);W||d.set(we,W=new Set),z.forEach((ot,Wt)=>W.add(Wt))}}),R.postStyleProps.forEach((z,we)=>{let W=_.get(we);W||_.set(we,W=new Set),z.forEach((ot,Wt)=>W.add(Wt))})});if(q.length){let y=[];q.forEach(b=>{y.push(ro(b.triggerName,b.errors))}),U.forEach(b=>b.destroy()),this.reportError(y)}let L=new Map,E=new Map;l.forEach(y=>{let b=y.element;n.has(b)&&(E.set(b,b),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,L))}),r.forEach(y=>{let b=y.element;this._getPreviousPlayers(b,!1,y.namespaceId,y.triggerName,null).forEach(M=>{$(L,b,[]).push(M),M.destroy()})});let oe=p.filter(y=>bo(y,d,_)),fe=new Map;yo(fe,this.driver,w,_,te).forEach(y=>{bo(y,d,_)&&oe.push(y)});let ae=new Map;f.forEach((y,b)=>{yo(ae,this.driver,new Set(y),d,Ge)}),oe.forEach(y=>{let b=fe.get(y),A=ae.get(y);fe.set(y,new Map([...b?.entries()??[],...A?.entries()??[]]))});let se=[],rt=[],Gn={};l.forEach(y=>{let{element:b,player:A,instruction:M}=y;if(n.has(b)){if(i.has(b)){A.onDestroy(()=>ie(b,M.toStyles)),A.disabled=!0,A.overrideTotalTime(M.totalTime),r.push(A);return}let B=Gn;if(E.size>1){let G=b,_e=[];for(;G=G.parentNode;){let R=E.get(G);if(R){B=R;break}_e.push(G)}_e.forEach(R=>E.set(R,B))}let le=this._buildAnimation(A.namespaceId,M,L,s,ae,fe);if(A.setRealPlayer(le),B===Gn)se.push(A);else{let G=this.playersByElement.get(B);G&&G.length&&(A.parentPlayer=he(G)),r.push(A)}}else Se(b,M.fromStyles),A.onDestroy(()=>ie(b,M.toStyles)),rt.push(A),i.has(b)&&r.push(A)}),rt.forEach(y=>{let b=s.get(y.element);if(b&&b.length){let A=he(b);y.setRealPlayer(A)}}),r.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<p.length;y++){let b=p[y],A=b[re];if(He(b,It),A&&A.hasAnimation)continue;let M=[];if(u.size){let le=u.get(b);le&&le.length&&M.push(...le);let G=this.driver.query(b,Dt,!0);for(let _e=0;_e<G.length;_e++){let R=u.get(G[_e]);R&&R.length&&M.push(...R)}}let B=M.filter(le=>!le.destroyed);B.length?ss(this,b,B):this.processLeaveNode(b)}return p.length=0,se.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let b=this.players.indexOf(y);this.players.splice(b,1)}),y.play()}),se}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let l=[];if(e){let u=this.playersByQueriedElement.get(t);u&&(l=u)}else{let u=this.playersByElement.get(t);if(u){let d=!s||s==Je;u.forEach(_=>{_.queued||!d&&_.triggerName!=r||l.push(_)})}}return(n||r)&&(l=l.filter(u=>!(n&&n!=u.namespaceId||r&&r!=u.triggerName))),l}_beforeAnimationBuild(t,e,n){let r=e.triggerName,s=e.element,l=e.isRemovalTransition?void 0:t,u=e.isRemovalTransition?void 0:r;for(let d of e.timelines){let _=d.element,i=_!==s,a=$(n,_,[]);this._getPreviousPlayers(_,i,l,u,e.toState).forEach(f=>{let m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),a.push(f)})}Se(s,e.fromStyles)}_buildAnimation(t,e,n,r,s,l){let u=e.triggerName,d=e.element,_=[],i=new Set,a=new Set,c=e.timelines.map(m=>{let h=m.element;i.add(h);let p=h[re];if(p&&p.removedBeforeQueried)return new Ee(m.duration,m.delay);let g=h!==d,w=ls((n.get(h)||ns).map(L=>L.getRealPlayer())).filter(L=>{let E=L;return E.element?E.element===h:!1}),C=s.get(h),O=l.get(h),U=Sn(this._normalizer,m.keyframes,C,O),q=this._buildPlayer(m,U,w);if(m.subTimeline&&r&&a.add(h),g){let L=new nt(t,u,h);L.setRealPlayer(q),_.push(L)}return q});_.forEach(m=>{$(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>rs(this.playersByQueriedElement,m.element,m))}),i.forEach(m=>J(m,Cn));let f=he(c);return f.onDestroy(()=>{i.forEach(m=>He(m,Cn)),ie(d,e.toStyles)}),a.forEach(m=>{$(r,m,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ee(t.duration,t.delay)}},nt=class{namespaceId;triggerName;element;_player=new Ee;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>Pt(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){$(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function rs(o,t,e){let n=o.get(t);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&o.delete(t)}return n}function os(o){return o??null}function Bt(o){return o&&o.nodeType===1}function as(o){return o=="start"||o=="done"}function go(o,t){let e=o.style.display;return o.style.display=t??"none",e}function yo(o,t,e,n,r){let s=[];e.forEach(d=>s.push(go(d)));let l=[];n.forEach((d,_)=>{let i=new Map;d.forEach(a=>{let c=t.computeStyle(_,a,r);i.set(a,c),(!c||c.length==0)&&(_[re]=is,l.push(_))}),o.set(_,i)});let u=0;return e.forEach(d=>go(d,s[u++])),l}function vo(o,t){let e=new Map;if(o.forEach(u=>e.set(u,[])),t.length==0)return e;let n=1,r=new Set(t),s=new Map;function l(u){if(!u)return n;let d=s.get(u);if(d)return d;let _=u.parentNode;return e.has(_)?d=_:r.has(_)?d=n:d=l(_),s.set(u,d),d}return t.forEach(u=>{let d=l(u);d!==n&&e.get(d).push(u)}),e}function J(o,t){o.classList?.add(t)}function He(o,t){o.classList?.remove(t)}function ss(o,t,e){he(e).onDone(()=>o.processLeaveNode(t))}function ls(o){let t=[];return ko(o,t),t}function ko(o,t){for(let e=0;e<o.length;e++){let n=o[e];n instanceof bt?ko(n.players,t):t.push(n)}}function cs(o,t){let e=Object.keys(o),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let s=e[r];if(!t.hasOwnProperty(s)||o[s]!==t[s])return!1}return!0}function bo(o,t,e){let n=e.get(o);if(!n)return!1;let r=t.get(o);return r?n.forEach(s=>r.add(s)):t.set(o,n),e.delete(o),!0}var qe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new qn(t.body,e,n),this._timelineEngine=new zn(t.body,e,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,n,r,s){let l=t+"-"+r,u=this._triggerCache[l];if(!u){let d=[],_=[],i=wo(this._driver,s,d,_);if(d.length)throw Qr(r,d);u=Wa(r,i,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(e,r,u)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if(n.charAt(0)=="@"){let[s,l]=wn(n),u=r;this._timelineEngine.command(s,e,l,u)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if(n.charAt(0)=="@"){let[l,u]=wn(n);return this._timelineEngine.listen(l,e,u,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function us(o,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=Dn(t[0]),t.length>1&&(n=Dn(t[t.length-1]))):t instanceof Map&&(e=Dn(t)),e||n?new ds(o,e,n):null}var ds=(()=>{class o{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r;let s=o.initialStylesByElement.get(e);s||o.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ie(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ie(this._element,this._initialStyles),this._endStyles&&(ie(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(Se(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Se(this._element,this._endStyles),this._endStyles=null),ie(this._element,this._initialStyles),this._state=3)}}return o})();function Dn(o){let t=null;return o.forEach((e,n)=>{fs(n)&&(t=t||new Map,t.set(n,e))}),t}function fs(o){return o==="display"||o==="position"}var jt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&t.set(r,this._finished?n:Rt(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ut=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return An(t,e)}getParentElement(t){return Ot(t)}query(t,e,n){return Tn(t,e,n)}computeStyle(t,e,n){return Rt(t,e)}animate(t,e,n,r,s,l=[]){let u=r==0?"both":"forwards",d={duration:n,delay:r,fill:u};s&&(d.easing=s);let _=new Map,i=l.filter(f=>f instanceof jt);lo(n,r)&&i.forEach(f=>{f.currentSnapshot.forEach((m,h)=>_.set(h,m))});let a=ao(e).map(f=>new Map(f));a=co(t,a,_);let c=us(t,a);return new jt(t,a,d,c)}};var Vt="@",Co="@.disabled",Gt=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,n,r){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Vt&&e==Co?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n,r){return this.delegate.listen(t,e,n,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},$n=class extends Gt{factory;constructor(t,e,n,r,s){super(e,n,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Vt?e.charAt(1)=="."&&e==Co?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n,r){if(e.charAt(0)==Vt){let s=ms(t),l=e.slice(1),u="";return l.charAt(0)!=Vt&&([l,u]=ps(l)),this.engine.listen(this.namespaceId,s,l,u,d=>{let _=d._data||-1;this.factory.scheduleListenerCallback(_,n,d)})}return this.delegate.listen(t,e,n,r)}};function ms(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}function ps(o){let t=o.indexOf("."),e=o.substring(0,t),n=o.slice(t+1);return[e,n]}var Qt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,e.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(t,e){let r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let _=this._rendererCache,i=_.get(r);if(!i){let a=()=>_.delete(r);i=new Gt("",r,this.engine,a),_.set(r,i)}return i}let s=e.id,l=e.id+"-"+this._currentId;this._currentId++,this.engine.register(l,t);let u=_=>{Array.isArray(_)?_.forEach(u):this.engine.registerTrigger(s,l,t,_.name,_)};return e.data.animation.forEach(u),new $n(this,l,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[l,u]=s;l(u)}),this._animationCallbacksBuffer=[]})}),r.push([e,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()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var _s=(()=>{class o extends qe{constructor(e,n,r){super(e,n,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||o)(lt(ct),lt(Pe),lt(Ne))};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();function gs(){return new Kt}function ys(o,t,e){return new Qt(o,t,e)}var Mo=[{provide:Ne,useFactory:gs},{provide:qe,useClass:_s},{provide:ci,useFactory:ys,deps:[Oi,qe,dt]}],Gc=[{provide:Pe,useClass:jn},{provide:Zt,useValue:"NoopAnimations"},...Mo],vs=[{provide:Pe,useFactory:()=>new Ut},{provide:Zt,useFactory:()=>"BrowserAnimations"},...Mo];function Po(){return ui("NgEagerAnimations"),[...vs]}var No=11,Oo="connectionConfig",Io=(()=>{class o{config;isLoggedIn=null;loggedInSubscription=null;connection=v(gt);auth=v(ge);connectionStateMachine=v(Ie);router=v(ye);delta=v(Fe);data=v(Le);storage=v(yt);constructor(){this.loggedInSubscription=this.auth.isLoggedIn$.subscribe(e=>{this.isLoggedIn=e})}initNetworkServices(){return Xt(this,null,function*(){this.loadLocalStorageConfig(),this.preloadFonts();try{this.config?.signalKUrl!==void 0&&this.config.signalKUrl!==null&&(yield this.connection.initializeConnection({url:this.config.signalKUrl,new:!1},this.config.proxyEnabled,this.config.signalKSubscribeAll)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.config?.loginName&&this.config?.loginPassword&&(yield this.login()),this.isLoggedIn&&this.config?.useSharedConfig&&(this.storage.activeConfigFileVersion=No,this.storage.sharedConfigName=this.config.sharedConfigName,yield this.storage.getConfig("user",this.config.sharedConfigName,No,!0)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.router.navigate(["/login"])}catch(e){return e.status===0?console.warn("[AppInit Network Service] Initialization failed. Network error. Redirecting to settings page."):e.status===401?console.warn("[AppInit Network Service] Initialization failed. Unauthorized access. Redirecting to login page."):console.warn("[AppInit Network Service] Initialization failed. Error: ",JSON.stringify(e)),Promise.reject("[AppInit Network Service] Startup completed with connection issue.")}finally{console.log("[AppInit Network Service] Initialization completed"),this.connectionStateMachine.enableWebSocketMode(),this.connectionStateMachine.isHTTPConnected()&&(console.log("[AppInit Network Service] Starting WebSocket connection after initialization"),this.connectionStateMachine.startWebSocketConnection())}})}login(){return Xt(this,null,function*(){if(!this.isLoggedIn&&this.config.useSharedConfig&&this.config.loginName&&this.config.loginPassword)try{yield this.auth.login({usr:this.config.loginName,pwd:this.config.loginPassword})}catch(e){throw e.status===0?this.router.navigate(["/settings"]):e.status===401&&this.router.navigate(["/login"]),e}})}setLocalStorageConfig(){localStorage.setItem(Oo,JSON.stringify(this.config))}loadLocalStorageConfig(){this.config=JSON.parse(localStorage.getItem(Oo)),this.config?this.config.signalKUrl||(this.config.signalKUrl=window.location.origin,this.setLocalStorageConfig(),console.log(`[AppInit Network Service] Config found with no server URL. Setting Auto-Discovery URL: ${this.config.signalKUrl}`)):(this.config=Ci,this.config.signalKUrl=window.location.origin,console.log(`[AppInit Network Service] Connection Configuration not found. Creating configuration using Auto-Discovery URL: ${this.config.signalKUrl}`),this.setLocalStorageConfig()),this.config.configVersion==9&&(this.config.configVersion=10,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 9 to 10")),this.config.configVersion==10&&(this.config.configVersion=11,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 10 to 11"))}preloadFonts(){let e=[{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2)",options:{weight:"500",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2)",options:{weight:"500",style:"normal"}}];for(let{family:n,src:r,options:s}of e){let l=new FontFace(n,r,s);l.load().then(()=>document.fonts.add(l)).catch(u=>console.log(`[AppInit Network Service] Error loading fonts: ${u}`))}}ngOnDestroy(){this.loggedInSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();var Do=(()=>{class o{auth=v(ge);authToken=null;authTokenSubscription=null;constructor(){this.authTokenSubscription=this.auth.authToken$.subscribe(e=>{this.authToken=e})}intercept(e,n){let r=e.clone();return this.authToken&&(r=e.clone({headers:e.headers.set("authorization","JWT "+this.authToken.token)})),n.handle(r)}ngOnDestroy(){this.authTokenSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();var xo=(()=>{class o extends Tt{_createContainer(){let e=document.createElement("div");e.classList.add("cdk-overlay-container"),(document.getElementById("app-filter-wrapper")||document.querySelector("app-root")||document.body).appendChild(e),this._containerElement=e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ai(o)))(r||o)}})();static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();br.production&&void 0;Ii(Or,{providers:[ii(Di),{provide:Mi,useClass:Do,multi:!0},{provide:Xi,useValue:{hasBackdrop:!0,disableClose:!1,autoFocus:"first-tabbable",delayFocusTrap:!0,backdropClass:"dialogBackdrop"}},{provide:Yi,useValue:{appearance:"outline",floatLabel:"always",subscriptSizing:"dynamic"}},{provide:ur,useValue:{showDelay:1500,hideDelay:0}},ge,Le,gt,Fe,Ie,Et,De,Ji,ue,be,sr,yt,gr(),Pi(Ni()),Ri(vr,Fi()),Po(),{provide:Tt,useClass:xo},mi(()=>new Io().initNetworkServices().then(()=>{}).catch(()=>{}))]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:Material Icons;font-style:normal;font-weight:400;font-display:swap;src:local("Material Icons"),local("MaterialIcons-Regular"),url("./media/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ-CN2J7AYH.woff2") format("woff2")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP-QPSNQEDD.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP-XWLWMQVU.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP-32PLHKPQ.woff2") format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP-ITB7NUJC.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP-OG5AHRIX.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP-JKBSJZY3.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local("Roboto Light"),local("Roboto-Light"),url("./media/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ-PWGJWDFE.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz-PRJ7OQMU.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz-DRL4U32S.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz-Z72STTMG.woff2") format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz-PPTELUJT.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz-KZD6JQRT.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz-HW6RMPJ3.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local("Roboto"),local("Roboto-Regular"),url("./media/KFOmCnqEu92Fr1Mu4mxKKTU1Kg-SNGEW7FX.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP-36ULTGLY.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP-ILKS6RVC.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP-U3JTBV4H.woff2") format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP-UW3XWY7P.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP-2EL65J2O.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP-5NJLO2HW.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local("Roboto Medium"),local("Roboto-Medium"),url("./media/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ-MJ3CERJ6.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.rounded-card-color{background-color:var(--kip-contrast-dimmer-color)}.rounded-card{margin-top:10px;border-radius:15px;padding:10px}.formActionFooter{width:100%;text-align:end;margin-top:10px}.formActionButton{margin:0 3px 10px 10px}.formActionDivider{padding-bottom:10px}.flex-container{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;align-content:flex-start;gap:10px}.flex-item-rounded-card{flex:1 1 29%;padding:10px 20px;border-radius:15px}.flex-checkbox-30{flex-grow:1;flex-basis:30%;padding-bottom:23px}.flex-field-30{flex-grow:1;flex-basis:30%}.flex-field-50{flex-grow:1;flex-basis:48%}.flex-field-65{flex-grow:1;flex-basis:65%}.flex-field-100{flex-grow:1;flex-basis:100%}.flex-field-to-100{flex-grow:1;flex-basis:60%}.flex-field-fixed{flex-grow:0;flex-shrink:0;flex-basis:auto}.filter-path{width:125px}.mat-mdc-radio-button~.mat-radio-button{margin-left:16px}.widget-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.options-grid-span2{grid-column:1/span 2}.radio-group{display:flex;flex-direction:column;margin:15px 0}.radio-button{margin-left:16px}.full-width{width:100%}.page-content-wrapper{padding:0 24px 14px}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:0;left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:0}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:0;right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top;cursor:move}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}.gs-12>.grid-stack-item{width:8.333%}.gs-12>.grid-stack-item[gs-x="1"]{left:8.333%}.gs-12>.grid-stack-item[gs-w="2"]{width:16.667%}.gs-12>.grid-stack-item[gs-x="2"]{left:16.667%}.gs-12>.grid-stack-item[gs-w="3"]{width:25%}.gs-12>.grid-stack-item[gs-x="3"]{left:25%}.gs-12>.grid-stack-item[gs-w="4"]{width:33.333%}.gs-12>.grid-stack-item[gs-x="4"]{left:33.333%}.gs-12>.grid-stack-item[gs-w="5"]{width:41.667%}.gs-12>.grid-stack-item[gs-x="5"]{left:41.667%}.gs-12>.grid-stack-item[gs-w="6"]{width:50%}.gs-12>.grid-stack-item[gs-x="6"]{left:50%}.gs-12>.grid-stack-item[gs-w="7"]{width:58.333%}.gs-12>.grid-stack-item[gs-x="7"]{left:58.333%}.gs-12>.grid-stack-item[gs-w="8"]{width:66.667%}.gs-12>.grid-stack-item[gs-x="8"]{left:66.667%}.gs-12>.grid-stack-item[gs-w="9"]{width:75%}.gs-12>.grid-stack-item[gs-x="9"]{left:75%}.gs-12>.grid-stack-item[gs-w="10"]{width:83.333%}.gs-12>.grid-stack-item[gs-x="10"]{left:83.333%}.gs-12>.grid-stack-item[gs-w="11"]{width:91.667%}.gs-12>.grid-stack-item[gs-x="11"]{left:91.667%}.gs-12>.grid-stack-item[gs-w="12"]{width:100%}.gs-1>.grid-stack-item{width:100%}:root{--mat-sys-background: #191c1d;--kip-nightModeBrightness: 1;--kip-widget-card-background-color: #000000;--kip-widget-card-border-color: #252525;--kip-widget-card-border-style: solid;--kip-widget-card-border-width: 2px;--kip-blue-color: #3298ff;--kip-blue-dim-color: rgba(53, 154, 255, .7764705882);--kip-blue-dimmer-color: rgba(6, 59, 113, .4705882353);--kip-green-color: #00d000;--kip-green-dim-color: rgba(0, 208, 0, .7137254902);--kip-green-dimmer-color: rgba(0, 104, 0, .4705882353);--kip-purple-color: #A020F0;--kip-purple-dim-color: rgba(160, 32, 240, .7137254902);--kip-purple-dimmer-color: rgba(74, 15, 110, .4705882353);--kip-yellow-color: #ffdf00;--kip-yellow-dim-color: rgba(255, 223, 0, .7137254902);--kip-yellow-dimmer-color: rgba(114, 110, 0, .4705882353);--kip-pink-color: #FC0FC0;--kip-pink-dim-color: rgba(252, 15, 192, .7137254902);--kip-pink-dimmer-color: rgba(109, 7, 83, .4705882353);--kip-orange-color: #ff9100;--kip-orange-dim-color: rgba(255, 145, 0, .7137254902);--kip-orange-dimmer-color: rgba(113, 74, 0, .4705882353);--kip-contrast-color: #FFFFFF;--kip-contrast-dim-color: rgba(255, 255, 255, .7137254902);--kip-contrast-dimmer-color: rgba(255, 255, 255, .1607843137);--kip-grey-color: #B5B5B5;--kip-grey-dim-color: rgba(181, 181, 181, .7137254902);--kip-grey-dimmer-color: #1a1a1a;--kip-port-color: #8F0000;--kip-starboard-color: #008700;--kip-zone-nominal-color: #0164FA;--kip-zone-alert-color: #ffff60;--kip-zone-warn-color: #ff8d41;--kip-zone-alarm-color: #E90000;--kip-zone-emergency-color: #760000}body.light-theme{--mat-sys-background: #e1e4ec;--kip-widget-card-background-color: #ffffff;--kip-widget-card-border-color: #252525;--kip-contrast-color: #000000;--kip-contrast-dim-color: rgba(0, 0, 0, .7137254902);--kip-contrast-dimmer-color: rgba(0, 0, 0, .1607843137);--kip-grey-color: #666666;--kip-grey-dim-color: rgba(102, 102, 102, .7137254902);--kip-grey-dimmer-color: rgba(102, 102, 102, .1607843137);--kip-blue-color: #005bb5;--kip-blue-dim-color: rgba(0, 91, 181, .7137254902);--kip-blue-dimmer-color: rgba(0, 91, 181, .4705882353);--kip-green-color: #007a00;--kip-green-dim-color: rgba(0, 122, 0, .7137254902);--kip-green-dimmer-color: rgba(0, 122, 0, .4705882353);--kip-purple-color: #6a00a8;--kip-purple-dim-color: rgba(106, 0, 168, .7137254902);--kip-purple-dimmer-color: rgba(106, 0, 168, .4705882353);--kip-yellow-color: #bfa800;--kip-yellow-dim-color: rgba(191, 168, 0, .7137254902);--kip-yellow-dimmer-color: rgba(191, 168, 0, .4705882353);--kip-pink-color: #b00070;--kip-pink-dim-color: rgba(176, 0, 112, .7137254902);--kip-pink-dimmer-color: rgba(176, 0, 112, .4705882353);--kip-orange-color: #c56200;--kip-orange-dim-color: rgba(197, 98, 0, .7137254902);--kip-orange-dimmer-color: rgba(197, 98, 0, .4705882353);--kip-port-color: #b70000;--kip-starboard-color: #008700;--kip-zone-nominal-color: #0182fa;--kip-zone-alert-color: #f0f032;--kip-zone-warn-color: #ff8534;--kip-zone-alarm-color: #ff0000;--kip-zone-emergency-color: #741e1e}body.night-theme{--mat-sys-background: #101415;--kip-widget-card-background-color: #000000;--kip-widget-card-border-color: #252525;--kip-contrast-color: #520000;--kip-contrast-dim-color: rgba(82, 0, 0, .7137254902);--kip-contrast-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-grey-color: #520000;--kip-grey-dim-color: rgba(82, 0, 0, .7137254902);--kip-grey-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-blue-color: #520000;--kip-blue-dim-color: rgba(82, 0, 0, .7137254902);--kip-blue-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-green-color: #520000;--kip-green-dim-color: rgba(82, 0, 0, .7137254902);--kip-green-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-purple-color: #520000;--kip-purple-dim-color: rgba(82, 0, 0, .7137254902);--kip-purple-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-yellow-color: #520000;--kip-yellow-dim-color: rgba(82, 0, 0, .7137254902);--kip-yellow-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-pink-color: #520000;--kip-pink-dim-color: rgba(82, 0, 0, .7137254902);--kip-pink-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-orange-color: #520000;--kip-orange-dim-color: rgba(82, 0, 0, .7137254902);--kip-orange-dimmer-color: rgba(38, 0, 0, .7725490196);--kip-port-color: #800000;--kip-starboard-color: #005500;--kip-zone-nominal-color: #001d49;--kip-zone-alert-color: #2c2c00;--kip-zone-warn-color: #441e00;--kip-zone-alarm-color: #850000;--kip-zone-emergency-color: #bd0000}html{--mat-sys-background: #101415;--mat-sys-error: #ffb4ab;--mat-sys-error-container: #93000a;--mat-sys-inverse-on-surface: #2e3132;--mat-sys-inverse-primary: #0058c9;--mat-sys-inverse-surface: #e1e3e3;--mat-sys-on-background: #e1e3e3;--mat-sys-on-error: #690005;--mat-sys-on-error-container: #ffdad6;--mat-sys-on-primary: #002d6d;--mat-sys-on-primary-container: #d9e2ff;--mat-sys-on-primary-fixed: #001944;--mat-sys-on-primary-fixed-variant: #00429a;--mat-sys-on-secondary: #002e6b;--mat-sys-on-secondary-container: #d8e2ff;--mat-sys-on-secondary-fixed: #001a42;--mat-sys-on-secondary-fixed-variant: #13448f;--mat-sys-on-surface: #e1e3e3;--mat-sys-on-surface-variant: #dbe4e6;--mat-sys-on-tertiary: #3d2f00;--mat-sys-on-tertiary-container: #ffe08b;--mat-sys-on-tertiary-fixed: #241a00;--mat-sys-on-tertiary-fixed-variant: #584400;--mat-sys-outline: #899294;--mat-sys-outline-variant: #3f484a;--mat-sys-primary: #afc6ff;--mat-sys-primary-container: #00429a;--mat-sys-primary-fixed: #d9e2ff;--mat-sys-primary-fixed-dim: #afc6ff;--mat-sys-scrim: #000000;--mat-sys-secondary: #aec6ff;--mat-sys-secondary-container: #13448f;--mat-sys-secondary-fixed: #d8e2ff;--mat-sys-secondary-fixed-dim: #aec6ff;--mat-sys-shadow: #000000;--mat-sys-surface: #101415;--mat-sys-surface-bright: #363a3a;--mat-sys-surface-container: #1d2021;--mat-sys-surface-container-high: #272b2b;--mat-sys-surface-container-highest: #323536;--mat-sys-surface-container-low: #191c1d;--mat-sys-surface-container-lowest: #0b0f0f;--mat-sys-surface-dim: #101415;--mat-sys-surface-tint: #afc6ff;--mat-sys-surface-variant: #3f484a;--mat-sys-tertiary: #eec12c;--mat-sys-tertiary-container: #584400;--mat-sys-tertiary-fixed: #ffe08b;--mat-sys-tertiary-fixed-dim: #eec12c;--mat-sys-neutral-variant20: #293234;--mat-sys-neutral10: #191c1d;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 400 1rem / 1.5rem Roboto;--mat-sys-body-large-font: Roboto;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Roboto;--mat-sys-body-medium-font: Roboto;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Roboto;--mat-sys-body-small-font: Roboto;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem Roboto;--mat-sys-display-large-font: Roboto;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem Roboto;--mat-sys-display-medium-font: Roboto;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem Roboto;--mat-sys-display-small-font: Roboto;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem Roboto;--mat-sys-headline-large-font: Roboto;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem Roboto;--mat-sys-headline-medium-font: Roboto;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem Roboto;--mat-sys-headline-small-font: Roboto;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 500 .875rem / 1.25rem Roboto;--mat-sys-label-large-font: Roboto;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 500;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 500 .75rem / 1rem Roboto;--mat-sys-label-medium-font: Roboto;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 500;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 500 .688rem / 1rem Roboto;--mat-sys-label-small-font: Roboto;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 500;--mat-sys-title-large: 400 1.375rem / 1.75rem Roboto;--mat-sys-title-large-font: Roboto;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 500 1rem / 1.5rem Roboto;--mat-sys-title-medium-font: Roboto;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 500;--mat-sys-title-small: 500 .875rem / 1.25rem Roboto;--mat-sys-title-small-font: Roboto;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 500;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12}.light-theme{--mat-sys-background: #fcf8fd;--mat-sys-error: #ba1a1a;--mat-sys-error-container: #ffdad6;--mat-sys-inverse-on-surface: #f3eff4;--mat-sys-inverse-primary: #bec2ff;--mat-sys-inverse-surface: #303034;--mat-sys-on-background: #1b1b1f;--mat-sys-on-error: #ffffff;--mat-sys-on-error-container: #93000a;--mat-sys-on-primary: #ffffff;--mat-sys-on-primary-container: #0000ef;--mat-sys-on-primary-fixed: #00006e;--mat-sys-on-primary-fixed-variant: #0000ef;--mat-sys-on-secondary: #ffffff;--mat-sys-on-secondary-container: #444559;--mat-sys-on-secondary-fixed: #191a2c;--mat-sys-on-secondary-fixed-variant: #444559;--mat-sys-on-surface: #1b1b1f;--mat-sys-on-surface-variant: #46464f;--mat-sys-on-tertiary: #ffffff;--mat-sys-on-tertiary-container: #494900;--mat-sys-on-tertiary-fixed: #1d1d00;--mat-sys-on-tertiary-fixed-variant: #494900;--mat-sys-outline: #777680;--mat-sys-outline-variant: #c7c5d0;--mat-sys-primary: #343dff;--mat-sys-primary-container: #e0e0ff;--mat-sys-primary-fixed: #e0e0ff;--mat-sys-primary-fixed-dim: #bec2ff;--mat-sys-scrim: #000000;--mat-sys-secondary: #5c5d72;--mat-sys-secondary-container: #e1e0f9;--mat-sys-secondary-fixed: #e1e0f9;--mat-sys-secondary-fixed-dim: #c5c4dd;--mat-sys-shadow: #000000;--mat-sys-surface: #fcf8fd;--mat-sys-surface-bright: #fcf8fd;--mat-sys-surface-container: #f0edf1;--mat-sys-surface-container-high: #ebe7eb;--mat-sys-surface-container-highest: #e5e1e6;--mat-sys-surface-container-low: #f6f2f7;--mat-sys-surface-container-lowest: #ffffff;--mat-sys-surface-dim: #dcd9dd;--mat-sys-surface-tint: #343dff;--mat-sys-surface-variant: #e4e1ec;--mat-sys-tertiary: #626200;--mat-sys-tertiary-container: #eaea00;--mat-sys-tertiary-fixed: #eaea00;--mat-sys-tertiary-fixed-dim: #cdcd00;--mat-sys-neutral-variant20: #303038;--mat-sys-neutral10: #1b1b1f;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 400 1rem / 1.5rem Roboto;--mat-sys-body-large-font: Roboto;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Roboto;--mat-sys-body-medium-font: Roboto;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Roboto;--mat-sys-body-small-font: Roboto;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem Roboto;--mat-sys-display-large-font: Roboto;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem Roboto;--mat-sys-display-medium-font: Roboto;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem Roboto;--mat-sys-display-small-font: Roboto;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem Roboto;--mat-sys-headline-large-font: Roboto;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem Roboto;--mat-sys-headline-medium-font: Roboto;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem Roboto;--mat-sys-headline-small-font: Roboto;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 500 .875rem / 1.25rem Roboto;--mat-sys-label-large-font: Roboto;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 500;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 500 .75rem / 1rem Roboto;--mat-sys-label-medium-font: Roboto;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 500;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 500 .688rem / 1rem Roboto;--mat-sys-label-small-font: Roboto;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 500;--mat-sys-title-large: 400 1.375rem / 1.75rem Roboto;--mat-sys-title-large-font: Roboto;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 500 1rem / 1.5rem Roboto;--mat-sys-title-medium-font: Roboto;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 500;--mat-sys-title-small: 500 .875rem / 1.25rem Roboto;--mat-sys-title-small-font: Roboto;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 500;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12}.night-theme{--mat-sys-background: #1b110f;--mat-sys-error: #ffb4ab;--mat-sys-error-container: #93000a;--mat-sys-inverse-on-surface: #3a2e2c;--mat-sys-inverse-primary: #a33c2e;--mat-sys-inverse-surface: #f3dedb;--mat-sys-on-background: #f3dedb;--mat-sys-on-error: #690005;--mat-sys-on-error-container: #ffdad6;--mat-sys-on-primary: #640d06;--mat-sys-on-primary-container: #ffdad4;--mat-sys-on-primary-fixed: #410000;--mat-sys-on-primary-fixed-variant: #83251a;--mat-sys-on-secondary: #640d06;--mat-sys-on-secondary-container: #ffdad4;--mat-sys-on-secondary-fixed: #410000;--mat-sys-on-secondary-fixed-variant: #83251a;--mat-sys-on-surface: #f3dedb;--mat-sys-on-surface-variant: #fbdcd7;--mat-sys-on-tertiary: #640d06;--mat-sys-on-tertiary-container: #ffdad4;--mat-sys-on-tertiary-fixed: #410000;--mat-sys-on-tertiary-fixed-variant: #83251a;--mat-sys-outline: #a58b86;--mat-sys-outline-variant: #57423e;--mat-sys-primary: #ffb4a8;--mat-sys-primary-container: #83251a;--mat-sys-primary-fixed: #ffdad4;--mat-sys-primary-fixed-dim: #ffb4a8;--mat-sys-scrim: #000000;--mat-sys-secondary: #ffb4a8;--mat-sys-secondary-container: #83251a;--mat-sys-secondary-fixed: #ffdad4;--mat-sys-secondary-fixed-dim: #ffb4a8;--mat-sys-shadow: #000000;--mat-sys-surface: #1b110f;--mat-sys-surface-bright: #433634;--mat-sys-surface-container: #281d1b;--mat-sys-surface-container-high: #332725;--mat-sys-surface-container-highest: #3e3230;--mat-sys-surface-container-low: #241917;--mat-sys-surface-container-lowest: #150c0a;--mat-sys-surface-dim: #1b110f;--mat-sys-surface-tint: #ffb4a8;--mat-sys-surface-variant: #57423e;--mat-sys-tertiary: #ffb4a8;--mat-sys-tertiary-container: #83251a;--mat-sys-tertiary-fixed: #ffdad4;--mat-sys-tertiary-fixed-dim: #ffb4a8;--mat-sys-neutral-variant20: #3f2c29;--mat-sys-neutral10: #241917;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 400 1rem / 1.5rem Roboto;--mat-sys-body-large-font: Roboto;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Roboto;--mat-sys-body-medium-font: Roboto;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Roboto;--mat-sys-body-small-font: Roboto;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem Roboto;--mat-sys-display-large-font: Roboto;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem Roboto;--mat-sys-display-medium-font: Roboto;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem Roboto;--mat-sys-display-small-font: Roboto;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem Roboto;--mat-sys-headline-large-font: Roboto;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem Roboto;--mat-sys-headline-medium-font: Roboto;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem Roboto;--mat-sys-headline-small-font: Roboto;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 500 .875rem / 1.25rem Roboto;--mat-sys-label-large-font: Roboto;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 500;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 500 .75rem / 1rem Roboto;--mat-sys-label-medium-font: Roboto;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 500;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 500 .688rem / 1rem Roboto;--mat-sys-label-small-font: Roboto;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 500;--mat-sys-title-large: 400 1.375rem / 1.75rem Roboto;--mat-sys-title-large-font: Roboto;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 500 1rem / 1.5rem Roboto;--mat-sys-title-medium-font: Roboto;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 500;--mat-sys-title-small: 500 .875rem / 1.25rem Roboto;--mat-sys-title-small-font: Roboto;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 500;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12;--mat-button-filled-container-color: var(--kip-contrast-dim-color);--mat-button-outlined-outline-color: var(--kip-contrast-color);--mat-icon-color: var(--kip-contrast-color);--mat-sys-on-background: #831d1d;--mat-sys-on-surface: #831d1d;--mat-sys-on-surface-variant: #831d1d;--mat-sys-inverse-surface: #831d1d;--mat-sys-primary: #831d1d;--mat-sys-outline: #831d1d;--mat-sys-tertiary-fixed: var(--kip-contrast-color);--mat-sys-tertiary-fixed-dim: var(--kip-contrast-color)}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html,body{height:100%;overscroll-behavior-y:none;user-select:none;-webkit-user-select:none;-ms-user-select:none;overflow-x:hidden}input,textarea,[contenteditable=true]{user-select:text;-webkit-user-select:text;margin:0;overscroll-behavior-y:none}.app-shell{height:100%;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}body{font-family:Roboto,Helvetica Neue,sans-serif;background:var(--mat-sys-surface);color:var(--mat-sys-on-surface);margin:0;touch-action:none}#app-filter-wrapper{filter:brightness(var(--kip-nightModeBrightness)) var(--kip-nightModeFilters);-webkit-backdrop-filter:brightness(var(--kip-nightModeBrightness));backdrop-filter:brightness(var(--kip-nightModeBrightness));transition:filter .3s ease;position:relative;z-index:1300}.dialogBackdrop{background-color:#000000bf}.ng-invalid:not(form){border-left:5px solid var(--kip-zone-alarm-color)}.ng-valid[required],.ng-valid.required{border-left:5px solid var(--kip-green-color)}.grid-stack .ui-resizable-se,.grid-stack .ui-resizable-sw,.grid-stack .ui-resizable-ne,.grid-stack .ui-resizable-nw{width:32px;height:32px}.grid-stack .ui-resizable-e,.grid-stack .ui-resizable-w{width:32px}.grid-stack .ui-resizable-n,.grid-stack .ui-resizable-s{height:32px}.markdown-content a{color:var(--mat-sys-primary)}.markdown-content table{border:1px solid var(--mat-sys-on-background);border-collapse:collapse;width:100%}.markdown-content table th,.markdown-content table td{border:1px solid var(--mat-sys-on-background);padding:8px;text-align:left}.markdown-content table tr:nth-child(2n){background-color:var(--mat-sys-surface-container-high)}.loader-container{height:100%;width:100%;background-color:var(--mat-sys-background);display:flex;align-items:center;justify-content:center}#loader{height:175px;width:175px;position:relative}#loader .dot{height:100%;inset:0;margin:auto;position:absolute;width:87.5px}#loader .dot:before{border-radius:100%;content:"";height:87.5px;left:0;position:absolute;right:0;top:0;transform:scale(0);width:87.5px}#loader .dot:nth-child(7n+1){transform:rotate(45deg)}#loader .dot:nth-child(7n+1):before{animation:.8s linear .1s normal none infinite running load;background:#e5ab13 none repeat scroll 0 0}.notification-overlay-panel{position:fixed;bottom:20px;left:20px;z-index:1100!important;pointer-events:auto}.cdk-overlay-container .cdk-overlay-pane.notification-overlay-panel{z-index:1100!important}#loader .dot:nth-child(7n+2){transform:rotate(90deg)}#loader .dot:nth-child(7n+2):before{animation:.8s linear .2s normal none infinite running load;background:#f0ca31 none repeat scroll 0 0}#loader .dot:nth-child(7n+3){transform:rotate(135deg)}#loader .dot:nth-child(7n+3):before{animation:.8s linear .3s normal none infinite running load;background:#92c7e9 none repeat scroll 0 0}#loader .dot:nth-child(7n+4){transform:rotate(180deg)}#loader .dot:nth-child(7n+4):before{animation:.8s linear .4s normal none infinite running load;background:#63afdf none repeat scroll 0 0}#loader .dot:nth-child(7n+5){transform:rotate(225deg)}#loader .dot:nth-child(7n+5):before{animation:.8s linear .5s normal none infinite running load;background:#3586ca none repeat scroll 0 0}#loader .dot:nth-child(7n+6){transform:rotate(270deg)}#loader .dot:nth-child(7n+6):before{animation:.8s linear .6s normal none infinite running load;background:#d52626 none repeat scroll 0 0}#loader .dot:nth-child(7n+7){transform:rotate(315deg)}#loader .dot:nth-child(7n+7):before{animation:.8s linear .7s normal none infinite running load;background:#e26767 none repeat scroll 0 0}#loader .dot:nth-child(7n+8){transform:rotate(360deg)}#loader .dot:nth-child(7n+8):before{animation:.8s linear .8s normal none infinite running load;background:#f8e598 none repeat scroll 0 0}#loader .loading{background-position:50% 50%;background-repeat:no-repeat;bottom:-40px;height:20px;left:0;position:absolute;right:0;width:180px}@keyframes load{to{opacity:0;transform:scale(1)}}
|