@e280/shiny 0.1.0-15 → 0.1.0-17

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 (277) hide show
  1. package/README.md +34 -80
  2. package/package.json +18 -25
  3. package/s/_archive/demo/utils/lipsum.ts +19 -0
  4. package/s/_archive/demo/views/showcase/style.css.ts +53 -0
  5. package/s/_archive/demo/views/showcase/view.ts +54 -0
  6. package/s/_archive/index.html.ts +34 -0
  7. package/s/_archive/index.ts +19 -0
  8. package/s/_archive/utils/states.ts +15 -0
  9. package/s/demo/main.bundle.ts +16 -0
  10. package/s/demo/main.css +71 -0
  11. package/s/demo/parts/exhibit.ts +15 -0
  12. package/s/demo/utils/lipsum.ts +1 -1
  13. package/s/demo/views/codebox/style.css.ts +43 -0
  14. package/s/demo/views/codebox/use-prism-styles.ts +13 -0
  15. package/s/demo/views/codebox/view.ts +39 -0
  16. package/s/demo/views/showcase/style.css.ts +42 -11
  17. package/s/demo/views/showcase/view.ts +41 -45
  18. package/s/demo/views/stylebox/view.ts +21 -0
  19. package/s/index.html.ts +42 -29
  20. package/s/index.ts +1 -17
  21. package/s/test.ts +5 -0
  22. package/s/theme/parts/core.ts +34 -0
  23. package/s/theme/parts/reset.ts +20 -0
  24. package/s/theme/parts/vars.ts +41 -0
  25. package/s/theme/theme-string.ts +15 -0
  26. package/s/theme/theme.css.ts +7 -0
  27. package/s/views/button/showcase.ts +43 -0
  28. package/s/views/button/style.css.ts +110 -0
  29. package/s/views/button/view.ts +30 -0
  30. package/s/views/copy/parts/copy-status.ts +3 -0
  31. package/s/views/copy/parts/determine-base-status.ts +7 -0
  32. package/s/views/copy/parts/use-copier.ts +20 -0
  33. package/s/views/copy/showcase.ts +54 -0
  34. package/s/views/copy/style.css.ts +46 -0
  35. package/s/views/copy/view.ts +58 -0
  36. package/s/views/drawer/control.ts +31 -0
  37. package/s/views/drawer/showcase.ts +83 -0
  38. package/s/views/drawer/style.css.ts +128 -0
  39. package/s/views/drawer/view.ts +76 -0
  40. package/s/views/tabs/control.ts +31 -0
  41. package/s/views/tabs/showcase.ts +89 -0
  42. package/s/views/tabs/style.css.ts +46 -0
  43. package/s/views/tabs/view.ts +66 -0
  44. package/x/demo/main.bundle.js +13 -0
  45. package/x/demo/main.bundle.js.map +1 -0
  46. package/x/demo/main.bundle.min.js +794 -0
  47. package/x/demo/main.bundle.min.js.map +7 -0
  48. package/x/demo/main.css +71 -0
  49. package/x/demo/parts/exhibit.d.ts +11 -0
  50. package/x/demo/parts/exhibit.js +2 -0
  51. package/x/demo/parts/exhibit.js.map +1 -0
  52. package/x/demo/utils/lipsum.d.ts +1 -1
  53. package/x/demo/utils/lipsum.js +1 -1
  54. package/x/demo/utils/lipsum.js.map +1 -1
  55. package/x/demo/views/codebox/style.css.js +42 -0
  56. package/x/demo/views/codebox/style.css.js.map +1 -0
  57. package/x/demo/views/codebox/use-prism-styles.d.ts +1 -0
  58. package/x/demo/views/codebox/use-prism-styles.js +12 -0
  59. package/x/demo/views/codebox/use-prism-styles.js.map +1 -0
  60. package/x/demo/views/codebox/view.d.ts +2 -0
  61. package/x/demo/views/codebox/view.js +29 -0
  62. package/x/demo/views/codebox/view.js.map +1 -0
  63. package/x/demo/views/showcase/style.css.js +42 -11
  64. package/x/demo/views/showcase/style.css.js.map +1 -1
  65. package/x/demo/views/showcase/view.d.ts +2 -7
  66. package/x/demo/views/showcase/view.js +39 -35
  67. package/x/demo/views/showcase/view.js.map +1 -1
  68. package/x/demo/views/stylebox/view.d.ts +3 -0
  69. package/x/demo/views/stylebox/view.js +13 -0
  70. package/x/demo/views/stylebox/view.js.map +1 -0
  71. package/x/index.d.ts +1 -11
  72. package/x/index.html +212 -62
  73. package/x/index.html.js +40 -26
  74. package/x/index.html.js.map +1 -1
  75. package/x/index.js +1 -11
  76. package/x/index.js.map +1 -1
  77. package/x/test.js +3 -0
  78. package/x/test.js.map +1 -0
  79. package/x/theme/parts/core.d.ts +1 -0
  80. package/x/theme/parts/core.js +33 -0
  81. package/x/theme/parts/core.js.map +1 -0
  82. package/x/theme/parts/reset.d.ts +1 -0
  83. package/x/theme/parts/reset.js +19 -0
  84. package/x/theme/parts/reset.js.map +1 -0
  85. package/x/theme/parts/vars.d.ts +1 -0
  86. package/x/theme/parts/vars.js +34 -0
  87. package/x/theme/parts/vars.js.map +1 -0
  88. package/x/theme/theme-string.d.ts +1 -0
  89. package/x/theme/theme-string.js +14 -0
  90. package/x/theme/theme-string.js.map +1 -0
  91. package/x/theme/theme.css.d.ts +1 -0
  92. package/x/theme/theme.css.js +4 -0
  93. package/x/theme/theme.css.js.map +1 -0
  94. package/x/views/button/showcase.d.ts +1 -0
  95. package/x/views/button/showcase.js +41 -0
  96. package/x/views/button/showcase.js.map +1 -0
  97. package/x/views/button/style.css.js +109 -0
  98. package/x/views/button/style.css.js.map +1 -0
  99. package/x/views/button/view.d.ts +4 -0
  100. package/x/views/button/view.js +22 -0
  101. package/x/views/button/view.js.map +1 -0
  102. package/x/views/copy/parts/copy-status.d.ts +1 -0
  103. package/x/views/copy/parts/copy-status.js +2 -0
  104. package/x/views/copy/parts/copy-status.js.map +1 -0
  105. package/x/views/copy/parts/determine-base-status.d.ts +1 -0
  106. package/x/views/copy/parts/determine-base-status.js +6 -0
  107. package/x/views/copy/parts/determine-base-status.js.map +1 -0
  108. package/x/views/copy/parts/use-copier.d.ts +6 -0
  109. package/x/views/copy/parts/use-copier.js +13 -0
  110. package/x/views/copy/parts/use-copier.js.map +1 -0
  111. package/x/views/copy/showcase.d.ts +1 -0
  112. package/x/views/copy/showcase.js +51 -0
  113. package/x/views/copy/showcase.js.map +1 -0
  114. package/x/views/copy/style.css.js.map +1 -0
  115. package/x/views/copy/view.d.ts +4 -0
  116. package/x/views/copy/view.js +47 -0
  117. package/x/views/copy/view.js.map +1 -0
  118. package/x/{components → views}/drawer/control.d.ts +1 -1
  119. package/x/views/drawer/control.js.map +1 -0
  120. package/x/views/drawer/showcase.d.ts +1 -0
  121. package/x/views/drawer/showcase.js +75 -0
  122. package/x/views/drawer/showcase.js.map +1 -0
  123. package/x/{components → views}/drawer/style.css.js +1 -0
  124. package/x/views/drawer/style.css.js.map +1 -0
  125. package/x/views/drawer/view.d.ts +6 -0
  126. package/x/views/drawer/view.js +60 -0
  127. package/x/views/drawer/view.js.map +1 -0
  128. package/x/{components → views}/tabs/control.d.ts +2 -2
  129. package/x/{components → views}/tabs/control.js +3 -3
  130. package/x/views/tabs/control.js.map +1 -0
  131. package/x/views/tabs/showcase.d.ts +1 -0
  132. package/x/views/tabs/showcase.js +86 -0
  133. package/x/views/tabs/showcase.js.map +1 -0
  134. package/x/{components → views}/tabs/style.css.js +5 -5
  135. package/x/views/tabs/style.css.js.map +1 -0
  136. package/x/views/tabs/view.d.ts +5 -0
  137. package/x/views/tabs/view.js +52 -0
  138. package/x/views/tabs/view.js.map +1 -0
  139. package/x/components/button/component.d.ts +0 -6
  140. package/x/components/button/component.js +0 -25
  141. package/x/components/button/component.js.map +0 -1
  142. package/x/components/button/showcase.d.ts +0 -1
  143. package/x/components/button/showcase.js +0 -116
  144. package/x/components/button/showcase.js.map +0 -1
  145. package/x/components/button/style.css.js +0 -62
  146. package/x/components/button/style.css.js.map +0 -1
  147. package/x/components/copy/component.d.ts +0 -376
  148. package/x/components/copy/component.js +0 -63
  149. package/x/components/copy/component.js.map +0 -1
  150. package/x/components/copy/showcase.d.ts +0 -1
  151. package/x/components/copy/showcase.js +0 -48
  152. package/x/components/copy/showcase.js.map +0 -1
  153. package/x/components/copy/style.css.js.map +0 -1
  154. package/x/components/drawer/component.d.ts +0 -387
  155. package/x/components/drawer/component.js +0 -73
  156. package/x/components/drawer/component.js.map +0 -1
  157. package/x/components/drawer/control.js.map +0 -1
  158. package/x/components/drawer/showcase.d.ts +0 -1
  159. package/x/components/drawer/showcase.js +0 -105
  160. package/x/components/drawer/showcase.js.map +0 -1
  161. package/x/components/drawer/style.css.js.map +0 -1
  162. package/x/components/example/component.d.ts +0 -371
  163. package/x/components/example/component.js +0 -22
  164. package/x/components/example/component.js.map +0 -1
  165. package/x/components/example/showcase.d.ts +0 -1
  166. package/x/components/example/showcase.js +0 -30
  167. package/x/components/example/showcase.js.map +0 -1
  168. package/x/components/example/style.css.js +0 -10
  169. package/x/components/example/style.css.js.map +0 -1
  170. package/x/components/foundation.css.d.ts +0 -1
  171. package/x/components/foundation.css.js +0 -14
  172. package/x/components/foundation.css.js.map +0 -1
  173. package/x/components/framework.d.ts +0 -8
  174. package/x/components/framework.js +0 -5
  175. package/x/components/framework.js.map +0 -1
  176. package/x/components/raw-components.d.ts +0 -12
  177. package/x/components/raw-components.js +0 -13
  178. package/x/components/raw-components.js.map +0 -1
  179. package/x/components/tabs/component.d.ts +0 -374
  180. package/x/components/tabs/component.js +0 -60
  181. package/x/components/tabs/component.js.map +0 -1
  182. package/x/components/tabs/control.js.map +0 -1
  183. package/x/components/tabs/showcase.d.ts +0 -1
  184. package/x/components/tabs/showcase.js +0 -167
  185. package/x/components/tabs/showcase.js.map +0 -1
  186. package/x/components/tabs/style.css.js.map +0 -1
  187. package/x/demo/demo.bundle.js +0 -42
  188. package/x/demo/demo.bundle.js.map +0 -1
  189. package/x/demo/demo.bundle.min.js +0 -893
  190. package/x/demo/demo.bundle.min.js.map +0 -7
  191. package/x/demo/lipsum.d.ts +0 -2
  192. package/x/demo/lipsum.js +0 -4
  193. package/x/demo/lipsum.js.map +0 -1
  194. package/x/demo/views/exhibit/style.css.d.ts +0 -2
  195. package/x/demo/views/exhibit/style.css.js +0 -84
  196. package/x/demo/views/exhibit/style.css.js.map +0 -1
  197. package/x/demo/views/exhibit/view.d.ts +0 -29
  198. package/x/demo/views/exhibit/view.js +0 -40
  199. package/x/demo/views/exhibit/view.js.map +0 -1
  200. package/x/demo/viewsets.d.ts +0 -17
  201. package/x/demo/viewsets.js +0 -9
  202. package/x/demo/viewsets.js.map +0 -1
  203. package/x/install/aura.bundle.js +0 -5
  204. package/x/install/aura.bundle.js.map +0 -1
  205. package/x/install/aura.bundle.min.js +0 -471
  206. package/x/install/aura.bundle.min.js.map +0 -7
  207. package/x/install/plain.bundle.d.ts +0 -1
  208. package/x/install/plain.bundle.js +0 -5
  209. package/x/install/plain.bundle.js.map +0 -1
  210. package/x/install/plain.bundle.min.js +0 -398
  211. package/x/install/plain.bundle.min.js.map +0 -7
  212. package/x/shiny.d.ts +0 -47
  213. package/x/shiny.js +0 -8
  214. package/x/shiny.js.map +0 -1
  215. package/x/tests.test.d.ts +0 -1
  216. package/x/tests.test.js +0 -3
  217. package/x/tests.test.js.map +0 -1
  218. package/x/themes/aura.css.d.ts +0 -1
  219. package/x/themes/aura.css.js +0 -85
  220. package/x/themes/aura.css.js.map +0 -1
  221. package/x/themes/index.barrel.d.ts +0 -2
  222. package/x/themes/index.barrel.js +0 -3
  223. package/x/themes/index.barrel.js.map +0 -1
  224. package/x/themes/index.d.ts +0 -2
  225. package/x/themes/index.js +0 -2
  226. package/x/themes/index.js.map +0 -1
  227. package/x/themes/infra/css-vars.d.ts +0 -15
  228. package/x/themes/infra/css-vars.js +0 -22
  229. package/x/themes/infra/css-vars.js.map +0 -1
  230. package/x/themes/plain.css.d.ts +0 -1
  231. package/x/themes/plain.css.js +0 -10
  232. package/x/themes/plain.css.js.map +0 -1
  233. /package/s/{components → _archive/components}/button/component.ts +0 -0
  234. /package/s/{components → _archive/components}/button/showcase.ts +0 -0
  235. /package/s/{components → _archive/components}/button/style.css.ts +0 -0
  236. /package/s/{components → _archive/components}/copy/component.ts +0 -0
  237. /package/s/{components → _archive/components}/copy/showcase.ts +0 -0
  238. /package/s/{components → _archive/components}/copy/style.css.ts +0 -0
  239. /package/s/{components → _archive/components}/drawer/component.ts +0 -0
  240. /package/s/{components → _archive/components}/drawer/control.ts +0 -0
  241. /package/s/{components → _archive/components}/drawer/showcase.ts +0 -0
  242. /package/s/{components → _archive/components}/drawer/style.css.ts +0 -0
  243. /package/s/{components → _archive/components}/example/component.ts +0 -0
  244. /package/s/{components → _archive/components}/example/showcase.ts +0 -0
  245. /package/s/{components → _archive/components}/example/style.css.ts +0 -0
  246. /package/s/{components → _archive/components}/foundation.css.ts +0 -0
  247. /package/s/{components → _archive/components}/framework.ts +0 -0
  248. /package/s/{components → _archive/components}/raw-components.ts +0 -0
  249. /package/s/{components → _archive/components}/tabs/component.ts +0 -0
  250. /package/s/{components → _archive/components}/tabs/control.ts +0 -0
  251. /package/s/{components → _archive/components}/tabs/showcase.ts +0 -0
  252. /package/s/{components → _archive/components}/tabs/style.css.ts +0 -0
  253. /package/s/{demo → _archive/demo}/demo.bundle.ts +0 -0
  254. /package/s/{demo → _archive/demo}/demo.css +0 -0
  255. /package/s/{demo → _archive/demo}/lipsum.ts +0 -0
  256. /package/s/{demo → _archive/demo}/views/exhibit/style.css.ts +0 -0
  257. /package/s/{demo → _archive/demo}/views/exhibit/view.ts +0 -0
  258. /package/s/{demo → _archive/demo}/viewsets.ts +0 -0
  259. /package/s/{install → _archive/install}/aura.bundle.ts +0 -0
  260. /package/s/{install → _archive/install}/plain.bundle.ts +0 -0
  261. /package/s/{shiny.ts → _archive/shiny.ts} +0 -0
  262. /package/s/{tests.test.ts → _archive/tests.test.ts} +0 -0
  263. /package/s/{themes → _archive/themes}/aura.css.ts +0 -0
  264. /package/s/{themes → _archive/themes}/index.barrel.ts +0 -0
  265. /package/s/{themes → _archive/themes}/index.ts +0 -0
  266. /package/s/{themes → _archive/themes}/infra/css-vars.ts +0 -0
  267. /package/s/{themes → _archive/themes}/plain.css.ts +0 -0
  268. /package/x/{demo → _archive/demo}/demo.css +0 -0
  269. /package/x/demo/{demo.bundle.d.ts → main.bundle.d.ts} +0 -0
  270. /package/x/{components/button → demo/views/codebox}/style.css.d.ts +0 -0
  271. /package/x/{install/aura.bundle.d.ts → test.d.ts} +0 -0
  272. /package/x/{components/copy → views/button}/style.css.d.ts +0 -0
  273. /package/x/{components/drawer → views/copy}/style.css.d.ts +0 -0
  274. /package/x/{components → views}/copy/style.css.js +0 -0
  275. /package/x/{components → views}/drawer/control.js +0 -0
  276. /package/x/{components/example → views/drawer}/style.css.d.ts +0 -0
  277. /package/x/{components → views}/tabs/style.css.d.ts +0 -0
