diff --git "a/hfstudio/static/_app/immutable/nodes/2.Drf1FPzr.js" "b/hfstudio/static/_app/immutable/nodes/2.Drf1FPzr.js" new file mode 100644--- /dev/null +++ "b/hfstudio/static/_app/immutable/nodes/2.Drf1FPzr.js" @@ -0,0 +1,73 @@ +import{r as bt,p as x,o as F,S as He,i as Ue,s as Me,m as qe,O as J,d as f,P as Bt,u as We,v as Xe,w as Ye,Q as jt,b as de,c as i,R as Ln,f as v,E as Dt,T as Mn,U as rn,V as _e,I as re,K as se,L as ae,J as oe,q as u,D as rt,x as pe,e as h,g as te,h as M,j as p,t as ne,k as V,z as Hn,a as Le,A as Lt,C as st,y as Oe,N as sn,W as an,M as Rt,n as Ft,X as Kt,Y as Zt,B as Gt}from"../chunks/MT0Fezl8.js";import"../chunks/IHki7fMi.js";function _t(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function Un(s,e){F(s,1,1,()=>{e.delete(s.key)})}function zn(s,e,n,t,r,l,a,o,_,N,C,I){let y=s.length,S=l.length,T=y;const D={};for(;T--;)D[s[T].key]=T;const w=[],E=new Map,c=new Map,d=[];for(T=S;T--;){const $=I(r,l,T),A=n($);let b=a.get(A);b?d.push(()=>b.p($,e)):(b=N(A,$),b.c()),E.set(A,w[T]=b),A in D&&c.set(A,Math.abs(T-D[A]))}const m=new Set,g=new Set;function k($){x($,1),$.m(o,C),a.set($.key,$),C=$.first,S--}for(;y&&S;){const $=w[S-1],A=s[y-1],b=$.key,P=A.key;$===A?(C=$.first,y--,S--):E.has(P)?!a.has(b)||m.has(b)?k($):g.has(P)?y--:c.get(b)>c.get(P)?(g.add(b),k($)):(m.add(P),y--):(_(A,a),y--)}for(;y--;){const $=s[y];E.has($.key)||_($,a)}for(;S;)k(w[S-1]);return bt(d),w}function ze(s,e){const n={},t={},r={$$scope:1};let l=s.length;for(;l--;){const a=s[l],o=e[l];if(o){for(const _ in a)_ in o||(t[_]=1);for(const _ in o)r[_]||(n[_]=o[_],r[_]=1);s[l]=o}else for(const _ in a)r[_]=1}for(const a in t)a in n||(n[a]=void 0);return n}function Je(s){return typeof s=="object"&&s!==null?s:{}}/** + * @license lucide-svelte v0.303.0 - ISC + +This source code is licensed under the ISC license. +See the LICENSE file in the root directory of this source tree. + */const on={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"};function un(s,e,n){const t=s.slice();return t[10]=e[n][0],t[11]=e[n][1],t}function Wt(s){let e,n=[s[11]],t={};for(let r=0;r{n(7,e=J(J({},e),_e(S))),n(6,r=rn(e,t)),"name"in S&&n(0,o=S.name),"color"in S&&n(1,_=S.color),"size"in S&&n(2,N=S.size),"strokeWidth"in S&&n(3,C=S.strokeWidth),"absoluteStrokeWidth"in S&&n(4,I=S.absoluteStrokeWidth),"iconNode"in S&&n(5,y=S.iconNode),"$$scope"in S&&n(8,a=S.$$scope)},e=_e(e),[o,_,N,C,I,y,r,e,a,l]}class Qe extends He{constructor(e){super(),Ue(this,e,jn,Bn,Me,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Gn(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function qn(s){let e,n;const t=[{name:"alert-circle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Gn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Xn extends He{constructor(e){super(),Ue(this,e,Wn,qn,Me,{})}}function Yn(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Kn(s){let e,n;const t=[{name:"chevron-down"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Yn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Jn extends He{constructor(e){super(),Ue(this,e,Zn,Kn,Me,{})}}function Qn(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function el(s){let e,n;const t=[{name:"code"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Qn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class nl extends He{constructor(e){super(),Ue(this,e,tl,el,Me,{})}}function ll(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function rl(s){let e,n;const t=[{name:"copy"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ll]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Ht extends He{constructor(e){super(),Ue(this,e,sl,rl,Me,{})}}function al(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function ol(s){let e,n;const t=[{name:"download"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[al]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Xt extends He{constructor(e){super(),Ue(this,e,il,ol,Me,{})}}function ul(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function cl(s){let e,n;const t=[{name:"loader-2"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ul]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class dl extends He{constructor(e){super(),Ue(this,e,fl,cl,Me,{})}}function gl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function hl(s){let e,n;const t=[{name:"more-horizontal"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[gl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class ml extends He{constructor(e){super(),Ue(this,e,pl,hl,Me,{})}}function _l(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function bl(s){let e,n;const t=[{name:"panels-top-left"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[_l]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class yl extends He{constructor(e){super(),Ue(this,e,vl,bl,Me,{})}}function wl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function $l(s){let e,n;const t=[{name:"pause"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[wl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Vn extends He{constructor(e){super(),Ue(this,e,kl,$l,Me,{})}}function El(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Sl(s){let e,n;const t=[{name:"play"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[El]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Ut extends He{constructor(e){super(),Ue(this,e,Al,Sl,Me,{})}}function Tl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Il(s){let e,n;const t=[{name:"rotate-ccw"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Tl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Nl extends He{constructor(e){super(),Ue(this,e,Dl,Il,Me,{})}}function Cl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function xl(s){let e,n;const t=[{name:"share"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Cl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Yt extends He{constructor(e){super(),Ue(this,e,Fl,xl,Me,{})}}function Pl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Ol(s){let e,n;const t=[{name:"skip-back"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Pl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Ml extends He{constructor(e){super(),Ue(this,e,Ll,Ol,Me,{})}}function Vl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Rl(s){let e,n;const t=[{name:"skip-forward"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Vl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Ul extends He{constructor(e){super(),Ue(this,e,Hl,Rl,Me,{})}}function zl(s){let e;const n=s[2].default,t=qe(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&We(t,n,r,r[3],e?Ye(n,r[3],l,null):Xe(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Bl(s){let e,n;const t=[{name:"x"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[zl]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=J(J({},e),_e(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=_e(e),[l,e,t,r]}class Gl extends He{constructor(e){super(),Ue(this,e,jl,Bl,Me,{})}}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ql(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Rn={exports:{}};(function(s){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var n=function(t){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,a={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function c(d){return d instanceof _?new _(d.type,c(d.content),d.alias):Array.isArray(d)?d.map(c):d.replace(/&/g,"&").replace(/"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(g){var c=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack)||[])[1];if(c){var d=document.getElementsByTagName("script");for(var m in d)if(d[m].src==c)return d[m]}return null}},isActive:function(c,d,m){for(var g="no-"+d;c;){var k=c.classList;if(k.contains(d))return!0;if(k.contains(g))return!1;c=c.parentElement}return!!m}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(c,d){var m=o.util.clone(o.languages[c]);for(var g in d)m[g]=d[g];return m},insertBefore:function(c,d,m,g){g=g||o.languages;var k=g[c],$={};for(var A in k)if(k.hasOwnProperty(A)){if(A==d)for(var b in m)m.hasOwnProperty(b)&&($[b]=m[b]);m.hasOwnProperty(A)||($[A]=k[A])}var P=g[c];return g[c]=$,o.languages.DFS(o.languages,function(H,B){B===P&&H!=c&&(this[H]=$)}),$},DFS:function c(d,m,g,k){k=k||{};var $=o.util.objId;for(var A in d)if(d.hasOwnProperty(A)){m.call(d,A,d[A],g||A);var b=d[A],P=o.util.type(b);P==="Object"&&!k[$(b)]?(k[$(b)]=!0,c(b,m,null,k)):P==="Array"&&!k[$(b)]&&(k[$(b)]=!0,c(b,m,A,k))}}},plugins:{},highlightAll:function(c,d){o.highlightAllUnder(document,c,d)},highlightAllUnder:function(c,d,m){var g={callback:m,container:c,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",g),g.elements=Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)),o.hooks.run("before-all-elements-highlight",g);for(var k=0,$;$=g.elements[k++];)o.highlightElement($,d===!0,g.callback)},highlightElement:function(c,d,m){var g=o.util.getLanguage(c),k=o.languages[g];o.util.setLanguage(c,g);var $=c.parentElement;$&&$.nodeName.toLowerCase()==="pre"&&o.util.setLanguage($,g);var A=c.textContent,b={element:c,language:g,grammar:k,code:A};function P(B){b.highlightedCode=B,o.hooks.run("before-insert",b),b.element.innerHTML=b.highlightedCode,o.hooks.run("after-highlight",b),o.hooks.run("complete",b),m&&m.call(b.element)}if(o.hooks.run("before-sanity-check",b),$=b.element.parentElement,$&&$.nodeName.toLowerCase()==="pre"&&!$.hasAttribute("tabindex")&&$.setAttribute("tabindex","0"),!b.code){o.hooks.run("complete",b),m&&m.call(b.element);return}if(o.hooks.run("before-highlight",b),!b.grammar){P(o.util.encode(b.code));return}if(d&&t.Worker){var H=new Worker(o.filename);H.onmessage=function(B){P(B.data)},H.postMessage(JSON.stringify({language:b.language,code:b.code,immediateClose:!0}))}else P(o.highlight(b.code,b.grammar,b.language))},highlight:function(c,d,m){var g={code:c,grammar:d,language:m};if(o.hooks.run("before-tokenize",g),!g.grammar)throw new Error('The language "'+g.language+'" has no grammar.');return g.tokens=o.tokenize(g.code,g.grammar),o.hooks.run("after-tokenize",g),_.stringify(o.util.encode(g.tokens),g.language)},tokenize:function(c,d){var m=d.rest;if(m){for(var g in m)d[g]=m[g];delete d.rest}var k=new I;return y(k,k.head,c),C(c,k,d,k.head,0),T(k)},hooks:{all:{},add:function(c,d){var m=o.hooks.all;m[c]=m[c]||[],m[c].push(d)},run:function(c,d){var m=o.hooks.all[c];if(!(!m||!m.length))for(var g=0,k;k=m[g++];)k(d)}},Token:_};t.Prism=o;function _(c,d,m,g){this.type=c,this.content=d,this.alias=m,this.length=(g||"").length|0}_.stringify=function c(d,m){if(typeof d=="string")return d;if(Array.isArray(d)){var g="";return d.forEach(function(P){g+=c(P,m)}),g}var k={type:d.type,content:c(d.content,m),tag:"span",classes:["token",d.type],attributes:{},language:m},$=d.alias;$&&(Array.isArray($)?Array.prototype.push.apply(k.classes,$):k.classes.push($)),o.hooks.run("wrap",k);var A="";for(var b in k.attributes)A+=" "+b+'="'+(k.attributes[b]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+A+">"+k.content+""};function N(c,d,m,g){c.lastIndex=d;var k=c.exec(m);if(k&&g&&k[1]){var $=k[1].length;k.index+=$,k[0]=k[0].slice($)}return k}function C(c,d,m,g,k,$){for(var A in m)if(!(!m.hasOwnProperty(A)||!m[A])){var b=m[A];b=Array.isArray(b)?b:[b];for(var P=0;P=$.reach);X+=U.value.length,U=U.next){var Z=U.value;if(d.length>c.length)return;if(!(Z instanceof _)){var ce=1,be;if(R){if(be=N(G,X,c,L),!be||be.index>=c.length)break;var fe=be.index,z=be.index+be[0].length,q=X;for(q+=U.value.length;fe>=q;)U=U.next,q+=U.value.length;if(q-=U.value.length,X=q,U.value instanceof _)continue;for(var K=U;K!==d.tail&&(q$.reach&&($.reach=De);var $e=U.prev;ve&&($e=y(d,$e,ve),X+=ve.length),S(d,$e,ce);var ye=new _(A,B?o.tokenize(ee,B):ee,j,ee);if(U=y(d,$e,ye),ge&&y(d,U,ge),ce>1){var he={cause:A+","+P,reach:De};C(c,d,m,U.prev,X,he),$&&he.reach>$.reach&&($.reach=he.reach)}}}}}}function I(){var c={value:null,prev:null,next:null},d={value:null,prev:c,next:null};c.next=d,this.head=c,this.tail=d,this.length=0}function y(c,d,m){var g=d.next,k={value:m,prev:d,next:g};return d.next=k,g.prev=k,c.length++,k}function S(c,d,m){for(var g=d.next,k=0;k/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,l){var a={};a["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var _={};_[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",_)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(t,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var l=t.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading…",r=function(D,w){return"✖ Error "+D+" while fetching file: "+w},l="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",_="loading",N="loaded",C="failed",I="pre[data-src]:not(["+o+'="'+N+'"]):not(['+o+'="'+_+'"])';function y(D,w,E){var c=new XMLHttpRequest;c.open("GET",D,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status<400&&c.responseText?w(c.responseText):c.status>=400?E(r(c.status,c.statusText)):E(l))},c.send(null)}function S(D){var w=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(D||"");if(w){var E=Number(w[1]),c=w[2],d=w[3];return c?d?[E,Number(d)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(D){D.selector+=", "+I}),n.hooks.add("before-sanity-check",function(D){var w=D.element;if(w.matches(I)){D.code="",w.setAttribute(o,_);var E=w.appendChild(document.createElement("CODE"));E.textContent=t;var c=w.getAttribute("data-src"),d=D.language;if(d==="none"){var m=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=a[m]||m}n.util.setLanguage(E,d),n.util.setLanguage(w,d);var g=n.plugins.autoloader;g&&g.loadLanguages(d),y(c,function(k){w.setAttribute(o,N);var $=S(w.getAttribute("data-range"));if($){var A=k.split(/\r\n?|\n/g),b=$[0],P=$[1]==null?A.length:$[1];b<0&&(b+=A.length),b=Math.max(0,Math.min(b-1,A.length)),P<0&&(P+=A.length),P=Math.max(0,Math.min(P,A.length)),k=A.slice(b,P).join(` +`),w.hasAttribute("data-start")||w.setAttribute("data-start",String(b+1))}E.textContent=k,n.highlightElement(E)},function(k){w.setAttribute(o,C),E.textContent=k})}}),n.plugins.fileHighlight={highlight:function(w){for(var E=(w||document).querySelectorAll(I),c=0,d;d=E[c++];)n.highlightElement(d)}};var T=!1;n.fileHighlight=function(){T||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),T=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Rn);var Wl=Rn.exports;const ct=ql(Wl);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(s){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},t={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};s.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:t},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:t.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:t.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=s.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=t.variable[1].inside,a=0;a0||s[9]||s[1])&&_n(s),U=s[9]&&bn(s),X=s[1]&&vn(s),Z=!s[1]&&s[8].length===0&&yn(s),ce=_t(s[8]);const be=z=>z[79].id;for(let z=0;z0||z[9]||z[1]?G?(G.p(z,q),q[0]&770&&x(G,1)):(G=_n(z),G.c(),x(G,1),G.m(C,null)):G&&(st(),F(G,1,1,()=>{G=null}),rt()),z[9]?U?(U.p(z,q),q[0]&512&&x(U,1)):(U=bn(z),U.c(),x(U,1),U.m(g,k)):U&&(st(),F(U,1,1,()=>{U=null}),rt()),z[1]?X?(X.p(z,q),q[0]&2&&x(X,1)):(X=vn(z),X.c(),x(X,1),X.m(g,$)):X&&(st(),F(X,1,1,()=>{X=null}),rt()),!z[1]&&z[8].length===0?Z?Z.p(z,q):(Z=yn(z),Z.c(),Z.m(g,A)):Z&&(Z.d(1),Z=null),q[0]&256|q[1]&544&&(ce=_t(z[8]),st(),b=zn(b,q,be,1,z,ce,P,g,Un,kn,null,dn),rt())},i(z){if(!H){x(G),x(U),x(X);for(let q=0;qBilling ⤴',le,G,U,X='

Voice

',Z,ce,be,z,q='
+
Clone your voice
(coming soon)
',K,fe,ee,ve,ge,De="Exaggeration",$e,ye,he=s[12].toFixed(2)+"",Ce,Be,ke,vt,xe,ft="None Exaggerated",dt,je,et,Ve,it="Stability",yt,Ke,at=s[13].toFixed(2)+"",gt,wt,Ee,tt,Re,Tt="More stable More variable",O,ie,we;const Ge=[lr,nr],Ie=[];function nt(W,ue){return W[7]?0:1}T=nt(s),D=Ie[T]=Ge[T](s);let Ae=s[10]&&En(s),Fe=_t(s[24]),Ne=[];for(let W=0;WF(me[W],1,1,()=>{me[W]=null});return{c(){e=p("div"),n=p("div"),t=p("div"),r=p("textarea"),l=V(),a=p("div"),o=p("div"),_=p("span"),C=ne(N),I=ne(" / 5,000 characters"),y=V(),S=p("button"),D.c(),E=V(),Ae&&Ae.c(),c=V(),d=p("div"),m=p("div"),g=p("h3"),g.textContent=k,$=V(),A=p("button"),b=p("span");for(let W=0;W{Ie[Te]=null}),rt(),D=Ie[T],D||(D=Ie[T]=Ge[T](W),D.c()),x(D,1),D.m(S,null)),(!O||ue[0]&132&&w!==(w=W[7]||!W[2].trim()))&&(S.disabled=w),W[10]?Ae?(Ae.p(W,ue),ue[0]&1024&&x(Ae,1)):(Ae=En(W),Ae.c(),x(Ae,1),Ae.m(n,null)):Ae&&(st(),F(Ae,1,1,()=>{Ae=null}),rt()),ue[0]&16777232){Fe=_t(W[24]);let Q;for(Q=0;Qs[58](P,B,L),z=()=>s[58](null,B,L);function q(){return s[59](s[79],s[80],s[81])}return{c(){e=p("div"),n=p("div"),t=p("div"),r=p("div"),l=p("button"),o.c(),_=V(),N=p("div"),C=p("div"),y=ne(I),S=V(),T=p("div"),D=ne("Duration: "),E=ne(w),c=V(),d=p("div"),m=p("button"),oe(g.$$.fragment),k=V(),$=p("button"),oe(A.$$.fragment),b=V(),P=p("audio"),this.h()},l(K){e=h(K,"DIV",{class:!0});var fe=v(e);n=h(fe,"DIV",{class:!0});var ee=v(n);t=h(ee,"DIV",{class:!0});var ve=v(t);r=h(ve,"DIV",{class:!0});var ge=v(r);l=h(ge,"BUTTON",{class:!0});var De=v(l);o.l(De),De.forEach(f),_=M(ge),N=h(ge,"DIV",{class:!0});var $e=v(N);C=h($e,"DIV",{class:!0});var ye=v(C);y=te(ye,I),ye.forEach(f),S=M($e),T=h($e,"DIV",{class:!0});var he=v(T);D=te(he,"Duration: "),E=te(he,w),he.forEach(f),$e.forEach(f),ge.forEach(f),c=M(ve),d=h(ve,"DIV",{class:!0});var Ce=v(d);m=h(Ce,"BUTTON",{class:!0,title:!0});var Be=v(m);ae(g.$$.fragment,Be),Be.forEach(f),k=M(Ce),$=h(Ce,"BUTTON",{class:!0,title:!0});var ke=v($);ae(A.$$.fragment,ke),ke.forEach(f),Ce.forEach(f),ve.forEach(f),b=M(ee),P=h(ee,"AUDIO",{src:!0,class:!0}),v(P).forEach(f),ee.forEach(f),fe.forEach(f),this.h()},h(){u(l,"class","w-10 h-10 bg-gradient-to-r from-amber-500 to-orange-500 rounded-full flex items-center justify-center text-white hover:from-amber-600 hover:to-orange-600 transition-colors shadow-md"),u(C,"class","text-sm font-medium text-gray-900 truncate"),u(T,"class","text-xs text-gray-500"),u(N,"class","flex-1"),u(r,"class","flex items-center gap-3 flex-1"),u(m,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(m,"title","Download"),u($,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u($,"title","Share"),u(d,"class","flex items-center gap-1"),u(t,"class","flex items-center justify-between"),Gt(P.src,H=s[79].result.url)||u(P,"src",H),u(P,"class","hidden"),u(n,"class","bg-white rounded-lg border border-gray-200 p-4 shadow-sm"),u(e,"class","bg-gradient-to-b from-gray-50 to-white p-4")},m(K,fe){de(K,e,fe),i(e,n),i(n,t),i(t,r),i(r,l),U[a].m(l,null),i(r,_),i(r,N),i(N,C),i(C,y),i(N,S),i(N,T),i(T,D),i(T,E),i(t,c),i(t,d),i(d,m),se(g,m,null),i(d,k),i(d,$),se(A,$,null),i(n,b),i(n,P),be(),R=!0,j||(le=[pe(l,"click",Z),pe(m,"click",ce),pe(P,"ended",q)],j=!0)},p(K,fe){s=K;let ee=a;a=X(s),a!==ee&&(st(),F(U[ee],1,1,()=>{U[ee]=null}),rt(),o=U[a],o||(o=U[a]=G[a](s),o.c()),x(o,1),o.m(l,null)),(!R||fe[0]&256)&&I!==(I=(s[79].result.title||"Generated Audio")+"")&&Le(y,I),(!R||fe[0]&256)&&w!==(w=On(s[79].result.duration||0)+"")&&Le(E,w),(!R||fe[0]&256&&!Gt(P.src,H=s[79].result.url))&&u(P,"src",H),(B!==s[80]||L!==s[81])&&(z(),B=s[80],L=s[81],be())},i(K){R||(x(o),x(g.$$.fragment,K),x(A.$$.fragment,K),R=!0)},o(K){F(o),F(g.$$.fragment,K),F(A.$$.fragment,K),R=!1},d(K){K&&f(e),U[a].d(),re(g),re(A),z(),j=!1,bt(le)}}}function er(s){let e,n;return e=new Ut({props:{size:18,class:"ml-0.5"}}),{c(){oe(e.$$.fragment)},l(t){ae(e.$$.fragment,t)},m(t,r){se(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){re(e,t)}}}function tr(s){let e,n;return e=new Vn({props:{size:18}}),{c(){oe(e.$$.fragment)},l(t){ae(e.$$.fragment,t)},m(t,r){se(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){re(e,t)}}}function kn(s,e){let n,t,r,l,a,o=e[81]+1+"",_,N,C,I,y,S,T,D,w,E=ct.highlight(e[79].code,ct.languages.python,"python")+"",c,d,m,g,k;I=new Ht({props:{size:14,class:"text-gray-600"}});function $(){return e[55](e[79])}let A=e[79].result&&e[79].result.type==="audio"&&$n(e);return{key:s,first:null,c(){n=p("div"),t=p("div"),r=p("div"),l=p("span"),a=ne("Cell "),_=ne(o),N=V(),C=p("button"),oe(I.$$.fragment),y=V(),S=p("div"),T=p("pre"),D=p("code"),w=new Zt(!1),c=V(),A&&A.c(),d=V(),this.h()},l(b){n=h(b,"DIV",{class:!0});var P=v(n);t=h(P,"DIV",{class:!0});var H=v(t);r=h(H,"DIV",{class:!0});var B=v(r);l=h(B,"SPAN",{class:!0});var L=v(l);a=te(L,"Cell "),_=te(L,o),L.forEach(f),N=M(B),C=h(B,"BUTTON",{class:!0,title:!0});var R=v(C);ae(I.$$.fragment,R),R.forEach(f),B.forEach(f),y=M(H),S=h(H,"DIV",{class:!0});var j=v(S);T=h(j,"PRE",{class:!0});var le=v(T);D=h(le,"CODE",{class:!0});var G=v(D);w=Kt(G,!1),G.forEach(f),le.forEach(f),j.forEach(f),H.forEach(f),c=M(P),A&&A.l(P),d=M(P),P.forEach(f),this.h()},h(){u(l,"class","text-sm font-medium text-gray-700"),u(C,"class","p-1.5 hover:bg-gray-200 rounded transition-colors"),u(C,"title","Copy code"),u(r,"class","flex items-center justify-between px-4 py-2 bg-gray-50 border-b border-gray-100"),w.a=null,u(D,"class","language-python text-sm"),u(T,"class","p-4 overflow-x-auto bg-gray-50"),u(S,"class","relative"),u(t,"class","border-b border-gray-200"),u(n,"class","bg-white rounded-lg border border-gray-200 overflow-hidden shadow-sm"),this.first=n},m(b,P){de(b,n,P),i(n,t),i(t,r),i(r,l),i(l,a),i(l,_),i(r,N),i(r,C),se(I,C,null),i(t,y),i(t,S),i(S,T),i(T,D),w.m(E,D),i(n,c),A&&A.m(n,null),i(n,d),m=!0,g||(k=pe(C,"click",$),g=!0)},p(b,P){e=b,(!m||P[0]&256)&&o!==(o=e[81]+1+"")&&Le(_,o),(!m||P[0]&256)&&E!==(E=ct.highlight(e[79].code,ct.languages.python,"python")+"")&&w.p(E),e[79].result&&e[79].result.type==="audio"?A?(A.p(e,P),P[0]&256&&x(A,1)):(A=$n(e),A.c(),x(A,1),A.m(n,d)):A&&(st(),F(A,1,1,()=>{A=null}),rt())},i(b){m||(x(I.$$.fragment,b),x(A),m=!0)},o(b){F(I.$$.fragment,b),F(A),m=!1},d(b){b&&f(n),re(I),A&&A.d(),g=!1,k()}}}function nr(s){let e,n,t;return e=new Ut({props:{size:20}}),{c(){oe(e.$$.fragment),n=ne(` + Generate speech`)},l(r){ae(e.$$.fragment,r),n=te(r,` + Generate speech`)},m(r,l){se(e,r,l),de(r,n,l),t=!0},i(r){t||(x(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),re(e,r)}}}function lr(s){let e,n,t;return e=new dl({props:{size:20,class:"animate-spin"}}),{c(){oe(e.$$.fragment),n=ne(` + Generating...`)},l(r){ae(e.$$.fragment,r),n=te(r,` + Generating...`)},m(r,l){se(e,r,l),de(r,n,l),t=!0},i(r){t||(x(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),re(e,r)}}}function En(s){let e,n,t,r,l,a,o,_,N,C,I,y,S,T,D,w,E,c="Share",d,m,g,k="Download",$,A,b,P,H,B,L,R,j,le,G=It(s[15])+"",U,X,Z,ce,be,z,q=It(s[16])+"",K,fe,ee,ve,ge,De,$e,ye,he,Ce,Be,ke,vt,xe,ft,dt=It(s[15])+"",je,et,Ve,it,yt,Ke,at=It(s[16])+"",gt,wt,Ee,tt,Re,Tt,O,ie,we,Ge,Ie,nt,Ae,Fe,Ne,Pe;D=new Yt({props:{size:14,class:"text-gray-600"}}),A=new Xt({props:{size:14,class:"text-gray-600"}});const pt=[sr,rr],me=[];function zt(Y,Se){return Y[14]?0:1}B=zt(s),L=me[B]=pt[B](s),ge=new Ml({props:{size:20,class:"text-gray-600"}});const W=[or,ar],ue=[];function Te(Y,Se){return Y[14]?0:1}ye=Te(s),he=ue[ye]=W[ye](s),ke=new Ul({props:{size:20,class:"text-gray-600"}}),Re=new Yt({props:{size:14}}),we=new Xt({props:{size:16,class:"text-gray-600"}}),nt=new ml({props:{size:16,class:"text-gray-600"}});let Q=s[10]&&Sn(s);return{c(){e=p("div"),n=p("div"),t=p("div"),r=V(),l=p("div"),a=p("h3"),o=ne(s[17]),_=V(),N=p("p"),C=ne(s[3]),I=ne(" • Created 1 second ago"),y=V(),S=p("div"),T=p("button"),oe(D.$$.fragment),w=V(),E=p("span"),E.textContent=c,d=V(),m=p("button"),g=p("span"),g.textContent=k,$=V(),oe(A.$$.fragment),b=V(),P=p("div"),H=p("button"),L.c(),R=V(),j=p("div"),le=p("span"),U=ne(G),X=V(),Z=p("div"),ce=p("div"),be=V(),z=p("span"),K=ne(q),fe=V(),ee=p("div"),ve=p("button"),oe(ge.$$.fragment),De=V(),$e=p("button"),he.c(),Ce=V(),Be=p("button"),oe(ke.$$.fragment),vt=V(),xe=p("div"),ft=p("span"),je=ne(dt),et=V(),Ve=p("div"),it=p("div"),yt=V(),Ke=p("span"),gt=ne(at),wt=V(),Ee=p("div"),tt=p("button"),oe(Re.$$.fragment),Tt=ne(` + Share`),O=V(),ie=p("button"),oe(we.$$.fragment),Ge=V(),Ie=p("button"),oe(nt.$$.fragment),Ae=V(),Q&&Q.c(),this.h()},l(Y){e=h(Y,"DIV",{class:!0});var Se=v(e);n=h(Se,"DIV",{class:!0});var lt=v(n);t=h(lt,"DIV",{class:!0}),v(t).forEach(f),r=M(lt),l=h(lt,"DIV",{class:!0});var ht=v(l);a=h(ht,"H3",{class:!0});var $t=v(a);o=te($t,s[17]),$t.forEach(f),_=M(ht),N=h(ht,"P",{class:!0});var ut=v(N);C=te(ut,s[3]),I=te(ut," • Created 1 second ago"),ut.forEach(f),ht.forEach(f),y=M(lt),S=h(lt,"DIV",{class:!0});var kt=v(S);T=h(kt,"BUTTON",{class:!0});var Nt=v(T);ae(D.$$.fragment,Nt),w=M(Nt),E=h(Nt,"SPAN",{class:!0,"data-svelte-h":!0}),Oe(E)!=="svelte-hbn8gl"&&(E.textContent=c),Nt.forEach(f),d=M(kt),m=h(kt,"BUTTON",{class:!0});var Et=v(m);g=h(Et,"SPAN",{class:!0,"data-svelte-h":!0}),Oe(g)!=="svelte-h01aeg"&&(g.textContent=k),$=M(Et),ae(A.$$.fragment,Et),Et.forEach(f),kt.forEach(f),lt.forEach(f),b=M(Se),P=h(Se,"DIV",{class:!0});var St=v(P);H=h(St,"BUTTON",{class:!0});var Ct=v(H);L.l(Ct),Ct.forEach(f),R=M(St),j=h(St,"DIV",{class:!0});var ot=v(j);le=h(ot,"SPAN",{class:!0});var xt=v(le);U=te(xt,G),xt.forEach(f),X=M(ot),Z=h(ot,"DIV",{class:!0});var Mt=v(Z);ce=h(Mt,"DIV",{class:!0,style:!0}),v(ce).forEach(f),Mt.forEach(f),be=M(ot),z=h(ot,"SPAN",{class:!0});var At=v(z);K=te(At,q),At.forEach(f),ot.forEach(f),St.forEach(f),fe=M(Se),ee=h(Se,"DIV",{class:!0});var Ze=v(ee);ve=h(Ze,"BUTTON",{class:!0,title:!0});var Vt=v(ve);ae(ge.$$.fragment,Vt),Vt.forEach(f),De=M(Ze),$e=h(Ze,"BUTTON",{class:!0});var mt=v($e);he.l(mt),mt.forEach(f),Ce=M(Ze),Be=h(Ze,"BUTTON",{class:!0,title:!0});var Jt=v(Be);ae(ke.$$.fragment,Jt),Jt.forEach(f),vt=M(Ze),xe=h(Ze,"DIV",{class:!0});var Pt=v(xe);ft=h(Pt,"SPAN",{class:!0});var Qt=v(ft);je=te(Qt,dt),Qt.forEach(f),et=M(Pt),Ve=h(Pt,"DIV",{class:!0});var en=v(Ve);it=h(en,"DIV",{class:!0,style:!0}),v(it).forEach(f),en.forEach(f),yt=M(Pt),Ke=h(Pt,"SPAN",{class:!0});var tn=v(Ke);gt=te(tn,at),tn.forEach(f),Pt.forEach(f),wt=M(Ze),Ee=h(Ze,"DIV",{class:!0});var Ot=v(Ee);tt=h(Ot,"BUTTON",{class:!0});var qt=v(tt);ae(Re.$$.fragment,qt),Tt=te(qt,` + Share`),qt.forEach(f),O=M(Ot),ie=h(Ot,"BUTTON",{class:!0,title:!0});var nn=v(ie);ae(we.$$.fragment,nn),nn.forEach(f),Ge=M(Ot),Ie=h(Ot,"BUTTON",{class:!0,title:!0});var ln=v(Ie);ae(nt.$$.fragment,ln),ln.forEach(f),Ot.forEach(f),Ze.forEach(f),Ae=M(Se),Q&&Q.l(Se),Se.forEach(f),this.h()},h(){u(t,"class","w-2 h-2 bg-green-500 rounded-full"),u(a,"class","font-medium text-gray-900 text-sm"),u(N,"class","text-xs text-gray-500"),u(l,"class","flex-1"),u(E,"class","text-gray-700"),u(T,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u(g,"class","text-gray-700"),u(m,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u(S,"class","flex items-center gap-2"),u(n,"class","flex items-center gap-3 mb-4"),u(H,"class","w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(le,"class","text-xs text-gray-500 font-mono"),u(ce,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Rt(ce,"width",s[15]/s[16]*100+"%"),u(Z,"class","flex-1 h-1 bg-gray-200 rounded-full cursor-pointer"),u(z,"class","text-xs text-gray-500 font-mono"),u(j,"class","flex-1 flex items-center gap-2"),u(P,"class","flex items-center gap-3 mb-4"),u(ve,"class","p-2 hover:bg-gray-100 rounded-full"),u(ve,"title","Skip back"),u($e,"class","w-12 h-12 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(Be,"class","p-2 hover:bg-gray-100 rounded-full"),u(Be,"title","Skip forward"),u(ft,"class","text-xs text-gray-500 font-mono"),u(it,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Rt(it,"width",s[15]/s[16]*100+"%"),u(Ve,"class","flex-1 h-1 bg-gray-200 rounded-full"),u(Ke,"class","text-xs text-gray-500 font-mono"),u(xe,"class","flex-1 flex items-center gap-3"),u(tt,"class","flex items-center gap-2 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50"),u(ie,"class","p-2 hover:bg-gray-100 rounded-md"),u(ie,"title","Download"),u(Ie,"class","p-2 hover:bg-gray-100 rounded-md"),u(Ie,"title","More options"),u(Ee,"class","flex items-center gap-2"),u(ee,"class","flex items-center gap-4 mb-4"),u(e,"class","p-4 border border-gray-200 rounded-lg bg-white")},m(Y,Se){de(Y,e,Se),i(e,n),i(n,t),i(n,r),i(n,l),i(l,a),i(a,o),i(l,_),i(l,N),i(N,C),i(N,I),i(n,y),i(n,S),i(S,T),se(D,T,null),i(T,w),i(T,E),i(S,d),i(S,m),i(m,g),i(m,$),se(A,m,null),i(e,b),i(e,P),i(P,H),me[B].m(H,null),i(P,R),i(P,j),i(j,le),i(le,U),i(j,X),i(j,Z),i(Z,ce),i(j,be),i(j,z),i(z,K),i(e,fe),i(e,ee),i(ee,ve),se(ge,ve,null),i(ee,De),i(ee,$e),ue[ye].m($e,null),i(ee,Ce),i(ee,Be),se(ke,Be,null),i(ee,vt),i(ee,xe),i(xe,ft),i(ft,je),i(xe,et),i(xe,Ve),i(Ve,it),i(xe,yt),i(xe,Ke),i(Ke,gt),i(ee,wt),i(ee,Ee),i(Ee,tt),se(Re,tt,null),i(tt,Tt),i(Ee,O),i(Ee,ie),se(we,ie,null),i(Ee,Ge),i(Ee,Ie),se(nt,Ie,null),i(e,Ae),Q&&Q.m(e,null),Fe=!0,Ne||(Pe=[pe(T,"click",Pn),pe(m,"click",s[32]),pe(H,"click",s[27]),pe($e,"click",s[27]),pe(tt,"click",Pn),pe(ie,"click",s[32])],Ne=!0)},p(Y,Se){(!Fe||Se[0]&131072)&&Le(o,Y[17]),(!Fe||Se[0]&8)&&Le(C,Y[3]);let lt=B;B=zt(Y),B!==lt&&(st(),F(me[lt],1,1,()=>{me[lt]=null}),rt(),L=me[B],L||(L=me[B]=pt[B](Y),L.c()),x(L,1),L.m(H,null)),(!Fe||Se[0]&32768)&&G!==(G=It(Y[15])+"")&&Le(U,G),(!Fe||Se[0]&98304)&&Rt(ce,"width",Y[15]/Y[16]*100+"%"),(!Fe||Se[0]&65536)&&q!==(q=It(Y[16])+"")&&Le(K,q);let ht=ye;ye=Te(Y),ye!==ht&&(st(),F(ue[ht],1,1,()=>{ue[ht]=null}),rt(),he=ue[ye],he||(he=ue[ye]=W[ye](Y),he.c()),x(he,1),he.m($e,null)),(!Fe||Se[0]&32768)&&dt!==(dt=It(Y[15])+"")&&Le(je,dt),(!Fe||Se[0]&98304)&&Rt(it,"width",Y[15]/Y[16]*100+"%"),(!Fe||Se[0]&65536)&&at!==(at=It(Y[16])+"")&&Le(gt,at),Y[10]?Q?Q.p(Y,Se):(Q=Sn(Y),Q.c(),Q.m(e,null)):Q&&(Q.d(1),Q=null)},i(Y){Fe||(x(D.$$.fragment,Y),x(A.$$.fragment,Y),x(L),x(ge.$$.fragment,Y),x(he),x(ke.$$.fragment,Y),x(Re.$$.fragment,Y),x(we.$$.fragment,Y),x(nt.$$.fragment,Y),Fe=!0)},o(Y){F(D.$$.fragment,Y),F(A.$$.fragment,Y),F(L),F(ge.$$.fragment,Y),F(he),F(ke.$$.fragment,Y),F(Re.$$.fragment,Y),F(we.$$.fragment,Y),F(nt.$$.fragment,Y),Fe=!1},d(Y){Y&&f(e),re(D),re(A),me[B].d(),re(ge),ue[ye].d(),re(ke),re(Re),re(we),re(nt),Q&&Q.d(),Ne=!1,bt(Pe)}}}function rr(s){let e,n;return e=new Ut({props:{size:14,class:"text-white ml-0.5"}}),{c(){oe(e.$$.fragment)},l(t){ae(e.$$.fragment,t)},m(t,r){se(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){re(e,t)}}}function sr(s){let e;return{c(){e=p("div"),this.h()},l(n){e=h(n,"DIV",{class:!0}),v(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white")},m(n,t){de(n,e,t)},i:Ft,o:Ft,d(n){n&&f(e)}}}function ar(s){let e,n;return e=new Ut({props:{size:20,class:"text-white ml-0.5"}}),{c(){oe(e.$$.fragment)},l(t){ae(e.$$.fragment,t)},m(t,r){se(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){re(e,t)}}}function or(s){let e;return{c(){e=p("div"),this.h()},l(n){e=h(n,"DIV",{class:!0}),v(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white scale-150")},m(n,t){de(n,e,t)},i:Ft,o:Ft,d(n){n&&f(e)}}}function Sn(s){let e,n,t,r;return{c(){e=p("audio"),this.h()},l(l){e=h(l,"AUDIO",{src:!0,style:!0}),v(e).forEach(f),this.h()},h(){Gt(e.src,n=s[10])||u(e,"src",n),Rt(e,"display","none")},m(l,a){de(l,e,a),s[44](e),t||(r=[pe(e,"loadedmetadata",s[28]),pe(e,"timeupdate",s[29]),pe(e,"play",s[30]),pe(e,"pause",s[31])],t=!0)},p(l,a){a[0]&1024&&!Gt(e.src,n=l[10])&&u(e,"src",n)},d(l){l&&f(e),s[44](null),t=!1,bt(r)}}}function An(s){let e=s[74].name+"",n,t,r=s[74].badge&&ir(s);return{c(){n=ne(e),r&&r.c(),t=Dt()},l(l){n=te(l,e),r&&r.l(l),t=Dt()},m(l,a){de(l,n,a),r&&r.m(l,a),de(l,t,a)},p(l,a){l[74].badge&&r.p(l,a)},d(l){l&&(f(n),f(t)),r&&r.d(l)}}}function ir(s){let e,n,t,r=s[74].badge+"",l,a;return{c(){e=ne(" "),n=p("span"),t=ne("("),l=ne(r),a=ne(")"),this.h()},l(o){e=te(o," "),n=h(o,"SPAN",{class:!0});var _=v(n);t=te(_,"("),l=te(_,r),a=te(_,")"),_.forEach(f),this.h()},h(){u(n,"class","text-xs text-gray-500")},m(o,_){de(o,e,_),de(o,n,_),i(n,t),i(n,l),i(n,a)},p:Ft,d(o){o&&(f(e),f(n))}}}function Tn(s){let e,n=s[74].name===s[4]&&An(s);return{c(){n&&n.c(),e=Dt()},l(t){n&&n.l(t),e=Dt()},m(t,r){n&&n.m(t,r),de(t,e,r)},p(t,r){t[74].name===t[4]?n?n.p(t,r):(n=An(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&f(e),n&&n.d(t)}}}function In(s){let e,n=_t(s[24]),t=[];for(let r=0;r{b[j]=null}),rt(),c=b[E],c||(c=b[E]=A[E](s),c.c()),x(c,1),c.m(w,null)),(!g||R[0]&8&&m!==(m="w-full flex items-center justify-between p-2 rounded-lg hover:bg-gray-50 transition-colors text-left group border border-transparent "+(s[71].name===s[3]?"bg-gray-100 border-gray-200":"")))&&u(e,"class",m)},i(L){g||(x(c),g=!0)},o(L){F(c),g=!1},d(L){L&&f(e),b[E].d(),k=!1,bt($)}}}function Cn(s){let e,n;return{c(){e=p("div"),n=ne(s[11]),this.h()},l(t){e=h(t,"DIV",{class:!0});var r=v(e);n=te(r,s[11]),r.forEach(f),this.h()},h(){u(e,"class","fixed bottom-4 right-4 px-4 py-2 bg-gray-900 text-white rounded-lg shadow-lg z-50 animate-fade-in svelte-u8edqi")},m(t,r){de(t,e,r),i(e,n)},p(t,r){r[0]&2048&&Le(n,t[11])},d(t){t&&f(e)}}}function xn(s){let e,n,t,r,l,a,o,_,N,C,I,y,S="An error occurred while processing your request",T,D,w,E,c,d,m,g,k,$,A,b,P="Close",H,B,L;a=new Xn({props:{size:20,class:"text-red-600"}}),w=new Gl({props:{size:20,class:"text-gray-500"}});let R=s[22]&&Fn(s);return k=new Ht({props:{size:16}}),{c(){e=p("div"),n=p("div"),t=p("div"),r=p("div"),l=p("div"),oe(a.$$.fragment),o=V(),_=p("div"),N=p("h3"),C=ne(s[21]),I=V(),y=p("p"),y.textContent=S,T=V(),D=p("button"),oe(w.$$.fragment),E=V(),c=p("div"),R&&R.c(),d=V(),m=p("div"),g=p("button"),oe(k.$$.fragment),$=ne(` + Copy Error`),A=V(),b=p("button"),b.textContent=P,this.h()},l(j){e=h(j,"DIV",{class:!0});var le=v(e);n=h(le,"DIV",{class:!0});var G=v(n);t=h(G,"DIV",{class:!0});var U=v(t);r=h(U,"DIV",{class:!0});var X=v(r);l=h(X,"DIV",{class:!0});var Z=v(l);ae(a.$$.fragment,Z),Z.forEach(f),o=M(X),_=h(X,"DIV",{class:!0});var ce=v(_);N=h(ce,"H3",{class:!0});var be=v(N);C=te(be,s[21]),be.forEach(f),I=M(ce),y=h(ce,"P",{class:!0,"data-svelte-h":!0}),Oe(y)!=="svelte-1l3zl3"&&(y.textContent=S),ce.forEach(f),X.forEach(f),T=M(U),D=h(U,"BUTTON",{class:!0,title:!0});var z=v(D);ae(w.$$.fragment,z),z.forEach(f),U.forEach(f),E=M(G),c=h(G,"DIV",{class:!0});var q=v(c);R&&R.l(q),q.forEach(f),d=M(G),m=h(G,"DIV",{class:!0});var K=v(m);g=h(K,"BUTTON",{class:!0});var fe=v(g);ae(k.$$.fragment,fe),$=te(fe,` + Copy Error`),fe.forEach(f),A=M(K),b=h(K,"BUTTON",{class:!0,"data-svelte-h":!0}),Oe(b)!=="svelte-1nyppew"&&(b.textContent=P),K.forEach(f),G.forEach(f),le.forEach(f),this.h()},h(){u(l,"class","w-10 h-10 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0"),u(N,"class","text-lg font-semibold text-gray-900 truncate"),u(y,"class","text-sm text-gray-600"),u(_,"class","min-w-0"),u(r,"class","flex items-center gap-3 min-w-0"),u(D,"class","p-2 hover:bg-red-100 rounded-full transition-colors flex-shrink-0"),u(D,"title","Close"),u(t,"class","flex items-center justify-between p-6 border-b border-gray-200 bg-red-50 flex-shrink-0"),u(c,"class","p-6 overflow-y-auto flex-1 min-h-0"),u(g,"class","flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors"),u(b,"class","px-6 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"),u(m,"class","flex items-center justify-end gap-3 p-6 border-t border-gray-200 bg-gray-50 flex-shrink-0"),u(n,"class","bg-white rounded-xl shadow-2xl max-w-2xl w-full max-h-[80vh] flex flex-col"),u(e,"class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4")},m(j,le){de(j,e,le),i(e,n),i(n,t),i(t,r),i(r,l),se(a,l,null),i(r,o),i(r,_),i(_,N),i(N,C),i(_,I),i(_,y),i(t,T),i(t,D),se(w,D,null),i(n,E),i(n,c),R&&R.m(c,null),i(n,d),i(n,m),i(m,g),se(k,g,null),i(g,$),i(m,A),i(m,b),H=!0,B||(L=[pe(D,"click",s[37]),pe(g,"click",s[38]),pe(b,"click",s[37])],B=!0)},p(j,le){(!H||le[0]&2097152)&&Le(C,j[21]),j[22]?R?R.p(j,le):(R=Fn(j),R.c(),R.m(c,null)):R&&(R.d(1),R=null)},i(j){H||(x(a.$$.fragment,j),x(w.$$.fragment,j),x(k.$$.fragment,j),H=!0)},o(j){F(a.$$.fragment,j),F(w.$$.fragment,j),F(k.$$.fragment,j),H=!1},d(j){j&&f(e),re(a),re(w),R&&R.d(),re(k),B=!1,bt(L)}}}function Fn(s){let e,n,t="Error Details:",r,l,a;return{c(){e=p("div"),n=p("h4"),n.textContent=t,r=V(),l=p("pre"),a=ne(s[22]),this.h()},l(o){e=h(o,"DIV",{class:!0});var _=v(e);n=h(_,"H4",{class:!0,"data-svelte-h":!0}),Oe(n)!=="svelte-3lmggt"&&(n.textContent=t),r=M(_),l=h(_,"PRE",{class:!0});var N=v(l);a=te(N,s[22]),N.forEach(f),_.forEach(f),this.h()},h(){u(n,"class","text-sm font-medium text-gray-900 mb-2"),u(l,"class","text-xs text-gray-700 whitespace-pre-wrap font-mono leading-relaxed break-words"),u(e,"class","bg-gray-50 rounded-lg p-4 border")},m(o,_){de(o,e,_),i(e,n),i(e,r),i(e,l),i(l,a)},p(o,_){_[0]&4194304&&Le(a,o[22])},d(o){o&&f(e)}}}function dr(s){let e,n,t,r,l,a,o,_,N,C,I,y,S,T,D,w,E,c,d,m,g,k;o=new yl({props:{size:14}}),y=new nl({props:{size:14}});let $=s[8].length>0&&mn(s);const A=[Yl,Xl],b=[];function P(L,R){return L[5]==="ui"?0:1}w=P(s),E=b[w]=A[w](s);let H=s[11]&&Cn(s),B=s[20]&&xn(s);return{c(){e=p("div"),n=p("header"),t=p("div"),r=p("div"),l=p("div"),a=p("button"),oe(o.$$.fragment),_=ne(` + UI`),C=V(),I=p("button"),oe(y.$$.fragment),S=ne(` + Code Recorder + `),$&&$.c(),D=V(),E.c(),c=V(),H&&H.c(),d=V(),B&&B.c(),this.h()},l(L){e=h(L,"DIV",{class:!0});var R=v(e);n=h(R,"HEADER",{class:!0});var j=v(n);t=h(j,"DIV",{class:!0});var le=v(t);r=h(le,"DIV",{class:!0});var G=v(r);l=h(G,"DIV",{class:!0});var U=v(l);a=h(U,"BUTTON",{class:!0});var X=v(a);ae(o.$$.fragment,X),_=te(X,` + UI`),X.forEach(f),C=M(U),I=h(U,"BUTTON",{class:!0});var Z=v(I);ae(y.$$.fragment,Z),S=te(Z,` + Code Recorder + `),$&&$.l(Z),Z.forEach(f),U.forEach(f),G.forEach(f),le.forEach(f),j.forEach(f),D=M(R),E.l(R),c=M(R),H&&H.l(R),d=M(R),B&&B.l(R),R.forEach(f),this.h()},h(){u(a,"class",N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(s[5]==="ui"?"bg-white shadow-sm":"text-gray-600")),u(I,"class",T="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative "+(s[5]==="code"?"bg-white shadow-sm":"text-gray-600")),u(l,"class","flex items-center bg-gray-100 rounded-md p-0.5"),u(r,"class","flex items-center gap-2"),u(t,"class","flex items-center justify-end px-4 py-2"),u(n,"class","border-b border-gray-200 bg-white"),u(e,"class","flex flex-col h-full")},m(L,R){de(L,e,R),i(e,n),i(n,t),i(t,r),i(r,l),i(l,a),se(o,a,null),i(a,_),i(l,C),i(l,I),se(y,I,null),i(I,S),$&&$.m(I,null),i(e,D),b[w].m(e,null),i(e,c),H&&H.m(e,null),i(e,d),B&&B.m(e,null),m=!0,g||(k=[pe(a,"click",s[41]),pe(I,"click",s[42]),pe(e,"click",s[34])],g=!0)},p(L,R){(!m||R[0]&32&&N!==(N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(L[5]==="ui"?"bg-white shadow-sm":"text-gray-600")))&&u(a,"class",N),L[8].length>0?$?$.p(L,R):($=mn(L),$.c(),$.m(I,null)):$&&($.d(1),$=null),(!m||R[0]&32&&T!==(T="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative "+(L[5]==="code"?"bg-white shadow-sm":"text-gray-600")))&&u(I,"class",T);let j=w;w=P(L),w===j?b[w].p(L,R):(st(),F(b[j],1,1,()=>{b[j]=null}),rt(),E=b[w],E?E.p(L,R):(E=b[w]=A[w](L),E.c()),x(E,1),E.m(e,c)),L[11]?H?H.p(L,R):(H=Cn(L),H.c(),H.m(e,d)):H&&(H.d(1),H=null),L[20]?B?(B.p(L,R),R[0]&1048576&&x(B,1)):(B=xn(L),B.c(),x(B,1),B.m(e,null)):B&&(st(),F(B,1,1,()=>{B=null}),rt())},i(L){m||(x(o.$$.fragment,L),x(y.$$.fragment,L),x(E),x(B),m=!0)},o(L){F(o.$$.fragment,L),F(y.$$.fragment,L),F(E),F(B),m=!1},d(L){L&&f(e),re(o),re(y),$&&$.d(),b[w].d(),H&&H.d(),B&&B.d(),g=!1,bt(k)}}}function It(s){const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function Pn(){}function gr(s,e){const n=document.createElement("a");n.href=s,n.download=`${e||"audio"}.wav`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function On(s){if(!s)return"0:00";const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function hr(s,e,n){let t="In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.",r="Lily",l="Chatterbox",a="api",o="ui",_=!1,N=!1,C=[],I=K(),y=null,S=null,T=null,D=.25,w=.7,E=!1,c=0,d=0,m="",g=null,k=null,$=null,A=!1,b="",P="",H=null;const B=[{id:"chatterbox",name:"Chatterbox",badge:"recommended"},{id:"kokoro",name:"Kokoro",badge:"coming soon",disabled:!0}],L=[{id:"lily",name:"Lily",description:"Warm, conversational voice from a female in her 30s",sample:"/voices/lily.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/lily.mp3"},{id:"andrew",name:"Andrew",description:"Older British man who speaks clearly and kindly",sample:"/voices/andrew.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/andrew.mp3"},{id:"fairy",name:"Fairy",description:"High and airy female voice that bursts with excitement",sample:"/voices/fairy.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/fairy.mp3"},{id:"pirate",name:"Pirate",description:"Young pirate that speaks gruffly and passionately",sample:"/voices/pirate.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/pirate.mp3"}];async function R(){if(!t.trim())return;if(!(await fetch("/api/auth/user",{credentials:"include"})).ok){window.dispatchEvent(new CustomEvent("show-login-prompt"));return}n(7,N=!0),n(10,S=null),n(15,c=0),y||n(1,y=ee());const ie=ve();n(14,E=!1),n(17,m=t.length>30?t.substring(0,30)+"...":t);try{const we={text:t,voice_id:r.toLowerCase(),model_id:l.toLowerCase(),mode:a,parameters:{exaggeration:D,temperature:w}},Ge=await fetch("/api/tts/generate",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(we)});if(!Ge.ok){const nt=await Ge.text();throw new Error(`HTTP error! status: ${Ge.status}, body: ${nt}`)}const Ie=await Ge.json();if(Ie.success&&Ie.audio_url)n(10,S=Ie.audio_url),z(ie,{type:"audio",url:Ie.audio_url,title:m,duration:Ie.duration}),o==="ui"&&setTimeout(()=>{g&&g.play().catch(()=>{})},100);else{const nt=Ie.error||"Unknown error occurred";De("Generation Failed",nt),n(10,S=null)}}catch{De("Network Error","Failed to connect to the server. Please check your connection and try again."),n(10,S=null)}finally{n(7,N=!1)}}function j(){g&&(E?g.pause():g.play())}function le(){g&&n(16,d=g.duration)}function G(){g&&n(15,c=g.currentTime)}function U(){n(14,E=!0)}function X(){n(14,E=!1)}function Z(){if(S){const O=document.createElement("a");O.href=S,O.download="speech.wav",O.click()}}function ce(O,ie){if(ie.stopPropagation(),$===O.name)k&&(k.pause(),k.currentTime=0),n(19,$=null);else{k&&k.pause(),n(19,$=O.name);const we=O.sample||"/samples/harvard.wav";k?k.src=we:(k=new Audio(we),k.addEventListener("ended",()=>{n(19,$=null)})),k.play().catch(Ge=>{n(19,$=null)})}}function be(O){O.target.closest(".model-dropdown")||n(6,_=!1)}function z(O,ie=null){const we={id:Date.now()+Math.random(),code:O,result:ie};return n(8,C=[...C,we]),we}function q(){n(8,C=[]),n(9,I=K()),n(1,y=null)}function K(){return a==="local"?`pip install huggingface-hub hfstudio uv +hfstudio start ${l.toLowerCase()} --port 7861`:"pip install huggingface-hub"}function fe(){return a==="local"?'client = InferenceClient(base_url="http://localhost:7861/api/v1")':`client = InferenceClient( + api_key="YOUR_HF_TOKEN", # Get your token from https://huggingface.co/settings/tokens + model="${l.toLowerCase()==="chatterbox"?"ResembleAI/chatterbox":l.toLowerCase()}", +)`}function ee(){const O=fe();return a==="local"?`from huggingface_hub import InferenceClient + +${O}`:`from huggingface_hub import InferenceClient + +${O}`}function ve(){const O=L.find(we=>we.name===r),ie=(O==null?void 0:O.preview_url)||(O==null?void 0:O.sample);return a==="local"?`text = """${t}""" + +# audio is in bytes format +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${ie}", + "exaggeration": ${D}, + "temperature": ${w} + } +)`:`text = """${t}""" + +# audio is in bytes format +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${ie}", + "exaggeration": ${D}, + "temperature": ${w} + } +)`}function ge(O,ie="Copied to clipboard!"){navigator.clipboard.writeText(O).then(()=>{n(11,T=ie),setTimeout(()=>{n(11,T=null)},2e3)})}function De(O,ie=""){n(21,b=O),n(22,P=ie),n(20,A=!0)}function $e(){n(20,A=!1),n(21,b=""),n(22,P="")}function ye(){const O=P?`${b} + +Details: +${P}`:b;ge(O,"Error message copied!")}function he(){const O=[];if(I){const Ge=I.includes("pip install")||I.includes("hfstudio start")?"bash":"";O.push(`## Setup (Run in Terminal) + +\`\`\`${Ge} +${I} +\`\`\``)}y&&O.push(`## Imports (Python) + +\`\`\`python +${y} +\`\`\``),C.forEach((we,Ge)=>{O.push(`## Cell ${Ge+1} + +\`\`\`python +${we.code} +\`\`\``)});const ie=O.join(` + +`);ge(ie,"All code copied as Markdown!")}Hn(()=>{window.addEventListener("storage",O=>{O.key})});function Ce(O){O.audioElement||(O.audioElement=new Audio(O.result.url),O.audioElement.addEventListener("ended",()=>{O.isPlaying=!1,n(8,C=[...C])})),O.isPlaying?(O.audioElement.pause(),O.isPlaying=!1):(C.forEach(ie=>{ie!==O&&ie.isPlaying&&ie.audioElement&&(ie.audioElement.pause(),ie.isPlaying=!1)}),O.audioElement.play(),O.isPlaying=!0),n(8,C=[...C])}const Be=()=>n(5,o="ui"),ke=()=>n(5,o="code");function vt(){t=this.value,n(2,t)}function xe(O){sn[O?"unshift":"push"](()=>{g=O,n(18,g)})}const ft=()=>n(6,_=!_),dt=O=>{O.disabled||(n(4,l=O.name),n(6,_=!1))},je=(O,ie)=>ce(O,ie),et=O=>n(3,r=O.name);function Ve(){D=an(this.value),n(12,D)}function it(){w=an(this.value),n(13,w)}const yt=()=>n(0,a="api"),Ke=()=>n(0,a="local"),at=()=>ge(I),gt=()=>ge(y),wt=O=>ge(O.code),Ee=O=>Ce(O),tt=O=>gr(O.result.url,O.result.title);function Re(O,ie,we){sn[O?"unshift":"push"](()=>{ie[we].audioElement=O,n(8,C)})}const Tt=(O,ie,we)=>n(8,ie[we].isPlaying=!1,C);return s.$$.update=()=>{s.$$.dirty[0]&3&&a&&(n(9,I=K()),y&&n(1,y=ee()))},[a,y,t,r,l,o,_,N,C,I,S,T,D,w,E,c,d,m,g,$,A,b,P,H,B,L,R,j,le,G,U,X,Z,ce,be,q,ge,$e,ye,he,Ce,Be,ke,vt,xe,ft,dt,je,et,Ve,it,yt,Ke,at,gt,wt,Ee,tt,Re,Tt]}class _r extends He{constructor(e){super(),Ue(this,e,hr,dr,Me,{},null,[-1,-1,-1])}}export{_r as component};