@3mo/theme 0.0.2 â 0.0.4
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/README.md +2 -2
- package/dist/Accent.js +10 -10
- package/dist/Background.d.ts +0 -1
- package/dist/Background.d.ts.map +1 -1
- package/dist/Background.js +3 -8
- package/dist/Theme/Background.d.ts +0 -1
- package/dist/Theme/Background.d.ts.map +1 -1
- package/dist/Theme/ThemeController.d.ts +10 -0
- package/dist/Theme/ThemeController.d.ts.map +1 -0
- package/dist/Theme/index.d.ts +1 -0
- package/dist/Theme/index.d.ts.map +1 -1
- package/dist/ThemeController.d.ts +10 -0
- package/dist/ThemeController.d.ts.map +1 -0
- package/dist/ThemeController.js +24 -0
- package/dist/bundle.js +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/styles.css.js +80 -80
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -30
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,n)=>{var r=n(777),o=n(119),i=Object.hasOwnProperty,s=Object.create(null);for(var a in r)i.call(r,a)&&(s[r[a]]=a);var c=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(e.slice(a,a+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)s[n]=parseInt(e[n]+e[n],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(e[n+1],0);e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(r,e[1])?((s=r[e[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}for(n=0;n<3;n++)s[n]=l(s[n],0,255);return s[3]=l(s[3],0,1),s},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var t=o(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return s[t.slice(0,3)]}},119:(t,e,n)=>{"use strict";var r=n(774),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},388:(t,e)=>{"use strict";(function(t){t.Unidentified="Unidentified",t.Alt="Alt",t.AltGraph="AltGraph",t.CapsLock="CapsLock",t.Control="Control",t.Fn="Fn",t.FnLock="FnLock",t.Hyper="Hyper",t.Meta="Meta",t.NumLock="NumLock",t.ScrollLock="ScrollLock",t.Shift="Shift",t.Super="Super",t.Symbol="Symbol",t.SymbolLock="SymbolLock",t.Enter="Enter",t.Tab="Tab",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.End="End",t.Home="Home",t.PageDown="PageDown",t.PageUp="PageUp",t.Backspace="Backspace",t.Clear="Clear",t.Copy="Copy",t.CrSel="CrSel",t.Cut="Cut",t.Delete="Delete",t.EraseEof="EraseEof",t.ExSel="ExSel",t.Insert="Insert",t.Paste="Paste",t.Redo="Redo",t.Undo="Undo",t.Accept="Accept",t.Again="Again",t.Attn="Attn",t.Cancel="Cancel",t.ContextMenu="ContextMenu",t.Escape="Escape",t.Execute="Execute",t.Find="Find",t.Finish="Finish",t.Help="Help",t.Pause="Pause",t.Play="Play",t.Props="Props",t.Select="Select",t.ZoomIn="ZoomIn",t.ZoomOut="ZoomOut",t.BrightnessDown="BrightnessDown",t.BrightnessUp="BrightnessUp",t.Eject="Eject",t.LogOff="LogOff",t.Power="Power",t.PowerOff="PowerOff",t.PrintScreen="PrintScreen",t.Hibernate="Hibernate",t.Standby="Standby",t.WakeUp="WakeUp",t.AllCandidates="AllCandidates",t.Alphanumeric="Alphanumeric",t.CodeInput="CodeInput",t.Compose="Compose",t.Convert="Convert",t.Dead="Dead",t.FinalMode="FinalMode",t.GroupFirst="GroupFirst",t.GroupLast="GroupLast",t.GroupNext="GroupNext",t.GroupPrevious="GroupPrevious",t.ModeChange="ModeChange",t.NextCandidate="NextCandidate",t.NonConvert="NonConvert",t.PreviousCandidate="PreviousCandidate",t.Process="Process",t.SingleCandidate="SingleCandidate",t.HangulMode="HangulMode",t.HanjaMode="HanjaMode",t.JunjaMode="JunjaMode",t.Eisu="Eisu",t.Hankaku="Hankaku",t.Hiragana="Hiragana",t.HiraganaKatakana="HiraganaKatakana",t.KanaMode="KanaMode",t.KanjiMode="KanjiMode",t.Katakana="Katakana",t.Romaji="Romaji",t.Zenkaku="Zenkaku",t.ZenkakuHanaku="ZenkakuHanaku",t.F1="F1",t.F2="F2",t.F3="F3",t.F4="F4",t.F5="F5",t.F6="F6",t.F7="F7",t.F8="F8",t.F9="F9",t.F10="F10",t.F11="F11",t.F12="F12",t.F13="F13",t.F14="F14",t.F15="F15",t.F16="F16",t.F17="F17",t.F18="F18",t.F19="F19",t.F20="F20",t.Soft1="Soft1",t.Soft2="Soft2",t.Soft3="Soft3",t.Soft4="Soft4",t.AppSwitch="AppSwitch",t.Call="Call",t.Camera="Camera",t.CameraFocus="CameraFocus",t.EndCall="EndCall",t.GoBack="GoBack",t.GoHome="GoHome",t.HeadsetHook="HeadsetHook",t.LastNumberRedial="LastNumberRedial",t.Notification="Notification",t.MannerMode="MannerMode",t.VoiceDial="VoiceDial",t.ChannelDown="ChannelDown",t.ChannelUp="ChannelUp",t.MediaFastForward="MediaFastForward",t.MediaPause="MediaPause",t.MediaPlay="MediaPlay",t.MediaPlayPause="MediaPlayPause",t.MediaRecord="MediaRecord",t.MediaRewind="MediaRewind",t.MediaStop="MediaStop",t.MediaTrackNext="MediaTrackNext",t.MediaTrackPrevious="MediaTrackPrevious",t.AudioBalanceLeft="AudioBalanceLeft",t.AudioBalanceRight="AudioBalanceRight",t.AudioBassDown="AudioBassDown",t.AudioBassBoostDown="AudioBassBoostDown",t.AudioBassBoostToggle="AudioBassBoostToggle",t.AudioBassBoostUp="AudioBassBoostUp",t.AudioBassUp="AudioBassUp",t.AudioFaderFront="AudioFaderFront",t.AudioFaderRear="AudioFaderRear",t.AudioSurroundModeNext="AudioSurroundModeNext",t.AudioTrebleDown="AudioTrebleDown",t.AudioTrebleUp="AudioTrebleUp",t.AudioVolumeDown="AudioVolumeDown",t.AudioVolumeMute="AudioVolumeMute",t.AudioVolumeUp="AudioVolumeUp",t.MicrophoneToggle="MicrophoneToggle",t.MicrophoneVolumeDown="MicrophoneVolumeDown",t.MicrophoneVolumeMute="MicrophoneVolumeMute",t.MicrophoneVolumeUp="MicrophoneVolumeUp",t.TV="TV",t.TV3DMode="TV3DMode",t.TVAntennaCable="TVAntennaCable",t.TVAudioDescription="TVAudioDescription",t.TVAudioDescriptionMixDown="TVAudioDescriptionMixDown",t.TVAudioDescriptionMixUp="TVAudioDescriptionMixUp",t.TVContentsMenu="TVContentsMenu",t.TVDataService="TVDataService",t.TVInput="TVInput",t.TVInputComponent1="TVInputComponent1",t.TVInputComponent2="TVInputComponent2",t.TVInputComposite1="TVInputComposite1",t.TVInputComposite2="TVInputComposite2",t.TVInputHDMI1="TVInputHDMI1",t.TVInputHDMI2="TVInputHDMI2",t.TVInputHDMI3="TVInputHDMI3",t.TVInputHDMI4="TVInputHDMI4",t.TVInputVGA1="TVInputVGA1",t.TVMediaContext="TVMediaContext",t.TVNetwork="TVNetwork",t.TVNumberEntry="TVNumberEntry",t.TVPower="TVPower",t.TVRadioService="TVRadioService",t.TVSatellite="TVSatellite",t.TVSatelliteBS="TVSatelliteBS",t.TVSatelliteCS="TVSatelliteCS",t.TVSatelliteToggle="TVSatelliteToggle",t.TVTerrestrialAnalog="TVTerrestrialAnalog",t.TVTerrestrialDigital="TVTerrestrialDigital",t.TVTimer="TVTimer",t.AVRInput="AVRInput",t.AVRPower="AVRPower",t.ColorF0Red="ColorF0Red",t.ColorF1Green="ColorF1Green",t.ColorF2Yellow="ColorF2Yellow",t.ColorF3Blue="ColorF3Blue",t.ColorF4Grey="ColorF4Grey",t.ColorF5Brown="ColorF5Brown",t.ClosedCaptionToggle="ClosedCaptionToggle",t.Dimmer="Dimmer",t.DisplaySwap="DisplaySwap",t.DVR="DVR",t.Exit="Exit",t.FavoriteClear0="FavoriteClear0",t.FavoriteClear1="FavoriteClear1",t.FavoriteClear2="FavoriteClear2",t.FavoriteClear3="FavoriteClear3",t.FavoriteRecall0="FavoriteRecall0",t.FavoriteRecall1="FavoriteRecall1",t.FavoriteRecall2="FavoriteRecall2",t.FavoriteRecall3="FavoriteRecall3",t.FavoriteStore0="FavoriteStore0",t.FavoriteStore1="FavoriteStore1",t.FavoriteStore2="FavoriteStore2",t.FavoriteStore3="FavoriteStore3",t.Guide="Guide",t.GuideNextDay="GuideNextDay",t.GuidePreviousDay="GuidePreviousDay",t.Info="Info",t.InstantReplay="InstantReplay",t.Link="Link",t.ListProgram="ListProgram",t.LiveContent="LiveContent",t.Lock="Lock",t.MediaApps="MediaApps",t.MediaAudioTrack="MediaAudioTrack",t.MediaLast="MediaLast",t.MediaSkipBackward="MediaSkipBackward",t.MediaSkipForward="MediaSkipForward",t.MediaStepBackward="MediaStepBackward",t.MediaStepForward="MediaStepForward",t.MediaTopMenu="MediaTopMenu",t.NavigateIn="NavigateIn",t.NavigateNext="NavigateNext",t.NavigateOut="NavigateOut",t.NavigatePrevious="NavigatePrevious",t.NextFavoriteChannel="NextFavoriteChannel",t.NextUserProfile="NextUserProfile",t.OnDemand="OnDemand",t.Pairing="Pairing",t.PinPDown="PinPDown",t.PinPMove="PinPMove",t.PinPToggle="PinPToggle",t.PinPUp="PinPUp",t.PlaySpeedDown="PlaySpeedDown",t.PlaySpeedReset="PlaySpeedReset",t.PlaySpeedUp="PlaySpeedUp",t.RandomToggle="RandomToggle",t.RcLowBattery="RcLowBattery",t.RecordSpeedNext="RecordSpeedNext",t.RfBypass="RfBypass",t.ScanChannelsToggle="ScanChannelsToggle",t.ScreenModeNext="ScreenModeNext",t.Settings="Settings",t.SplitScreenToggle="SplitScreenToggle",t.STBInput="STBInput",t.STBPower="STBPower",t.Subtitle="Subtitle",t.Teletext="Teletext",t.VideoModeNext="VideoModeNext",t.Wink="Wink",t.ZoomToggle="ZoomToggle",t.SpeechCorrectionList="SpeechCorrectionList",t.SpeechInputToggle="SpeechInputToggle",t.Close="Close",t.New="New",t.Open="Open",t.Print="Print",t.Save="Save",t.SpellCheck="SpellCheck",t.MailForward="MailForward",t.MailReply="MailReply",t.MailSend="MailSend",t.LaunchCalculator="LaunchCalculator",t.LaunchCalendar="LaunchCalendar",t.LaunchContacts="LaunchContacts",t.LaunchMail="LaunchMail",t.LaunchMediaPlayer="LaunchMediaPlayer",t.LaunchMusicPlayer="LaunchMusicPlayer",t.LaunchMyComputer="LaunchMyComputer",t.LaunchPhone="LaunchPhone",t.LaunchScreenSaver="LaunchScreenSaver",t.LaunchSpreadsheet="LaunchSpreadsheet",t.LaunchWebBrowser="LaunchWebBrowser",t.LaunchWebCam="LaunchWebCam",t.LaunchWordProcessor="LaunchWordProcessor",t.LaunchApplication1="LaunchApplication1",t.LaunchApplication2="LaunchApplication2",t.LaunchApplication3="LaunchApplication3",t.LaunchApplication4="LaunchApplication4",t.LaunchApplication5="LaunchApplication5",t.LaunchApplication6="LaunchApplication6",t.LaunchApplication7="LaunchApplication7",t.LaunchApplication8="LaunchApplication8",t.LaunchApplication9="LaunchApplication9",t.LaunchApplication10="LaunchApplication10",t.LaunchApplication11="LaunchApplication11",t.LaunchApplication12="LaunchApplication12",t.LaunchApplication13="LaunchApplication13",t.LaunchApplication14="LaunchApplication14",t.LaunchApplication15="LaunchApplication15",t.LaunchApplication16="LaunchApplication16",t.BrowserBack="BrowserBack",t.BrowserFavorites="BrowserFavorites",t.BrowserForward="BrowserForward",t.BrowserHome="BrowserHome",t.BrowserRefresh="BrowserRefresh",t.BrowserSearch="BrowserSearch",t.BrowserStop="BrowserStop",t.Decimal="Decimal",t.Key11="Key11",t.Key12="Key12",t.Multiply="Multiply",t.Add="Add",t.Divide="Divide",t.Subtract="Subtract",t.Separator="Separator"})(e.s||(e.s={}))}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(969),e=n.n(t);class r{constructor(t){var n;this.color=t instanceof Array?t:null===(n=e().get(t))||void 0===n?void 0:n.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return e().to.hex(this.color)}get rgb(){return e().to.rgb(this.color)}get rgbPercent(){return e().to.rgb.percent(this.color)}get hsl(){return e().to.hsl(this.color)}get hsv(){return e().to.hwb(this.color)}get keyword(){return e().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class o{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof r?t:new r(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}class i{constructor(t,e){this.rootStyle=e,this.styleElement=document.createElement("style"),t.addController(this)}hostConnected(){s.inject(this.rootStyle,this.styleElement)}hostDisconnected(){this.styleElement?.remove()}}class s{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class a extends Set{async execute(t){await Promise.allSettled([...this].map((e=>e(t))))}}class c{static open(t=window.location.pathname,e=0){return new Promise(((n,r)=>{window.matchMedia("(display-mode: standalone)").matches&&0===e&&!manifest?.display_override?.includes("tabbed")&&(e=1);const o=window.open(t,void 0,0===e?"":"popup");if(!o)return r(new Error("Failed to open a window, probably because the permission is denied."));o.resizeTo(window.outerWidth*c.windowSizeReductionMultiplier,window.outerHeight*c.windowSizeReductionMultiplier),o.moveTo(window.screenX+(window.outerWidth-o.outerWidth)/2,window.screenY+(window.outerHeight-o.outerHeight)/2),o.addEventListener("Application.initialized",(()=>n(o)),{once:!0})}))}static async openAndFocus(...t){(await c.open(...t)).focus()}}c.windowSizeReductionMultiplier=.9;class l extends Error{constructor(t,e=l.defaultMessageByErrorCode.get(t)){super(e),this.statusCode=t}}function h(t){return(e,n)=>{Object.defineProperty(e,n,{get(){const e=[...this.renderRoot?.querySelectorAll("*")??[]].find((e=>t in e.constructor&&!0===e.constructor[t]));if(!e)throw new Error(`${this.constructor.name}'s ${n} cannot be found.`);return e}})}}function u(){return(t,e)=>{Object.defineProperty(t,e,{get(){return[...window.document.querySelectorAll("*")].find((t=>t instanceof this))}})}}l.defaultMessageByErrorCode=new Map([[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[404,"Page Not Found"],[403,"Access Denied"],[405,"Method Not Allowed"],[406,"Not Accepted"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Request Entity Too Large"],[414,"Request Uri Too Long"],[415,"Unsupported Media Type"],[416,"Requested Range Not Satisfiable"],[417,"Expectation Failed"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields TooLarge"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"Http Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[510,"Not Extended"],[511,"Network Authentication Required"]]);const d=t=>{Object.defineProperty(t.prototype,"inert",{enumerable:!0,configurable:!1,get:()=>!1,set:t=>t})};var p=n(388),f=/[$_\p{ID_Start}]/u,g=/[$_\u200C\u200D\p{ID_Continue}]/u;function m(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function v(t,e=!1){const n=[];let r=0;for(;r<t.length;){const o=t[r],i=function(o){if(!e)throw new TypeError(o);n.push({type:"INVALID_CHAR",index:r,value:t[r++]})};if("*"!==o)if("+"!==o&&"?"!==o)if("\\"!==o)if("{"!==o)if("}"!==o)if(":"!==o)if("("!==o)n.push({type:"CHAR",index:r,value:t[r++]});else{let e=1,o="",s=r+1,a=!1;if("?"===t[s]){i(`Pattern cannot start with "?" at ${s}`);continue}for(;s<t.length;){if(!m(t[s],!1)){i(`Invalid character '${t[s]}' at ${s}.`),a=!0;break}if("\\"!==t[s]){if(")"===t[s]){if(e--,0===e){s++;break}}else if("("===t[s]&&(e++,"?"!==t[s+1])){i(`Capturing groups are not allowed at ${s}`),a=!0;break}o+=t[s++]}else o+=t[s++]+t[s++]}if(a)continue;if(e){i(`Unbalanced pattern at ${r}`);continue}if(!o){i(`Missing pattern at ${r}`);continue}n.push({type:"PATTERN",index:r,value:o}),r=s}else{let e="",o=r+1;for(;o<t.length;){const n=t.substr(o,1);if(!(o===r+1&&f.test(n)||o!==r+1&&g.test(n)))break;e+=t[o++]}if(!e){i(`Missing parameter name at ${r}`);continue}n.push({type:"NAME",index:r,value:e}),r=o}else n.push({type:"CLOSE",index:r,value:t[r++]});else n.push({type:"OPEN",index:r,value:t[r++]});else n.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else n.push({type:"MODIFIER",index:r,value:t[r++]});else n.push({type:"ASTERISK",index:r,value:t[r++]})}return n.push({type:"END",index:r,value:""}),n}function y(t,e={}){const n=v(t),{prefixes:r="./"}=e,o=`[^${w(void 0===e.delimiter?"/#?":e.delimiter)}]+?`,i=[];let s=0,a=0,c="",l=new Set;const h=t=>{if(a<n.length&&n[a].type===t)return n[a++].value},u=()=>{const t=h("MODIFIER");return t||h("ASTERISK")},d=t=>{const e=h(t);if(void 0!==e)return e;const{type:r,index:o}=n[a];throw new TypeError(`Unexpected ${r} at ${o}, expected ${t}`)},p=()=>{let t,e="";for(;t=h("CHAR")||h("ESCAPED_CHAR");)e+=t;return e},f=e.encodePart||(t=>t);for(;a<n.length;){const t=h("CHAR"),e=h("NAME");let n=h("PATTERN");if(e||n||!h("ASTERISK")||(n=".*"),e||n){let a=t||"";-1===r.indexOf(a)&&(c+=a,a=""),c&&(i.push(f(c)),c="");const h=e||s++;if(l.has(h))throw new TypeError(`Duplicate name '${h}'.`);l.add(h),i.push({name:h,prefix:f(a),suffix:"",pattern:n||o,modifier:u()||""});continue}const a=t||h("ESCAPED_CHAR");if(a){c+=a;continue}if(h("OPEN")){const t=p(),e=h("NAME")||"";let n=h("PATTERN")||"";e||n||!h("ASTERISK")||(n=".*");const r=p();d("CLOSE");const a=u()||"";if(!e&&!n&&!a){c+=t;continue}if(!e&&!n&&!t)continue;c&&(i.push(f(c)),c=""),i.push({name:e||(n?s++:""),pattern:e&&!n?o:n,prefix:f(t),suffix:f(r),modifier:a})}else c&&(i.push(f(c)),c=""),d("END")}return i}function w(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function b(t){return t&&t.ignoreCase?"ui":"u"}function A(t,e,n={}){const{strict:r=!1,start:o=!0,end:i=!0,encode:s=(t=>t)}=n,a=`[${w(void 0===n.endsWith?"":n.endsWith)}]|$`,c=`[${w(void 0===n.delimiter?"/#?":n.delimiter)}]`;let l=o?"^":"";for(const n of t)if("string"==typeof n)l+=w(s(n));else{const t=w(s(n.prefix)),r=w(s(n.suffix));if(n.pattern)if(e&&e.push(n),t||r)if("+"===n.modifier||"*"===n.modifier){const e="*"===n.modifier?"?":"";l+=`(?:${t}((?:${n.pattern})(?:${r}${t}(?:${n.pattern}))*)${r})${e}`}else l+=`(?:${t}(${n.pattern})${r})${n.modifier}`;else"+"===n.modifier||"*"===n.modifier?l+=`((?:${n.pattern})${n.modifier})`:l+=`(${n.pattern})${n.modifier}`;else l+=`(?:${t}${r})${n.modifier}`}if(i)r||(l+=`${c}?`),l+=n.endsWith?`(?=${a})`:"$";else{const e=t[t.length-1],n="string"==typeof e?c.indexOf(e[e.length-1])>-1:void 0===e;r||(l+=`(?:${c}(?=${a}))?`),n||(l+=`(?=${c}|${a})`)}return new RegExp(l,b(n))}function $(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;const n=/\((?:\?<(.*?)>)?(?!\?)/g;let r=0,o=n.exec(t.source);for(;o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){const r=t.map((t=>$(t,e,n).source));return new RegExp(`(?:${r.join("|")})`,b(n))}(t,e,n):function(t,e,n){return A(y(t,n),e,n)}(t,e,n)}var C={delimiter:"",prefixes:"",sensitive:!0,strict:!0},S={delimiter:".",prefixes:"",sensitive:!0,strict:!0},x={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function E(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t}function k(t){return!(!t||t.length<2)&&("["===t[0]||("\\"===t[0]||"{"===t[0])&&"["===t[1])}var _=["ftp","file","http","https","ws","wss"];function P(t){if(!t)return!0;for(const e of _)if(t.test(e))return!0;return!1}function T(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function R(t){if(""===t)return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function M(t){if(""===t)return t;const e=new URL("https://example.com");return e.username=t,e.username}function L(t){if(""===t)return t;const e=new URL("https://example.com");return e.password=t,e.password}function N(t){if(""===t)return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw new TypeError(`Invalid hostname '${t}'`);const e=new URL("https://example.com");return e.hostname=t,e.hostname}function I(t){if(""===t)return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw new TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()}function F(t){if(""===t)return t;if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw new TypeError(`Invalid port '${t}'.`)}function H(t){if(""===t)return t;const e=new URL("https://example.com");return e.pathname="/"!==t[0]?"/-"+t:t,"/"!==t[0]?e.pathname.substring(2,e.pathname.length):e.pathname}function D(t){if(""===t)return t;return new URL(`data:${t}`).pathname}function U(t){if(""===t)return t;const e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)}function O(t){if(""===t)return t;const e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)}var V=["protocol","username","password","hostname","port","pathname","search","hash"],B="*";function j(t,e){if("string"!=typeof t)throw new TypeError("parameter 1 is not of type 'string'.");const n=new URL(t,e);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:""!=n.search?n.search.substring(1,n.search.length):void 0,hash:""!=n.hash?n.hash.substring(1,n.hash.length):void 0}}function W(t,e){return e?q(t):t}function G(t,e,n){let r;if("string"==typeof e.baseURL)try{r=new URL(e.baseURL),t.protocol=W(r.protocol.substring(0,r.protocol.length-1),n),t.username=W(r.username,n),t.password=W(r.password,n),t.hostname=W(r.hostname,n),t.port=W(r.port,n),t.pathname=W(r.pathname,n),t.search=W(r.search.substring(1,r.search.length),n),t.hash=W(r.hash.substring(1,r.hash.length),n)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}if("string"==typeof e.protocol&&(t.protocol=function(t,e){var n,r;return r=":",t=(n=t).endsWith(r)?n.substr(0,n.length-r.length):n,e||""===t?t:R(t)}(e.protocol,n)),"string"==typeof e.username&&(t.username=function(t,e){if(e||""===t)return t;const n=new URL("https://example.com");return n.username=t,n.username}(e.username,n)),"string"==typeof e.password&&(t.password=function(t,e){if(e||""===t)return t;const n=new URL("https://example.com");return n.password=t,n.password}(e.password,n)),"string"==typeof e.hostname&&(t.hostname=function(t,e){return e||""===t?t:k(t)?I(t):N(t)}(e.hostname,n)),"string"==typeof e.port&&(t.port=function(t,e,n){return T(e)===t&&(t=""),n||""===t?t:F(t)}(e.port,t.protocol,n)),"string"==typeof e.pathname){if(t.pathname=e.pathname,r&&!function(t,e){return!(!t.length||"/"!==t[0]&&(!e||t.length<2||"\\"!=t[0]&&"{"!=t[0]||"/"!=t[1]))}(t.pathname,n)){const e=r.pathname.lastIndexOf("/");e>=0&&(t.pathname=W(r.pathname.substring(0,e+1),n)+t.pathname)}t.pathname=function(t,e,n){if(n||""===t)return t;if(e&&!_.includes(e))return new URL(`${e}:${t}`).pathname;const r="/"==t[0];return t=new URL(r?t:"/-"+t,"https://example.com").pathname,r||(t=t.substring(2,t.length)),t}(t.pathname,t.protocol,n)}return"string"==typeof e.search&&(t.search=function(t,e){if(t=E(t,"?"),e||""===t)return t;const n=new URL("https://example.com");return n.search=t,n.search?n.search.substring(1,n.search.length):""}(e.search,n)),"string"==typeof e.hash&&(t.hash=function(t,e){if(t=E(t,"#"),e||""===t)return t;const n=new URL("https://example.com");return n.hash=t,n.hash?n.hash.substring(1,n.hash.length):""}(e.hash,n)),t}function q(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function z(t,e){const n=`[^${r=void 0===e.delimiter?"/#?":e.delimiter,r.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}]+?`;var r;const o=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let r=0;r<t.length;++r){const s=t[r],a=r>0?t[r-1]:null,c=r<t.length-1?t[r+1]:null;if("string"==typeof s){i+=q(s);continue}if(""===s.pattern){if(""===s.modifier){i+=q(s.prefix);continue}i+=`{${q(s.prefix)}}${s.modifier}`;continue}const l="number"!=typeof s.name,h=void 0!==e.prefixes?e.prefixes:"./";let u=""!==s.suffix||""!==s.prefix&&(1!==s.prefix.length||!h.includes(s.prefix));if(!u&&l&&s.pattern===n&&""===s.modifier&&c&&!c.prefix&&!c.suffix)if("string"==typeof c){const t=c.length>0?c[0]:"";u=o.test(t)}else u="number"==typeof c.name;if(!u&&""===s.prefix&&a&&"string"==typeof a&&a.length>0){const t=a[a.length-1];u=h.includes(t)}u&&(i+="{"),i+=q(s.prefix),l&&(i+=`:${s.name}`),".*"===s.pattern?l||a&&"string"!=typeof a&&!a.modifier&&!u&&""===s.prefix?i+="(.*)":i+="*":s.pattern===n?l||(i+=`(${n})`):i+=`(${s.pattern})`,s.pattern===n&&l&&""!==s.suffix&&o.test(s.suffix[0])&&(i+="\\"),i+=q(s.suffix),u&&(i+="}"),i+=s.modifier}return i}function K(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--o){a++;break}}else if("("===t[a]&&(o++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=t[a++]}else i+=t[a++]+t[a++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));e.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<t.length;){var c=t.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;s+=t[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:s}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,o=void 0===r?"./":r,i="[^".concat(Y(e.delimiter||"/#?"),"]+?"),s=[],a=0,c=0,l="",h=function(t){if(c<n.length&&n[c].type===t)return n[c++].value},u=function(t){var e=h(t);if(void 0!==e)return e;var r=n[c],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(t))},d=function(){for(var t,e="";t=h("CHAR")||h("ESCAPED_CHAR");)e+=t;return e};c<n.length;){var p=h("CHAR"),f=h("NAME"),g=h("PATTERN");if(f||g){var m=p||"";-1===o.indexOf(m)&&(l+=m,m=""),l&&(s.push(l),l=""),s.push({name:f||a++,prefix:m,suffix:"",pattern:g||i,modifier:h("MODIFIER")||""})}else{var v=p||h("ESCAPED_CHAR");if(v)l+=v;else if(l&&(s.push(l),l=""),h("OPEN")){m=d();var y=h("NAME")||"",w=h("PATTERN")||"",b=d();u("CLOSE"),s.push({name:y||(w?a++:""),pattern:y&&!w?i:w,prefix:m,suffix:b,modifier:h("MODIFIER")||""})}else u("END")}}return s}function Z(t,e){return function(t,e){void 0===e&&(e={});var n=X(e),r=e.encode,o=void 0===r?function(t){return t}:r,i=e.validate,s=void 0===i||i,a=t.map((function(t){if("object"==typeof t)return new RegExp("^(?:".concat(t.pattern,")$"),n)}));return function(e){for(var n="",r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i){var c=e?e[i.name]:void 0,l="?"===i.modifier||"*"===i.modifier,h="*"===i.modifier||"+"===i.modifier;if(Array.isArray(c)){if(!h)throw new TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===c.length){if(l)continue;throw new TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var u=0;u<c.length;u++){var d=o(c[u],i);if(s&&!a[r].test(d))throw new TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(d,'"'));n+=i.prefix+d+i.suffix}}else if("string"!=typeof c&&"number"!=typeof c){if(!l){var p=h?"an array":"a string";throw new TypeError('Expected "'.concat(i.name,'" to be ').concat(p))}}else{d=o(String(c),i);if(s&&!a[r].test(d))throw new TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(d,'"'));n+=i.prefix+d+i.suffix}}else n+=i}return n}}(K(t,e),e)}function J(t,e){var n=[];return function(t,e,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(t){return t}:r;return function(n){var r=t.exec(n);if(!r)return!1;for(var i=r[0],s=r.index,a=Object.create(null),c=function(t){if(void 0===r[t])return"continue";var n=e[t-1];"*"===n.modifier||"+"===n.modifier?a[n.name]=r[t].split(n.prefix+n.suffix).map((function(t){return o(t,n)})):a[n.name]=o(r[t],n)},l=1;l<r.length;l++)c(l);return{path:i,index:s,params:a}}}(tt(t,n,e),n,e)}function Y(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function X(t){return t&&t.sensitive?"":"i"}function Q(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,s=void 0===i||i,a=n.end,c=void 0===a||a,l=n.encode,h=void 0===l?function(t){return t}:l,u=n.delimiter,d=void 0===u?"/#?":u,p=n.endsWith,f="[".concat(Y(void 0===p?"":p),"]|$"),g="[".concat(Y(d),"]"),m=s?"^":"",v=0,y=t;v<y.length;v++){var w=y[v];if("string"==typeof w)m+=Y(h(w));else{var b=Y(h(w.prefix)),A=Y(h(w.suffix));if(w.pattern)if(e&&e.push(w),b||A)if("+"===w.modifier||"*"===w.modifier){var $="*"===w.modifier?"?":"";m+="(?:".concat(b,"((?:").concat(w.pattern,")(?:").concat(A).concat(b,"(?:").concat(w.pattern,"))*)").concat(A,")").concat($)}else m+="(?:".concat(b,"(").concat(w.pattern,")").concat(A,")").concat(w.modifier);else"+"===w.modifier||"*"===w.modifier?m+="((?:".concat(w.pattern,")").concat(w.modifier,")"):m+="(".concat(w.pattern,")").concat(w.modifier);else m+="(?:".concat(b).concat(A,")").concat(w.modifier)}}if(c)o||(m+="".concat(g,"?")),m+=n.endsWith?"(?=".concat(f,")"):"$";else{var C=t[t.length-1],S="string"==typeof C?g.indexOf(C[C.length-1])>-1:void 0===C;o||(m+="(?:".concat(g,"(?=").concat(f,"))?")),S||(m+="(?=".concat(g,"|").concat(f,")"))}return new RegExp(m,X(n))}(K(t,n),e,n)}function tt(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(t.source);o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){var r=t.map((function(t){return tt(t,e,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),X(n))}(t,e,n):Q(t,e,n)}globalThis.URLPattern||(globalThis.URLPattern=class{constructor(t={},e,n){this.regexp={},this.keys={},this.component_pattern={};try{let r;if("string"==typeof e?r=e:n=e,"string"==typeof t){const e=new class{constructor(t){this.tokenList=[],this.internalResult={},this.tokenIndex=0,this.tokenIncrement=1,this.componentStart=0,this.state=0,this.groupDepth=0,this.hostnameIPv6BracketDepth=0,this.shouldTreatAsStandardURL=!1,this.input=t}get result(){return this.internalResult}parse(){for(this.tokenList=v(this.input,!0);this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){if(this.tokenIncrement=1,"END"===this.tokenList[this.tokenIndex].type){if(0===this.state){this.rewind(),this.isHashPrefix()?this.changeState(9,1):this.isSearchPrefix()?(this.changeState(8,1),this.internalResult.hash=""):(this.changeState(7,0),this.internalResult.search="",this.internalResult.hash="");continue}if(2===this.state){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(!this.isGroupClose())continue;this.groupDepth-=1}if(this.isGroupOpen())this.groupDepth+=1;else switch(this.state){case 0:this.isProtocolSuffix()&&(this.internalResult.username="",this.internalResult.password="",this.internalResult.hostname="",this.internalResult.port="",this.internalResult.pathname="",this.internalResult.search="",this.internalResult.hash="",this.rewindAndSetState(1));break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let t=7,e=1;this.shouldTreatAsStandardURL&&(this.internalResult.pathname="/"),this.nextIsAuthoritySlashes()?(t=2,e=3):this.shouldTreatAsStandardURL&&(t=2),this.changeState(t,e)}break;case 2:this.isIdentityTerminator()?this.rewindAndSetState(3):(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix())&&this.rewindAndSetState(5);break;case 3:this.isPasswordPrefix()?this.changeState(4,1):this.isIdentityTerminator()&&this.changeState(5,1);break;case 4:this.isIdentityTerminator()&&this.changeState(5,1);break;case 5:this.isIPv6Open()?this.hostnameIPv6BracketDepth+=1:this.isIPv6Close()&&(this.hostnameIPv6BracketDepth-=1),this.isPortPrefix()&&!this.hostnameIPv6BracketDepth?this.changeState(6,1):this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 6:this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 7:this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 8:this.isHashPrefix()&&this.changeState(9,1)}}}changeState(t,e){switch(this.state){case 0:case 2:case 10:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString()}this.changeStateWithoutSettingComponent(t,e)}changeStateWithoutSettingComponent(t,e){this.state=t,this.componentStart=this.tokenIndex+e,this.tokenIndex+=e,this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart,this.tokenIncrement=0}rewindAndSetState(t){this.rewind(),this.state=t}safeToken(t){return t<0&&(t=this.tokenList.length-t),t<this.tokenList.length?this.tokenList[t]:this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(t,e){const n=this.safeToken(t);return n.value===e&&("CHAR"===n.type||"ESCAPED_CHAR"===n.type||"INVALID_CHAR"===n.type)}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?"))return!0;if("?"!==this.tokenList[this.tokenIndex].value)return!1;const t=this.safeToken(this.tokenIndex-1);return"NAME"!==t.type&&"PATTERN"!==t.type&&"CLOSE"!==t.type&&"ASTERISK"!==t.type}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return"OPEN"==this.tokenList[this.tokenIndex].type}isGroupClose(){return"CLOSE"==this.tokenList[this.tokenIndex].type}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const t=this.tokenList[this.tokenIndex],e=this.safeToken(this.componentStart).index;return this.input.substring(e,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,C),t.encodePart=R;const e=$(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=P(e)}}(t);if(e.parse(),t=e.result,void 0===r&&"string"!=typeof t.protocol)throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=r}else{if(!t||"object"!=typeof t)throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw new TypeError("parameter 1 is not of type 'string'.")}void 0===n&&(n={ignoreCase:!1});const o={ignoreCase:!0===n.ignoreCase},i={pathname:B,protocol:B,username:B,password:B,hostname:B,port:B,search:B,hash:B};let s;for(s of(this.pattern=G(i,t,!0),T(this.pattern.protocol)===this.pattern.port&&(this.pattern.port=""),V)){if(!(s in this.pattern))continue;const t={},e=this.pattern[s];switch(this.keys[s]=[],s){case"protocol":Object.assign(t,C),t.encodePart=R;break;case"username":Object.assign(t,C),t.encodePart=M;break;case"password":Object.assign(t,C),t.encodePart=L;break;case"hostname":Object.assign(t,S),k(e)?t.encodePart=I:t.encodePart=N;break;case"port":Object.assign(t,C),t.encodePart=F;break;case"pathname":P(this.regexp.protocol)?(Object.assign(t,x,o),t.encodePart=H):(Object.assign(t,C,o),t.encodePart=D);break;case"search":Object.assign(t,C,o),t.encodePart=U;break;case"hash":Object.assign(t,C,o),t.encodePart=O}try{const n=y(e,t);this.regexp[s]=A(n,this.keys[s],t),this.component_pattern[s]=z(n,t)}catch{throw new TypeError(`invalid ${s} pattern '${this.pattern[s]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let n,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===t)return!1;try{r=G(r,"object"==typeof t?t:j(t,e),!1)}catch(t){return!1}for(n of V)if(!this.regexp[n].exec(r[n]))return!1;return!0}exec(t={},e){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===t)return;try{n=G(n,"object"==typeof t?t:j(t,e),!1)}catch(t){return null}let r,o={};for(r of(o.inputs=e?[t,e]:[t],V)){let t=this.regexp[r].exec(n[r]);if(!t)return null;let e={};for(let[n,o]of this.keys[r].entries())if("string"==typeof o.name||"number"==typeof o.name){let r=t[n+1];e[o.name]=r}o[r]={input:n[r]||"",groups:e}}return o}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}});class et extends Map{constructor(){super(...arguments),this.basePath=""}set(t,e){return super.set(this.basePath+t,e)}}class nt{get basePath(){return nt.container.basePath}set basePath(t){nt.container.basePath=t}static getPathOf(t){const e=this.getRouteOf(t);return void 0===e?void 0:Z(e)(t.parameters)}static setPathByPage(t){const e=nt.getPathOf(t);e&&(nt.path=e)}static match(t,e="all"){const n=nt.getRouteOf(t),r=void 0!==n&&J(n)(nt.path);if(!1===r)return!1;if("ignore-parameters"===e)return!0;const o=r.params;return Object.keys(o).every((e=>e in(t.parameters??{})&&o[e]===t.parameters[e]))}static getRouteOf(t){return[...nt.container].find((([,{pageConstructor:e}])=>e.name===t.constructor.name))?.[0]}static get path(){return window.location.pathname+window.location.search}static set path(t){window.history.pushState(null,"",t),window.dispatchEvent(new PopStateEvent("popstate"))}}nt.container=new et;const rt=new WeakMap,ot=t=>{if((t=>void 0!==t.pattern)(t))return t.pattern;let e=rt.get(t);return void 0===e&&rt.set(t,e=new URLPattern({pathname:t.path})),e};class it{constructor(t,e,n){this.routes=[],this.o=[],this.t={},this.i=t=>{if(t.routes===this)return;const e=t.routes;this.o.push(e),e.l=this,t.stopImmediatePropagation(),t.onDisconnect=()=>{var t;null===(t=this.o)||void 0===t||t.splice(this.o.indexOf(e)>>>0,1)};const n=st(this.t);void 0!==n&&e.goto(n)},(this.h=t).addController(this),this.routes=[...e],this.fallback=null==n?void 0:n.fallback}link(t){var e,n;if(null==t?void 0:t.startsWith("/"))return t;if(null==t?void 0:t.startsWith("."))throw Error("Not implemented");return null!=t||(t=this.u),(null!==(n=null===(e=this.l)||void 0===e?void 0:e.link())&&void 0!==n?n:"")+t}async goto(t){var e;let n;if(0===this.routes.length&&void 0===this.fallback)n=t,this.u="",this.t={0:n};else{const r=this.v(t);if(void 0===r)throw Error("No route found for "+t);const o=ot(r).exec({pathname:t}),i=null!==(e=null==o?void 0:o.pathname.groups)&&void 0!==e?e:{};if(n=st(i),"function"==typeof r.enter&&!1===await r.enter(i))return;this.p=r,this.t=i,this.u=void 0===n?t:t.substring(0,t.length-n.length)}if(void 0!==n)for(const t of this.o)t.goto(n);this.h.requestUpdate()}outlet(){var t,e;return null===(e=null===(t=this.p)||void 0===t?void 0:t.render)||void 0===e?void 0:e.call(t,this.t)}get params(){return this.t}v(t){const e=this.routes.find((e=>ot(e).test({pathname:t})));return e||void 0===this.fallback?e:this.fallback?{...this.fallback,path:"/*"}:void 0}hostConnected(){this.h.addEventListener(at.eventName,this.i);const t=new at(this);this.h.dispatchEvent(t),this._=t.onDisconnect}hostDisconnected(){var t;null===(t=this._)||void 0===t||t.call(this),this.l=void 0}}const st=t=>{let e;for(const n of Object.keys(t))/\d+/.test(n)&&(void 0===e||n>e)&&(e=n);return e&&t[e]};class at extends Event{constructor(t){super(at.eventName,{bubbles:!0,composed:!0,cancelable:!1}),this.routes=t}}at.eventName="lit-routes-connected";const ct=location.origin||location.protocol+"//"+location.host;class lt extends it{constructor(){super(...arguments),this.m=t=>{const e=0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey;if(t.defaultPrevented||e)return;const n=t.composedPath().find((t=>"A"===t.tagName));if(void 0===n||""!==n.target||n.hasAttribute("download")||"external"===n.getAttribute("rel"))return;const r=n.href;if(""===r||r.startsWith("mailto:"))return;const o=window.location;n.origin===ct&&(t.preventDefault(),r!==o.href&&(window.history.pushState({},"",r),this.goto(n.pathname)))},this.R=t=>{this.goto(window.location.pathname)}}hostConnected(){super.hostConnected(),window.addEventListener("click",this.m),window.addEventListener("popstate",this.R),this.goto(window.location.pathname)}hostDisconnected(){super.hostDisconnected(),window.removeEventListener("click",this.m),window.removeEventListener("popstate",this.R)}}class ht extends lt{hostConnected(){this.importDecoratorRoutesIfAvailable(),super.hostConnected()}constructor(...t){super(...t),this.host=t[0]}importDecoratorRoutesIfAvailable(){const t=[...nt.container].filter((([,{routerHostConstructor:t}])=>this.host.constructor===t||this.host.constructor.prototype instanceof t)).map((([t,{pageConstructor:e}])=>({route:t,pageConstructor:e})));for(const{pageConstructor:e,route:n}of t)this.routes.push({path:n,render:t=>this.currentPage?.parameters===t&&this.currentPage?.constructor===e?this.currentPage:this.currentPage=new e(t)})}}const ut=window,dt=ut.ShadowRoot&&(void 0===ut.ShadyCSS||ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pt=Symbol(),ft=new WeakMap;class gt{constructor(t,e,n){if(this._$cssResult$=!0,n!==pt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(dt&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=ft.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ft.set(e,t))}return t}toString(){return this.cssText}}const mt=t=>new gt("string"==typeof t?t:t+"",void 0,pt),vt=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new gt(n,t,pt)},yt=dt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return mt(e)})(t):t;var wt;const bt=window,At=bt.trustedTypes,$t=At?At.emptyScript:"",Ct=bt.reactiveElementPolyfillSupport,St={toAttribute(t,e){switch(e){case Boolean:t=t?$t:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},xt=(t,e)=>e!==t&&(e==e||t==t),Et={attribute:!0,type:String,converter:St,reflect:!1,hasChanged:xt};class kt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=Et){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Et}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(yt(t))}else void 0!==t&&e.push(yt(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{dt?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=ut.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=Et){var r;const o=this.constructor._$Ep(t,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:St).toAttribute(e,n.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:St;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||xt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var _t;kt.finalized=!0,kt.elementProperties=new Map,kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},null==Ct||Ct({ReactiveElement:kt}),(null!==(wt=bt.reactiveElementVersions)&&void 0!==wt?wt:bt.reactiveElementVersions=[]).push("1.6.1");const Pt=window,Tt=Pt.trustedTypes,Rt=Tt?Tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mt="$lit$",Lt=`lit$${(Math.random()+"").slice(9)}$`,Nt="?"+Lt,It=`<${Nt}>`,Ft=document,Ht=()=>Ft.createComment(""),Dt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ut=Array.isArray,Ot=t=>Ut(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Vt="[ \t\n\f\r]",Bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jt=/-->/g,Wt=/>/g,Gt=RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,zt=/"/g,Kt=/^(?:script|style|textarea|title)$/i,Zt=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Jt=Zt(1),Yt=Zt(2),Xt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=Ft.createTreeWalker(Ft,129,null,!1),ne=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":"",s=Bt;for(let e=0;e<n;e++){const n=t[e];let a,c,l=-1,h=0;for(;h<n.length&&(s.lastIndex=h,c=s.exec(n),null!==c);)h=s.lastIndex,s===Bt?"!--"===c[1]?s=jt:void 0!==c[1]?s=Wt:void 0!==c[2]?(Kt.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Gt):void 0!==c[3]&&(s=Gt):s===Gt?">"===c[0]?(s=null!=o?o:Bt,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?Gt:'"'===c[3]?zt:qt):s===zt||s===qt?s=Gt:s===jt||s===Wt?s=Bt:(s=Gt,o=void 0);const u=s===Gt&&t[e+1].startsWith("/>")?" ":"";i+=s===Bt?n+It:l>=0?(r.push(a),n.slice(0,l)+Mt+n.slice(l)+Lt+u):n+Lt+(-2===l?(r.push(void 0),e):u)}const a=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Rt?Rt.createHTML(a):a,r]};class re{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,i=0;const s=t.length-1,a=this.parts,[c,l]=ne(t,e);if(this.el=re.createElement(c,n),ee.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=ee.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(Mt)||e.startsWith(Lt)){const n=l[i++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+Mt).split(Lt),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ce:"?"===e[1]?he:"@"===e[1]?ue:ae})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(Kt.test(r.tagName)){const t=r.textContent.split(Lt),e=t.length-1;if(e>0){r.textContent=Tt?Tt.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],Ht()),ee.nextNode(),a.push({type:2,index:++o});r.append(t[e],Ht())}}}else if(8===r.nodeType)if(r.data===Nt)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(Lt,t+1));)a.push({type:7,index:o}),t+=Lt.length-1}o++}}static createElement(t,e){const n=Ft.createElement("template");return n.innerHTML=t,n}}function oe(t,e,n=t,r){var o,i,s,a;if(e===Xt)return e;let c=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const l=Dt(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(a=n)._$Co)&&void 0!==s?s:a._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=oe(t,c._$AS(t,e.values),c,r)),e}class ie{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:Ft).importNode(n,!0);ee.currentNode=o;let i=ee.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new se(i,i.nextSibling,this,t):1===c.type?e=new c.ctor(i,c.name,c.strings,this,t):6===c.type&&(e=new de(i,this,t)),this._$AV.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(i=ee.nextNode(),s++)}return o}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class se{constructor(t,e,n,r){var o;this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=oe(this,t,e),Dt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Xt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Ot(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Qt&&Dt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=re.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(n);else{const t=new ie(o,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new re(t)),e}T(t){Ut(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new se(this.k(Ht()),this.k(Ht()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ae{constructor(t,e,n,r,o){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=oe(this,t,e,0),i=!Dt(t)||t!==this._$AH&&t!==Xt,i&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=oe(this,r[n+s],e,s),a===Xt&&(a=this._$AH[s]),i||(i=!Dt(a)||a!==this._$AH[s]),a===Qt?t=Qt:t!==Qt&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}i&&!r&&this.j(t)}j(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ce extends ae{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Qt?void 0:t}}const le=Tt?Tt.emptyScript:"";class he extends ae{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,le):this.element.removeAttribute(this.name)}}class ue extends ae{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=oe(this,t,e,0))&&void 0!==n?n:Qt)===Xt)return;const r=this._$AH,o=t===Qt&&r!==Qt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==Qt&&(r===Qt||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class de{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){oe(this,t)}}const pe={O:Mt,P:Lt,A:Nt,C:1,M:ne,L:ie,D:Ot,R:oe,I:se,V:ae,H:he,N:ue,U:ce,F:de},fe=Pt.litHtmlPolyfillSupport;null==fe||fe(re,se),(null!==(_t=Pt.litHtmlVersions)&&void 0!==_t?_t:Pt.litHtmlVersions=[]).push("2.7.1");const ge=(t,e,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=i._$litPart$;if(void 0===s){const t=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new se(e.insertBefore(Ht(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s};var me,ve;class ye extends kt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ge(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Xt}}ye.finalized=!0,ye._$litElement$=!0,null===(me=globalThis.litElementHydrateSupport)||void 0===me||me.call(globalThis,{LitElement:ye});const we=globalThis.litElementPolyfillSupport;null==we||we({LitElement:ye});(null!==(ve=globalThis.litElementVersions)&&void 0!==ve?ve:globalThis.litElementVersions=[]).push("3.3.1");const be=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function Ae(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):be(t,e)}var $e;null===($e=window.HTMLSlotElement)||void 0===$e||$e.prototype.assignedElements;const Ce=Symbol.for(""),Se=t=>{if((null==t?void 0:t.r)===Ce)return null==t?void 0:t._$litStatic$},xe=(t,...e)=>({_$litStatic$:e.reduce(((e,n,r)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+t[r+1]),t[0]),r:Ce}),Ee=new Map,ke=t=>(e,...n)=>{const r=n.length;let o,i;const s=[],a=[];let c,l=0,h=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=n[l],o=Se(i));)c+=o+e[++l],h=!0;a.push(i),s.push(c),l++}if(l===r&&s.push(e[r]),h){const t=s.join("$$lit$$");void 0===(e=Ee.get(t))&&(s.raw=s,Ee.set(t,e=s)),n=a}return t(e,...n)},_e=ke(Jt),{I:Pe}=(ke(Yt),pe),Te=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,Re=t=>void 0===t.strings,Me=()=>document.createComment(""),Le=(t,e,n)=>{var r;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=o.insertBefore(Me(),i),r=o.insertBefore(Me(),i);n=new Pe(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(r=n._$AQ)||void 0===r||r.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==i||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return n},Ne=(t,e,n=t)=>(t._$AI(e,n),t),Ie={},Fe=(t,e=Ie)=>t._$AH=e,He=t=>t._$AH,De=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const r=t._$AB.nextSibling;for(;n!==r;){const t=n.nextSibling;n.remove(),n=t}},Ue=t=>{t._$AR()},Oe=1,Ve=2,Be=3,je=4,We=6,Ge=t=>(...e)=>({_$litDirective$:t,values:e});class qe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const ze=(t,e)=>{var n,r;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(r=(n=t)._$AO)||void 0===r||r.call(n,e,!1),ze(t,e);return!0},Ke=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},Ze=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Xe(e)}};function Je(t){void 0!==this._$AN?(Ke(this),this._$AM=t,Ze(this)):this._$AM=t}function Ye(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)ze(r[t],!1),Ke(r[t]);else null!=r&&(ze(r,!1),Ke(r));else ze(this,t)}const Xe=t=>{var e,n,r,o;t.type==Ve&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=Ye),null!==(n=(o=t)._$AQ)&&void 0!==n||(o._$AQ=Je))};class Qe extends qe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Ze(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(ze(this,t),Ke(this))}setValue(t){if(Re(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class tn{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class en{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class nn extends Qe{constructor(){super(...arguments),this._$Cq=new tn(this),this._$CK=new en}render(t,e){return Xt}update(t,[e,n]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let r=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const n of t)if(!1===await e(n))return})(e,(async t=>{for(;i.get();)await i.get();const s=o.deref();if(void 0!==s){if(s._$CX!==e)return!1;void 0!==n&&(t=n(t,r)),s.commitValue(t,r),r++}return!0})),Xt}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}Ge(nn),Ge(class extends nn{constructor(t){if(super(t),t.type!==Ve)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Ue(this._$CJ);const n=Le(this._$CJ);Ne(n,t)}}),Ge(class extends qe{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(Te(this.et)&&(!Te(e)||this.et.strings!==e.strings)){const e=He(t).pop();let n=this.tt.get(this.et.strings);if(void 0===n){const t=document.createDocumentFragment();n=ge(Qt,t),n.setConnected(!1),this.tt.set(this.et.strings,n)}Fe(n,[e]),Le(n,void 0,e)}if(Te(e)){if(!Te(this.et)||this.et.strings!==e.strings){const n=this.tt.get(e.strings);if(void 0!==n){const e=He(n).pop();Ue(t),Le(t,void 0,e),Fe(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}}),Ge(class extends qe{constructor(t){var e;if(super(t),t.type!==Oe||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,r;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const n=!!e[t];n===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return Xt}});const rn={};Ge(class extends qe{constructor(){super(...arguments),this.st=rn}render(t,e){return e()}update(t,[e,n]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return Xt}else if(this.st===e)return Xt;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,n)}}),Ge(class extends qe{constructor(){super(...arguments),this.key=Qt}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(Fe(t),this.key=e),n}}),Ge(class extends qe{constructor(t){if(super(t),t.type!==Be&&t.type!==Oe&&t.type!==je)throw Error("The `live` directive is not allowed on child or event bindings");if(!Re(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Xt||e===Qt)return e;const n=t.element,r=t.name;if(t.type===Be){if(e===n[r])return Xt}else if(t.type===je){if(!!e===n.hasAttribute(r))return Xt}else if(t.type===Oe&&n.getAttribute(r)===e+"")return Xt;return Fe(t),e}});const on=new WeakMap,sn=(Ge(class extends Qe{render(t){return Qt}update(t,[e]){var n;const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),Qt}ot(t){var e;if("function"==typeof this.G){const n=null!==(e=this.ct)&&void 0!==e?e:globalThis;let r=on.get(n);void 0===r&&(r=new WeakMap,on.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,n;return"function"==typeof this.G?null===(e=on.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r}),an=(Ge(class extends qe{constructor(t){if(super(t),t.type!==Ve)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,i[s]=n(e,s),s++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,r]){var o;const i=He(t),{values:s,keys:a}=this.dt(e,n,r);if(!Array.isArray(i))return this.ht=a,s;const c=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],l=[];let h,u,d=0,p=i.length-1,f=0,g=s.length-1;for(;d<=p&&f<=g;)if(null===i[d])d++;else if(null===i[p])p--;else if(c[d]===a[f])l[f]=Ne(i[d],s[f]),d++,f++;else if(c[p]===a[g])l[g]=Ne(i[p],s[g]),p--,g--;else if(c[d]===a[g])l[g]=Ne(i[d],s[g]),Le(t,l[g+1],i[d]),d++,g--;else if(c[p]===a[f])l[f]=Ne(i[p],s[f]),Le(t,i[d],i[p]),p--,f++;else if(void 0===h&&(h=sn(a,f,g),u=sn(c,d,p)),h.has(c[d]))if(h.has(c[p])){const e=u.get(a[f]),n=void 0!==e?i[e]:null;if(null===n){const e=Le(t,i[d]);Ne(e,s[f]),l[f]=e}else l[f]=Ne(n,s[f]),Le(t,i[d],n),i[e]=null;f++}else De(i[p]),p--;else De(i[d]),d++;for(;f<=g;){const e=Le(t,l[g+1]);Ne(e,s[f]),l[f++]=e}for(;d<=p;){const t=i[d++];null!==t&&De(t)}return this.ht=a,Fe(t,l),Xt}}),"important"),cn=" !"+an;Ge(class extends qe{constructor(t){var e;if(super(t),t.type!==Oe||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e=r.endsWith(cn);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?an:""):n[t]=r}}return Xt}}),Ge(class extends qe{constructor(t){if(super(t),t.type!==Ve)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?Xt:(this.vt=t,document.importNode(t.content,!0))}});class ln extends qe{constructor(t){if(super(t),this.et=Qt,t.type!==Ve)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Qt||null==t)return this.ft=void 0,this.et=t;if(t===Xt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ln.directiveName="unsafeHTML",ln.resultType=1;Ge(ln);class hn extends ln{}hn.directiveName="unsafeSVG",hn.resultType=2;Ge(hn);const un=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,dn=1073741823;Ge(class extends Qe{constructor(){super(...arguments),this._$C_t=dn,this._$Cwt=[],this._$Cq=new tn(this),this._$CK=new en}render(...t){var e;return null!==(e=t.find((t=>!un(t))))&&void 0!==e?e:Xt}update(t,e){const n=this._$Cwt;let r=n.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const s=e[t];if(!un(s))return this._$C_t=t,s;t<r&&s===n[t]||(this._$C_t=dn,r=0,Promise.resolve(s).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const n=e._$Cwt.indexOf(s);n>-1&&n<e._$C_t&&(e._$C_t=n,e.setValue(t))}})))}return Xt}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});const pn=Qt,fn=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(t,e);class gn extends ye{initialized(){}connected(){}disconnected(){}get template(){return pn}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class mn extends qe{constructor(t){if(super(t),t.type!==We)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,n]of Object.entries(t)){([...mn.handlers].find((t=>t.handles(this.element,[e,n])))??mn.defaultHandler).apply(this.element,[e,n])}}}mn.handlers=new Set,mn.defaultHandler=new class{handles(){return!0}apply(t,[e,n]){t.style[e]=null==n?"":n}};const vn=Ge(mn);function yn(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;let wn=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,n]){t.style.setProperty(e,n)}};wn=yn([t=>{const e=new t;mn.handlers.add(e)}],wn);class bn{constructor(t){this.host=t,this.host.addController(this)}}const An=t=>(e,n)=>{e.constructor.addInitializer((e=>e.addController(new class extends bn{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[n]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},$n=t=>(e,n)=>(t?.updated&&An(t.updated)(e,n),function(t){return Ae({...t,state:!0})}(t)(e,n));async function Cn(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let n=t.call(this);if(n instanceof Promise&&(n=await n),n instanceof EventTarget)return e(n);if(Symbol.iterator in n&&[...n].every((t=>t instanceof EventTarget)))return e(n);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class Sn extends bn{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await Cn.call(this.host,this.options.target);for(const e of t)e.removeEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await Cn.call(this.host,this.options.target);for(const e of t)e?.addEventListener(this.options.type,this.options.listener,this.options.options)}async hostDisconnected(){await this.subscribe()}async hostConnected(){await this.unsubscribe()}}const xn=(...t)=>(e,n,r)=>{e.constructor.addInitializer((e=>{e.addController(new class extends Sn{constructor(){const{type:n,target:r,options:o}=function(t){const e=(t=>"string"==typeof t[0])(t);return{type:e?t[0]:t[0].type,target:e?void 0:t[0].target,options:e?t[1]:t[0].options}}(t);super(e,{type:n,target:r,options:o,listener:void 0})}hostConnected(){const t=r?"function"==typeof r.get?r.get:r.value:Object.getOwnPropertyDescriptor(e,n)?.value;return this.options.listener=t.bind(e),super.hostConnected()}})}))};class En{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class kn extends gn{constructor(){super(...arguments),this.router=new ht(this,[],{fallback:{render:()=>new Mn({error:404})}}),this.rootCssInjector=new i(this,this.constructor.styles),this.shallRenderRouter=!1}static get styles(){return vt`:root{color-scheme:light dark}[application],body,html{margin:0;padding:0;scrollbar-width:thin;display:block;min-height:100vh;min-height:100dvh}[application]{display:flex;flex-direction:column}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:rgba(128,128,128,.75)}lit-page-host{display:flex;flex:1;margin:auto;width:100%;max-width:var(--lit-application-page-host-max-width,2560px)}lit-page-host>*{padding:max(min(1rem,1vw),min(1rem,1vh))}`}createRenderRoot(){return this}async connectedCallback(){this.setAttribute("application",""),await kn.connectingHooks.execute(),super.connectedCallback(),window.dispatchEvent(new Event("Application.connected"))}async initialized(){window.dispatchEvent(new Event("Application.initialized")),await kn.beforeRouteHooks.execute(),this.shallRenderRouter=!0}get documentTitle(){return[this.pageHeading,manifest?.short_name].filter(Boolean).join(" | ")}get template(){return Jt`${this.notificationHostTemplate} ${this.bodyTemplate} ${this.dialogHostTemplate}`}get notificationHostTemplate(){return Jt`<lit-notification-host></lit-notification-host>`}get bodyTemplate(){return Jt`${this.pageHostTemplate}`}get pageHostTemplate(){return Jt`<lit-page-host @pageHeadingChange="${t=>this.pageHeading=t.detail}">${this.shallRenderRouter?this.router.outlet():pn}</lit-page-host>`}get dialogHostTemplate(){return Jt`<lit-dialog-host></lit-dialog-host>`}}var _n;kn.connectingHooks=new a,kn.beforeRouteHooks=new a,yn([(_n={updated(){document.title=this.documentTitle}},(t,e)=>(_n?.updated&&An(_n.updated)(t,e),Ae(_n)(t,e)))],kn.prototype,"pageHeading",void 0),yn([$n()],kn.prototype,"shallRenderRouter",void 0),yn([u()],kn,"instance",void 0);const Pn=(...t)=>e=>{const{routerHostConstructor:n,routes:r}=function(...t){return"string"==typeof t[0]?{routerHostConstructor:kn,routes:t}:{routerHostConstructor:t[0],routes:t.slice(1)}}(...t);for(const t of r)nt.container.set(t,{routerHostConstructor:n,pageConstructor:e})};class Tn extends gn{static pageElement(){return t=>{t[Tn.pageElementConstructorSymbol]=!0}}async navigate(t=0,e=!1){if(!1!==e||!nt.match(this,"all"))if(0===t)nt.setPathByPage(this);else{const e=window.location.origin+nt.getPathOf(this);await c.openAndFocus(e,2===t?1:0)}}constructor(t){super(),this.parameters=t}async connectedCallback(){await Tn.connectingHooks.execute(this),super.connectedCallback()}refresh(t=this.parameters){return new this.constructor(t).navigate(0,!0)}}var Rn;Tn.connectingHooks=new a,Tn.pageElementConstructorSymbol=Symbol("PageComponent.PageElementConstructor"),Tn.defaultPageElementTag=xe`lit-page`,yn([h(Tn.pageElementConstructorSymbol)],Tn.prototype,"pageElement",void 0);let Mn=Rn=class extends Tn{static get styles(){return vt`
|
|
1
|
+
(()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,n)=>{var r=n(777),o=n(119),i=Object.hasOwnProperty,s=Object.create(null);for(var a in r)i.call(r,a)&&(s[r[a]]=a);var c=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(e.slice(a,a+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)s[n]=parseInt(e[n]+e[n],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(e[n+1],0);e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(r,e[1])?((s=r[e[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}for(n=0;n<3;n++)s[n]=l(s[n],0,255);return s[3]=l(s[3],0,1),s},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var t=o(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return s[t.slice(0,3)]}},119:(t,e,n)=>{"use strict";var r=n(774),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},388:(t,e)=>{"use strict";(function(t){t.Unidentified="Unidentified",t.Alt="Alt",t.AltGraph="AltGraph",t.CapsLock="CapsLock",t.Control="Control",t.Fn="Fn",t.FnLock="FnLock",t.Hyper="Hyper",t.Meta="Meta",t.NumLock="NumLock",t.ScrollLock="ScrollLock",t.Shift="Shift",t.Super="Super",t.Symbol="Symbol",t.SymbolLock="SymbolLock",t.Enter="Enter",t.Tab="Tab",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.End="End",t.Home="Home",t.PageDown="PageDown",t.PageUp="PageUp",t.Backspace="Backspace",t.Clear="Clear",t.Copy="Copy",t.CrSel="CrSel",t.Cut="Cut",t.Delete="Delete",t.EraseEof="EraseEof",t.ExSel="ExSel",t.Insert="Insert",t.Paste="Paste",t.Redo="Redo",t.Undo="Undo",t.Accept="Accept",t.Again="Again",t.Attn="Attn",t.Cancel="Cancel",t.ContextMenu="ContextMenu",t.Escape="Escape",t.Execute="Execute",t.Find="Find",t.Finish="Finish",t.Help="Help",t.Pause="Pause",t.Play="Play",t.Props="Props",t.Select="Select",t.ZoomIn="ZoomIn",t.ZoomOut="ZoomOut",t.BrightnessDown="BrightnessDown",t.BrightnessUp="BrightnessUp",t.Eject="Eject",t.LogOff="LogOff",t.Power="Power",t.PowerOff="PowerOff",t.PrintScreen="PrintScreen",t.Hibernate="Hibernate",t.Standby="Standby",t.WakeUp="WakeUp",t.AllCandidates="AllCandidates",t.Alphanumeric="Alphanumeric",t.CodeInput="CodeInput",t.Compose="Compose",t.Convert="Convert",t.Dead="Dead",t.FinalMode="FinalMode",t.GroupFirst="GroupFirst",t.GroupLast="GroupLast",t.GroupNext="GroupNext",t.GroupPrevious="GroupPrevious",t.ModeChange="ModeChange",t.NextCandidate="NextCandidate",t.NonConvert="NonConvert",t.PreviousCandidate="PreviousCandidate",t.Process="Process",t.SingleCandidate="SingleCandidate",t.HangulMode="HangulMode",t.HanjaMode="HanjaMode",t.JunjaMode="JunjaMode",t.Eisu="Eisu",t.Hankaku="Hankaku",t.Hiragana="Hiragana",t.HiraganaKatakana="HiraganaKatakana",t.KanaMode="KanaMode",t.KanjiMode="KanjiMode",t.Katakana="Katakana",t.Romaji="Romaji",t.Zenkaku="Zenkaku",t.ZenkakuHanaku="ZenkakuHanaku",t.F1="F1",t.F2="F2",t.F3="F3",t.F4="F4",t.F5="F5",t.F6="F6",t.F7="F7",t.F8="F8",t.F9="F9",t.F10="F10",t.F11="F11",t.F12="F12",t.F13="F13",t.F14="F14",t.F15="F15",t.F16="F16",t.F17="F17",t.F18="F18",t.F19="F19",t.F20="F20",t.Soft1="Soft1",t.Soft2="Soft2",t.Soft3="Soft3",t.Soft4="Soft4",t.AppSwitch="AppSwitch",t.Call="Call",t.Camera="Camera",t.CameraFocus="CameraFocus",t.EndCall="EndCall",t.GoBack="GoBack",t.GoHome="GoHome",t.HeadsetHook="HeadsetHook",t.LastNumberRedial="LastNumberRedial",t.Notification="Notification",t.MannerMode="MannerMode",t.VoiceDial="VoiceDial",t.ChannelDown="ChannelDown",t.ChannelUp="ChannelUp",t.MediaFastForward="MediaFastForward",t.MediaPause="MediaPause",t.MediaPlay="MediaPlay",t.MediaPlayPause="MediaPlayPause",t.MediaRecord="MediaRecord",t.MediaRewind="MediaRewind",t.MediaStop="MediaStop",t.MediaTrackNext="MediaTrackNext",t.MediaTrackPrevious="MediaTrackPrevious",t.AudioBalanceLeft="AudioBalanceLeft",t.AudioBalanceRight="AudioBalanceRight",t.AudioBassDown="AudioBassDown",t.AudioBassBoostDown="AudioBassBoostDown",t.AudioBassBoostToggle="AudioBassBoostToggle",t.AudioBassBoostUp="AudioBassBoostUp",t.AudioBassUp="AudioBassUp",t.AudioFaderFront="AudioFaderFront",t.AudioFaderRear="AudioFaderRear",t.AudioSurroundModeNext="AudioSurroundModeNext",t.AudioTrebleDown="AudioTrebleDown",t.AudioTrebleUp="AudioTrebleUp",t.AudioVolumeDown="AudioVolumeDown",t.AudioVolumeMute="AudioVolumeMute",t.AudioVolumeUp="AudioVolumeUp",t.MicrophoneToggle="MicrophoneToggle",t.MicrophoneVolumeDown="MicrophoneVolumeDown",t.MicrophoneVolumeMute="MicrophoneVolumeMute",t.MicrophoneVolumeUp="MicrophoneVolumeUp",t.TV="TV",t.TV3DMode="TV3DMode",t.TVAntennaCable="TVAntennaCable",t.TVAudioDescription="TVAudioDescription",t.TVAudioDescriptionMixDown="TVAudioDescriptionMixDown",t.TVAudioDescriptionMixUp="TVAudioDescriptionMixUp",t.TVContentsMenu="TVContentsMenu",t.TVDataService="TVDataService",t.TVInput="TVInput",t.TVInputComponent1="TVInputComponent1",t.TVInputComponent2="TVInputComponent2",t.TVInputComposite1="TVInputComposite1",t.TVInputComposite2="TVInputComposite2",t.TVInputHDMI1="TVInputHDMI1",t.TVInputHDMI2="TVInputHDMI2",t.TVInputHDMI3="TVInputHDMI3",t.TVInputHDMI4="TVInputHDMI4",t.TVInputVGA1="TVInputVGA1",t.TVMediaContext="TVMediaContext",t.TVNetwork="TVNetwork",t.TVNumberEntry="TVNumberEntry",t.TVPower="TVPower",t.TVRadioService="TVRadioService",t.TVSatellite="TVSatellite",t.TVSatelliteBS="TVSatelliteBS",t.TVSatelliteCS="TVSatelliteCS",t.TVSatelliteToggle="TVSatelliteToggle",t.TVTerrestrialAnalog="TVTerrestrialAnalog",t.TVTerrestrialDigital="TVTerrestrialDigital",t.TVTimer="TVTimer",t.AVRInput="AVRInput",t.AVRPower="AVRPower",t.ColorF0Red="ColorF0Red",t.ColorF1Green="ColorF1Green",t.ColorF2Yellow="ColorF2Yellow",t.ColorF3Blue="ColorF3Blue",t.ColorF4Grey="ColorF4Grey",t.ColorF5Brown="ColorF5Brown",t.ClosedCaptionToggle="ClosedCaptionToggle",t.Dimmer="Dimmer",t.DisplaySwap="DisplaySwap",t.DVR="DVR",t.Exit="Exit",t.FavoriteClear0="FavoriteClear0",t.FavoriteClear1="FavoriteClear1",t.FavoriteClear2="FavoriteClear2",t.FavoriteClear3="FavoriteClear3",t.FavoriteRecall0="FavoriteRecall0",t.FavoriteRecall1="FavoriteRecall1",t.FavoriteRecall2="FavoriteRecall2",t.FavoriteRecall3="FavoriteRecall3",t.FavoriteStore0="FavoriteStore0",t.FavoriteStore1="FavoriteStore1",t.FavoriteStore2="FavoriteStore2",t.FavoriteStore3="FavoriteStore3",t.Guide="Guide",t.GuideNextDay="GuideNextDay",t.GuidePreviousDay="GuidePreviousDay",t.Info="Info",t.InstantReplay="InstantReplay",t.Link="Link",t.ListProgram="ListProgram",t.LiveContent="LiveContent",t.Lock="Lock",t.MediaApps="MediaApps",t.MediaAudioTrack="MediaAudioTrack",t.MediaLast="MediaLast",t.MediaSkipBackward="MediaSkipBackward",t.MediaSkipForward="MediaSkipForward",t.MediaStepBackward="MediaStepBackward",t.MediaStepForward="MediaStepForward",t.MediaTopMenu="MediaTopMenu",t.NavigateIn="NavigateIn",t.NavigateNext="NavigateNext",t.NavigateOut="NavigateOut",t.NavigatePrevious="NavigatePrevious",t.NextFavoriteChannel="NextFavoriteChannel",t.NextUserProfile="NextUserProfile",t.OnDemand="OnDemand",t.Pairing="Pairing",t.PinPDown="PinPDown",t.PinPMove="PinPMove",t.PinPToggle="PinPToggle",t.PinPUp="PinPUp",t.PlaySpeedDown="PlaySpeedDown",t.PlaySpeedReset="PlaySpeedReset",t.PlaySpeedUp="PlaySpeedUp",t.RandomToggle="RandomToggle",t.RcLowBattery="RcLowBattery",t.RecordSpeedNext="RecordSpeedNext",t.RfBypass="RfBypass",t.ScanChannelsToggle="ScanChannelsToggle",t.ScreenModeNext="ScreenModeNext",t.Settings="Settings",t.SplitScreenToggle="SplitScreenToggle",t.STBInput="STBInput",t.STBPower="STBPower",t.Subtitle="Subtitle",t.Teletext="Teletext",t.VideoModeNext="VideoModeNext",t.Wink="Wink",t.ZoomToggle="ZoomToggle",t.SpeechCorrectionList="SpeechCorrectionList",t.SpeechInputToggle="SpeechInputToggle",t.Close="Close",t.New="New",t.Open="Open",t.Print="Print",t.Save="Save",t.SpellCheck="SpellCheck",t.MailForward="MailForward",t.MailReply="MailReply",t.MailSend="MailSend",t.LaunchCalculator="LaunchCalculator",t.LaunchCalendar="LaunchCalendar",t.LaunchContacts="LaunchContacts",t.LaunchMail="LaunchMail",t.LaunchMediaPlayer="LaunchMediaPlayer",t.LaunchMusicPlayer="LaunchMusicPlayer",t.LaunchMyComputer="LaunchMyComputer",t.LaunchPhone="LaunchPhone",t.LaunchScreenSaver="LaunchScreenSaver",t.LaunchSpreadsheet="LaunchSpreadsheet",t.LaunchWebBrowser="LaunchWebBrowser",t.LaunchWebCam="LaunchWebCam",t.LaunchWordProcessor="LaunchWordProcessor",t.LaunchApplication1="LaunchApplication1",t.LaunchApplication2="LaunchApplication2",t.LaunchApplication3="LaunchApplication3",t.LaunchApplication4="LaunchApplication4",t.LaunchApplication5="LaunchApplication5",t.LaunchApplication6="LaunchApplication6",t.LaunchApplication7="LaunchApplication7",t.LaunchApplication8="LaunchApplication8",t.LaunchApplication9="LaunchApplication9",t.LaunchApplication10="LaunchApplication10",t.LaunchApplication11="LaunchApplication11",t.LaunchApplication12="LaunchApplication12",t.LaunchApplication13="LaunchApplication13",t.LaunchApplication14="LaunchApplication14",t.LaunchApplication15="LaunchApplication15",t.LaunchApplication16="LaunchApplication16",t.BrowserBack="BrowserBack",t.BrowserFavorites="BrowserFavorites",t.BrowserForward="BrowserForward",t.BrowserHome="BrowserHome",t.BrowserRefresh="BrowserRefresh",t.BrowserSearch="BrowserSearch",t.BrowserStop="BrowserStop",t.Decimal="Decimal",t.Key11="Key11",t.Key12="Key12",t.Multiply="Multiply",t.Add="Add",t.Divide="Divide",t.Subtract="Subtract",t.Separator="Separator"})(e.s||(e.s={}))}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(969),e=n.n(t);class r{constructor(t){var n;this.color=t instanceof Array?t:null===(n=e().get(t))||void 0===n?void 0:n.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return e().to.hex(this.color)}get rgb(){return e().to.rgb(this.color)}get rgbPercent(){return e().to.rgb.percent(this.color)}get hsl(){return e().to.hsl(this.color)}get hsv(){return e().to.hwb(this.color)}get keyword(){return e().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class o{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof r?t:new r(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}const i=window,s=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),c=new WeakMap;class l{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new l("string"==typeof t?t:t+"",void 0,a),u=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new l(n,t,a)},d=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return h(e)})(t):t;var p;const f=window,m=f.trustedTypes,g=m?m.emptyScript:"",v=f.reactiveElementPolyfillSupport,y={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},w=(t,e)=>e!==t&&(e==e||t==t),b={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w};class A extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||b}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=b){var r;const o=this.constructor._$Ep(t,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:y).toAttribute(e,n.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:y;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var $;A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:A}),(null!==(p=f.reactiveElementVersions)&&void 0!==p?p:f.reactiveElementVersions=[]).push("1.6.1");const C=window,S=C.trustedTypes,x=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,_="?"+k,P=`<${_}>`,T=document,R=()=>T.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,N=t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),I="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,D=/>/g,U=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),O=/'/g,V=/"/g,B=/^(?:script|style|textarea|title)$/i,j=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),W=j(1),G=j(2),q=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),K=new WeakMap,Z=T.createTreeWalker(T,129,null,!1),J=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":"",s=H;for(let e=0;e<n;e++){const n=t[e];let a,c,l=-1,h=0;for(;h<n.length&&(s.lastIndex=h,c=s.exec(n),null!==c);)h=s.lastIndex,s===H?"!--"===c[1]?s=F:void 0!==c[1]?s=D:void 0!==c[2]?(B.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=U):void 0!==c[3]&&(s=U):s===U?">"===c[0]?(s=null!=o?o:H,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?U:'"'===c[3]?V:O):s===V||s===O?s=U:s===F||s===D?s=H:(s=U,o=void 0);const u=s===U&&t[e+1].startsWith("/>")?" ":"";i+=s===H?n+P:l>=0?(r.push(a),n.slice(0,l)+E+n.slice(l)+k+u):n+k+(-2===l?(r.push(void 0),e):u)}const a=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==x?x.createHTML(a):a,r]};class Y{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,i=0;const s=t.length-1,a=this.parts,[c,l]=J(t,e);if(this.el=Y.createElement(c,n),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=Z.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(E)||e.startsWith(k)){const n=l[i++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+E).split(k),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?ot:"@"===e[1]?it:et})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(B.test(r.tagName)){const t=r.textContent.split(k),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],R()),Z.nextNode(),a.push({type:2,index:++o});r.append(t[e],R())}}}else if(8===r.nodeType)if(r.data===_)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(k,t+1));)a.push({type:7,index:o}),t+=k.length-1}o++}}static createElement(t,e){const n=T.createElement("template");return n.innerHTML=t,n}}function X(t,e,n=t,r){var o,i,s,a;if(e===q)return e;let c=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const l=M(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(a=n)._$Co)&&void 0!==s?s:a._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=X(t,c._$AS(t,e.values),c,r)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(n,!0);Z.currentNode=o;let i=Z.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new tt(i,i.nextSibling,this,t):1===c.type?e=new c.ctor(i,c.name,c.strings,this,t):6===c.type&&(e=new st(i,this,t)),this._$AV.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(i=Z.nextNode(),s++)}return o}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{constructor(t,e,n,r){var o;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),M(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):N(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==z&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Y.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(n);else{const t=new Q(o,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Y(t)),e}T(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new tt(this.k(R()),this.k(R()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,n,r,o){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=X(this,t,e,0),i=!M(t)||t!==this._$AH&&t!==q,i&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=X(this,r[n+s],e,s),a===q&&(a=this._$AH[s]),i||(i=!M(a)||a!==this._$AH[s]),a===z?t=z:t!==z&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}i&&!r&&this.j(t)}j(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===z?void 0:t}}const rt=S?S.emptyScript:"";class ot extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==z?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class it extends et{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=X(this,t,e,0))&&void 0!==n?n:z)===q)return;const r=this._$AH,o=t===z&&r!==z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==z&&(r===z||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const at={O:E,P:k,A:_,C:1,M:J,L:Q,D:N,R:X,I:tt,V:et,H:ot,N:it,U:nt,F:st},ct=C.litHtmlPolyfillSupport;null==ct||ct(Y,tt),(null!==($=C.litHtmlVersions)&&void 0!==$?$:C.litHtmlVersions=[]).push("2.7.1");const lt=(t,e,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=i._$litPart$;if(void 0===s){const t=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new tt(e.insertBefore(R(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s};var ht,ut;class dt extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return q}}dt.finalized=!0,dt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:dt});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:dt});(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.1");const ft=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function mt(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):ft(t,e)}var gt;null===(gt=window.HTMLSlotElement)||void 0===gt||gt.prototype.assignedElements;const vt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void 0:t._$litStatic$},wt=(t,...e)=>({_$litStatic$:e.reduce(((e,n,r)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+t[r+1]),t[0]),r:vt}),bt=new Map,At=t=>(e,...n)=>{const r=n.length;let o,i;const s=[],a=[];let c,l=0,h=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=n[l],o=yt(i));)c+=o+e[++l],h=!0;a.push(i),s.push(c),l++}if(l===r&&s.push(e[r]),h){const t=s.join("$$lit$$");void 0===(e=bt.get(t))&&(s.raw=s,bt.set(t,e=s)),n=a}return t(e,...n)},$t=At(W),{I:Ct}=(At(G),at),St=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,xt=t=>void 0===t.strings,Et=()=>document.createComment(""),kt=(t,e,n)=>{var r;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=o.insertBefore(Et(),i),r=o.insertBefore(Et(),i);n=new Ct(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(r=n._$AQ)||void 0===r||r.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==i||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return n},_t=(t,e,n=t)=>(t._$AI(e,n),t),Pt={},Tt=(t,e=Pt)=>t._$AH=e,Rt=t=>t._$AH,Mt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const r=t._$AB.nextSibling;for(;n!==r;){const t=n.nextSibling;n.remove(),n=t}},Lt=t=>{t._$AR()},Nt=1,It=2,Ht=3,Ft=4,Dt=6,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class Ot{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Vt=(t,e)=>{var n,r;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(r=(n=t)._$AO)||void 0===r||r.call(n,e,!1),Vt(t,e);return!0},Bt=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},jt=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),qt(e)}};function Wt(t){void 0!==this._$AN?(Bt(this),this._$AM=t,jt(this)):this._$AM=t}function Gt(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)Vt(r[t],!1),Bt(r[t]);else null!=r&&(Vt(r,!1),Bt(r));else Vt(this,t)}const qt=t=>{var e,n,r,o;t.type==It&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=Gt),null!==(n=(o=t)._$AQ)&&void 0!==n||(o._$AQ=Wt))};class zt extends Ot{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),jt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(Vt(this,t),Bt(this))}setValue(t){if(xt(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Kt{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class Zt{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class Jt extends zt{constructor(){super(...arguments),this._$Cq=new Kt(this),this._$CK=new Zt}render(t,e){return q}update(t,[e,n]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let r=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const n of t)if(!1===await e(n))return})(e,(async t=>{for(;i.get();)await i.get();const s=o.deref();if(void 0!==s){if(s._$CX!==e)return!1;void 0!==n&&(t=n(t,r)),s.commitValue(t,r),r++}return!0})),q}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}Ut(Jt),Ut(class extends Jt{constructor(t){if(super(t),t.type!==It)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Lt(this._$CJ);const n=kt(this._$CJ);_t(n,t)}}),Ut(class extends Ot{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(St(this.et)&&(!St(e)||this.et.strings!==e.strings)){const e=Rt(t).pop();let n=this.tt.get(this.et.strings);if(void 0===n){const t=document.createDocumentFragment();n=lt(z,t),n.setConnected(!1),this.tt.set(this.et.strings,n)}Tt(n,[e]),kt(n,void 0,e)}if(St(e)){if(!St(this.et)||this.et.strings!==e.strings){const n=this.tt.get(e.strings);if(void 0!==n){const e=Rt(n).pop();Lt(t),kt(t,void 0,e),Tt(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}}),Ut(class extends Ot{constructor(t){var e;if(super(t),t.type!==Nt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,r;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const n=!!e[t];n===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return q}});const Yt={};Ut(class extends Ot{constructor(){super(...arguments),this.st=Yt}render(t,e){return e()}update(t,[e,n]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return q}else if(this.st===e)return q;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,n)}}),Ut(class extends Ot{constructor(){super(...arguments),this.key=z}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(Tt(t),this.key=e),n}}),Ut(class extends Ot{constructor(t){if(super(t),t.type!==Ht&&t.type!==Nt&&t.type!==Ft)throw Error("The `live` directive is not allowed on child or event bindings");if(!xt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===q||e===z)return e;const n=t.element,r=t.name;if(t.type===Ht){if(e===n[r])return q}else if(t.type===Ft){if(!!e===n.hasAttribute(r))return q}else if(t.type===Nt&&n.getAttribute(r)===e+"")return q;return Tt(t),e}});const Xt=new WeakMap,Qt=(Ut(class extends zt{render(t){return z}update(t,[e]){var n;const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),z}ot(t){var e;if("function"==typeof this.G){const n=null!==(e=this.ct)&&void 0!==e?e:globalThis;let r=Xt.get(n);void 0===r&&(r=new WeakMap,Xt.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,n;return"function"==typeof this.G?null===(e=Xt.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r}),te=(Ut(class extends Ot{constructor(t){if(super(t),t.type!==It)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,i[s]=n(e,s),s++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,r]){var o;const i=Rt(t),{values:s,keys:a}=this.dt(e,n,r);if(!Array.isArray(i))return this.ht=a,s;const c=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],l=[];let h,u,d=0,p=i.length-1,f=0,m=s.length-1;for(;d<=p&&f<=m;)if(null===i[d])d++;else if(null===i[p])p--;else if(c[d]===a[f])l[f]=_t(i[d],s[f]),d++,f++;else if(c[p]===a[m])l[m]=_t(i[p],s[m]),p--,m--;else if(c[d]===a[m])l[m]=_t(i[d],s[m]),kt(t,l[m+1],i[d]),d++,m--;else if(c[p]===a[f])l[f]=_t(i[p],s[f]),kt(t,i[d],i[p]),p--,f++;else if(void 0===h&&(h=Qt(a,f,m),u=Qt(c,d,p)),h.has(c[d]))if(h.has(c[p])){const e=u.get(a[f]),n=void 0!==e?i[e]:null;if(null===n){const e=kt(t,i[d]);_t(e,s[f]),l[f]=e}else l[f]=_t(n,s[f]),kt(t,i[d],n),i[e]=null;f++}else Mt(i[p]),p--;else Mt(i[d]),d++;for(;f<=m;){const e=kt(t,l[m+1]);_t(e,s[f]),l[f++]=e}for(;d<=p;){const t=i[d++];null!==t&&Mt(t)}return this.ht=a,Tt(t,l),q}}),"important"),ee=" !"+te;Ut(class extends Ot{constructor(t){var e;if(super(t),t.type!==Nt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e=r.endsWith(ee);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?te:""):n[t]=r}}return q}}),Ut(class extends Ot{constructor(t){if(super(t),t.type!==It)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?q:(this.vt=t,document.importNode(t.content,!0))}});class ne extends Ot{constructor(t){if(super(t),this.et=z,t.type!==It)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===z||null==t)return this.ft=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ne.directiveName="unsafeHTML",ne.resultType=1;Ut(ne);class re extends ne{}re.directiveName="unsafeSVG",re.resultType=2;Ut(re);const oe=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,ie=1073741823;Ut(class extends zt{constructor(){super(...arguments),this._$C_t=ie,this._$Cwt=[],this._$Cq=new Kt(this),this._$CK=new Zt}render(...t){var e;return null!==(e=t.find((t=>!oe(t))))&&void 0!==e?e:q}update(t,e){const n=this._$Cwt;let r=n.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const s=e[t];if(!oe(s))return this._$C_t=t,s;t<r&&s===n[t]||(this._$C_t=ie,r=0,Promise.resolve(s).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const n=e._$Cwt.indexOf(s);n>-1&&n<e._$C_t&&(e._$C_t=n,e.setValue(t))}})))}return q}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});const se=z,ae=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(t,e);class ce extends dt{initialized(){}connected(){}disconnected(){}get template(){return se}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class le extends Ot{constructor(t){if(super(t),t.type!==Dt)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,n]of Object.entries(t)){([...le.handlers].find((t=>t.handles(this.element,[e,n])))??le.defaultHandler).apply(this.element,[e,n])}}}le.handlers=new Set,le.defaultHandler=new class{handles(){return!0}apply(t,[e,n]){t.style[e]=null==n?"":n}};const he=Ut(le);function ue(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}Object.create;Object.create;let de=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,n]){t.style.setProperty(e,n)}};de=ue([t=>{const e=new t;le.handlers.add(e)}],de);class pe{constructor(t){this.host=t,this.host.addController(this)}}const fe=t=>(e,n)=>{e.constructor.addInitializer((e=>e.addController(new class extends pe{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[n]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},me=t=>(e,n)=>(t?.updated&&fe(t.updated)(e,n),function(t){return mt({...t,state:!0})}(t)(e,n));async function ge(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let n=t.call(this);if(n instanceof Promise&&(n=await n),n instanceof EventTarget)return e(n);if(Symbol.iterator in n&&[...n].every((t=>t instanceof EventTarget)))return e(n);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class ve extends pe{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await ge.call(this.host,this.options.target);for(const e of t)e.removeEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await ge.call(this.host,this.options.target);for(const e of t)e?.addEventListener(this.options.type,this.options.listener,this.options.options)}async hostDisconnected(){await this.subscribe()}async hostConnected(){await this.unsubscribe()}}const ye=(...t)=>(e,n,r)=>{e.constructor.addInitializer((e=>{e.addController(new class extends ve{constructor(){const{type:n,target:r,options:o}=function(t){const e=(t=>"string"==typeof t[0])(t);return{type:e?t[0]:t[0].type,target:e?void 0:t[0].target,options:e?t[1]:t[0].options}}(t);super(e,{type:n,target:r,options:o,listener:void 0})}hostConnected(){const t=r?"function"==typeof r.get?r.get:r.value:Object.getOwnPropertyDescriptor(e,n)?.value;return this.options.listener=t.bind(e),super.hostConnected()}})}))};class we{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class be{constructor(t,e,n){this.name=t,this.defaultValue=e,this.reviver=n,this.changed=new we,be.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),be.changed.dispatch(this)}}be.changed=new we,be.container=new Set;class Ae{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class $e{}$e.background=new class extends be{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},$e.accent=new class extends be{constructor(){super("Theme.Accent",new r("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new r(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new o(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof o?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof o?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,n=t instanceof o?t.colors[0]:t,r=t instanceof o?t.colors[1]:t,i=t instanceof o?t.colors[2]:t;this.styleElement=Ae.inject(u`:root{--mo-color-accent-base-r:${h(null==e?void 0:e.r)}--mo-color-accent-base-g:${h(null==e?void 0:e.g)}--mo-color-accent-base-b:${h(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${h(null==n?void 0:n.rgb)}--mo-color-accent-gradient-2:${h(null==r?void 0:r.rgb)}--mo-color-accent-gradient-3:${h(null==i?void 0:i.rgb)}}`,this.styleElement)}};class Ce{constructor(t,e){this.rootStyle=e,this.styleElement=document.createElement("style"),t.addController(this)}hostConnected(){Se.inject(this.rootStyle,this.styleElement)}hostDisconnected(){this.styleElement?.remove()}}class Se{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class xe extends Set{async execute(t){await Promise.allSettled([...this].map((e=>e(t))))}}class Ee{static open(t=window.location.pathname,e=0){return new Promise(((n,r)=>{window.matchMedia("(display-mode: standalone)").matches&&0===e&&!manifest?.display_override?.includes("tabbed")&&(e=1);const o=window.open(t,void 0,0===e?"":"popup");if(!o)return r(new Error("Failed to open a window, probably because the permission is denied."));o.resizeTo(window.outerWidth*Ee.windowSizeReductionMultiplier,window.outerHeight*Ee.windowSizeReductionMultiplier),o.moveTo(window.screenX+(window.outerWidth-o.outerWidth)/2,window.screenY+(window.outerHeight-o.outerHeight)/2),o.addEventListener("Application.initialized",(()=>n(o)),{once:!0})}))}static async openAndFocus(...t){(await Ee.open(...t)).focus()}}Ee.windowSizeReductionMultiplier=.9;class ke extends Error{constructor(t,e=ke.defaultMessageByErrorCode.get(t)){super(e),this.statusCode=t}}function _e(t){return(e,n)=>{Object.defineProperty(e,n,{get(){const e=[...this.renderRoot?.querySelectorAll("*")??[]].find((e=>t in e.constructor&&!0===e.constructor[t]));if(!e)throw new Error(`${this.constructor.name}'s ${n} cannot be found.`);return e}})}}function Pe(){return(t,e)=>{Object.defineProperty(t,e,{get(){return[...window.document.querySelectorAll("*")].find((t=>t instanceof this))}})}}ke.defaultMessageByErrorCode=new Map([[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[404,"Page Not Found"],[403,"Access Denied"],[405,"Method Not Allowed"],[406,"Not Accepted"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Request Entity Too Large"],[414,"Request Uri Too Long"],[415,"Unsupported Media Type"],[416,"Requested Range Not Satisfiable"],[417,"Expectation Failed"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields TooLarge"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"Http Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[510,"Not Extended"],[511,"Network Authentication Required"]]);const Te=t=>{Object.defineProperty(t.prototype,"inert",{enumerable:!0,configurable:!1,get:()=>!1,set:t=>t})};var Re=n(388),Me=/[$_\p{ID_Start}]/u,Le=/[$_\u200C\u200D\p{ID_Continue}]/u;function Ne(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function Ie(t,e=!1){const n=[];let r=0;for(;r<t.length;){const o=t[r],i=function(o){if(!e)throw new TypeError(o);n.push({type:"INVALID_CHAR",index:r,value:t[r++]})};if("*"!==o)if("+"!==o&&"?"!==o)if("\\"!==o)if("{"!==o)if("}"!==o)if(":"!==o)if("("!==o)n.push({type:"CHAR",index:r,value:t[r++]});else{let e=1,o="",s=r+1,a=!1;if("?"===t[s]){i(`Pattern cannot start with "?" at ${s}`);continue}for(;s<t.length;){if(!Ne(t[s],!1)){i(`Invalid character '${t[s]}' at ${s}.`),a=!0;break}if("\\"!==t[s]){if(")"===t[s]){if(e--,0===e){s++;break}}else if("("===t[s]&&(e++,"?"!==t[s+1])){i(`Capturing groups are not allowed at ${s}`),a=!0;break}o+=t[s++]}else o+=t[s++]+t[s++]}if(a)continue;if(e){i(`Unbalanced pattern at ${r}`);continue}if(!o){i(`Missing pattern at ${r}`);continue}n.push({type:"PATTERN",index:r,value:o}),r=s}else{let e="",o=r+1;for(;o<t.length;){const n=t.substr(o,1);if(!(o===r+1&&Me.test(n)||o!==r+1&&Le.test(n)))break;e+=t[o++]}if(!e){i(`Missing parameter name at ${r}`);continue}n.push({type:"NAME",index:r,value:e}),r=o}else n.push({type:"CLOSE",index:r,value:t[r++]});else n.push({type:"OPEN",index:r,value:t[r++]});else n.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else n.push({type:"MODIFIER",index:r,value:t[r++]});else n.push({type:"ASTERISK",index:r,value:t[r++]})}return n.push({type:"END",index:r,value:""}),n}function He(t,e={}){const n=Ie(t),{prefixes:r="./"}=e,o=`[^${Fe(void 0===e.delimiter?"/#?":e.delimiter)}]+?`,i=[];let s=0,a=0,c="",l=new Set;const h=t=>{if(a<n.length&&n[a].type===t)return n[a++].value},u=()=>{const t=h("MODIFIER");return t||h("ASTERISK")},d=t=>{const e=h(t);if(void 0!==e)return e;const{type:r,index:o}=n[a];throw new TypeError(`Unexpected ${r} at ${o}, expected ${t}`)},p=()=>{let t,e="";for(;t=h("CHAR")||h("ESCAPED_CHAR");)e+=t;return e},f=e.encodePart||(t=>t);for(;a<n.length;){const t=h("CHAR"),e=h("NAME");let n=h("PATTERN");if(e||n||!h("ASTERISK")||(n=".*"),e||n){let a=t||"";-1===r.indexOf(a)&&(c+=a,a=""),c&&(i.push(f(c)),c="");const h=e||s++;if(l.has(h))throw new TypeError(`Duplicate name '${h}'.`);l.add(h),i.push({name:h,prefix:f(a),suffix:"",pattern:n||o,modifier:u()||""});continue}const a=t||h("ESCAPED_CHAR");if(a){c+=a;continue}if(h("OPEN")){const t=p(),e=h("NAME")||"";let n=h("PATTERN")||"";e||n||!h("ASTERISK")||(n=".*");const r=p();d("CLOSE");const a=u()||"";if(!e&&!n&&!a){c+=t;continue}if(!e&&!n&&!t)continue;c&&(i.push(f(c)),c=""),i.push({name:e||(n?s++:""),pattern:e&&!n?o:n,prefix:f(t),suffix:f(r),modifier:a})}else c&&(i.push(f(c)),c=""),d("END")}return i}function Fe(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function De(t){return t&&t.ignoreCase?"ui":"u"}function Ue(t,e,n={}){const{strict:r=!1,start:o=!0,end:i=!0,encode:s=(t=>t)}=n,a=`[${Fe(void 0===n.endsWith?"":n.endsWith)}]|$`,c=`[${Fe(void 0===n.delimiter?"/#?":n.delimiter)}]`;let l=o?"^":"";for(const n of t)if("string"==typeof n)l+=Fe(s(n));else{const t=Fe(s(n.prefix)),r=Fe(s(n.suffix));if(n.pattern)if(e&&e.push(n),t||r)if("+"===n.modifier||"*"===n.modifier){const e="*"===n.modifier?"?":"";l+=`(?:${t}((?:${n.pattern})(?:${r}${t}(?:${n.pattern}))*)${r})${e}`}else l+=`(?:${t}(${n.pattern})${r})${n.modifier}`;else"+"===n.modifier||"*"===n.modifier?l+=`((?:${n.pattern})${n.modifier})`:l+=`(${n.pattern})${n.modifier}`;else l+=`(?:${t}${r})${n.modifier}`}if(i)r||(l+=`${c}?`),l+=n.endsWith?`(?=${a})`:"$";else{const e=t[t.length-1],n="string"==typeof e?c.indexOf(e[e.length-1])>-1:void 0===e;r||(l+=`(?:${c}(?=${a}))?`),n||(l+=`(?=${c}|${a})`)}return new RegExp(l,De(n))}function Oe(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;const n=/\((?:\?<(.*?)>)?(?!\?)/g;let r=0,o=n.exec(t.source);for(;o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){const r=t.map((t=>Oe(t,e,n).source));return new RegExp(`(?:${r.join("|")})`,De(n))}(t,e,n):function(t,e,n){return Ue(He(t,n),e,n)}(t,e,n)}var Ve={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Be={delimiter:".",prefixes:"",sensitive:!0,strict:!0},je={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function We(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t}function Ge(t){return!(!t||t.length<2)&&("["===t[0]||("\\"===t[0]||"{"===t[0])&&"["===t[1])}var qe=["ftp","file","http","https","ws","wss"];function ze(t){if(!t)return!0;for(const e of qe)if(t.test(e))return!0;return!1}function Ke(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function Ze(t){if(""===t)return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function Je(t){if(""===t)return t;const e=new URL("https://example.com");return e.username=t,e.username}function Ye(t){if(""===t)return t;const e=new URL("https://example.com");return e.password=t,e.password}function Xe(t){if(""===t)return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw new TypeError(`Invalid hostname '${t}'`);const e=new URL("https://example.com");return e.hostname=t,e.hostname}function Qe(t){if(""===t)return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw new TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()}function tn(t){if(""===t)return t;if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw new TypeError(`Invalid port '${t}'.`)}function en(t){if(""===t)return t;const e=new URL("https://example.com");return e.pathname="/"!==t[0]?"/-"+t:t,"/"!==t[0]?e.pathname.substring(2,e.pathname.length):e.pathname}function nn(t){if(""===t)return t;return new URL(`data:${t}`).pathname}function rn(t){if(""===t)return t;const e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)}function on(t){if(""===t)return t;const e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)}var sn=["protocol","username","password","hostname","port","pathname","search","hash"],an="*";function cn(t,e){if("string"!=typeof t)throw new TypeError("parameter 1 is not of type 'string'.");const n=new URL(t,e);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:""!=n.search?n.search.substring(1,n.search.length):void 0,hash:""!=n.hash?n.hash.substring(1,n.hash.length):void 0}}function ln(t,e){return e?un(t):t}function hn(t,e,n){let r;if("string"==typeof e.baseURL)try{r=new URL(e.baseURL),t.protocol=ln(r.protocol.substring(0,r.protocol.length-1),n),t.username=ln(r.username,n),t.password=ln(r.password,n),t.hostname=ln(r.hostname,n),t.port=ln(r.port,n),t.pathname=ln(r.pathname,n),t.search=ln(r.search.substring(1,r.search.length),n),t.hash=ln(r.hash.substring(1,r.hash.length),n)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}if("string"==typeof e.protocol&&(t.protocol=function(t,e){var n,r;return r=":",t=(n=t).endsWith(r)?n.substr(0,n.length-r.length):n,e||""===t?t:Ze(t)}(e.protocol,n)),"string"==typeof e.username&&(t.username=function(t,e){if(e||""===t)return t;const n=new URL("https://example.com");return n.username=t,n.username}(e.username,n)),"string"==typeof e.password&&(t.password=function(t,e){if(e||""===t)return t;const n=new URL("https://example.com");return n.password=t,n.password}(e.password,n)),"string"==typeof e.hostname&&(t.hostname=function(t,e){return e||""===t?t:Ge(t)?Qe(t):Xe(t)}(e.hostname,n)),"string"==typeof e.port&&(t.port=function(t,e,n){return Ke(e)===t&&(t=""),n||""===t?t:tn(t)}(e.port,t.protocol,n)),"string"==typeof e.pathname){if(t.pathname=e.pathname,r&&!function(t,e){return!(!t.length||"/"!==t[0]&&(!e||t.length<2||"\\"!=t[0]&&"{"!=t[0]||"/"!=t[1]))}(t.pathname,n)){const e=r.pathname.lastIndexOf("/");e>=0&&(t.pathname=ln(r.pathname.substring(0,e+1),n)+t.pathname)}t.pathname=function(t,e,n){if(n||""===t)return t;if(e&&!qe.includes(e))return new URL(`${e}:${t}`).pathname;const r="/"==t[0];return t=new URL(r?t:"/-"+t,"https://example.com").pathname,r||(t=t.substring(2,t.length)),t}(t.pathname,t.protocol,n)}return"string"==typeof e.search&&(t.search=function(t,e){if(t=We(t,"?"),e||""===t)return t;const n=new URL("https://example.com");return n.search=t,n.search?n.search.substring(1,n.search.length):""}(e.search,n)),"string"==typeof e.hash&&(t.hash=function(t,e){if(t=We(t,"#"),e||""===t)return t;const n=new URL("https://example.com");return n.hash=t,n.hash?n.hash.substring(1,n.hash.length):""}(e.hash,n)),t}function un(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function dn(t,e){const n=`[^${r=void 0===e.delimiter?"/#?":e.delimiter,r.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}]+?`;var r;const o=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let r=0;r<t.length;++r){const s=t[r],a=r>0?t[r-1]:null,c=r<t.length-1?t[r+1]:null;if("string"==typeof s){i+=un(s);continue}if(""===s.pattern){if(""===s.modifier){i+=un(s.prefix);continue}i+=`{${un(s.prefix)}}${s.modifier}`;continue}const l="number"!=typeof s.name,h=void 0!==e.prefixes?e.prefixes:"./";let u=""!==s.suffix||""!==s.prefix&&(1!==s.prefix.length||!h.includes(s.prefix));if(!u&&l&&s.pattern===n&&""===s.modifier&&c&&!c.prefix&&!c.suffix)if("string"==typeof c){const t=c.length>0?c[0]:"";u=o.test(t)}else u="number"==typeof c.name;if(!u&&""===s.prefix&&a&&"string"==typeof a&&a.length>0){const t=a[a.length-1];u=h.includes(t)}u&&(i+="{"),i+=un(s.prefix),l&&(i+=`:${s.name}`),".*"===s.pattern?l||a&&"string"!=typeof a&&!a.modifier&&!u&&""===s.prefix?i+="(.*)":i+="*":s.pattern===n?l||(i+=`(${n})`):i+=`(${s.pattern})`,s.pattern===n&&l&&""!==s.suffix&&o.test(s.suffix[0])&&(i+="\\"),i+=un(s.suffix),u&&(i+="}"),i+=s.modifier}return i}function pn(t,e){void 0===e&&(e={});for(var n=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--o){a++;break}}else if("("===t[a]&&(o++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=t[a++]}else i+=t[a++]+t[a++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));e.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var s="",a=n+1;a<t.length;){var c=t.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;s+=t[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:s}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),r=e.prefixes,o=void 0===r?"./":r,i="[^".concat(gn(e.delimiter||"/#?"),"]+?"),s=[],a=0,c=0,l="",h=function(t){if(c<n.length&&n[c].type===t)return n[c++].value},u=function(t){var e=h(t);if(void 0!==e)return e;var r=n[c],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(t))},d=function(){for(var t,e="";t=h("CHAR")||h("ESCAPED_CHAR");)e+=t;return e};c<n.length;){var p=h("CHAR"),f=h("NAME"),m=h("PATTERN");if(f||m){var g=p||"";-1===o.indexOf(g)&&(l+=g,g=""),l&&(s.push(l),l=""),s.push({name:f||a++,prefix:g,suffix:"",pattern:m||i,modifier:h("MODIFIER")||""})}else{var v=p||h("ESCAPED_CHAR");if(v)l+=v;else if(l&&(s.push(l),l=""),h("OPEN")){g=d();var y=h("NAME")||"",w=h("PATTERN")||"",b=d();u("CLOSE"),s.push({name:y||(w?a++:""),pattern:y&&!w?i:w,prefix:g,suffix:b,modifier:h("MODIFIER")||""})}else u("END")}}return s}function fn(t,e){return function(t,e){void 0===e&&(e={});var n=vn(e),r=e.encode,o=void 0===r?function(t){return t}:r,i=e.validate,s=void 0===i||i,a=t.map((function(t){if("object"==typeof t)return new RegExp("^(?:".concat(t.pattern,")$"),n)}));return function(e){for(var n="",r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i){var c=e?e[i.name]:void 0,l="?"===i.modifier||"*"===i.modifier,h="*"===i.modifier||"+"===i.modifier;if(Array.isArray(c)){if(!h)throw new TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===c.length){if(l)continue;throw new TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var u=0;u<c.length;u++){var d=o(c[u],i);if(s&&!a[r].test(d))throw new TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(d,'"'));n+=i.prefix+d+i.suffix}}else if("string"!=typeof c&&"number"!=typeof c){if(!l){var p=h?"an array":"a string";throw new TypeError('Expected "'.concat(i.name,'" to be ').concat(p))}}else{d=o(String(c),i);if(s&&!a[r].test(d))throw new TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(d,'"'));n+=i.prefix+d+i.suffix}}else n+=i}return n}}(pn(t,e),e)}function mn(t,e){var n=[];return function(t,e,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(t){return t}:r;return function(n){var r=t.exec(n);if(!r)return!1;for(var i=r[0],s=r.index,a=Object.create(null),c=function(t){if(void 0===r[t])return"continue";var n=e[t-1];"*"===n.modifier||"+"===n.modifier?a[n.name]=r[t].split(n.prefix+n.suffix).map((function(t){return o(t,n)})):a[n.name]=o(r[t],n)},l=1;l<r.length;l++)c(l);return{path:i,index:s,params:a}}}(wn(t,n,e),n,e)}function gn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function vn(t){return t&&t.sensitive?"":"i"}function yn(t,e,n){return function(t,e,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,s=void 0===i||i,a=n.end,c=void 0===a||a,l=n.encode,h=void 0===l?function(t){return t}:l,u=n.delimiter,d=void 0===u?"/#?":u,p=n.endsWith,f="[".concat(gn(void 0===p?"":p),"]|$"),m="[".concat(gn(d),"]"),g=s?"^":"",v=0,y=t;v<y.length;v++){var w=y[v];if("string"==typeof w)g+=gn(h(w));else{var b=gn(h(w.prefix)),A=gn(h(w.suffix));if(w.pattern)if(e&&e.push(w),b||A)if("+"===w.modifier||"*"===w.modifier){var $="*"===w.modifier?"?":"";g+="(?:".concat(b,"((?:").concat(w.pattern,")(?:").concat(A).concat(b,"(?:").concat(w.pattern,"))*)").concat(A,")").concat($)}else g+="(?:".concat(b,"(").concat(w.pattern,")").concat(A,")").concat(w.modifier);else"+"===w.modifier||"*"===w.modifier?g+="((?:".concat(w.pattern,")").concat(w.modifier,")"):g+="(".concat(w.pattern,")").concat(w.modifier);else g+="(?:".concat(b).concat(A,")").concat(w.modifier)}}if(c)o||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(f,")"):"$";else{var C=t[t.length-1],S="string"==typeof C?m.indexOf(C[C.length-1])>-1:void 0===C;o||(g+="(?:".concat(m,"(?=").concat(f,"))?")),S||(g+="(?=".concat(m,"|").concat(f,")"))}return new RegExp(g,vn(n))}(pn(t,n),e,n)}function wn(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(t.source);o;)e.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,n){var r=t.map((function(t){return wn(t,e,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),vn(n))}(t,e,n):yn(t,e,n)}globalThis.URLPattern||(globalThis.URLPattern=class{constructor(t={},e,n){this.regexp={},this.keys={},this.component_pattern={};try{let r;if("string"==typeof e?r=e:n=e,"string"==typeof t){const e=new class{constructor(t){this.tokenList=[],this.internalResult={},this.tokenIndex=0,this.tokenIncrement=1,this.componentStart=0,this.state=0,this.groupDepth=0,this.hostnameIPv6BracketDepth=0,this.shouldTreatAsStandardURL=!1,this.input=t}get result(){return this.internalResult}parse(){for(this.tokenList=Ie(this.input,!0);this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){if(this.tokenIncrement=1,"END"===this.tokenList[this.tokenIndex].type){if(0===this.state){this.rewind(),this.isHashPrefix()?this.changeState(9,1):this.isSearchPrefix()?(this.changeState(8,1),this.internalResult.hash=""):(this.changeState(7,0),this.internalResult.search="",this.internalResult.hash="");continue}if(2===this.state){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(!this.isGroupClose())continue;this.groupDepth-=1}if(this.isGroupOpen())this.groupDepth+=1;else switch(this.state){case 0:this.isProtocolSuffix()&&(this.internalResult.username="",this.internalResult.password="",this.internalResult.hostname="",this.internalResult.port="",this.internalResult.pathname="",this.internalResult.search="",this.internalResult.hash="",this.rewindAndSetState(1));break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let t=7,e=1;this.shouldTreatAsStandardURL&&(this.internalResult.pathname="/"),this.nextIsAuthoritySlashes()?(t=2,e=3):this.shouldTreatAsStandardURL&&(t=2),this.changeState(t,e)}break;case 2:this.isIdentityTerminator()?this.rewindAndSetState(3):(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix())&&this.rewindAndSetState(5);break;case 3:this.isPasswordPrefix()?this.changeState(4,1):this.isIdentityTerminator()&&this.changeState(5,1);break;case 4:this.isIdentityTerminator()&&this.changeState(5,1);break;case 5:this.isIPv6Open()?this.hostnameIPv6BracketDepth+=1:this.isIPv6Close()&&(this.hostnameIPv6BracketDepth-=1),this.isPortPrefix()&&!this.hostnameIPv6BracketDepth?this.changeState(6,1):this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 6:this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 7:this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 8:this.isHashPrefix()&&this.changeState(9,1)}}}changeState(t,e){switch(this.state){case 0:case 2:case 10:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString()}this.changeStateWithoutSettingComponent(t,e)}changeStateWithoutSettingComponent(t,e){this.state=t,this.componentStart=this.tokenIndex+e,this.tokenIndex+=e,this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart,this.tokenIncrement=0}rewindAndSetState(t){this.rewind(),this.state=t}safeToken(t){return t<0&&(t=this.tokenList.length-t),t<this.tokenList.length?this.tokenList[t]:this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(t,e){const n=this.safeToken(t);return n.value===e&&("CHAR"===n.type||"ESCAPED_CHAR"===n.type||"INVALID_CHAR"===n.type)}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?"))return!0;if("?"!==this.tokenList[this.tokenIndex].value)return!1;const t=this.safeToken(this.tokenIndex-1);return"NAME"!==t.type&&"PATTERN"!==t.type&&"CLOSE"!==t.type&&"ASTERISK"!==t.type}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return"OPEN"==this.tokenList[this.tokenIndex].type}isGroupClose(){return"CLOSE"==this.tokenList[this.tokenIndex].type}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const t=this.tokenList[this.tokenIndex],e=this.safeToken(this.componentStart).index;return this.input.substring(e,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,Ve),t.encodePart=Ze;const e=Oe(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=ze(e)}}(t);if(e.parse(),t=e.result,void 0===r&&"string"!=typeof t.protocol)throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=r}else{if(!t||"object"!=typeof t)throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw new TypeError("parameter 1 is not of type 'string'.")}void 0===n&&(n={ignoreCase:!1});const o={ignoreCase:!0===n.ignoreCase},i={pathname:an,protocol:an,username:an,password:an,hostname:an,port:an,search:an,hash:an};let s;for(s of(this.pattern=hn(i,t,!0),Ke(this.pattern.protocol)===this.pattern.port&&(this.pattern.port=""),sn)){if(!(s in this.pattern))continue;const t={},e=this.pattern[s];switch(this.keys[s]=[],s){case"protocol":Object.assign(t,Ve),t.encodePart=Ze;break;case"username":Object.assign(t,Ve),t.encodePart=Je;break;case"password":Object.assign(t,Ve),t.encodePart=Ye;break;case"hostname":Object.assign(t,Be),Ge(e)?t.encodePart=Qe:t.encodePart=Xe;break;case"port":Object.assign(t,Ve),t.encodePart=tn;break;case"pathname":ze(this.regexp.protocol)?(Object.assign(t,je,o),t.encodePart=en):(Object.assign(t,Ve,o),t.encodePart=nn);break;case"search":Object.assign(t,Ve,o),t.encodePart=rn;break;case"hash":Object.assign(t,Ve,o),t.encodePart=on}try{const n=He(e,t);this.regexp[s]=Ue(n,this.keys[s],t),this.component_pattern[s]=dn(n,t)}catch{throw new TypeError(`invalid ${s} pattern '${this.pattern[s]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let n,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===t)return!1;try{r=hn(r,"object"==typeof t?t:cn(t,e),!1)}catch(t){return!1}for(n of sn)if(!this.regexp[n].exec(r[n]))return!1;return!0}exec(t={},e){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(void 0===t)return;try{n=hn(n,"object"==typeof t?t:cn(t,e),!1)}catch(t){return null}let r,o={};for(r of(o.inputs=e?[t,e]:[t],sn)){let t=this.regexp[r].exec(n[r]);if(!t)return null;let e={};for(let[n,o]of this.keys[r].entries())if("string"==typeof o.name||"number"==typeof o.name){let r=t[n+1];e[o.name]=r}o[r]={input:n[r]||"",groups:e}}return o}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}});class bn extends Map{constructor(){super(...arguments),this.basePath=""}set(t,e){return super.set(this.basePath+t,e)}}class An{get basePath(){return An.container.basePath}set basePath(t){An.container.basePath=t}static getPathOf(t){const e=this.getRouteOf(t);return void 0===e?void 0:fn(e)(t.parameters)}static setPathByPage(t){const e=An.getPathOf(t);e&&(An.path=e)}static match(t,e="all"){const n=An.getRouteOf(t),r=void 0!==n&&mn(n)(An.path);if(!1===r)return!1;if("ignore-parameters"===e)return!0;const o=r.params;return Object.keys(o).every((e=>e in(t.parameters??{})&&o[e]===t.parameters[e]))}static getRouteOf(t){return[...An.container].find((([,{pageConstructor:e}])=>e.name===t.constructor.name))?.[0]}static get path(){return window.location.pathname+window.location.search}static set path(t){window.history.pushState(null,"",t),window.dispatchEvent(new PopStateEvent("popstate"))}}An.container=new bn;const $n=new WeakMap,Cn=t=>{if((t=>void 0!==t.pattern)(t))return t.pattern;let e=$n.get(t);return void 0===e&&$n.set(t,e=new URLPattern({pathname:t.path})),e};class Sn{constructor(t,e,n){this.routes=[],this.o=[],this.t={},this.i=t=>{if(t.routes===this)return;const e=t.routes;this.o.push(e),e.l=this,t.stopImmediatePropagation(),t.onDisconnect=()=>{var t;null===(t=this.o)||void 0===t||t.splice(this.o.indexOf(e)>>>0,1)};const n=xn(this.t);void 0!==n&&e.goto(n)},(this.h=t).addController(this),this.routes=[...e],this.fallback=null==n?void 0:n.fallback}link(t){var e,n;if(null==t?void 0:t.startsWith("/"))return t;if(null==t?void 0:t.startsWith("."))throw Error("Not implemented");return null!=t||(t=this.u),(null!==(n=null===(e=this.l)||void 0===e?void 0:e.link())&&void 0!==n?n:"")+t}async goto(t){var e;let n;if(0===this.routes.length&&void 0===this.fallback)n=t,this.u="",this.t={0:n};else{const r=this.v(t);if(void 0===r)throw Error("No route found for "+t);const o=Cn(r).exec({pathname:t}),i=null!==(e=null==o?void 0:o.pathname.groups)&&void 0!==e?e:{};if(n=xn(i),"function"==typeof r.enter&&!1===await r.enter(i))return;this.p=r,this.t=i,this.u=void 0===n?t:t.substring(0,t.length-n.length)}if(void 0!==n)for(const t of this.o)t.goto(n);this.h.requestUpdate()}outlet(){var t,e;return null===(e=null===(t=this.p)||void 0===t?void 0:t.render)||void 0===e?void 0:e.call(t,this.t)}get params(){return this.t}v(t){const e=this.routes.find((e=>Cn(e).test({pathname:t})));return e||void 0===this.fallback?e:this.fallback?{...this.fallback,path:"/*"}:void 0}hostConnected(){this.h.addEventListener(En.eventName,this.i);const t=new En(this);this.h.dispatchEvent(t),this._=t.onDisconnect}hostDisconnected(){var t;null===(t=this._)||void 0===t||t.call(this),this.l=void 0}}const xn=t=>{let e;for(const n of Object.keys(t))/\d+/.test(n)&&(void 0===e||n>e)&&(e=n);return e&&t[e]};class En extends Event{constructor(t){super(En.eventName,{bubbles:!0,composed:!0,cancelable:!1}),this.routes=t}}En.eventName="lit-routes-connected";const kn=location.origin||location.protocol+"//"+location.host;class _n extends Sn{constructor(){super(...arguments),this.m=t=>{const e=0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey;if(t.defaultPrevented||e)return;const n=t.composedPath().find((t=>"A"===t.tagName));if(void 0===n||""!==n.target||n.hasAttribute("download")||"external"===n.getAttribute("rel"))return;const r=n.href;if(""===r||r.startsWith("mailto:"))return;const o=window.location;n.origin===kn&&(t.preventDefault(),r!==o.href&&(window.history.pushState({},"",r),this.goto(n.pathname)))},this.R=t=>{this.goto(window.location.pathname)}}hostConnected(){super.hostConnected(),window.addEventListener("click",this.m),window.addEventListener("popstate",this.R),this.goto(window.location.pathname)}hostDisconnected(){super.hostDisconnected(),window.removeEventListener("click",this.m),window.removeEventListener("popstate",this.R)}}class Pn extends _n{hostConnected(){this.importDecoratorRoutesIfAvailable(),super.hostConnected()}constructor(...t){super(...t),this.host=t[0]}importDecoratorRoutesIfAvailable(){const t=[...An.container].filter((([,{routerHostConstructor:t}])=>this.host.constructor===t||this.host.constructor.prototype instanceof t)).map((([t,{pageConstructor:e}])=>({route:t,pageConstructor:e})));for(const{pageConstructor:e,route:n}of t)this.routes.push({path:n,render:t=>this.currentPage?.parameters===t&&this.currentPage?.constructor===e?this.currentPage:this.currentPage=new e(t)})}}class Tn extends ce{constructor(){super(...arguments),this.router=new Pn(this,[],{fallback:{render:()=>new In({error:404})}}),this.rootCssInjector=new Ce(this,this.constructor.styles),this.shallRenderRouter=!1}static get styles(){return u`:root{color-scheme:light dark}[application],body,html{margin:0;padding:0;scrollbar-width:thin;display:block;min-height:100vh;min-height:100dvh}[application]{display:flex;flex-direction:column}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:rgba(128,128,128,.75)}lit-page-host{display:flex;flex:1;margin:auto;width:100%;max-width:var(--lit-application-page-host-max-width,2560px)}lit-page-host>*{padding:max(min(1rem,1vw),min(1rem,1vh))}`}createRenderRoot(){return this}async connectedCallback(){this.setAttribute("application",""),await Tn.connectingHooks.execute(),super.connectedCallback(),window.dispatchEvent(new Event("Application.connected"))}async initialized(){window.dispatchEvent(new Event("Application.initialized")),await Tn.beforeRouteHooks.execute(),this.shallRenderRouter=!0}get documentTitle(){return[this.pageHeading,manifest?.short_name].filter(Boolean).join(" | ")}get template(){return W`${this.notificationHostTemplate} ${this.bodyTemplate} ${this.dialogHostTemplate}`}get notificationHostTemplate(){return W`<lit-notification-host></lit-notification-host>`}get bodyTemplate(){return W`${this.pageHostTemplate}`}get pageHostTemplate(){return W`<lit-page-host @pageHeadingChange="${t=>this.pageHeading=t.detail}">${this.shallRenderRouter?this.router.outlet():se}</lit-page-host>`}get dialogHostTemplate(){return W`<lit-dialog-host></lit-dialog-host>`}}var Rn;Tn.connectingHooks=new xe,Tn.beforeRouteHooks=new xe,ue([(Rn={updated(){document.title=this.documentTitle}},(t,e)=>(Rn?.updated&&fe(Rn.updated)(t,e),mt(Rn)(t,e)))],Tn.prototype,"pageHeading",void 0),ue([me()],Tn.prototype,"shallRenderRouter",void 0),ue([Pe()],Tn,"instance",void 0);const Mn=(...t)=>e=>{const{routerHostConstructor:n,routes:r}=function(...t){return"string"==typeof t[0]?{routerHostConstructor:Tn,routes:t}:{routerHostConstructor:t[0],routes:t.slice(1)}}(...t);for(const t of r)An.container.set(t,{routerHostConstructor:n,pageConstructor:e})};class Ln extends ce{static pageElement(){return t=>{t[Ln.pageElementConstructorSymbol]=!0}}async navigate(t=0,e=!1){if(!1!==e||!An.match(this,"all"))if(0===t)An.setPathByPage(this);else{const e=window.location.origin+An.getPathOf(this);await Ee.openAndFocus(e,2===t?1:0)}}constructor(t){super(),this.parameters=t}async connectedCallback(){await Ln.connectingHooks.execute(this),super.connectedCallback()}refresh(t=this.parameters){return new this.constructor(t).navigate(0,!0)}}var Nn;Ln.connectingHooks=new xe,Ln.pageElementConstructorSymbol=Symbol("PageComponent.PageElementConstructor"),Ln.defaultPageElementTag=wt`lit-page`,ue([_e(Ln.pageElementConstructorSymbol)],Ln.prototype,"pageElement",void 0);let In=Nn=class extends Ln{static get styles(){return u`
|
|
2
2
|
.code {
|
|
3
3
|
font-size: 60px;
|
|
4
4
|
font-weight: 400;
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
text-align: center;
|
|
10
10
|
margin: 0;
|
|
11
11
|
}
|
|
12
|
-
`}get template(){return
|
|
13
|
-
<${
|
|
14
|
-
<div ${
|
|
12
|
+
`}get template(){return $t`
|
|
13
|
+
<${Ln.defaultPageElementTag} heading=${`Error ${this.parameters.error}`} fullHeight>
|
|
14
|
+
<div ${he({display:"flex",gap:"8px",flexDirection:"column",alignItems:"center",justifyContent:"center"})}>
|
|
15
15
|
<div class='code'>${this.errorTemplate}</div>
|
|
16
|
-
<div ${
|
|
17
|
-
<h1>${this.parameters.message??
|
|
16
|
+
<div ${he({display:"flex",gap:"4px",flexDirection:"column"})}>
|
|
17
|
+
<h1>${this.parameters.message??ke.defaultMessageByErrorCode.get(this.parameters.error)??"Unknown Error"}</h1>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
-
</${
|
|
21
|
-
`}get errorTemplate(){const t=String(this.parameters.error),e=
|
|
20
|
+
</${Ln.defaultPageElementTag}>
|
|
21
|
+
`}get errorTemplate(){const t=String(this.parameters.error),e=Nn.emojisByErrorCodes.get(this.parameters.error);return e?W`
|
|
22
22
|
<span>${t.charAt(0)}</span>${e}<span>${t.charAt(2)}</span>
|
|
23
|
-
`:
|
|
23
|
+
`:W`
|
|
24
24
|
<span>${t}</span>
|
|
25
|
-
`}};Mn.emojisByErrorCodes=new Map([[400,"ð"],[401,"â"],[402,"ðĪ"],[404,"ð§"],[403,"ð"],[405,"ðŦ"],[406,"ðĩ"],[407,"ðĪ"],[408,"âē"],[409,"ðĩ"],[500,"ðĨ"],[501,"ðģ"],[502,"ðĨī"],[503,"ðī"],[504,"â"],[505,"ð"],[506,"ðĪŠ"],[507,"ðū"],[508,"â°"]]),Mn=Rn=yn([fn("lit-page-error"),Pn("/error/:error")],Mn);let Ln=class extends gn{get template(){return Jt`<div part="pageHolder" ${vn({display:"grid",gridTemplateRows:"1fr",width:"100%"})}><slot></slot></div>`}};yn([u()],Ln,"instance",void 0),Ln=yn([fn("lit-page-host")],Ln);class Nn extends Error{constructor(t){super(`Dialog "${t.tagName.toLowerCase()}" was cancelled.`)}}let In=class extends gn{createRenderRoot(){return this}};yn([u()],In,"instance",void 0),In=yn([fn("lit-dialog-host")],In);class Fn{constructor(t,e,n){this.name=t,this.defaultValue=e,this.reviver=n,this.changed=new En,Fn.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),Fn.changed.dispatch(this)}}Fn.changed=new En,Fn.container=new Set;class Hn extends gn{static dialogElement(){return t=>{t[Hn.dialogElementConstructorSymbol]=!0}}static getHost(){return Promise.resolve(In.instance??kn.instance??document.body)}get primaryActionElement(){return this.dialogElement.primaryActionElement}get secondaryActionElement(){return this.dialogElement.secondaryActionElement}get cancellationActionElement(){return this.dialogElement.cancellationActionElement}constructor(t){super(),this.parameters=t,this.handleAction=async t=>{const e=new Map([["primary",this.primaryAction],["secondary",this.secondaryAction],["cancellation",this.cancellationAction]]),n=e.get(t)?.bind(this);if(!n)throw new Error(`No action for key ${t}`);try{this.dialogElement.executingAction=t;const e=await n();this.dialogElement.manualClose&&"cancellation"!==t||this.close(e)}catch(t){throw notificationHost.notifyError(t.message),t}finally{this.dialogElement.executingAction=void 0}}}async handleBeforeUnload(){this.dialogElement.boundToWindow&&await this.handleAction("cancellation")}async handleKeyDown(t){[...(await Hn.getHost()).children].filter((t=>t instanceof Hn)).reverse()[0]===this&&(!0===this.dialogElement.primaryOnEnter&&t.key===p.s.Enter&&await this.handleAction("primary"),this.dialogElement.preventCancellationOnEscape||t.key!==p.s.Escape||await this.handleAction("cancellation"))}async connectedCallback(){await Hn.connectingHooks.execute(this),super.connectedCallback()}confirm(t=0){return 0===t?this.confirmAsDialog():this.confirmAsPopup(t)}async confirmAsDialog(){return(await Hn.getHost()).appendChild(this),new Promise(((t,e)=>{this._confirmationPromiseExecutor=[t,e]}))}async confirmAsPopup(t){this._popupWindow=await c.open(Un.route,2===t?1:0);const e=new(this._popupWindow.customElements.get(this.tagName.toLowerCase()))(this.parameters);[...this.constructor.elementProperties.keys()].forEach((t=>e[t]=this[t]));const n=this._popupWindow.document.querySelector("[application]");await n.updateComplete;const r=this._popupWindow.document.querySelector("lit-page-dialog"),o=e.confirm();return await e.updateComplete,e.dialogElement.dialogHeadingChange.subscribe((t=>r.heading=t)),e.dialogElement.boundToWindow=!0,r.heading=e.dialogElement.heading,o}async pop(t=1){this.open=!1;try{const e=await this.confirm(t);this._confirmationPromiseExecutor?.[0](e)}catch(t){this._confirmationPromiseExecutor?.[1](t)}finally{this._popupWindow?.close(),this.remove()}}close(t){this.open=!1,t instanceof Error?this._confirmationPromiseExecutor?.[1](t):this._confirmationPromiseExecutor?.[0](t),this.remove()}get open(){return this.dialogElement.open??!1}set open(t){this.dialogElement&&(this.dialogElement.open=t)}firstUpdated(t){this.dialogElement.handleAction=this.handleAction,this.dialogElement.requestPopup?.subscribe((()=>this.pop())),this.dialogElement.poppable&&window.location.pathname!==Un.route&&0!==Hn.poppableConfirmationStrategy.value?this.pop(Hn.poppableConfirmationStrategy.value):(this.open=!0,super.firstUpdated(t))}primaryAction(){throw new Error("Not implemented.")}secondaryAction(){return this.cancellationAction()}cancellationAction(){return new Nn(this)}}var Dn;Hn.connectingHooks=new a,Hn.dialogElementConstructorSymbol=Symbol("DialogComponent.DialogElementConstructor"),Hn.defaultDialogElementTag=xe`lit-dialog`,Hn.poppableConfirmationStrategy=new Fn("DialogComponent.PoppableConfirmationStrategy",0),yn([h(Hn.dialogElementConstructorSymbol)],Hn.prototype,"dialogElement",void 0),yn([xn({target:window,type:"beforeunload"})],Hn.prototype,"handleBeforeUnload",null),yn([xn({target:window,type:"keydown"})],Hn.prototype,"handleKeyDown",null);let Un=Dn=class extends Tn{constructor(){super(...arguments),this.heading=""}get template(){return _e`<${Tn.defaultPageElementTag} heading=${this.heading}></${Tn.defaultPageElementTag}>`}};Un.route="/dialog",yn([$n()],Un.prototype,"heading",void 0),Un=Dn=yn([Pn(Dn.route),fn("lit-page-dialog")],Un);Ge(class extends Qe{constructor(t){if(super(t),t.type!==We)throw new Error("routerLink can only be used on an element")}update(t,e){const n=!this.parameters;return this.element=t.element,this.parameters=function(...t){return t[0]instanceof Tn||t[0]instanceof Hn?{component:t[0],matchMode:"all",selectionChangeHandler:void 0,invocationHandler:void 0}:t[0]}(...e),this.isConnected&&this.addEventListeners(),n&&this.executeSelectionChange(),super.update(t,e)}render(...t){return Xt}disconnected(){this.removeEventListeners()}handleEvent(t){switch(t.type){case"click":case"auxclick":t.preventDefault(),this.invoke(t);break;case"popstate":this.executeSelectionChange()}}addEventListeners(){window.addEventListener("popstate",this),this.element.addEventListener("click",this),this.element.addEventListener("auxclick",this)}removeEventListeners(){window.removeEventListener("popstate",this),this.element.removeEventListener("click",this),this.element.removeEventListener("auxclick",this)}invoke(t){const e=new(0,this.parameters.component.constructor)(this.parameters.component.parameters);e instanceof Tn?e.navigate((()=>{switch(!0){case t.ctrlKey||t.metaKey||"auxclick"===t.type:return 1;case t.shiftKey:return 2;default:return 0}})(),"auxclick"===t.type):e.confirm((()=>{switch(!0){case t.ctrlKey||t.metaKey||"auxclick"===t.type:return 1;case t.shiftKey:return 2;default:return 0}})()),this.parameters.invocationHandler?.()}executeSelectionChange(){const t=!(this.parameters.component instanceof Hn)&&nt.match(this.parameters.component,this.parameters.matchMode);t?this.element.setAttribute("data-router-selected",""):this.element.removeAttribute("data-router-selected"),this.parameters.selectionChangeHandler&&this.parameters.selectionChangeHandler.call(this.element,t)}});var On;function Vn(...t){return"string"!=typeof t[0]?t[0]:{message:t[0],actions:t.slice(1)}}let Bn=On=class extends gn{constructor(){super(...arguments),this.notifications=new Set}notifyInfo(...t){return this.notify({type:"info",...Vn(...t)})}notifySuccess(...t){return this.notify({type:"success",...Vn(...t)})}notifyWarning(...t){return this.notify({type:"warning",...Vn(...t)})}notifyError(...t){return this.notify({type:"error",...Vn(...t)})}notifyAndThrowError(t,...e){const n=Vn(...e);throw n.message??(n.message=t.message),this.notifyError(n),t}async notify(t){const e=new On.NotificationComponentConstructor;e.notification=t,e instanceof ye&&(this.notifications.add(e),this.requestUpdate()),await e.show(),e instanceof ye&&(this.notifications.delete(e),this.requestUpdate()),On.shownNotifications.add(t)}createRenderRoot(){return this}static get styles(){return vt`:host{z-index:var(--lit-notification-host-z-index,8);position:fixed;inset-block-end:0;inset-inline:0;max-height:max(50vh,50%);display:grid;justify-items:center;justify-content:center;gap:.5vh;overflow:hidden}`}get template(){return Jt`${this.notifications}`}};var jn;Bn.shownNotifications=new Set,Bn.notificationComponent=()=>t=>{On.NotificationComponentConstructor=t},yn([$n()],Bn.prototype,"notifications",void 0),yn([u()],Bn,"instance",void 0),Bn=On=yn([fn("lit-notification-host"),t=>{d(t)}],Bn),Object.defineProperty(globalThis,"notificationHost",{get:()=>Bn.instance,configurable:!1}),kn.connectingHooks.add((async()=>{globalThis.manifest=void 0;const t=globalThis.document.head.querySelector("link[rel=manifest]");try{if(t){const e=await fetch(t.href),n=await e.text();globalThis.manifest=JSON.parse(n)}}catch{}}));jn=class{static get serviceWorkerContainer(){return navigator.serviceWorker}static async registerServiceWorker(t){try{await(this.serviceWorkerContainer?.register(t,{scope:"/"})),await this.requestInstallation()}catch(t){console.error(t)}}static async unregisterServiceWorkers(){const t=await(this.serviceWorkerContainer?.getRegistrations())||[];for(const e of t)e.unregister()}static async requestInstallation(){if(!1===(void 0!==this.pwaPrompt))return;await(this.pwaPrompt?.prompt());const t=await(this.pwaPrompt?.userChoice);if("accepted"!==t?.outcome)throw new Error("PWA installation was not accepted")}},window.addEventListener("beforeinstallprompt",(t=>{jn.pwaPrompt=t,t.preventDefault()}));class Wn{}Wn.background=new class extends Fn{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),kn.addInitializer((t=>{this.application=t,this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){var t;null===(t=this.application)||void 0===t||t.setAttribute("data-theme",this.calculatedValue)}},Wn.accent=new class extends Fn{constructor(){super("Theme.Accent",new r("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new r(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new o(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof o?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof o?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,n=t instanceof o?t.colors[0]:t,r=t instanceof o?t.colors[1]:t,i=t instanceof o?t.colors[2]:t;this.styleElement=s.inject(vt`[application]{--mo-color-accent-base-r:${mt(null==e?void 0:e.r)}--mo-color-accent-base-g:${mt(null==e?void 0:e.g)}--mo-color-accent-base-b:${mt(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${mt(null==n?void 0:n.rgb)}--mo-color-accent-gradient-2:${mt(null==r?void 0:r.rgb)}--mo-color-accent-gradient-3:${mt(null==i?void 0:i.rgb)}}`,this.styleElement)}},s.inject(vt`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;font-size:var(--mo-font-size-m);box-sizing:border-box}html{width:100%;height:100%}body{height:100%;width:100%;overflow:auto}[application][data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225)!important;--mo-color-foreground:black!important;--mo-color-foreground-transparent:rgb(48, 48, 48)!important;--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78;--mo-color-error-base:176,0,32;--mo-field-background:rgba(var(--mo-color-foreground-base), 0.09);--mo-alternating-background:rgba(var(--mo-color-foreground-base), 0.05)}[application][data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20)!important;--mo-color-surface-base:42,43,47;--mo-color-foreground:white!important;--mo-color-foreground-transparent:rgb(220, 220, 220)!important;--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3;--mo-color-error-base:255,61,96}[application]{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px!important;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-error:rgb(var(--mo-color-error-base))!important;--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87)!important;--mo-color-gray:rgb(var(--mo-color-gray-base))!important;--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5)!important;--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))!important;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}`)})()})();
|
|
25
|
+
`}};In.emojisByErrorCodes=new Map([[400,"ð"],[401,"â"],[402,"ðĪ"],[404,"ð§"],[403,"ð"],[405,"ðŦ"],[406,"ðĩ"],[407,"ðĪ"],[408,"âē"],[409,"ðĩ"],[500,"ðĨ"],[501,"ðģ"],[502,"ðĨī"],[503,"ðī"],[504,"â"],[505,"ð"],[506,"ðĪŠ"],[507,"ðū"],[508,"â°"]]),In=Nn=ue([ae("lit-page-error"),Mn("/error/:error")],In);let Hn=class extends ce{get template(){return W`<div part="pageHolder" ${he({display:"grid",gridTemplateRows:"1fr",width:"100%"})}><slot></slot></div>`}};ue([Pe()],Hn,"instance",void 0),Hn=ue([ae("lit-page-host")],Hn);class Fn extends Error{constructor(t){super(`Dialog "${t.tagName.toLowerCase()}" was cancelled.`)}}let Dn=class extends ce{createRenderRoot(){return this}};ue([Pe()],Dn,"instance",void 0),Dn=ue([ae("lit-dialog-host")],Dn);class Un extends ce{static dialogElement(){return t=>{t[Un.dialogElementConstructorSymbol]=!0}}static getHost(){return Promise.resolve(Dn.instance??Tn.instance??document.body)}get primaryActionElement(){return this.dialogElement.primaryActionElement}get secondaryActionElement(){return this.dialogElement.secondaryActionElement}get cancellationActionElement(){return this.dialogElement.cancellationActionElement}constructor(t){super(),this.parameters=t,this.handleAction=async t=>{const e=new Map([["primary",this.primaryAction],["secondary",this.secondaryAction],["cancellation",this.cancellationAction]]),n=e.get(t)?.bind(this);if(!n)throw new Error(`No action for key ${t}`);try{this.dialogElement.executingAction=t;const e=await n();this.dialogElement.manualClose&&"cancellation"!==t||this.close(e)}catch(t){throw notificationHost.notifyError(t.message),t}finally{this.dialogElement.executingAction=void 0}}}async handleBeforeUnload(){this.dialogElement.boundToWindow&&await this.handleAction("cancellation")}async handleKeyDown(t){[...(await Un.getHost()).children].filter((t=>t instanceof Un)).reverse()[0]===this&&(!0===this.dialogElement.primaryOnEnter&&t.key===Re.s.Enter&&await this.handleAction("primary"),this.dialogElement.preventCancellationOnEscape||t.key!==Re.s.Escape||await this.handleAction("cancellation"))}async connectedCallback(){await Un.connectingHooks.execute(this),super.connectedCallback()}confirm(t=0){return 0===t?this.confirmAsDialog():this.confirmAsPopup(t)}async confirmAsDialog(){return(await Un.getHost()).appendChild(this),new Promise(((t,e)=>{this._confirmationPromiseExecutor=[t,e]}))}async confirmAsPopup(t){this._popupWindow=await Ee.open(Vn.route,2===t?1:0);const e=new(this._popupWindow.customElements.get(this.tagName.toLowerCase()))(this.parameters);[...this.constructor.elementProperties.keys()].forEach((t=>e[t]=this[t]));const n=this._popupWindow.document.querySelector("[application]");await n.updateComplete;const r=this._popupWindow.document.querySelector("lit-page-dialog"),o=e.confirm();return await e.updateComplete,e.dialogElement.dialogHeadingChange.subscribe((t=>r.heading=t)),e.dialogElement.boundToWindow=!0,r.heading=e.dialogElement.heading,o}async pop(t=1){this.open=!1;try{const e=await this.confirm(t);this._confirmationPromiseExecutor?.[0](e)}catch(t){this._confirmationPromiseExecutor?.[1](t)}finally{this._popupWindow?.close(),this.remove()}}close(t){this.open=!1,t instanceof Error?this._confirmationPromiseExecutor?.[1](t):this._confirmationPromiseExecutor?.[0](t),this.remove()}get open(){return this.dialogElement.open??!1}set open(t){this.dialogElement&&(this.dialogElement.open=t)}firstUpdated(t){this.dialogElement.handleAction=this.handleAction,this.dialogElement.requestPopup?.subscribe((()=>this.pop())),this.dialogElement.poppable&&window.location.pathname!==Vn.route&&0!==Un.poppableConfirmationStrategy.value?this.pop(Un.poppableConfirmationStrategy.value):(this.open=!0,super.firstUpdated(t))}primaryAction(){throw new Error("Not implemented.")}secondaryAction(){return this.cancellationAction()}cancellationAction(){return new Fn(this)}}var On;Un.connectingHooks=new xe,Un.dialogElementConstructorSymbol=Symbol("DialogComponent.DialogElementConstructor"),Un.defaultDialogElementTag=wt`lit-dialog`,Un.poppableConfirmationStrategy=new be("DialogComponent.PoppableConfirmationStrategy",0),ue([_e(Un.dialogElementConstructorSymbol)],Un.prototype,"dialogElement",void 0),ue([ye({target:window,type:"beforeunload"})],Un.prototype,"handleBeforeUnload",null),ue([ye({target:window,type:"keydown"})],Un.prototype,"handleKeyDown",null);let Vn=On=class extends Ln{constructor(){super(...arguments),this.heading=""}get template(){return $t`<${Ln.defaultPageElementTag} heading=${this.heading}></${Ln.defaultPageElementTag}>`}};Vn.route="/dialog",ue([me()],Vn.prototype,"heading",void 0),Vn=On=ue([Mn(On.route),ae("lit-page-dialog")],Vn);Ut(class extends zt{constructor(t){if(super(t),t.type!==Dt)throw new Error("routerLink can only be used on an element")}update(t,e){const n=!this.parameters;return this.element=t.element,this.parameters=function(...t){return t[0]instanceof Ln||t[0]instanceof Un?{component:t[0],matchMode:"all",selectionChangeHandler:void 0,invocationHandler:void 0}:t[0]}(...e),this.isConnected&&this.addEventListeners(),n&&this.executeSelectionChange(),super.update(t,e)}render(...t){return q}disconnected(){this.removeEventListeners()}handleEvent(t){switch(t.type){case"click":case"auxclick":t.preventDefault(),this.invoke(t);break;case"popstate":this.executeSelectionChange()}}addEventListeners(){window.addEventListener("popstate",this),this.element.addEventListener("click",this),this.element.addEventListener("auxclick",this)}removeEventListeners(){window.removeEventListener("popstate",this),this.element.removeEventListener("click",this),this.element.removeEventListener("auxclick",this)}invoke(t){const e=new(0,this.parameters.component.constructor)(this.parameters.component.parameters);e instanceof Ln?e.navigate((()=>{switch(!0){case t.ctrlKey||t.metaKey||"auxclick"===t.type:return 1;case t.shiftKey:return 2;default:return 0}})(),"auxclick"===t.type):e.confirm((()=>{switch(!0){case t.ctrlKey||t.metaKey||"auxclick"===t.type:return 1;case t.shiftKey:return 2;default:return 0}})()),this.parameters.invocationHandler?.()}executeSelectionChange(){const t=!(this.parameters.component instanceof Un)&&An.match(this.parameters.component,this.parameters.matchMode);t?this.element.setAttribute("data-router-selected",""):this.element.removeAttribute("data-router-selected"),this.parameters.selectionChangeHandler&&this.parameters.selectionChangeHandler.call(this.element,t)}});var Bn;function jn(...t){return"string"!=typeof t[0]?t[0]:{message:t[0],actions:t.slice(1)}}let Wn=Bn=class extends ce{constructor(){super(...arguments),this.notifications=new Set}notifyInfo(...t){return this.notify({type:"info",...jn(...t)})}notifySuccess(...t){return this.notify({type:"success",...jn(...t)})}notifyWarning(...t){return this.notify({type:"warning",...jn(...t)})}notifyError(...t){return this.notify({type:"error",...jn(...t)})}notifyAndThrowError(t,...e){const n=jn(...e);throw n.message??(n.message=t.message),this.notifyError(n),t}async notify(t){const e=new Bn.NotificationComponentConstructor;e.notification=t,e instanceof dt&&(this.notifications.add(e),this.requestUpdate()),await e.show(),e instanceof dt&&(this.notifications.delete(e),this.requestUpdate()),Bn.shownNotifications.add(t)}createRenderRoot(){return this}static get styles(){return u`:host{z-index:var(--lit-notification-host-z-index,8);position:fixed;inset-block-end:0;inset-inline:0;max-height:max(50vh,50%);display:grid;justify-items:center;justify-content:center;gap:.5vh;overflow:hidden}`}get template(){return W`${this.notifications}`}};var Gn;Wn.shownNotifications=new Set,Wn.notificationComponent=()=>t=>{Bn.NotificationComponentConstructor=t},ue([me()],Wn.prototype,"notifications",void 0),ue([Pe()],Wn,"instance",void 0),Wn=Bn=ue([ae("lit-notification-host"),t=>{Te(t)}],Wn),Object.defineProperty(globalThis,"notificationHost",{get:()=>Wn.instance,configurable:!1}),Tn.connectingHooks.add((async()=>{globalThis.manifest=void 0;const t=globalThis.document.head.querySelector("link[rel=manifest]");try{if(t){const e=await fetch(t.href),n=await e.text();globalThis.manifest=JSON.parse(n)}}catch{}}));Gn=class{static get serviceWorkerContainer(){return navigator.serviceWorker}static async registerServiceWorker(t){try{await(this.serviceWorkerContainer?.register(t,{scope:"/"})),await this.requestInstallation()}catch(t){console.error(t)}}static async unregisterServiceWorkers(){const t=await(this.serviceWorkerContainer?.getRegistrations())||[];for(const e of t)e.unregister()}static async requestInstallation(){if(!1===(void 0!==this.pwaPrompt))return;await(this.pwaPrompt?.prompt());const t=await(this.pwaPrompt?.userChoice);if("accepted"!==t?.outcome)throw new Error("PWA installation was not accepted")}},window.addEventListener("beforeinstallprompt",(t=>{Gn.pwaPrompt=t,t.preventDefault()})),Se.inject(u`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;font-size:var(--mo-font-size-m);box-sizing:border-box}html{width:100%;height:100%}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225)!important;--mo-color-foreground:black!important;--mo-color-foreground-transparent:rgb(48, 48, 48)!important;--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78;--mo-color-error-base:176,0,32;--mo-field-background:rgba(var(--mo-color-foreground-base), 0.09);--mo-alternating-background:rgba(var(--mo-color-foreground-base), 0.05)}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20)!important;--mo-color-surface-base:42,43,47;--mo-color-foreground:white!important;--mo-color-foreground-transparent:rgb(220, 220, 220)!important;--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3;--mo-color-error-base:255,61,96}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px!important;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-error:rgb(var(--mo-color-error-base))!important;--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87)!important;--mo-color-gray:rgb(var(--mo-color-gray-base))!important;--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5)!important;--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))!important;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}`)})()})();
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA"}
|
package/dist/index.js
CHANGED