@maveio/components 0.0.146 → 0.0.148

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.
Files changed (148) hide show
  1. package/dist/chunk-2C6BGW6H.js +10 -0
  2. package/dist/chunk-3GACH56T.js +20 -0
  3. package/dist/chunk-3GVDBAOP.cjs +1 -8
  4. package/dist/chunk-3PLBZPRP.js +1 -0
  5. package/dist/{chunk-AEKWMZ2I.js → chunk-3R7TX6NC.js} +2 -6
  6. package/dist/chunk-4GTAVYTC.cjs +93 -0
  7. package/dist/chunk-5KQJTT3P.cjs +24 -0
  8. package/dist/chunk-5NKBIUPL.cjs +1 -2
  9. package/dist/chunk-5NSCV6C2.cjs +53 -0
  10. package/dist/chunk-5OEIKFAN.js +93 -0
  11. package/dist/chunk-5STN56TL.cjs +2 -6
  12. package/dist/chunk-5UMTSGHI.cjs +37 -0
  13. package/dist/chunk-6NL5KOSJ.js +1209 -0
  14. package/dist/chunk-7LKYLXK5.js +104 -0
  15. package/dist/chunk-A4GZBQEB.js +53 -0
  16. package/dist/{chunk-JG6DKVEF.js → chunk-B6XMC3AJ.js} +2 -10
  17. package/dist/chunk-BRZI5I43.cjs +3 -8
  18. package/dist/chunk-COWZ7GYF.cjs +1 -0
  19. package/dist/chunk-CUGRXOA2.js +24 -0
  20. package/dist/chunk-DOR5AD7J.js +35 -0
  21. package/dist/{chunk-26S26OLO.cjs → chunk-FUBUUA7Y.cjs} +2 -10
  22. package/dist/chunk-GO5AXJUO.js +1 -6
  23. package/dist/chunk-H57FX4I6.cjs +9 -0
  24. package/dist/{chunk-R2QJ6RON.js → chunk-HMISRRKC.js} +2 -6
  25. package/dist/chunk-IPA5Q26W.cjs +1 -0
  26. package/dist/chunk-JBV2AYRP.js +2 -3
  27. package/dist/chunk-KCZRQ4AS.cjs +1 -10
  28. package/dist/chunk-KDE6VE72.js +37 -0
  29. package/dist/chunk-KTP5LV2E.cjs +1 -0
  30. package/dist/chunk-LCTGZL3L.js +2 -4
  31. package/dist/chunk-LG2O4WV2.cjs +2 -6
  32. package/dist/chunk-MAOTHFPC.js +1 -0
  33. package/dist/chunk-MK4VIJT3.js +1 -3
  34. package/dist/chunk-MMHEOMF5.js +1 -3
  35. package/dist/chunk-MS5NFI3Q.js +9 -0
  36. package/dist/{chunk-5XZY6X6O.cjs → chunk-N53P7KPA.cjs} +3 -14
  37. package/dist/chunk-NDDFZTBA.js +1 -0
  38. package/dist/chunk-O4SVRXZ6.cjs +20 -0
  39. package/dist/chunk-OOYAQ2X4.cjs +1209 -0
  40. package/dist/chunk-OZVIXWBD.cjs +104 -0
  41. package/dist/chunk-P4RYGSTU.cjs +35 -0
  42. package/dist/chunk-Q22T22LT.cjs +9 -0
  43. package/dist/chunk-RRCW5BBR.cjs +2 -8
  44. package/dist/chunk-SDKTBB4N.cjs +1 -5
  45. package/dist/chunk-TI75IJ2E.cjs +1 -7
  46. package/dist/chunk-TIOUPJWD.js +1 -0
  47. package/dist/chunk-TPP5OQFR.js +1 -5
  48. package/dist/chunk-U6N2SUDH.js +7 -0
  49. package/dist/chunk-URZX7GGF.cjs +7 -0
  50. package/dist/chunk-VW7IKXVI.cjs +1 -0
  51. package/dist/chunk-WE5NUDRY.js +0 -1
  52. package/dist/chunk-WLVMWIKH.cjs +10 -0
  53. package/dist/chunk-XSYWRQWB.js +1 -7
  54. package/dist/chunk-ZXCHPIGV.js +3 -6
  55. package/dist/components/clip.cjs +1 -21
  56. package/dist/components/clip.js +1 -12
  57. package/dist/components/files.cjs +1 -18
  58. package/dist/components/files.js +1 -9
  59. package/dist/components/img.cjs +1 -15
  60. package/dist/components/img.js +1 -6
  61. package/dist/components/list.cjs +1 -27
  62. package/dist/components/list.js +1 -18
  63. package/dist/components/player.cjs +1 -24
  64. package/dist/components/player.js +1 -15
  65. package/dist/components/pop.cjs +1 -30
  66. package/dist/components/pop.js +1 -17
  67. package/dist/components/text.cjs +1 -19
  68. package/dist/components/text.js +1 -10
  69. package/dist/components/upload.cjs +1 -20
  70. package/dist/components/upload.js +1 -11
  71. package/dist/config.cjs +1 -15
  72. package/dist/config.js +1 -2
  73. package/dist/embed/api.cjs +1 -12
  74. package/dist/embed/api.d.cts +1 -1
  75. package/dist/embed/api.d.ts +1 -1
  76. package/dist/embed/api.js +1 -3
  77. package/dist/embed/caption.cjs +1 -13
  78. package/dist/embed/caption.js +1 -4
  79. package/dist/embed/controller.cjs +1 -18
  80. package/dist/embed/controller.js +1 -5
  81. package/dist/embed/socket.cjs +1 -9
  82. package/dist/embed/socket.js +1 -3
  83. package/dist/generated/locales/de.cjs +1 -7
  84. package/dist/generated/locales/de.js +1 -5
  85. package/dist/generated/locales/en.cjs +1 -7
  86. package/dist/generated/locales/en.js +1 -5
  87. package/dist/generated/locales/fr.cjs +1 -7
  88. package/dist/generated/locales/fr.js +1 -5
  89. package/dist/generated/locales/nl.cjs +1 -7
  90. package/dist/generated/locales/nl.js +1 -5
  91. package/dist/index.cjs +1 -68
  92. package/dist/index.js +1 -27
  93. package/dist/lottie-player.esm-BBAKIFYQ.js +283 -0
  94. package/dist/lottie-player.esm-OYBEUNQX.cjs +283 -0
  95. package/dist/react.cjs +1 -50
  96. package/dist/react.js +1 -33
  97. package/dist/themes/default.cjs +12 -16
  98. package/dist/themes/default.js +12 -14
  99. package/dist/themes/dolphin.cjs +31 -19
  100. package/dist/themes/dolphin.js +31 -17
  101. package/dist/themes/loader.cjs +1 -13
  102. package/dist/themes/loader.js +1 -4
  103. package/dist/themes/synthwave.cjs +31 -19
  104. package/dist/themes/synthwave.js +31 -17
  105. package/dist/utils/localization.cjs +1 -24
  106. package/dist/utils/localization.js +1 -3
  107. package/dist/utils/mave_element.cjs +1 -14
  108. package/dist/utils/mave_element.js +1 -5
  109. package/dist/utils/origin.cjs +1 -11
  110. package/dist/utils/origin.d.cts +1 -1
  111. package/dist/utils/origin.d.ts +1 -1
  112. package/dist/utils/origin.js +1 -2
  113. package/dist/utils/video_events.cjs +1 -11
  114. package/dist/utils/video_events.js +1 -2
  115. package/package.json +4 -4
  116. package/dist/chunk-3TMDPPCI.cjs +0 -8
  117. package/dist/chunk-4OU2YZKL.cjs +0 -30
  118. package/dist/chunk-5C42H643.cjs +0 -10
  119. package/dist/chunk-5Y5M5ND5.cjs +0 -10
  120. package/dist/chunk-7NWFIY3O.cjs +0 -1218
  121. package/dist/chunk-A3PLFLYH.cjs +0 -46
  122. package/dist/chunk-B6BTCKVU.js +0 -16
  123. package/dist/chunk-BTPWX6DH.cjs +0 -17
  124. package/dist/chunk-CF5QCOBL.js +0 -14
  125. package/dist/chunk-E26F4RGL.js +0 -6
  126. package/dist/chunk-HZNWCQWL.js +0 -97
  127. package/dist/chunk-IFM2GZME.js +0 -55
  128. package/dist/chunk-JJNBEE42.js +0 -1216
  129. package/dist/chunk-KGTAAGUE.cjs +0 -65
  130. package/dist/chunk-LDQKDXUQ.js +0 -48
  131. package/dist/chunk-MHDCCX7Q.cjs +0 -34
  132. package/dist/chunk-MS3Q4WGR.cjs +0 -6
  133. package/dist/chunk-NR4EI5W5.js +0 -30
  134. package/dist/chunk-OLR7D3Q6.cjs +0 -15
  135. package/dist/chunk-OPVGT665.cjs +0 -114
  136. package/dist/chunk-P6GNG5DI.cjs +0 -18
  137. package/dist/chunk-QJP5WK2K.js +0 -44
  138. package/dist/chunk-R3PDNBU4.js +0 -3
  139. package/dist/chunk-RNHNE3HL.cjs +0 -101
  140. package/dist/chunk-UEEYC5OJ.cjs +0 -16
  141. package/dist/chunk-VOXORDG3.js +0 -8
  142. package/dist/chunk-XD2KSQMH.cjs +0 -50
  143. package/dist/chunk-XEE2D3NF.js +0 -28
  144. package/dist/chunk-ZFM2N7YP.js +0 -15
  145. package/dist/chunk-ZFZIJ4A5.js +0 -3
  146. package/dist/chunk-ZWBOG4VV.js +0 -114
  147. package/dist/lottie-player.esm-4DQZVY6A.cjs +0 -289
  148. package/dist/lottie-player.esm-5KD3VGXP.js +0 -287
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk3GVDBAOP_cjs = require('./chunk-3GVDBAOP.cjs');
4
- var chunkOLR7D3Q6_cjs = require('./chunk-OLR7D3Q6.cjs');
5
- var chunkUEEYC5OJ_cjs = require('./chunk-UEEYC5OJ.cjs');
6
- var chunk26S26OLO_cjs = require('./chunk-26S26OLO.cjs');
7
- var chunkKGTAAGUE_cjs = require('./chunk-KGTAAGUE.cjs');
8
- var chunk5Y5M5ND5_cjs = require('./chunk-5Y5M5ND5.cjs');
9
-
10
- var p,S,u,x,b,v,n=class extends chunkKGTAAGUE_cjs.i{constructor(){super(...arguments);chunk5Y5M5ND5_cjs.e(this,p);chunk5Y5M5ND5_cjs.e(this,u);chunk5Y5M5ND5_cjs.e(this,b);this._clickable=!0;this._autoscroll=!0;this._lastScrollTime=0;this.currentTime=0;}get embed(){return this._embedId}set embed(t){this._embedId!=t&&(this._embedId=t,this.captionController=new chunk3GVDBAOP_cjs.a(this,this.embed),this.reset(),this.requestUpdate("embed"));}get clickable(){return this._clickable}set clickable(t){this._clickable!=t&&(typeof t=="string"?this._clickable=t==="true"||t==="":this._clickable=t,this.requestUpdate("clickable"));}get autoscroll(){return this._autoscroll}set autoscroll(t){this._autoscroll!=t&&(typeof t=="string"?this._autoscroll=t==="true"||t==="":this._autoscroll=t,this.requestUpdate("autoscroll"));}get wordIndex(){return this._wordIndex}set wordIndex(t){if(this._wordIndex!=t&&(this._wordIndex=t,this.autoscroll)){let e=this.shadowRoot?.querySelector(`[data-word-id="word-${this.segmentIndex}-${this.wordIndex}"]`);if(e&&this._lastScrollTime+2500<Date.now()){let r=this.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.top-r.top;if(s>0){let a=this.scrollTop+s;chunk5Y5M5ND5_cjs.f(this,p,S).call(this,this,a-i.height/2);}}}}get segmentIndex(){return this._segmentIndex}set segmentIndex(t){this._segmentIndex!=t&&(this._segmentIndex=t);}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",chunk5Y5M5ND5_cjs.f(this,u,x).bind(this)),this.reset();}reset(){this.loop=!1,this.currentTime=0,this.wordIndex=0,this.segmentIndex=0;let t=document.querySelector(`mave-player[embed="${this.embed}"]`);t&&(this.player=t,t.addEventListener("play",()=>{this.loop=!0,this.loopUpdateTime();}),t.addEventListener("pause",()=>{this.loop=!1;}));}updateTime(){this.currentTime=this.player.currentTime;}loopUpdateTime(){this.updateTime(),setTimeout(()=>{this.loop&&requestAnimationFrame(this.loopUpdateTime.bind(this));},10);}inRange({start:t,end:e},r,i,s){if(this.currentTime>=t&&this.currentTime<=e)return s&&(this.wordIndex=s),i&&(this.segmentIndex=i),r||!0}segmentStyle(){return this.clickable?{cursor:"pointer"}:{}}wordStyle(t){return t?{"background-color":this.highlight}:{}}render(){return this.captionController?this.captionController.render({complete:t=>(this.captions=t,chunkKGTAAGUE_cjs.c`
11
- <div>
12
- ${this.captions.segments.map((e,r)=>chunkKGTAAGUE_cjs.c`
13
- <p
14
- data-segment-id="segment-${r}"
15
- style=${chunkUEEYC5OJ_cjs.a(this.segmentStyle())}
16
- @click=${this.clickable?chunk5Y5M5ND5_cjs.f(this,b,v):chunkKGTAAGUE_cjs.f}
17
- part=${chunkOLR7D3Q6_cjs.a(this.inRange(e,"segment"))}
18
- x-caption-segment-start="${e.start}"
19
- x-caption-segment-end="${e.end}"
20
- >
21
- ${e.words.map((i,s)=>chunkKGTAAGUE_cjs.c`
22
- <span
23
- data-word-id="word-${r}-${s}"
24
- style=${chunkUEEYC5OJ_cjs.a(this.wordStyle(this.inRange(i)))}
25
- part=${chunkOLR7D3Q6_cjs.a(this.inRange(i,"word",r,s))}
26
- x-caption-word-start="${i.start}"
27
- x-caption-word-end="${i.end}"
28
- >${i.word.trim()}</span
29
- >
30
- `)}
31
- </p>
32
- `)}
33
- </div>
34
- `)}):chunkKGTAAGUE_cjs.f}};p=new WeakSet,S=function(t,e,r=500){let i=this.scrollTop,s=e-i,a=null,g=!1;function T(o){a||(a=o);let I=o-a,R=Math.min(I/r,1);t.scrollTop=i+s*E(R),I<r&&g?requestAnimationFrame(T):g=!1;}function E(o){return o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2}g=!0,requestAnimationFrame(T);},u=new WeakSet,x=function(){this._lastScrollTime=Date.now();},b=new WeakSet,v=function(t){if(this.clickable){let e=t.target.closest("p");if(e&&this.player){let r=e.getAttribute("x-caption-segment-start");this.player.currentTime=Number(r),this.player.paused&&this.player.play();}}},n.styles=chunkKGTAAGUE_cjs.h`
35
- :host {
36
- display: block;
37
- width: 100%;
38
- height: 100%;
39
- }
40
-
41
- [part='word'] {
42
- background-color: rgba(255, 210, 42, 0.5);
43
- }
44
- `,chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],n.prototype,"embed",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],n.prototype,"highlight",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],n.prototype,"clickable",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],n.prototype,"autoscroll",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.b()],n.prototype,"currentTime",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.b()],n.prototype,"captions",2);window&&window.customElements&&(window.customElements.get("mave-text")||window.customElements.define("mave-text",n));
45
-
46
- exports.a = n;
@@ -1,16 +0,0 @@
1
- import { b as b$1 } from './chunk-JG6DKVEF.js';
2
- import { b } from './chunk-XSYWRQWB.js';
3
- import { a as a$2 } from './chunk-VOXORDG3.js';
4
- import { a as a$1 } from './chunk-R2QJ6RON.js';
5
- import { h as h$1, c as c$1, f as f$2 } from './chunk-IFM2GZME.js';
6
- import { c, e, f as f$1 } from './chunk-ZFZIJ4A5.js';
7
-
8
- var p,w,f,g,a,h,u=class extends a$2{constructor(){super(...arguments);e(this,p);e(this,f);e(this,a);this.order="newest";this.embedController=new b(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(t,o){super.requestUpdate(t,o),t==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})||[]}updated(){this.shadowRoot&&b$1(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(t){return this._collection?.videos?.some(o=>o.id===t)}getNextForEmbed(t){let o=f$1(this,p,w).call(this),e=o.findIndex(n=>n.id===t);if(e!==-1)return o[e+1]}render(){return c$1`
9
- ${this.embedController.render({pending:this.renderPending,error:t=>c$1`<p>${t instanceof Error?t.message:f$2}</p>`,complete:t=>{if(this._collection=t,!t)return this.renderPending();if(t.error)return console.warn(t.error);let o=this._slottedChildren.map(e=>{function n(){let i;return e.nodeName==="TEMPLATE"?i=e.content.cloneNode(!0):i=e.cloneNode(!0),i}if(e.getAttribute("name")=="list-title"){let i=n();return i.textContent=this._collection?.name,c$1`${i}`}if(e.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let i=n(),r=i.querySelector('[slot="root-link"]');return r&&(r.addEventListener("click",c=>{c.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),r.removeAttribute("slot")),c$1`${i}`}if(e.getAttribute("name")=="mave-list-folder"){let i=this._collection.collections?.map(r=>{let c=n(),s=c.querySelector('[slot="folder-link"]');return [e,s].forEach(d=>{d&&(d.addEventListener("click",E=>{E.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:r.id}),this.embedController.embed=r.id;}),d.removeAttribute("slot"));}),f$1(this,a,h).call(this,c,'[slot="folder-title"]',r.name),typeof r.video_count=="number"&&f$1(this,a,h).call(this,c,'[slot="folder-count"]',r.video_count.toString()),c$1`${c}`});return c$1`${i}`}if(e.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(e.hasAttribute("name")?e.getAttribute("name"):"")&&e.nodeName=="TEMPLATE"){let i=f$1(this,p,w).call(this).map((r,c)=>{let s=n(),d=c+1;f$1(this,a,h).call(this,s,'[slot="item-title"]',r.name),f$1(this,a,h).call(this,s,'[slot="item-position"]',d.toString()),f$1(this,a,h).call(this,s,'[slot="item-duration"]',this.durationToTime(r.duration)),f$1(this,f,g).call(this,s,"mave-clip",r.id),f$1(this,f,g).call(this,s,"mave-player",r.id),f$1(this,f,g).call(this,s,"mave-img",r.id);let E=s.querySelector("mave-clip"),S=s.querySelector('[slot="item-title"]'),P=s.querySelector("mave-img");return [E,S,P,s].forEach(q=>{q?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:r.id,position:d});});}),c$1`${s}`});return c$1`${i}`}}).filter(e=>e);return c$1`${this._stylesheets} ${o}`}})}
10
- `}renderPending(){return c$1`<slot style="display: none"></slot>`}};p=new WeakSet,w=function(){if(!this._collection)return [];let t=this._collection.videos;return this.order=="newest"&&(t=this._collection.videos?.sort((o,e)=>e.created-o.created)),this.order=="oldest"&&(t=this._collection.videos?.sort((o,e)=>o.created-e.created)),this.order=="az"&&(t=this._collection.videos?.sort((o,e)=>o.name.localeCompare(e.name))),this.order=="za"&&(t=this._collection.videos?.sort((o,e)=>e.name.localeCompare(o.name))),t},f=new WeakSet,g=function(t,o,e){let n=t.querySelector(o);n&&(n.setAttribute("embed",e),n.removeAttribute("slot"));},a=new WeakSet,h=function(t,o,e){let n=t.querySelector(o);n&&(n.textContent=e,n.removeAttribute("slot"));},u.styles=h$1`
11
- :host {
12
- display: block;
13
- }
14
- `,c([a$1()],u.prototype,"token",2),c([a$1()],u.prototype,"order",2);window&&window.customElements&&(window.customElements.get("mave-list")||window.customElements.define("mave-list",u));
15
-
16
- export { u as a };
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk5C42H643_cjs = require('./chunk-5C42H643.cjs');
4
- var chunkKGTAAGUE_cjs = require('./chunk-KGTAAGUE.cjs');
5
-
6
- var e=class extends chunk5C42H643_cjs.a{get poster(){return `${this.cdn_root}/${this.embedId}/poster.webp`}render(){return chunkKGTAAGUE_cjs.c`<img src=${this.poster} />`}};e.styles=chunkKGTAAGUE_cjs.h`
7
- :host {
8
- display: block;
9
- }
10
-
11
- img {
12
- width: 100%;
13
- max-height: 100vh;
14
- }
15
- `;window&&window.customElements&&(window.customElements.get("mave-img")||window.customElements.define("mave-img",e));
16
-
17
- exports.a = e;
@@ -1,14 +0,0 @@
1
- import { b, c, a } from './chunk-MMHEOMF5.js';
2
- import { e } from './chunk-IFM2GZME.js';
3
-
4
- var u="important",d=" !"+u,h=b(class extends c{constructor(s){if(super(s),s.type!==a.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((n,t)=>{let e=s[t];return e==null?n:n+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(s,[n]){let{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(n)),this.render(n);for(let e of this.ft)n[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in n){let r=n[e];if(r!=null){this.ft.add(e);let i=typeof r=="string"&&r.endsWith(d);e.includes("-")||i?t.setProperty(e,i?r.slice(0,-11):r,i?u:""):t[e]=r;}}return e}});/*! Bundled license information:
5
-
6
- lit-html/directives/style-map.js:
7
- (**
8
- * @license
9
- * Copyright 2018 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- *)
12
- */
13
-
14
- export { h as a };
@@ -1,6 +0,0 @@
1
- import { a as a$1 } from './chunk-R3PDNBU4.js';
2
- import { i, c, h } from './chunk-IFM2GZME.js';
3
-
4
- var l=["default","synthwave","dolphin"],a=class s{constructor(){this.themes=[];}static async get(t,i$1,d=!0){if(s.instance||(s.instance=new s),s.instance.themes.find(e=>e.name===t))return Promise.resolve(s.instance);s.instance.themes.push({name:t});try{if(d&&!l.includes(t)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${i$1}/${t}.css`,document.head.appendChild(e);}if(i$1&&!l.includes(t)){let{build:e}=await import(`${i$1}/${t}.js`);e(t,i,c,h);}else {let{build:e}=await import(`./${a$1()}themes/${t}.js`);e(t,i,c,h);}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(s.instance)}};
5
-
6
- export { a };
@@ -1,97 +0,0 @@
1
- import { a } from './chunk-R3PDNBU4.js';
2
-
3
- var M=t=>typeof t!="string"&&"strTag"in t,p=(t,e,o)=>{let s=t[0];for(let r=1;r<t.length;r++)s+=e[o?o[r-1]:r-1],s+=t[r];return s};var c=t=>M(t)?p(t.strings,t.values):t;var d="lit-localize-status";var x=class{constructor(e){this.__litLocalizeEventHandler=o=>{o.detail.status==="ready"&&this.host.requestUpdate();},this.host=e;}hostConnected(){window.addEventListener(d,this.__litLocalizeEventHandler);}hostDisconnected(){window.removeEventListener(d,this.__litLocalizeEventHandler);}},N=t=>t.addController(new x(t)),C=N;var W=()=>(t,e)=>(t.addInitializer(C),t);var u=class{constructor(){this.settled=!1,this.promise=new Promise((e,o)=>{this._resolve=e,this._reject=o;});}resolve(e){this.settled=!0,this._resolve(e);}reject(e){this.settled=!0,this._reject(e);}};var i=[];for(let t=0;t<256;t++)i[t]=(t>>4&15).toString(16)+(t&15).toString(16);function z(t){let e=0,o=8997,s=0,r=33826,n=0,a=40164,v=0,f=52210;for(let L=0;L<t.length;L++)o^=t.charCodeAt(L),e=o*435,s=r*435,n=a*435,v=f*435,n+=o<<8,v+=r<<8,s+=e>>>16,o=e&65535,n+=s>>>16,r=s&65535,f=v+(n>>>16)&65535,a=n&65535;return i[f>>8]+i[f&255]+i[a>>8]+i[a&255]+i[r>>8]+i[r&255]+i[o>>8]+i[o&255]}var F="",O="h",b="s";function A(t,e){return (e?O:b)+z(typeof t=="string"?t:t.join(F))}var y=new WeakMap,j=new Map;function H(t,e,o){if(t){let s=o?.id??X(e),r=t[s];if(r){if(typeof r=="string")return r;if("strTag"in r)return p(r.strings,e.values,r.values);{let n=y.get(r);return n===void 0&&(n=r.values,y.set(r,n)),{...r,values:n.map(a=>e.values[a])}}}}return c(e)}function X(t){let e=typeof t=="string"?t:t.strings,o=j.get(e);return o===void 0&&(o=A(e,typeof t!="string"&&!("strTag"in t)),j.set(e,o)),o}function _(t){window.dispatchEvent(new CustomEvent(d,{detail:t}));}var g="",E,R,h,T,P,l=new u;l.resolve();var m=0,U=t=>(S((e,o)=>H(P,e,o)),g=R=t.sourceLocale,h=new Set(t.targetLocales),h.add(t.sourceLocale),T=t.loadLocale,{getLocale:$,setLocale:k}),$=()=>g,k=t=>{if(t===(E??g))return l.promise;if(!h||!T)throw new Error("Internal error");if(!h.has(t))throw new Error("Invalid locale code");m++;let e=m;return E=t,l.settled&&(l=new u),_({status:"loading",loadingLocale:t}),(t===R?Promise.resolve({templates:void 0}):T(t)).then(s=>{m===e&&(g=t,E=void 0,P=s.templates,_({status:"ready",readyLocale:t}),l.resolve());},s=>{m===e&&(_({status:"error",errorLocale:t,errorMessage:s.toString()}),l.reject(s));}),l.promise};var q=c,V=!1;function S(t){if(V)throw new Error("lit-localize can only be configured once");q=t,V=!0;}var G=U({sourceLocale:"default",targetLocales:["en","nl","de","fr"],loadLocale:t=>import(`./${a()}generated/locales/${t}.js`)}),w=!1,D=class{constructor(e){this._onLoad=e=>{e.detail.status==="loading"?w=!1:e.detail.status==="ready"&&(w=!0),this.host.requestUpdate();};this.host=e,e.addController(this);}get loaded(){return w}set locale(e){this._locale!==e&&(G.setLocale(e),this.host.requestUpdate());}get locale(){return this._locale}hostConnected(){window.addEventListener("lit-localize-status",this._onLoad);}hostDisconnected(){window.removeEventListener("lit-localize-status",this._onLoad);}};/*! Bundled license information:
4
-
5
- @lit/localize/internal/str-tag.js:
6
- (**
7
- * @license
8
- * Copyright 2021 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- *)
11
-
12
- @lit/localize/internal/default-msg.js:
13
- (**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- *)
18
-
19
- @lit/localize/internal/locale-status-event.js:
20
- (**
21
- * @license
22
- * Copyright 2021 Google LLC
23
- * SPDX-License-Identifier: BSD-3-Clause
24
- *)
25
-
26
- @lit/localize/internal/types.js:
27
- (**
28
- * @license
29
- * Copyright 2021 Google LLC
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- *)
32
-
33
- @lit/localize/internal/localized-controller.js:
34
- (**
35
- * @license
36
- * Copyright 2021 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- *)
39
-
40
- @lit/localize/internal/localized-decorator.js:
41
- (**
42
- * @license
43
- * Copyright 2021 Google LLC
44
- * SPDX-License-Identifier: BSD-3-Clause
45
- *)
46
-
47
- @lit/localize/internal/deferred.js:
48
- (**
49
- * @license
50
- * Copyright 2020 Google LLC
51
- * SPDX-License-Identifier: BSD-3-Clause
52
- *)
53
-
54
- @lit/localize/internal/fnv1a64.js:
55
- (**
56
- * @license
57
- * Copyright 2014 Travis Webb
58
- * SPDX-License-Identifier: MIT
59
- *)
60
-
61
- @lit/localize/internal/id-generation.js:
62
- (**
63
- * @license
64
- * Copyright 2020 Google LLC
65
- * SPDX-License-Identifier: BSD-3-Clause
66
- *)
67
-
68
- @lit/localize/internal/runtime-msg.js:
69
- (**
70
- * @license
71
- * Copyright 2021 Google LLC
72
- * SPDX-License-Identifier: BSD-3-Clause
73
- *)
74
-
75
- @lit/localize/init/runtime.js:
76
- (**
77
- * @license
78
- * Copyright 2021 Google LLC
79
- * SPDX-License-Identifier: BSD-3-Clause
80
- *)
81
-
82
- @lit/localize/init/transform.js:
83
- (**
84
- * @license
85
- * Copyright 2021 Google LLC
86
- * SPDX-License-Identifier: BSD-3-Clause
87
- *)
88
-
89
- @lit/localize/lit-localize.js:
90
- (**
91
- * @license
92
- * Copyright 2020 Google LLC
93
- * SPDX-License-Identifier: BSD-3-Clause
94
- *)
95
- */
96
-
97
- export { W as a, q as b, G as c, D as d };
@@ -1,55 +0,0 @@
1
- var x=globalThis,L=x.trustedTypes,rt=L?L.createPolicy("lit-html",{createHTML:r=>r}):void 0,Q="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,X="?"+$,Ut=`<${X}>`,A=document,O=()=>A.createComment(""),R=r=>r===null||typeof r!="object"&&typeof r!="function",ct=Array.isArray,pt=r=>ct(r)||typeof r?.[Symbol.iterator]=="function",G=`[
2
- \f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ot=/-->/g,nt=/>/g,S=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,at=/"/g,dt=/^(?:script|style|textarea|title)$/i,ut=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zt=ut(1),Ft=ut(2),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,g=A.createTreeWalker(A,129);function $t(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return rt!==void 0?rt.createHTML(t):t}var _t=(r,t)=>{let e=r.length-1,s=[],i,o=t===2?"<svg>":"",n=U;for(let d=0;d<e;d++){let h=r[d],l,p,a=-1,u=0;for(;u<h.length&&(n.lastIndex=u,p=n.exec(h),p!==null);)u=n.lastIndex,n===U?p[1]==="!--"?n=ot:p[1]!==void 0?n=nt:p[2]!==void 0?(dt.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=S):p[3]!==void 0&&(n=S):n===S?p[0]===">"?(n=i??U,a=-1):p[1]===void 0?a=-2:(a=n.lastIndex-p[2].length,l=p[1],n=p[3]===void 0?S:p[3]==='"'?at:ht):n===at||n===ht?n=S:n===ot||n===nt?n=U:(n=S,i=void 0);let f=n===S&&r[d+1].startsWith("/>")?" ":"";o+=n===U?h+Ut:a>=0?(s.push(l),h.slice(0,a)+Q+h.slice(a)+$+f):h+$+(a===-2?d:f);}return [$t(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),s]},T=class r{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0,d=t.length-1,h=this.parts,[l,p]=_t(t,e);if(this.el=r.createElement(l,s),g.currentNode=this.el.content,e===2){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes);}for(;(i=g.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(let a of i.getAttributeNames())if(a.endsWith(Q)){let u=p[n++],f=i.getAttribute(a).split($),k=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:k[2],strings:f,ctor:k[1]==="."?j:k[1]==="?"?D:k[1]==="@"?B:b}),i.removeAttribute(a);}else a.startsWith($)&&(h.push({type:6,index:o}),i.removeAttribute(a));if(dt.test(i.tagName)){let a=i.textContent.split($),u=a.length-1;if(u>0){i.textContent=L?L.emptyScript:"";for(let f=0;f<u;f++)i.append(a[f],O()),g.nextNode(),h.push({type:2,index:++o});i.append(a[u],O());}}}else if(i.nodeType===8)if(i.data===X)h.push({type:2,index:o});else {let a=-1;for(;(a=i.data.indexOf($,a+1))!==-1;)h.push({type:7,index:o}),a+=$.length-1;}o++;}}static createElement(t,e){let s=A.createElement("template");return s.innerHTML=t,s}};function v(r,t,e=r,s){if(t===E)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,o=R(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=v(r,i._$AS(r,t.values),i,s)),t}var z=class{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){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),n=0,d=0,h=s[0];for(;h!==void 0;){if(n===h.index){let l;h.type===2?l=new w(o,o.nextSibling,this,t):h.type===1?l=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(l=new I(o,this,t)),this._$AV.push(l),h=s[++d];}n!==h?.index&&(o=g.nextNode(),n++);}return g.currentNode=A,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++;}},w=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),R(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pt(t)?this.k(t):this._(t);}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t));}_(t){this._$AH!==c&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=T.createElement($t(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else {let o=new z(i,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o;}}_$AC(t){let e=lt.get(t.strings);return e===void 0&&lt.set(t.strings,e=new T(t)),e}k(t){ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let o of t)i===e.length?e.push(s=new r(this.S(O()),this.S(O()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},b=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c;}_$AI(t,e=this,s,i){let o=this.strings,n=!1;if(o===void 0)t=v(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else {let d=t,h,l;for(t=o[0],h=0;h<o.length-1;h++)l=v(this,d[s+h],e,h),l===E&&(l=this._$AH[h]),n||(n=!R(l)||l!==this._$AH[h]),l===c?t=c:t!==c&&(t+=(l??"")+o[h+1]),this._$AH[h]=l;}n&&!i&&this.j(t);}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},j=class extends b{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===c?void 0:t;}},D=class extends b{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c);}},B=class extends b{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5;}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===E)return;let s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},I=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t);}},Gt={P:Q,A:$,C:X,M:1,L:_t,R:z,D:pt,V:v,I:w,H:b,N:D,U:B,B:j,F:I},xt=x.litHtmlPolyfillSupport;xt?.(T,w),(x.litHtmlVersions??(x.litHtmlVersions=[])).push("3.1.2");var ft=(r,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let o=e?.renderBefore??null;s._$litPart$=i=new w(t.insertBefore(O(),o),o,void 0,e??{});}return i._$AI(r),i};var W=globalThis,V=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),mt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(V&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&mt.set(e,t));}return t}toString(){return this.cssText}},yt=r=>new M(typeof r=="string"?r:r+"",void 0,Y),Ot=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new M(e,r,Y)},tt=(r,t)=>{if(V)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=W.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s);}},q=V?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return yt(e)})(r):r;var{is:Rt,defineProperty:Tt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:Nt,getOwnPropertySymbols:Ht,getPrototypeOf:kt}=Object,m=globalThis,St=m.trustedTypes,Lt=St?St.emptyScript:"",zt=m.reactiveElementPolyfillSupport,N=(r,t)=>r,et={toAttribute(r,t){switch(t){case Boolean:r=r?Lt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r);}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r);}catch{e=null;}}return e}},At=(r,t)=>!Rt(r,t),gt={attribute:!0,type:String,converter:et,reflect:!1,hasChanged:At};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Tt(this.prototype,t,i);}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=Mt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n;}};return {get(){return i?.call(this)},set(n){let d=i?.call(this);o.call(this,n),this.requestUpdate(t,d,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??gt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;let t=kt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){let e=this.properties,s=[...Nt(e),...Ht(e)];for(let i of s)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i);}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(q(i));}else t!==void 0&&e.push(q(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this));}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return tt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.());}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.());}attributeChangedCallback(t,e,s){this._$AK(t,s);}_$EC(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:et).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:et;this._$Em=i,this[i]=n.fromAttribute(e,o.type),this._$Em=null;}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??At)(this[t],e))return;this.P(t,e,s);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o);}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[N("elementProperties")]=new Map,_[N("finalized")]=new Map,zt?.({ReactiveElement:_}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");var P=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;let t=super.createRenderRoot();return (e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ft(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return E}};P._$litElement$=!0,P["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:P});var jt=globalThis.litElementPolyfillSupport;jt?.({LitElement:P});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");var K=globalThis,Z=K.ShadowRoot&&(K.ShadyCSS===void 0||K.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Et=new WeakMap,J=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Et.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Et.set(e,t));}return t}toString(){return this.cssText}},bt=r=>new J(typeof r=="string"?r:r+"",void 0,vt);var st=(r,t)=>{if(Z)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=K.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s);}},F=Z?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return bt(e)})(r):r;var {is:Dt,defineProperty:Bt,getOwnPropertyDescriptor:It,getOwnPropertyNames:Wt,getOwnPropertySymbols:Vt,getPrototypeOf:qt}=Object,y=globalThis,Ct=y.trustedTypes,Kt=Ct?Ct.emptyScript:"",Jt=y.reactiveElementPolyfillSupport,H=(r,t)=>r,it={toAttribute(r,t){switch(t){case Boolean:r=r?Kt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r);}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r);}catch{e=null;}}return e}},Pt=(r,t)=>!Dt(r,t),wt={attribute:!0,type:String,converter:it,reflect:!1,hasChanged:Pt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.litPropertyMetadata=new WeakMap);var C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=wt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Bt(this.prototype,t,i);}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=It(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n;}};return {get(){return i?.call(this)},set(n){let d=i?.call(this);o.call(this,n),this.requestUpdate(t,d,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??wt}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;let t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){let e=this.properties,s=[...Wt(e),...Vt(e)];for(let i of s)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i);}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(F(i));}else t!==void 0&&e.push(F(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this));}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return st(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.());}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.());}attributeChangedCallback(t,e,s){this._$AK(t,s);}_$EC(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:it).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:it;this._$Em=i,this[i]=n.fromAttribute(e,o.type),this._$Em=null;}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??Pt)(this[t],e))return;this.P(t,e,s);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o);}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[H("elementProperties")]=new Map,C[H("finalized")]=new Map,Jt?.({ReactiveElement:C}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.0.4");/*! Bundled license information:
4
-
5
- lit-html/lit-html.js:
6
- (**
7
- * @license
8
- * Copyright 2017 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- *)
11
-
12
- @lit/reactive-element/css-tag.js:
13
- (**
14
- * @license
15
- * Copyright 2019 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- *)
18
-
19
- @lit/reactive-element/reactive-element.js:
20
- (**
21
- * @license
22
- * Copyright 2017 Google LLC
23
- * SPDX-License-Identifier: BSD-3-Clause
24
- *)
25
-
26
- lit-element/lit-element.js:
27
- (**
28
- * @license
29
- * Copyright 2017 Google LLC
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- *)
32
-
33
- @lit/reactive-element/css-tag.js:
34
- (**
35
- * @license
36
- * Copyright 2019 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- *)
39
-
40
- @lit/reactive-element/reactive-element.js:
41
- (**
42
- * @license
43
- * Copyright 2017 Google LLC
44
- * SPDX-License-Identifier: BSD-3-Clause
45
- *)
46
-
47
- lit-html/is-server.js:
48
- (**
49
- * @license
50
- * Copyright 2022 Google LLC
51
- * SPDX-License-Identifier: BSD-3-Clause
52
- *)
53
- */
54
-
55
- export { it as a, Pt as b, Zt as c, Ft as d, E as e, c as f, Gt as g, Ot as h, P as i };