@@ -1,471 +0,0 @@
1
- var vt=globalThis,xt=vt.ShadowRoot&&(vt.ShadyCSS===void 0||vt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,te=Symbol(),me=new WeakMap,nt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==te)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(xt&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=me.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&me.set(e,t))}return t}toString(){return this.cssText}},wt=r=>new nt(typeof r=="string"?r:r+"",void 0,te),f=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1]),r[0]);return new nt(e,r,te)},$t=(r,t)=>{if(xt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=vt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},B=xt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return wt(e)})(r):r;var{is:pr,defineProperty:ur,getOwnPropertyDescriptor:dr,getOwnPropertyNames:mr,getOwnPropertySymbols:fr,getPrototypeOf:gr}=Object,_t=globalThis,fe=_t.trustedTypes,br=fe?fe.emptyScript:"",yr=_t.reactiveElementPolyfillSupport,it=(r,t)=>r,ee={toAttribute(r,t){switch(t){case Boolean:r=r?br: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}},be=(r,t)=>!pr(r,t),ge={attribute:!0,type:String,converter:ee,reflect:!1,useDefault:!1,hasChanged:be};Symbol.metadata??=Symbol("metadata"),_t.litPropertyMetadata??=new WeakMap;var P=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ge){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&ur(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=dr(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let c=o?.call(this);n?.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ge}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;let t=gr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){let e=this.properties,s=[...mr(e),...fr(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,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 o of s)e.unshift(B(o))}else t!==void 0&&e.push(B(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??=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 $t(t,this.constructor.elementStyles),t}connectedCallback(){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)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:ee).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=s.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:ee;this._$Em=o;let c=i.fromAttribute(e,n.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,n=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??be)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){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.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,n]of s){let{wrapped:i}=n,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}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._$EM()}catch(s){throw t=!1,this._$EM(),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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[it("elementProperties")]=new Map,P[it("finalized")]=new Map,yr?.({ReactiveElement:P}),(_t.reactiveElementVersions??=[]).push("2.1.1");var se=globalThis,At=se.trustedTypes,ye=At?At.createPolicy("lit-html",{createHTML:r=>r}):void 0,oe="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,ne="?"+O,vr=`<${ne}>`,U=document,ct=()=>U.createComment(""),lt=r=>r===null||typeof r!="object"&&typeof r!="function",ie=Array.isArray,Ae=r=>ie(r)||typeof r?.[Symbol.iterator]=="function",re=`[
2
- \f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ve=/-->/g,xe=/>/g,N=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),we=/'/g,$e=/"/g,Se=/^(?:script|style|textarea|title)$/i,ae=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),_=ae(1),E=ae(2),Br=ae(3),j=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),_e=new WeakMap,H=U.createTreeWalker(U,129);function Ee(r,t){if(!ie(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}var ke=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=at;for(let c=0;c<e;c++){let a=r[c],p,m,l=-1,d=0;for(;d<a.length&&(i.lastIndex=d,m=i.exec(a),m!==null);)d=i.lastIndex,i===at?m[1]==="!--"?i=ve:m[1]!==void 0?i=xe:m[2]!==void 0?(Se.test(m[2])&&(o=RegExp("</"+m[2],"g")),i=N):m[3]!==void 0&&(i=N):i===N?m[0]===">"?(i=o??at,l=-1):m[1]===void 0?l=-2:(l=i.lastIndex-m[2].length,p=m[1],i=m[3]===void 0?N:m[3]==='"'?$e:we):i===$e||i===we?i=N:i===ve||i===xe?i=at:(i=N,o=void 0);let w=i===N&&r[c+1].startsWith("/>")?" ":"";n+=i===at?a+vr:l>=0?(s.push(p),a.slice(0,l)+oe+a.slice(l)+O+w):a+O+(l===-2?c:w)}return[Ee(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},ht=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[p,m]=ke(t,e);if(this.el=r.createElement(p,s),H.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=H.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(oe)){let d=m[i++],w=o.getAttribute(l).split(O),S=/([.?@])?(.*)/.exec(d);a.push({type:1,index:n,name:S[2],strings:w,ctor:S[1]==="."?Et:S[1]==="?"?kt:S[1]==="@"?Ct:D}),o.removeAttribute(l)}else l.startsWith(O)&&(a.push({type:6,index:n}),o.removeAttribute(l));if(Se.test(o.tagName)){let l=o.textContent.split(O),d=l.length-1;if(d>0){o.textContent=At?At.emptyScript:"";for(let w=0;w<d;w++)o.append(l[w],ct()),H.nextNode(),a.push({type:2,index:++n});o.append(l[d],ct())}}}else if(o.nodeType===8)if(o.data===ne)a.push({type:2,index:n});else{let l=-1;for(;(l=o.data.indexOf(O,l+1))!==-1;)a.push({type:7,index:n}),l+=O.length-1}n++}}static createElement(t,e){let s=U.createElement("template");return s.innerHTML=t,s}};function q(r,t,e=r,s){if(t===j)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=lt(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=q(r,o._$AS(r,t.values),o,s)),t}var St=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,o=(t?.creationScope??U).importNode(e,!0);H.currentNode=o;let n=H.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let p;a.type===2?p=new I(n,n.nextSibling,this,t):a.type===1?p=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(p=new Pt(n,this,t)),this._$AV.push(p),a=s[++c]}i!==a?.index&&(n=H.nextNode(),i++)}return H.currentNode=U,o}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++}},I=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.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=q(this,t,e),lt(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ae(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==y&&lt(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ht.createElement(Ee(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new St(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=_e.get(t.strings);return e===void 0&&_e.set(t.strings,e=new ht(t)),e}k(t){ie(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(ct()),this.O(ct()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=y}_$AI(t,e=this,s,o){let n=this.strings,i=!1;if(n===void 0)t=q(this,t,e,0),i=!lt(t)||t!==this._$AH&&t!==j,i&&(this._$AH=t);else{let c=t,a,p;for(t=n[0],a=0;a<n.length-1;a++)p=q(this,c[s+a],e,a),p===j&&(p=this._$AH[a]),i||=!lt(p)||p!==this._$AH[a],p===y?t=y:t!==y&&(t+=(p??"")+n[a+1]),this._$AH[a]=p}i&&!o&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Et=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}},kt=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}},Ct=class extends D{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=q(this,t,e,0)??y)===j)return;let s=this._$AH,o=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==y&&(s===y||o);o&&this.element.removeEventListener(this.name,this,s),n&&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)}},Pt=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){q(this,t)}},Ce={M:oe,P:O,A:ne,C:1,L:ke,R:St,D:Ae,V:q,I,H:D,N:kt,U:Ct,B:Et,F:Pt},xr=se.litHtmlPolyfillSupport;xr?.(ht,I),(se.litHtmlVersions??=[]).push("3.3.1");var T=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new I(t.insertBefore(ct(),n),n,void 0,e??{})}return o._$AI(r),o};var ce=globalThis,V=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=T(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}};V._$litElement$=!0,V.finalized=!0,ce.litElementHydrateSupport?.({LitElement:V});var wr=ce.litElementPolyfillSupport;wr?.({LitElement:V});(ce.litElementVersions??=[]).push("4.2.1");var W=f`
4
- @layer reset {
5
- * {
6
- margin: 0;
7
- padding: 0;
8
- box-sizing: border-box;
9
-
10
- scrollbar-width: thin;
11
- scrollbar-color: #888 transparent;
12
- }
13
-
14
- ::-webkit-scrollbar { width: 8px; }
15
- ::-webkit-scrollbar-track { background: transparent; }
16
- ::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
17
- ::-webkit-scrollbar-thumb:hover { background: #444; }
18
- }
19
- `;function M(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{e=i,s&&clearTimeout(s);let c=new Promise((a,p)=>{o.push({resolve:a,reject:p})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:p}of o)p(a);n()}).catch(a=>{for(let{reject:p}of o)p(a);n()})},r),c})}function Pe(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}function pt(){let r,t,e=new Promise((o,n)=>{r=o,t=n});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}var F=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};var Oe=(r=0)=>new Promise(t=>setTimeout(t,r));function Ot(r){return{map:t=>Te(r,t),filter:t=>Me(r,t)}}Ot.pipe=Object.freeze({map:r=>(t=>Te(t,r)),filter:r=>(t=>Me(t,r))});var Te=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),Me=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function Re(){let r=new Set;async function t(...a){await Promise.all([...r].map(p=>p(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function s(...a){return t(...a)}function o(a){return e(a)}async function n(a){let{promise:p,resolve:m}=pt(),l=o(async(...d)=>{a&&await a(...d),m(d),l()});return p}function i(){r.clear()}let c={pub:s,sub:o,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(o,c),Object.assign(s,c),c}function Tt(r){let t=Re();return r&&t.sub(r),t.sub}function le(r){let t=Re();return r&&t.sub(r),t.pub}var k={string:(r,t)=>r.getAttribute(t)??void 0,number:(r,t)=>{let e=r.getAttribute(t);return e===null||!e?void 0:Number(e)},boolean:(r,t)=>r.getAttribute(t)!==null},v={string:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e),!0),number:(r,t,e)=>(e===void 0?r.removeAttribute(t):r.setAttribute(t,e.toString()),!0),boolean:(r,t,e)=>(e?r.setAttribute(t,""):r.removeAttribute(t),!0),any:(r,t,e)=>{e==null?r.removeAttribute(t):typeof e=="string"?r.setAttribute(t,e):typeof e=="number"?r.setAttribute(t,e.toString()):typeof e=="boolean"?e===!0?r.setAttribute(t,""):r.removeAttribute(t):console.warn(`invalid attribute "${t}" type is "${typeof e}"`)},entries:(r,t)=>{for(let[e,s]of t)v.any(r,e,s)},record:(r,t)=>v.entries(r,Object.entries(t))};function ze(r,t={}){let e=document.createElement(r);return v.record(e,t),e}function Ne(r){let t=document.createDocumentFragment();return T(r,t),t.firstElementChild}function X(r,t){let e=[];for(let[s,o]of Object.entries(t))if(typeof o=="function")r.addEventListener(s,o),e.push(()=>r.removeEventListener(s,o));else{let[n,i]=o;r.addEventListener(s,i,n),e.push(()=>r.removeEventListener(s,i))}return()=>e.forEach(s=>s())}function He(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Ue=(r,t)=>new Proxy(t,{get:(e,s)=>{switch(t[s]){case String:return k.string(r,s);case Number:return k.number(r,s);case Boolean:return k.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return v.string(r,s,o);case Number:return v.number(r,s,o);case Boolean:return v.boolean(r,s,o);default:throw new Error(`invalid attribute type for "${s}"`)}}});var Mt=class{element;constructor(t){this.element=t}strings=new Proxy({},{get:(t,e)=>k.string(this.element,e),set:(t,e,s)=>v.string(this.element,e,s)});numbers=new Proxy({},{get:(t,e)=>k.number(this.element,e),set:(t,e,s)=>v.number(this.element,e,s)});booleans=new Proxy({},{get:(t,e)=>k.boolean(this.element,e),set:(t,e,s)=>v.boolean(this.element,e,s)})};function G(r){let t=new Mt(r);return{strings:t.strings,numbers:t.numbers,booleans:t.booleans,on:e=>He(r,e),spec:e=>Ue(r,e)}}G.get=k;G.set=v;function je(r){return new he(r)}var he=class{tagName;#t=new Map;#e=[];constructor(t){this.tagName=t}attr(t,e=!0){return this.#t.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.attr(e,s);return this}children(...t){return this.#e.push(...t),this}done(){let t=document.createElement(this.tagName);return v.entries(t,this.#t),t.append(...this.#e),t}};function Y(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`element not found (${r})`);return e}function Rt(r,t=document){return t.querySelector(r)}function zt(r,t=document){return Array.from(t.querySelectorAll(r))}var Nt=class r{element;#t;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?Y(t,this.element):t)}require(t){return Y(t,this.element)}maybe(t){return Rt(t,this.element)}all(t){return zt(t,this.element)}render(...t){return T(t,this.element)}get attrs(){return this.#t??=G(this.element)}events(t){return X(this.element,t)}};function qe(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function De(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=qe(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function h(r,t=document){return Y(r,t)}h.in=(r,t=document)=>new Nt(t).in(r);h.require=Y;h.maybe=Rt;h.all=zt;h.el=ze;h.elmer=je;h.mk=Ne;h.events=X;h.attrs=G;h.register=De;h.render=(r,...t)=>T(t,r);var pe=class{#t=[];#e=new WeakMap;#r=[];#s=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#s.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#r.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#r.push(s),this.#s.add(t),s.add(e()),this.#s.delete(t),await Promise.all(s),this.#r.pop()})}#o(t){let e=this.#e.get(t);return e||(e=Tt(),this.#e.set(t,e)),e}},$=globalThis[Symbol.for("e280.tracker")]??=new pe;var Z=class{sneak;constructor(t){this.sneak=t}get(){return $.notifyRead(this),this.sneak}get value(){return this.get()}};var J=class extends Z{on=Tt();dispose(){this.on.clear()}};function Ht(r,t=r){let{seen:e,result:s}=$.observe(r),o=M(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=$.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}function K(r,t){return r===t}var Ut=class extends J{#t;constructor(t,e){let s=e?.compare??K,{result:o,dispose:n}=Ht(t,async()=>{let i=t();!s(this.sneak,i)&&(this.sneak=i,await Promise.all([$.notifyWrite(this),this.on.pub(i)]))});super(o),this.#t=n}toString(){return`(derived "${String(this.get())}")`}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var jt=class extends Z{#t;#e;#r=!1;#s;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??K}toString(){return`($lazy "${String(this.get())}")`}get(){if(!this.#s){let{result:t,dispose:e}=Ht(this.#t,()=>this.#r=!0);this.#s=e,this.sneak=t}if(this.#r){this.#r=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,$.notifyWrite(this))}return super.get()}dispose(){this.#s&&this.#s()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var qt=class extends J{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??K}toString(){return`($signal "${String(this.get())}")`}async set(t,e=!1){let s=this.sneak;return this.sneak=t,(e||!this.#e(s,t))&&await this.publish(),t}get value(){return this.get()}set value(t){this.set(t)}async publish(){if(this.#t)throw new Error("forbid circularity");let t=this.sneak,e=Promise.resolve();try{this.#t=!0,e=Promise.all([$.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(s){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function $r(r,t){return new jt(r,t).fn()}function Le(r,t){return new Ut(r,t).fn()}function x(r,t){return new qt(r,t).fn()}x.lazy=$r;x.derived=Le;var R=class{#t=new F;effect(t,e){let{seen:s,result:o}=$.observe(t);for(let n of s)this.#t.guarantee(n,()=>$.subscribe(n,e));for(let[n,i]of this.#t)s.has(n)||(i(),this.#t.delete(n));return o}clear(){for(let t of this.#t.values())t();this.#t.clear()}};var Q=class{element;response;#t;constructor(t,e){this.element=t,this.response=e}start(){this.#t||(this.#t=h.attrs(this.element).on(this.response))}stop(){this.#t&&this.#t(),this.#t=void 0}};function Dt(r,t){$t(r,Ar(t))}function Ar(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(B(s))}else r!==void 0&&t.push(B(r));return t}var L={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>L.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var tt=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static load(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return L.all(...e)}signal;#t=0;#e=le();#r=le();constructor(t=["loading"]){this.signal=x(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#r.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#r(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){console.error(s),e===this.#t&&await this.setError(s)}}async load(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return L.value(this.signal.get())}get error(){return L.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return L.select(this.signal.get(),t)}morph(t){return L.morph(this.pod,t)}};var Lt=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};function Be(r){let t=h.attrs(r.element);function e(s){return r.once(()=>t.spec(s))}return e.strings=t.strings,e.numbers=t.numbers,e.booleans=t.booleans,e.spec=s=>r.once(()=>t.spec(s)),e.on=s=>r.mount(()=>t.on(s)),e}var ut=Symbol(),dt=Symbol(),mt=Symbol(),et=class{element;shadow;renderNow;render;attrs;#t=0;#e=0;#r=new F;#s=pt();#o=new Lt;[ut](t){this.#t++,this.#e=0,this.#s=pt();let e=t();return this.#s.resolve(),e}[dt](){this.#o.unmountAll()}[mt](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o,this.attrs=Be(this)}get renderCount(){return this.#t}get rendered(){return this.#s.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>Dt(this.shadow,t))}css(...t){return this.styles(...t)}once(t){return this.#r.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}events(t){return this.mount(()=>X(this.element,t))}op=(()=>{let t=this;function e(s){return t.once(()=>tt.load(s))}return e.load=e,e.promise=s=>this.once(()=>tt.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>x(s,o))}return e.derived=function(o,n){return t.once(()=>x.derived(o,n))},e.lazy=function(o,n){return t.once(()=>x.lazy(o,n))},e})();derived(t,e){return this.once(()=>x.derived(t,e))}lazy(t,e){return this.once(()=>x.lazy(t,e))}};var z=class extends HTMLElement{static styles;shadow;#t;#e=0;#r=new R;#s=new Q(this,()=>this.update());createShadow(){return this.attachShadow({mode:"open"})}constructor(){super(),this.shadow=this.createShadow(),this.#t=new et(this,this.shadow,this.updateNow,this.update)}render(t){}updateNow=()=>{this.#t[ut](()=>{h.render(this.shadow,this.#r.effect(()=>this.render(this.#t),this.update))})};update=M(0,this.updateNow);connectedCallback(){if(this.#e===0){let t=this.constructor.styles;t&&Dt(this.shadow,t),this.updateNow()}else this.#t[mt]();this.#s.start(),this.#e++}disconnectedCallback(){this.#t[dt](),this.#r.clear(),this.#s.stop()}};var Bt=class{#t;#e;constructor(t,e){this.#e=t,this.#t=e}attr(t,e=!0){return this.#e.attrs.set(t,e),this}attrs(t){for(let[e,s]of Object.entries(t))this.#e.attrs.set(e,s);return this}children(...t){return this.#e.children.push(...t),this}render(){return this.#t(this.#e)}};var ft=class{props;attrs=new Map;children=[];constructor(t){this.props=t}};function Ie(r,t,e,s){return class extends t{static view=rt(s,r);#t=new R;createShadow(){return this.attachShadow(r)}render(n){return s(n)(...this.#t.effect(()=>e(this),()=>this.update()))}}}var{I:ci}=Ce;var Ve=r=>r.strings===void 0;var We={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...t)=>({_$litDirective$:r,values:t}),It=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var gt=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),gt(s,t);return!0},Vt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},Fe=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),kr(t)}};function Sr(r){this._$AN!==void 0?(Vt(this),this._$AM=r,Fe(this)):this._$AM=r}function Er(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)gt(s[n],!1),Vt(s[n]);else s!=null&&(gt(s,!1),Vt(s));else gt(this,r)}var kr=r=>{r.type==We.CHILD&&(r._$AP??=Er,r._$AQ??=Sr)},Wt=class extends It{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(gt(this,t),Vt(this))}setValue(t){if(Ve(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Ft=class r extends HTMLElement{static#t=!1;static make(){return this.#t||(h.register({SlyView:r},{soft:!0,upgrade:!0}),this.#t=!0),document.createElement("sly-view")}};var Xt=class{viewFn;settings;#t=Ft.make();#e=new R;#r;#s;#o;#n=new Q(this.#t,()=>this.#a());constructor(t,e){this.viewFn=t,this.settings=e,this.#s=this.#t.attachShadow(this.settings),this.#r=new et(this.#t,this.#s,this.#i,this.#a)}update(t){return this.#o=t,this.#i(),this.#t}#i=()=>{this.#r[ut](()=>{let t=this.#e.effect(()=>this.viewFn(this.#r)(...this.#o.props),()=>this.#a());v.entries(this.#t,this.#o.attrs),h.render(this.#s,t),h.render(this.#t,this.#o.children),this.#n.start()})};#a=M(0,this.#i);disconnected(){this.#r[dt](),this.#e.clear(),this.#n.stop()}reconnected(){this.#r[mt](),this.#n.start()}};function Xe(r,t){return ue(class extends Wt{#t=new Xt(r,t);render(s){return this.#t.update(s)}disconnected(){this.#t.disconnected()}reconnected(){this.#t.reconnected()}})}function rt(r,t){let e=Xe(r,t);function s(...o){return e(new ft(o))}return s.props=(...o)=>new Bt(new ft(o),e),s.transmute=o=>rt(i=>{let c=r(i);return(...a)=>c(...o(...a))},t),s.component=(o=z)=>({props:n=>Ie(t,o,n,r)}),s}function b(r){return rt(r,{mode:"open"})}b.settings=r=>({render:t=>rt(t,r)});b.render=b;b.component=r=>b(t=>()=>r(t)).component(z).props(()=>[]);function u(r,t){return()=>Cr({hz:r,frames:t})}var Cr=b(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(W,Pr);let s=r.signal(0);return r.mount(()=>Pe(async()=>{await Oe(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),Pr=f`
20
- :host {
21
- font-family: monospace;
22
- white-space: pre;
23
- user-select: none;
24
- }
25
- `;var g=20,st=10,ot=4,Fi=u(g,["|","/","-","\\"]),Xi=u(g,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),Gi=u(g,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),Yi=u(g,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Zi=u(g,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),Ji=u(g,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),Ki=u(g,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),Qi=u(g,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),ta=u(g,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),ea=u(ot,["\u{1F6B6}","\u{1F3C3}"]),ra=u(st,["\u25F7","\u25F6","\u25F5","\u25F4"]),sa=u(g,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),oa=u(g,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),na=u(st,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),ia=u(st,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),aa=u(st,[" "," ",". ",".. ","..."," .."," ."]),ca=u(g,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),la=u(g,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),ha=u(g,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),pa=u(g,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),ua=u(g,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),da=u(g,["000","100","110","111","011","001"]),ma=u(g,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),fa=u(g,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),ga=u(ot,["\u{1F539}","\u{1F535}"]),ba=u(st,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),ya=u(g,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),va=u(g,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),Or=u(ot,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),xa=u(ot,["\u{1F513}","\u{1F512}"]),wa=u(ot,["\u{1F505}","\u{1F506}"]),$a=u(ot,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),_a=u(st,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Mr=b(r=>t=>(r.name("error"),r.styles(W,Rr),typeof t=="string"?t:t instanceof Error?_`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Rr=f`
26
- :host {
27
- font-family: monospace;
28
- color: red;
29
- }
30
- `;function Ur(r,t){return t.transmute((...e)=>[r,...e])}function Ye(r){return Ot(r).map(t=>t.view)}function Ze(r,t){return Ot(t).map(e=>class extends e{context=r;static view=Ur(r,super.view)})}var Je=f`@layer view {
31
-
32
- :host {
33
- opacity: 0.8;
34
- display: inline-flex;
35
- width: max-content;
36
- height: max-content;
37
-
38
- --padding: 0.3em;
39
- border-radius: 0.2em;
40
- border: 0.1em solid currentColor;
41
-
42
- cursor: pointer;
43
- background: transparent;
44
- user-select: none;
45
- }
46
-
47
- :host(:not([disabled]):is(:hover, :focus-visible)) { opacity: 1; }
48
- :host(:not([disabled]):active) { opacity: 0.6; }
49
-
50
- :host([disabled]) {
51
- cursor: default;
52
- color: var(--lame);
53
- }
54
-
55
- :host([hidden]) {
56
- display: none !important;
57
- }
58
-
59
- :host([lame]) { color: var(--lame); }
60
- :host([angry]) { color: var(--angry); }
61
- :host([zesty]) { color: var(--zesty); }
62
- :host([happy]) { color: var(--happy); }
63
- :host([calm]) { color: var(--calm); }
64
- :host([sad]) { color: var(--sad); }
65
- :host([quirky]) { color: var(--quirky); }
66
-
67
- button {
68
- background: transparent;
69
- border: none;
70
-
71
- font: inherit;
72
- color: inherit;
73
- cursor: inherit;
74
- text-shadow: inherit;
75
-
76
- display: inline-flex;
77
- justify-content: center;
78
- align-items: center;
79
-
80
- width: 100%;
81
- height: 100%;
82
- padding: var(--padding);
83
- }
84
-
85
- slot {
86
- display: contents;
87
- }
88
-
89
- }`;var C=f`
90
-
91
- @layer reset, underlay, view, overlay;
92
-
93
- ${W}
94
-
95
- @layer overlay {
96
- [hidden] { display: none !important; }
97
- }
98
-
99
- `;var A=class extends z{context};var Gt=class extends b(t=>(e,s)=>{t.name("shiny-button"),t.styles(C,e.theme,Je);let o=t.attrs.spec({disabled:Boolean,hidden:Boolean});return _`
100
- <button
101
- part=button
102
- ?disabled="${o.disabled}"
103
- ?hidden="${o.hidden}">
104
- <slot>${s}</slot>
105
- </button>
106
- `}).component(A).props(t=>[t.context]){};var Ke=f`@layer view {
107
-
108
- button {
109
- background: transparent;
110
- border: none;
111
- font-size: inherit;
112
- }
113
-
114
- button {
115
- opacity: var(--inactive-opacity);
116
- cursor: pointer;
117
- cursor: copy;
118
-
119
- color: inherit;
120
- transition: all 300ms linear;
121
-
122
- &:is(:hover, :focus-visible) {
123
- opacity: 1;
124
- }
125
- }
126
-
127
- [data-status="invalid"] {
128
- color: var(--lame);
129
- }
130
-
131
- [data-status="good"] {
132
- opacity: 1;
133
- color: var(--happy);
134
- filter: drop-shadow(0 0 0.3em color-mix(in oklab, transparent, currentColor 50%));
135
- }
136
-
137
- [data-status="bad"] {
138
- opacity: 1;
139
- color: var(--angry);
140
- filter: drop-shadow(0 0 0.3em color-mix(in oklab, transparent, currentColor 50%));
141
- }
142
-
143
- svg {
144
- width: 1em;
145
- height: 1em;
146
- }
147
-
148
- }`;var de=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>`;var Qe=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-7.29 7.123a1 1 0 0 0 -1.414 0l-.083 .094a1 1 0 0 0 .083 1.32l1.292 1.293l-1.292 1.293a1 1 0 0 0 0 1.414l.094 .083a1 1 0 0 0 1.32 -.083l1.293 -1.293l1.293 1.293a1 1 0 0 0 1.414 0l.083 -.094a1 1 0 0 0 -.083 -1.32l-1.293 -1.293l1.293 -1.293a1 1 0 0 0 0 -1.414l-.094 -.083a1 1 0 0 0 -1.32 .083l-1.293 1.292zm3.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var tr=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-clipboard-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17.997 4.17a3 3 0 0 1 2.003 2.83v12a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 2.003 -2.83a4 4 0 0 0 3.997 3.83h4a4 4 0 0 0 3.98 -3.597zm-3.704 7.123l-3.293 3.292l-1.293 -1.292a1 1 0 1 0 -1.414 1.414l2 2a1 1 0 0 0 1.414 0l4 -4a1 1 0 0 0 -1.414 -1.414m-.293 -9.293a2 2 0 1 1 0 4h-4a2 2 0 1 1 0 -4z" /></svg>`;var Yt=class extends b(t=>(e,s,o=1e3)=>{t.name("shiny-copy"),t.styles(C,e.theme,Ke);let n=()=>s===void 0?"invalid":"neutral",i=t.signal(n()),c=t.once(()=>M(o,()=>i.set(n()))),a=t.once(()=>async l=>{await i.set(l),await c()});async function p(){if(s!==void 0)try{if(t.attrs.booleans.fail)throw new Error("copy failed on purpose for testing purposes");await navigator.clipboard.writeText(s),await a("good")}catch(l){console.error(l),await a("bad")}}let m=(()=>{switch(i.get()){case"neutral":return de;case"invalid":return de;case"good":return tr;case"bad":return Qe;default:throw new Error("unknown copy status")}})();return _`
149
- <button data-status="${i.get()}" @click="${p}">
150
- ${m}
151
- </button>
152
- `}).component(class extends A{#t=h.attrs(this).spec({text:String,ms:Number});get text(){return this.#t.text}set text(t){this.#t.text=t}get ms(){return this.#t.ms}set ms(t){this.#t.ms=t}}).props(t=>[t.context,t.text,t.ms]){};var er=f`@layer view {
153
-
154
- :host {
155
- display: block;
156
- width: 100%;
157
- height: 100%;
158
- --slate-bg: transparent;
159
- --button-size: 2em;
160
- --blanket-backdrop-filter: blur(0.5em);
161
- --slate-hidden-opacity: 1;
162
- --blanket-bg: color-mix(in oklab, transparent, var(--bg));
163
- }
164
-
165
- .shell {
166
- position: relative;
167
- width: 100%;
168
- height: 100%;
169
-
170
- [part="blanket"] {
171
- opacity: 0;
172
-
173
- content: "";
174
- display: block;
175
- position: absolute;
176
- inset: 0;
177
-
178
- background: var(--blanket-bg);
179
- backdrop-filter: var(--blanket-backdrop-filter);
180
-
181
- will-change: opacity;
182
- transition: all var(--anim-duration) ease;
183
- }
184
-
185
- .clipper {
186
- pointer-events: none;
187
- position: absolute;
188
- inset: 0;
189
- width: 100%;
190
- height: 100%;
191
- overflow: hidden;
192
- > * { pointer-events: all; }
193
- }
194
-
195
- [part="tray"] {
196
- position: absolute;
197
- top: 0;
198
- width: calc(100% - var(--button-size));
199
-
200
- display: flex;
201
- flex-direction: column;
202
- height: auto;
203
- max-height: 100%;
204
-
205
- transform: translateX(-100%);
206
- will-change: opacity, transform;
207
- transition: all var(--anim-duration) ease;
208
-
209
- > [part="slate"] {
210
- opacity: var(--slate-hidden-opacity);
211
- will-change: opacity;
212
- transition: opacity var(--anim-duration) ease;
213
-
214
- display: block;
215
- height: 100%;
216
- overflow-y: auto;
217
- background: var(--slate-bg);
218
- }
219
-
220
- > button {
221
- position: absolute;
222
- top: 0;
223
- left: 100%;
224
-
225
- opacity: var(--inactive-opacity);
226
- background: transparent;
227
- border: none;
228
- cursor: pointer;
229
-
230
- &:is(:hover, :focus-visible) {
231
- opacity: 1;
232
- }
233
-
234
- > slot {
235
- display: contents;
236
- }
237
-
238
- svg {
239
- width: var(--button-size);
240
- height: var(--button-size);
241
- }
242
- }
243
- }
244
-
245
- &[data-side="right"] {
246
- [part="tray"] {
247
- right: 0;
248
- transform: translateX(100%);
249
- > button {
250
- left: unset;
251
- right: 100%;
252
- }
253
- }
254
- }
255
-
256
- slot[name="plate"] {
257
- display: block;
258
- width: 100%;
259
- height: 100%;
260
- }
261
-
262
- &[data-open] {
263
- [part="blanket"] {
264
- opacity: 1;
265
- }
266
- [part="tray"] {
267
- transform: translateX(0%);
268
- > [part="slate"] {
269
- opacity: 1;
270
- }
271
- }
272
- }
273
- }
274
-
275
- }`;var bt=class{$open=x(!1);constructor(t=!1){t&&this.$open.set(!0)}get isOpen(){return this.$open.get()}async setOpen(t){return this.$open.set(t)}open=async()=>{await this.setOpen(!0)};close=async()=>{await this.setOpen(!1)};toggle=async()=>this.setOpen(!this.isOpen)};var Zt=class{#t;constructor(t){this.#t=t.attachInternals().states}assign(...t){this.#t.forEach(e=>this.#t.delete(e));for(let e of t)this.#t.add(e);return this}};var rr=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>`;var sr=E`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0" /><path d="M4 12l16 0" /><path d="M4 18l16 0" /></svg>`;var Jt=class extends b(t=>(e,s)=>{t.name("shiny-drawer"),t.styles(C,e.theme,er);let o=t.once(()=>new Zt(t.element)),n=s.button??t.attrs.booleans.button,i=s.side??(t.attrs.strings.side==="right"?"right":"left"),c=t.once(()=>s.control??new bt);o.assign(i,c.isOpen?"opened":"closed"),t.mount(()=>h.events(window,{keydown:p=>{p.code==="Escape"&&c.close()}})),h.attrs(t.element).booleans.open=c.isOpen;function a(){return _`
276
- <button part=button @click="${c.toggle}">
277
- ${c.isOpen?_`
278
- <slot name=button-x>
279
- ${rr}
280
- </slot>
281
- `:_`
282
- <slot name=button>
283
- ${sr}
284
- </slot>
285
- `}
286
- </button>
287
- `}return _`
288
- <div class=shell ?data-open="${c.isOpen}" data-side="${i}">
289
- <slot name=plate ?inert="${c.isOpen}"></slot>
290
-
291
- <div class=clipper>
292
- <div part=blanket @click="${c.close}" ?inert="${!c.isOpen}"></div>
293
-
294
- <div part=tray>
295
- <slot part=slate ?inert="${!c.isOpen}"></slot>
296
- ${n?a():null}
297
- </div>
298
- </div>
299
- </div>
300
- `}).component(class extends A{#t=h.attrs(this).spec({open:Boolean,button:Boolean,side:String});get button(){return this.#t.button}set button(t){this.#t.button=t}get side(){return this.#t.side==="right"?"right":"left"}set side(t){this.#t.side=t}control=new bt(this.#t.open);get isOpen(){return this.control.isOpen}get toggle(){return this.control.toggle}get open(){return this.control.open}get close(){return this.control.close}}).props(t=>[t.context,{control:t.control}]){};var or=f`@layer view {
301
-
302
- button {
303
- padding: 1em;
304
- min-width: 4em;
305
- }
306
-
307
- }`;var Kt=class extends b(t=>(e,s=1)=>{t.name("shiny-example"),t.styles(C,e.theme,or);let o=t.signal(s);return _`
308
- <button @click="${()=>{o.value++}}">
309
- ${o()}
310
- </button>
311
- `}).component(class extends A{attrs=h.attrs(this).spec({start:Number})}).props(t=>[t.context,t.attrs.start]){};var nr=f`@layer view {
312
-
313
- :host {
314
- display: inline-flex;
315
- flex-direction: column;
316
- }
317
-
318
- slot[part="tabs"] {
319
- display: flex;
320
- flex-wrap: wrap;
321
-
322
- &::slotted([data-active]) {
323
- opacity: 1;
324
- color: currentColor;
325
- text-decoration: underline;
326
- }
327
- }
328
-
329
- :host([snug]) slot[part="tabs"] {
330
- &::slotted(*) {
331
- border-radius: 0.3em;
332
- }
333
-
334
- &::slotted(:not([data-last], [data-next-is-active])) {
335
- border-right: none;
336
- }
337
-
338
- &::slotted([data-active]:not([data-first])) {
339
- border-left: none;
340
- }
341
-
342
- &::slotted(:not([data-last])) {
343
- border-top-right-radius: 0;
344
- border-bottom-right-radius: 0;
345
- }
346
-
347
- &::slotted(:not([data-first])) {
348
- border-top-left-radius: 0;
349
- border-bottom-left-radius: 0;
350
- }
351
- }
352
-
353
- } `;var yt=class{length=1;$index=x(0);constructor(t=0){this.$index.value=t}clamp(t){return t=Math.min(t,this.length-1),t=Math.max(t,0),t}get index(){return this.clamp(this.$index.get())}async setIndex(t){return this.$index.set(t)}async shimmy(t){let e=this.clamp(this.index+t);return this.setIndex(e)}};var Qt=class extends b(t=>(e,s)=>{t.name("shiny-tabs"),t.styles(C,e.theme,nr);let o=t.attrs.spec({index:Number}),n=t.once(()=>s??new yt(o.index??0)),i=t.signal([]),c=t.signal([]);async function a(l){let d=l.currentTarget;await i.set(d.assignedElements())}async function p(l){let d=l.currentTarget;await c.set(d.assignedElements())}o.index=n.$index(),n.length=i().length;function m(l,d){let w=n.clamp(l+d);return w===l?!1:w===n.index}for(let[l,d]of i().entries()){let w=l===n.index,S=h.attrs(d);S.booleans.disabled=w,S.booleans["data-active"]=w,S.booleans["data-first"]=l===0,S.booleans["data-last"]=l===n.length-1,S.booleans["data-next-is-active"]=m(l,1),S.booleans["data-previous-is-active"]=m(l,-1),d.onclick=()=>n.setIndex(l)}for(let[l,d]of c().entries()){let w=l===n.index;h.attrs(d).booleans.active=w,h.attrs(d).booleans.hidden=!w}return _`
354
- <slot part=tabs @slotchange="${a}"></slot>
355
- <slot part=panels name=panel @slotchange="${p}"></slot>
356
- `}).component(class extends A{control=new yt;get index(){return this.control.index}get length(){return this.control.length}setIndex=this.control.setIndex.bind(this.control);shimmy=this.control.shimmy.bind(this.control)}).props(t=>[t.context,t.control]){};var ir={ShinyButton:Gt,ShinyCopy:Yt,ShinyDrawer:Jt,ShinyExample:Kt,ShinyTabs:Qt};function ar(r){let t=Ze(r,ir),e=Ye(t);return{components:t,views:e}}function cr(){return{bg:"#111",alpha:"#def",lame:"#8888",angry:"#f50",zesty:"#cf0",happy:"#0fa",calm:"#0af",sad:"#74f",quirky:"#f49","inactive-opacity":"0.5","anim-duration":"300ms"}}function lr(r){return wt(Object.entries(r).map(([t,e])=>`--${t}: var(--shiny-${t}, ${e});`).join(`
357
- `))}var hr=f`@layer overlay {
358
-
359
- :host {
360
- ${lr({...cr()})}
361
- }
362
-
363
- :host([view="shiny-button"]:not([plain])) {
364
- position: relative;
365
-
366
- --buttoncolor: var(--calm);
367
- --padding: 0.3em 0.7em;
368
-
369
- color: white;
370
- border-radius: 2em;
371
- background: var(--buttoncolor);
372
- border: none;
373
-
374
- font-weight: medium;
375
- text-shadow: 0.1em 0.1em 0.1em #0004;
376
- box-shadow: 0.1em 0.2em 0.3em #0002;
377
- }
378
-
379
- :host([view="shiny-button"][lame]) { --buttoncolor: var(--lame); }
380
- :host([view="shiny-button"][angry]) { --buttoncolor: var(--angry); }
381
- :host([view="shiny-button"][zesty]) { --buttoncolor: var(--zesty); }
382
- :host([view="shiny-button"][happy]) { --buttoncolor: var(--happy); }
383
- :host([view="shiny-button"][calm]) { --buttoncolor: var(--calm); }
384
- :host([view="shiny-button"][sad]) { --buttoncolor: var(--sad); }
385
- :host([view="shiny-button"][quirky]) { --buttoncolor: var(--quirky); }
386
-
387
- :host([view="shiny-button"][gradient]:not([plain])) {
388
- border: none;
389
- background: linear-gradient(
390
- to bottom right,
391
- color-mix(in oklab, var(--buttoncolor), white 40%),
392
- color-mix(in oklab, var(--buttoncolor), black 20%)
393
- );
394
-
395
- &::before {
396
- content: "";
397
- display: block;
398
- position: absolute;
399
- z-index: 0;
400
- inset: 0.15em;
401
- border-radius: inherit;
402
- background: color-mix(in oklab, var(--buttoncolor), #0004 50%);
403
- }
404
-
405
- > * {
406
- position: relative;
407
- z-index: 1;
408
- }
409
- }
410
-
411
- :host([view="shiny-drawer"]:not([plain])) {
412
- display: block;
413
- --slate-bg: linear-gradient(
414
- to top right,
415
- color-mix(in oklab, var(--calm), #222 50%),
416
- color-mix(in oklab, var(--calm), #888 50%)
417
- );
418
-
419
- &::part(slate) {
420
- padding: 1em;
421
- }
422
- }
423
-
424
- :host([view="shiny-drawer"]:state(left)) {
425
- &::part(slate) {
426
- border-bottom-right-radius: 0.5em;
427
- }
428
- }
429
-
430
- :host([view="shiny-drawer"]:state(right)) {
431
- &::part(slate) {
432
- border-bottom-left-radius: 0.5em;
433
- }
434
- }
435
-
436
- }`;h.register(ar({theme:hr}).components);
437
- /*! Bundled license information:
438
-
439
- @lit/reactive-element/css-tag.js:
440
- (**
441
- * @license
442
- * Copyright 2019 Google LLC
443
- * SPDX-License-Identifier: BSD-3-Clause
444
- *)
445
-
446
- @lit/reactive-element/reactive-element.js:
447
- lit-html/lit-html.js:
448
- lit-element/lit-element.js:
449
- lit-html/directive.js:
450
- lit-html/async-directive.js:
451
- (**
452
- * @license
453
- * Copyright 2017 Google LLC
454
- * SPDX-License-Identifier: BSD-3-Clause
455
- *)
456
-
457
- lit-html/is-server.js:
458
- (**
459
- * @license
460
- * Copyright 2022 Google LLC
461
- * SPDX-License-Identifier: BSD-3-Clause
462
- *)
463
-
464
- lit-html/directive-helpers.js:
465
- (**
466
- * @license
467
- * Copyright 2020 Google LLC
468
- * SPDX-License-Identifier: BSD-3-Clause
469
- *)
470
- */
471
- //# sourceMappingURL=aura.bundle.min.js.map