0){s.textContent=b?b.emptyScript:"";for(let $=0;$2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(r===void 0)t=S(this,t,e,0),o=!x(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const a=t;let l,h;for(t=r[0],l=0;l{var i,s;const r=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let o=r._$litPart$;if(o===void 0){const a=(s=e?.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=o=new T(t.insertBefore(C(),a),a,void 0,e??{})}return o._$AI(n),o};/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var B,I;class A extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return E}}A.finalized=!0,A._$litElement$=!0,(B=globalThis.litElementHydrateSupport)===null||B===void 0||B.call(globalThis,{LitElement:A});const rt=globalThis.litElementPolyfillSupport;rt?.({LitElement:A});((I=globalThis.litElementVersions)!==null&&I!==void 0?I:globalThis.litElementVersions=[]).push("3.3.3");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const $t=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:s,elements:r}=i;return{kind:s,elements:r,finisher(o){customElements.define(e,o)}}})(n,t);/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const Ht=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}},Mt=(n,t,e)=>{t.constructor.createProperty(e,n)};function vt(n){return(t,e)=>e!==void 0?Mt(n,t,e):Ht(n,t)}/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function Nt(n){return vt({...n,state:!0})}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var V;((V=window.HTMLSlotElement)===null||V===void 0?void 0:V.prototype.assignedElements)!=null;var Rt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,_t=(n,t,e,i)=>{for(var s=i>1?void 0:i?zt(t,e):t,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&Rt(t,e,s),s};let M=class extends A{constructor(){super(...arguments),this._isCopied=!1}copyCode(){this._isCopied=!0;let t=this.parentElement.querySelector("code");const e=document.createRange();if(e.selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(e),!navigator.clipboard)document.execCommand("copy");else try{navigator.clipboard.writeText(e.toString())}catch(i){console.error(i)}window.getSelection().removeAllRanges(),setTimeout(()=>{this._isCopied=!1},1e3)}render(){return y`
`}};M.styles=[ht`
:host {
display: inline-flex;
}
button {
display: inline-flex;
align-items: center;
justify-content: center;
width: fit-content;
margin: 0;
padding: 0.5rem;
background: #e2e8f022;
border: none;
border-radius: 0.25rem;
color: #fff;
cursor: pointer;
font-weight: 600;
/* font-size: var(--step--2); */
/* line-height: 1; */
}
`];_t([Nt()],M.prototype,"_isCopied",2);M=_t([$t("copy-code-button")],M);const Lt=y``,jt=y``;var Dt=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,ft=(n,t,e,i)=>{for(var s=i>1?void 0:i?Bt(t,e):t,r=n.length-1,o;r>=0;r--)(o=n[r])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&Dt(t,e,s),s};let N=class extends A{constructor(){super(...arguments),this._doc=document.firstElementChild,this.theme=null}_getCurrentTheme(){const n=localStorage.getItem("theme");n!==null?this._setTheme(n):this._setTheme("light")}firstUpdated(){this._getCurrentTheme()}_setTheme(n){this.theme=n,this._doc.setAttribute("color-scheme",n),localStorage.setItem("theme",n)}_toggleTheme(){this.theme==="dark"?this._setTheme("light"):this._setTheme("dark")}render(){return y`
`}};N.styles=ht`
:host {
display: inline-block;
}
button {
width: 28px;
height: 28px;
padding: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-sizing: border-box;
border: none;
outline: none;
background-color: var(--theme-surface-1);
fill: currentcolor;
color: var(--theme-on-surface-1);
text-decoration: none;
cursor: pointer;
vertical-align: middle;
-webkit-tap-highlight-color: transparent;
border-radius: 50%;
border: 1px solid var(--theme-primary);
transition: background-color 100ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
`;ft([vt({type:String})],N.prototype,"theme",2);N=ft([$t("theme-toggle-button")],N);let It=document.querySelectorAll("pre");It.forEach(n=>{let t=document.createElement("copy-code-button");n.appendChild(t)});