export const __webpack_ids__=["1048"];export const __webpack_modules__={4976:function(e,t,r){r.r(t),r.d(t,{MDNPlayConsole:()=>MDNPlayConsole});var o=r(14703),s=r(14164);function n(e){let t="";for(let r=0,o=e.length;r<o;r++){if("string"==typeof e[r])t+='"'+e[r]+'"';else if(Array.isArray(e[r]))t+="Array [",t+=n(e[r]),t+="]";else if(Object.prototype.hasOwnProperty.call(e,r))t+=i(e[r]);else{let s=1;for(;r+1<o&&!Object.prototype.hasOwnProperty.call(e,r+1);)s++,r++;t+=1===s?"<1 empty slot>":`<${s} empty slots>`}r<e.length-1&&(t+=", ")}return t}function i(e){if(null==e||"boolean"==typeof e)return String(e);if("number"==typeof e)return Object.is(e,-0)?"-0":String(e);if("bigint"==typeof e)return String(e)+"n";if("string"==typeof e)return e.includes('"')?"'"+e+"'":'"'+e+'"';if(Array.isArray(e))return"Array ["+n(e)+"]";else return function(e){let t=e.constructor?e.constructor.name:e;if("String"===t)return`String { "${e.valueOf()}" }`;if(e===JSON)return"JSON {}";if(t.match&&/^(ArrayBuffer|SharedArrayBuffer|DataView)$/.test(t))return t+" {}";if(t.match&&/^(Int8Array|Int16Array|Int32Array|Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|Float32Array|Float64Array|BigInt64Array|BigUint64Array)$/.test(t))return e.length>0?t+" ["+n(e)+"]":t+" []";if("Symbol"===t&&void 0!==e)return e.toString();if("Object"===t){if(e?._MDNPlaySerializedObject)return e._MDNPlaySerializedObject;let r="",o=!0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o?o=!1:r+=", ",r=r+t+": "+i(e[t]));return t+" { "+r+" }"}if(!e.constructor&&!e.prototype){let t="",r=!0;for(let o in e)r?r=!1:t+=", ",t=t+o+": "+i(e[o]);return"Object { "+t+" }"}return e}(e)}let VirtualConsole=class VirtualConsole{#e;constructor(e){this.#e=e}clear(){this.#e._messages=[]}debug(...e){return this.log(...e)}error(...e){return this.log(...e)}info(...e){return this.log(...e)}log(...e){e.length>1&&"string"==typeof e[0]&&(e[0]=e[0].replaceAll(/%(?:\.([0-9]+))?(.)/g,(t,r,o)=>{switch(o){case"o":case"O":return i(e.splice(1,1)[0]);case"d":case"i":return Math.trunc(e.splice(1,1)[0]).toFixed(0).padStart(r,"0");case"s":return e.splice(1,1)[0].toString();case"f":{let t=e.splice(1,1)[0];return("number"==typeof t?t:Number.parseFloat(t)).toFixed(r??6)}case"c":return e.splice(1,1),"";case"%":return"%";default:return t}})),this.#e._messages=[...this.#e._messages,e.map(e=>i(e)).join(" ")]}warn(...e){return this.log(...e)}};let MDNPlayConsole=class MDNPlayConsole extends o.oi{static properties={_messages:{state:!0}};static styles=s.Z;constructor(){super(),this.vconsole=new VirtualConsole(this),this._messages=[]}onConsole({detail:e}){if(e.prop in this.vconsole){let t=e.prop;e.args?this.vconsole[t](...e.args):this.vconsole[t]()}else this.vconsole.warn("[Playground] Unsupported console message (see browser console)")}render(){return(0,o.dy)`
      <ul>
        ${this._messages.map(e=>(0,o.dy)`<li><code tabindex="0">${e}</code></li>`)}
      </ul>
    `}updated(){this.scrollTo({top:this.scrollHeight})}};customElements.define("mdn-play-console",MDNPlayConsole)},14164:function(e,t,r){r.d(t,{Z:()=>a});var o=r(14703),s=r(8081),n=r.n(s),i=r(23645),l=r.n(i)()(n());l.push([e.id,':host{background-color:var(--color-background-secondary);box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--font-size-small);margin:0;overflow:auto;width:100%}ul{list-style:none;margin:0;padding:0}li{padding:0 .5em}li:before{content:"> "}code{font-family:var(--font-family-code);tab-size:4}',""]);let a=(0,o.iv)([l.toString()])}};
//# sourceMappingURL=1048.109f852ff1135397.js.map