diff --git "a/hfstudio/static/_app/immutable/nodes/2.DpS_xF3t.js" "b/hfstudio/static/_app/immutable/nodes/2.DpS_xF3t.js" new file mode 100644--- /dev/null +++ "b/hfstudio/static/_app/immutable/nodes/2.DpS_xF3t.js" @@ -0,0 +1,73 @@ +import{r as Et,p as D,o as F,S as ze,i as Be,s as Re,m as qe,O as Z,d as f,P as Xt,u as Xe,v as Ye,w as Ke,Q as Yt,b as ce,c as o,R as Pn,f as v,E as $t,T as Mn,U as ln,V as pe,I as te,K as ne,L as re,J as le,q as u,D as st,x as ge,e as g,g as se,h as M,j as h,t as ae,k as L,z as Vn,a as We,A as Ht,C as at,y as Ce,N as sn,W as an,M as Gt,n as Vt,X as Zt,Y as Jt,B as Kt}from"../chunks/MT0Fezl8.js";import"../chunks/IHki7fMi.js";function kt(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function Hn(s,e){F(s,1,1,()=>{e.delete(s.key)})}function Un(s,e,n,t,r,l,a,i,w,T,A,E){let _=s.length,x=l.length,N=_;const C={};for(;N--;)C[s[N].key]=N;const y=[],S=new Map,c=new Map,d=[];for(N=x;N--;){const b=E(r,l,N),I=n(b);let $=a.get(I);$?d.push(()=>$.p(b,e)):($=T(I,b),$.c()),S.set(I,y[N]=$),I in C&&c.set(I,Math.abs(N-C[I]))}const m=new Set,p=new Set;function k(b){D(b,1),b.m(i,A),a.set(b.key,b),A=b.first,x--}for(;_&&x;){const b=y[x-1],I=s[_-1],$=b.key,P=I.key;b===I?(A=b.first,_--,x--):S.has(P)?!a.has($)||m.has($)?k(b):p.has(P)?_--:c.get($)>c.get(P)?(p.add($),k(b)):(m.add(P),_--):(w(I,a),_--)}for(;_--;){const b=s[_];S.has(b.key)||w(b,a)}for(;x;)k(y[x-1]);return Et(d),y}function je(s,e){const n={},t={},r={$$scope:1};let l=s.length;for(;l--;){const a=s[l],i=e[l];if(i){for(const w in a)w in i||(t[w]=1);for(const w in i)r[w]||(n[w]=i[w],r[w]=1);s[l]=i}else for(const w in a)r[w]=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 Qt(s){let e,n=[s[11]],t={};for(let r=0;r{n(7,e=Z(Z({},e),pe(x))),n(6,r=ln(e,t)),"name"in x&&n(0,i=x.name),"color"in x&&n(1,w=x.color),"size"in x&&n(2,T=x.size),"strokeWidth"in x&&n(3,A=x.strokeWidth),"absoluteStrokeWidth"in x&&n(4,E=x.absoluteStrokeWidth),"iconNode"in x&&n(5,_=x.iconNode),"$$scope"in x&&n(8,a=x.$$scope)},e=pe(e),[i,w,T,A,E,_,r,e,a,l]}class Qe extends ze{constructor(e){super(),Be(this,e,Bn,zn,Re,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function jn(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Gn(s){let e,n;const t=[{name:"alert-circle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[jn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class qn extends ze{constructor(e){super(),Be(this,e,Wn,Gn,Re,{})}}function Xn(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Yn(s){let e,n;const t=[{name:"chevron-down"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Xn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Zn extends ze{constructor(e){super(),Be(this,e,Kn,Yn,Re,{})}}function Jn(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(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:"code"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Jn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class tr extends ze{constructor(e){super(),Be(this,e,er,Qn,Re,{})}}function nr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function rr(s){let e,n;const t=[{name:"copy"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[nr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Wt extends ze{constructor(e){super(),Be(this,e,lr,rr,Re,{})}}function sr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function ar(s){let e,n;const t=[{name:"download"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[sr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class en extends ze{constructor(e){super(),Be(this,e,or,ar,Re,{})}}function ir(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function ur(s){let e,n;const t=[{name:"loader-2"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ir]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class fr extends ze{constructor(e){super(),Be(this,e,cr,ur,Re,{})}}function dr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function gr(s){let e,n;const t=[{name:"more-horizontal"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[dr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class pr extends ze{constructor(e){super(),Be(this,e,hr,gr,Re,{})}}function mr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function _r(s){let e,n;const t=[{name:"panels-top-left"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[mr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class vr extends ze{constructor(e){super(),Be(this,e,br,_r,Re,{})}}function yr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function wr(s){let e,n;const t=[{name:"pause"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[yr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ln extends ze{constructor(e){super(),Be(this,e,kr,wr,Re,{})}}function $r(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Er(s){let e,n;const t=[{name:"play"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[$r]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class qt extends ze{constructor(e){super(),Be(this,e,Sr,Er,Re,{})}}function Ar(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Tr(s){let e,n;const t=[{name:"rotate-ccw"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Ar]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class xr extends ze{constructor(e){super(),Be(this,e,Ir,Tr,Re,{})}}function Nr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Dr(s){let e,n;const t=[{name:"share"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Nr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class tn extends ze{constructor(e){super(),Be(this,e,Cr,Dr,Re,{})}}function Fr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Or(s){let e,n;const t=[{name:"shuffle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Fr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Mr extends ze{constructor(e){super(),Be(this,e,Pr,Or,Re,{})}}function Lr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Rr(s){let e,n;const t=[{name:"skip-back"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Lr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Hr extends ze{constructor(e){super(),Be(this,e,Vr,Rr,Re,{})}}function Ur(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function zr(s){let e,n;const t=[{name:"skip-forward"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Ur]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class jr extends ze{constructor(e){super(),Be(this,e,Br,zr,Re,{})}}function Gr(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)&&Xe(t,n,r,r[3],e?Ke(n,r[3],l,null):Ye(r[3]),null)},i(r){e||(D(t,r),e=!0)},o(r){F(t,r),e=!1},d(r){t&&t.d(r)}}}function Wr(s){let e,n;const t=[{name:"x"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Gr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=Z(Z({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Xr extends ze{constructor(e){super(),Be(this,e,qr,Wr,Re,{})}}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yr(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={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function c(d){return d instanceof w?new w(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(p){var c=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.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 p="no-"+d;c;){var k=c.classList;if(k.contains(d))return!0;if(k.contains(p))return!1;c=c.parentElement}return!!m}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(c,d){var m=i.util.clone(i.languages[c]);for(var p in d)m[p]=d[p];return m},insertBefore:function(c,d,m,p){p=p||i.languages;var k=p[c],b={};for(var I in k)if(k.hasOwnProperty(I)){if(I==d)for(var $ in m)m.hasOwnProperty($)&&(b[$]=m[$]);m.hasOwnProperty(I)||(b[I]=k[I])}var P=p[c];return p[c]=b,i.languages.DFS(i.languages,function(R,U){U===P&&R!=c&&(this[R]=b)}),b},DFS:function c(d,m,p,k){k=k||{};var b=i.util.objId;for(var I in d)if(d.hasOwnProperty(I)){m.call(d,I,d[I],p||I);var $=d[I],P=i.util.type($);P==="Object"&&!k[b($)]?(k[b($)]=!0,c($,m,null,k)):P==="Array"&&!k[b($)]&&(k[b($)]=!0,c($,m,I,k))}}},plugins:{},highlightAll:function(c,d){i.highlightAllUnder(document,c,d)},highlightAllUnder:function(c,d,m){var p={callback:m,container:c,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),i.hooks.run("before-all-elements-highlight",p);for(var k=0,b;b=p.elements[k++];)i.highlightElement(b,d===!0,p.callback)},highlightElement:function(c,d,m){var p=i.util.getLanguage(c),k=i.languages[p];i.util.setLanguage(c,p);var b=c.parentElement;b&&b.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(b,p);var I=c.textContent,$={element:c,language:p,grammar:k,code:I};function P(U){$.highlightedCode=U,i.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,i.hooks.run("after-highlight",$),i.hooks.run("complete",$),m&&m.call($.element)}if(i.hooks.run("before-sanity-check",$),b=$.element.parentElement,b&&b.nodeName.toLowerCase()==="pre"&&!b.hasAttribute("tabindex")&&b.setAttribute("tabindex","0"),!$.code){i.hooks.run("complete",$),m&&m.call($.element);return}if(i.hooks.run("before-highlight",$),!$.grammar){P(i.util.encode($.code));return}if(d&&t.Worker){var R=new Worker(i.filename);R.onmessage=function(U){P(U.data)},R.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else P(i.highlight($.code,$.grammar,$.language))},highlight:function(c,d,m){var p={code:c,grammar:d,language:m};if(i.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=i.tokenize(p.code,p.grammar),i.hooks.run("after-tokenize",p),w.stringify(i.util.encode(p.tokens),p.language)},tokenize:function(c,d){var m=d.rest;if(m){for(var p in m)d[p]=m[p];delete d.rest}var k=new E;return _(k,k.head,c),A(c,k,d,k.head,0),N(k)},hooks:{all:{},add:function(c,d){var m=i.hooks.all;m[c]=m[c]||[],m[c].push(d)},run:function(c,d){var m=i.hooks.all[c];if(!(!m||!m.length))for(var p=0,k;k=m[p++];)k(d)}},Token:w};t.Prism=i;function w(c,d,m,p){this.type=c,this.content=d,this.alias=m,this.length=(p||"").length|0}w.stringify=function c(d,m){if(typeof d=="string")return d;if(Array.isArray(d)){var p="";return d.forEach(function(P){p+=c(P,m)}),p}var k={type:d.type,content:c(d.content,m),tag:"span",classes:["token",d.type],attributes:{},language:m},b=d.alias;b&&(Array.isArray(b)?Array.prototype.push.apply(k.classes,b):k.classes.push(b)),i.hooks.run("wrap",k);var I="";for(var $ in k.attributes)I+=" "+$+'="'+(k.attributes[$]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+I+">"+k.content+""};function T(c,d,m,p){c.lastIndex=d;var k=c.exec(m);if(k&&p&&k[1]){var b=k[1].length;k.index+=b,k[0]=k[0].slice(b)}return k}function A(c,d,m,p,k,b){for(var I in m)if(!(!m.hasOwnProperty(I)||!m[I])){var $=m[I];$=Array.isArray($)?$:[$];for(var P=0;P<$.length;++P){if(b&&b.cause==I+","+P)return;var R=$[P],U=R.inside,V=!!R.lookbehind,H=!!R.greedy,G=R.alias;if(H&&!R.pattern.global){var ee=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,ee+"g")}for(var X=R.pattern||R,z=p.next,Y=k;z!==d.tail&&!(b&&Y>=b.reach);Y+=z.value.length,z=z.next){var K=z.value;if(d.length>c.length)return;if(!(K instanceof w)){var he=1,ye;if(H){if(ye=T(X,Y,c,V),!ye||ye.index>=c.length)break;var ue=ye.index,q=ye.index+ye[0].length,W=Y;for(W+=z.value.length;ue>=W;)z=z.next,W+=z.value.length;if(W-=z.value.length,Y=W,z.value instanceof w)continue;for(var J=z;J!==d.tail&&(Wb.reach&&(b.reach=ke);var fe=z.prev;$e&&(fe=_(d,fe,$e),Y+=$e.length),x(d,fe,he);var be=new w(I,U?i.tokenize(oe,U):oe,G,oe);if(z=_(d,fe,be),_e&&_(d,z,_e),he>1){var me={cause:I+","+P,reach:ke};A(c,d,m,z.prev,Y,me),b&&me.reach>b.reach&&(b.reach=me.reach)}}}}}}function E(){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 _(c,d,m){var p=d.next,k={value:m,prev:d,next:p};return d.next=k,p.prev=k,c.length++,k}function x(c,d,m){for(var p=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 i={"included-cdata":{pattern://i,inside:a}};i["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var w={};w[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",w)}}),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(C,y){return"✖ Error "+C+" while fetching file: "+y},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"},i="data-src-status",w="loading",T="loaded",A="failed",E="pre[data-src]:not(["+i+'="'+T+'"]):not(['+i+'="'+w+'"])';function _(C,y,S){var c=new XMLHttpRequest;c.open("GET",C,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status<400&&c.responseText?y(c.responseText):c.status>=400?S(r(c.status,c.statusText)):S(l))},c.send(null)}function x(C){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(y){var S=Number(y[1]),c=y[2],d=y[3];return c?d?[S,Number(d)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+E}),n.hooks.add("before-sanity-check",function(C){var y=C.element;if(y.matches(E)){C.code="",y.setAttribute(i,w);var S=y.appendChild(document.createElement("CODE"));S.textContent=t;var c=y.getAttribute("data-src"),d=C.language;if(d==="none"){var m=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=a[m]||m}n.util.setLanguage(S,d),n.util.setLanguage(y,d);var p=n.plugins.autoloader;p&&p.loadLanguages(d),_(c,function(k){y.setAttribute(i,T);var b=x(y.getAttribute("data-range"));if(b){var I=k.split(/\r\n?|\n/g),$=b[0],P=b[1]==null?I.length:b[1];$<0&&($+=I.length),$=Math.max(0,Math.min($-1,I.length)),P<0&&(P+=I.length),P=Math.max(0,Math.min(P,I.length)),k=I.slice($,P).join(` +`),y.hasAttribute("data-start")||y.setAttribute("data-start",String($+1))}S.textContent=k,n.highlightElement(S)},function(k){y.setAttribute(i,A),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(y){for(var S=(y||document).querySelectorAll(E),c=0,d;d=S[c++];)n.highlightElement(d)}};var N=!1;n.fileHighlight=function(){N||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),N=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Rn);var Kr=Rn.exports;const dt=Yr(Kr);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),z=s[9]&&bn(s),Y=s[1]&&vn(s),K=!s[1]&&s[8].length===0&&yn(),he=kt(s[8]);const ye=q=>q[79].id;for(let q=0;q0||q[9]||q[1]?X?(X.p(q,W),W[0]&770&&D(X,1)):(X=_n(q),X.c(),D(X,1),X.m(A,null)):X&&(at(),F(X,1,1,()=>{X=null}),st()),q[9]?z?(z.p(q,W),W[0]&512&&D(z,1)):(z=bn(q),z.c(),D(z,1),z.m(p,k)):z&&(at(),F(z,1,1,()=>{z=null}),st()),q[1]?Y?(Y.p(q,W),W[0]&2&&D(Y,1)):(Y=vn(q),Y.c(),D(Y,1),Y.m(p,b)):Y&&(at(),F(Y,1,1,()=>{Y=null}),st()),!q[1]&&q[8].length===0?K||(K=yn(),K.c(),K.m(p,I)):K&&(K.d(1),K=null),W[0]&256|W[1]&272&&(he=kt(q[8]),at(),$=Un($,W,ye,1,q,he,P,p,Hn,kn,null,dn),st())},i(q){if(!R){D(X),D(z),D(Y);for(let W=0;WBilling ⤴',Y,K,he,ye='

Voice

',q,W,J,ue,oe='
+
Clone your voice
(coming soon)
',$e,_e,ke,fe,be,me="Exaggeration",Ve,Fe,Oe=s[12].toFixed(2)+"",_t,Ze,Ne,gt,rt,Dt="None Exaggerated",ut,Pe,lt,Ge,bt="Stability",vt,ct,He=s[13].toFixed(2)+"",et,ot,Me,St,Ue,ft="More stable More variable",O,Q,ve='',we,Ee,De;l=new Mr({props:{size:16}});const Ut=[al,sl],yt=[];function wt(j,ie){return j[7]?0:1}S=wt(s),c=yt[S]=Ut[S](s);let Ie=s[10]&&$n(s),At=kt(s[23]),Se=[];for(let j=0;jF(B[j],1,1,()=>{B[j]=null});return{c(){e=h("div"),n=h("div"),t=h("div"),r=h("button"),le(l.$$.fragment),a=L(),i=h("textarea"),w=L(),T=h("div"),A=h("div"),E=h("span"),x=ae(_),N=ae(" / 1,000 characters"),C=L(),y=h("button"),c.c(),m=L(),Ie&&Ie.c(),p=L(),k=h("div"),b=h("div"),I=h("h3"),I.textContent=$,P=L(),R=h("button"),U=h("span");for(let j=0;j{yt[xe]=null}),st(),c=yt[S],c||(c=yt[S]=Ut[S](j),c.c()),D(c,1),c.m(y,null)),(!we||ie[0]&132&&d!==(d=j[7]||!j[2].trim()))&&(y.disabled=d),j[10]?Ie?(Ie.p(j,ie),ie[0]&1024&&D(Ie,1)):(Ie=$n(j),Ie.c(),D(Ie,1),Ie.m(n,null)):Ie&&(at(),F(Ie,1,1,()=>{Ie=null}),st()),ie[0]&8388624){At=kt(j[23]);let de;for(de=0;des[58](P,U,V),q=()=>s[58](null,U,V);function W(){return s[59](s[79],s[80],s[81])}return{c(){e=h("div"),n=h("div"),t=h("div"),r=h("div"),l=h("button"),i.c(),w=L(),T=h("div"),A=h("div"),_=ae(E),x=L(),N=h("div"),C=ae("Duration: "),S=ae(y),c=L(),d=h("div"),m=h("button"),le(p.$$.fragment),k=L(),b=h("button"),le(I.$$.fragment),$=L(),P=h("audio"),this.h()},l(J){e=g(J,"DIV",{class:!0});var ue=v(e);n=g(ue,"DIV",{class:!0});var oe=v(n);t=g(oe,"DIV",{class:!0});var $e=v(t);r=g($e,"DIV",{class:!0});var _e=v(r);l=g(_e,"BUTTON",{class:!0});var ke=v(l);i.l(ke),ke.forEach(f),w=M(_e),T=g(_e,"DIV",{class:!0});var fe=v(T);A=g(fe,"DIV",{class:!0});var be=v(A);_=se(be,E),be.forEach(f),x=M(fe),N=g(fe,"DIV",{class:!0});var me=v(N);C=se(me,"Duration: "),S=se(me,y),me.forEach(f),fe.forEach(f),_e.forEach(f),c=M($e),d=g($e,"DIV",{class:!0});var Ve=v(d);m=g(Ve,"BUTTON",{class:!0,title:!0});var Fe=v(m);re(p.$$.fragment,Fe),Fe.forEach(f),k=M(Ve),b=g(Ve,"BUTTON",{class:!0,title:!0});var Oe=v(b);re(I.$$.fragment,Oe),Oe.forEach(f),Ve.forEach(f),$e.forEach(f),$=M(oe),P=g(oe,"AUDIO",{src:!0,class:!0}),v(P).forEach(f),oe.forEach(f),ue.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(A,"class","text-sm font-medium text-gray-900 truncate"),u(N,"class","text-xs text-gray-500"),u(T,"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(b,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(b,"title","Share"),u(d,"class","flex items-center gap-1"),u(t,"class","flex items-center justify-between"),Kt(P.src,R=s[79].result.url)||u(P,"src",R),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(J,ue){ce(J,e,ue),o(e,n),o(n,t),o(t,r),o(r,l),z[a].m(l,null),o(r,w),o(r,T),o(T,A),o(A,_),o(T,x),o(T,N),o(N,C),o(N,S),o(t,c),o(t,d),o(d,m),ne(p,m,null),o(d,k),o(d,b),ne(I,b,null),o(n,$),o(n,P),ye(),H=!0,G||(ee=[ge(l,"click",K),ge(m,"click",he),ge(P,"ended",W)],G=!0)},p(J,ue){s=J;let oe=a;a=Y(s),a!==oe&&(at(),F(z[oe],1,1,()=>{z[oe]=null}),st(),i=z[a],i||(i=z[a]=X[a](s),i.c()),D(i,1),i.m(l,null)),(!H||ue[0]&256)&&E!==(E=(s[79].result.title||"Generated Audio")+"")&&We(_,E),(!H||ue[0]&256)&&y!==(y=On(s[79].result.duration||0)+"")&&We(S,y),(!H||ue[0]&256&&!Kt(P.src,R=s[79].result.url))&&u(P,"src",R),(U!==s[80]||V!==s[81])&&(q(),U=s[80],V=s[81],ye())},i(J){H||(D(i),D(p.$$.fragment,J),D(I.$$.fragment,J),H=!0)},o(J){F(i),F(p.$$.fragment,J),F(I.$$.fragment,J),H=!1},d(J){J&&f(e),z[a].d(),te(p),te(I),q(),G=!1,Et(ee)}}}function rl(s){let e,n;return e=new qt({props:{size:18,class:"ml-0.5"}}),{c(){le(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ne(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){te(e,t)}}}function ll(s){let e,n;return e=new Ln({props:{size:18}}),{c(){le(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ne(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){te(e,t)}}}function kn(s,e){let n,t,r,l,a,i=e[81]+1+"",w,T,A,E,_,x,N,C,y,S=dt.highlight(e[79].code,dt.languages.python,"python")+"",c,d,m,p,k;E=new Wt({props:{size:14,class:"text-gray-600"}});function b(){return e[55](e[79])}let I=e[79].result&&e[79].result.type==="audio"&&wn(e);return{key:s,first:null,c(){n=h("div"),t=h("div"),r=h("div"),l=h("span"),a=ae("Cell "),w=ae(i),T=L(),A=h("button"),le(E.$$.fragment),_=L(),x=h("div"),N=h("pre"),C=h("code"),y=new Jt(!1),c=L(),I&&I.c(),d=L(),this.h()},l($){n=g($,"DIV",{class:!0});var P=v(n);t=g(P,"DIV",{class:!0});var R=v(t);r=g(R,"DIV",{class:!0});var U=v(r);l=g(U,"SPAN",{class:!0});var V=v(l);a=se(V,"Cell "),w=se(V,i),V.forEach(f),T=M(U),A=g(U,"BUTTON",{class:!0,title:!0});var H=v(A);re(E.$$.fragment,H),H.forEach(f),U.forEach(f),_=M(R),x=g(R,"DIV",{class:!0});var G=v(x);N=g(G,"PRE",{class:!0});var ee=v(N);C=g(ee,"CODE",{class:!0});var X=v(C);y=Zt(X,!1),X.forEach(f),ee.forEach(f),G.forEach(f),R.forEach(f),c=M(P),I&&I.l(P),d=M(P),P.forEach(f),this.h()},h(){u(l,"class","text-sm font-medium text-gray-700"),u(A,"class","p-1.5 hover:bg-gray-200 rounded transition-colors"),u(A,"title","Copy code"),u(r,"class","flex items-center justify-between px-4 py-2 bg-gray-50 border-b border-gray-100"),y.a=null,u(C,"class","language-python text-sm"),u(N,"class","p-4 overflow-x-auto bg-gray-50"),u(x,"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($,P){ce($,n,P),o(n,t),o(t,r),o(r,l),o(l,a),o(l,w),o(r,T),o(r,A),ne(E,A,null),o(t,_),o(t,x),o(x,N),o(N,C),y.m(S,C),o(n,c),I&&I.m(n,null),o(n,d),m=!0,p||(k=ge(A,"click",b),p=!0)},p($,P){e=$,(!m||P[0]&256)&&i!==(i=e[81]+1+"")&&We(w,i),(!m||P[0]&256)&&S!==(S=dt.highlight(e[79].code,dt.languages.python,"python")+"")&&y.p(S),e[79].result&&e[79].result.type==="audio"?I?(I.p(e,P),P[0]&256&&D(I,1)):(I=wn(e),I.c(),D(I,1),I.m(n,d)):I&&(at(),F(I,1,1,()=>{I=null}),st())},i($){m||(D(E.$$.fragment,$),D(I),m=!0)},o($){F(E.$$.fragment,$),F(I),m=!1},d($){$&&f(n),te(E),I&&I.d(),p=!1,k()}}}function sl(s){let e,n,t;return e=new qt({props:{size:20}}),{c(){le(e.$$.fragment),n=ae(` + Generate speech`)},l(r){re(e.$$.fragment,r),n=se(r,` + Generate speech`)},m(r,l){ne(e,r,l),ce(r,n,l),t=!0},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),te(e,r)}}}function al(s){let e,n,t;return e=new fr({props:{size:20,class:"animate-spin"}}),{c(){le(e.$$.fragment),n=ae(` + Generating...`)},l(r){re(e.$$.fragment,r),n=se(r,` + Generating...`)},m(r,l){ne(e,r,l),ce(r,n,l),t=!0},i(r){t||(D(e.$$.fragment,r),t=!0)},o(r){F(e.$$.fragment,r),t=!1},d(r){r&&f(n),te(e,r)}}}function $n(s){let e,n,t,r,l,a,i,w,T,A,E,_,x,N,C,y,S,c="Share",d,m,p,k="Download",b,I,$,P,R,U,V,H,G,ee,X=Ft(s[15])+"",z,Y,K,he,ye,q,W=Ft(s[16])+"",J,ue,oe,$e,_e,ke,fe,be,me,Ve,Fe,Oe,_t,Ze,Ne,gt=Ft(s[15])+"",rt,Dt,ut,Pe,lt,Ge,bt=Ft(s[16])+"",vt,ct,He,et,ot,Me,St,Ue,ft,O,Q,ve,we,Ee,De,Ut;C=new tn({props:{size:14,class:"text-gray-600"}}),I=new en({props:{size:14,class:"text-gray-600"}});const yt=[il,ol],wt=[];function Ie(B,Te){return B[14]?0:1}U=Ie(s),V=wt[U]=yt[U](s),_e=new Hr({props:{size:20,class:"text-gray-600"}});const At=[cl,ul],Se=[];function Le(B,Te){return B[14]?0:1}be=Le(s),me=Se[be]=At[be](s),Oe=new jr({props:{size:20,class:"text-gray-600"}}),ot=new tn({props:{size:14}}),ft=new en({props:{size:16,class:"text-gray-600"}}),ve=new pr({props:{size:16,class:"text-gray-600"}});let Ae=s[10]&&En(s);return{c(){e=h("div"),n=h("div"),t=h("div"),r=L(),l=h("div"),a=h("h3"),i=ae(s[17]),w=L(),T=h("p"),A=ae(s[3]),E=ae(" • Created 1 second ago"),_=L(),x=h("div"),N=h("button"),le(C.$$.fragment),y=L(),S=h("span"),S.textContent=c,d=L(),m=h("button"),p=h("span"),p.textContent=k,b=L(),le(I.$$.fragment),$=L(),P=h("div"),R=h("button"),V.c(),H=L(),G=h("div"),ee=h("span"),z=ae(X),Y=L(),K=h("div"),he=h("div"),ye=L(),q=h("span"),J=ae(W),ue=L(),oe=h("div"),$e=h("button"),le(_e.$$.fragment),ke=L(),fe=h("button"),me.c(),Ve=L(),Fe=h("button"),le(Oe.$$.fragment),_t=L(),Ze=h("div"),Ne=h("span"),rt=ae(gt),Dt=L(),ut=h("div"),Pe=h("div"),lt=L(),Ge=h("span"),vt=ae(bt),ct=L(),He=h("div"),et=h("button"),le(ot.$$.fragment),Me=ae(` + Share`),St=L(),Ue=h("button"),le(ft.$$.fragment),O=L(),Q=h("button"),le(ve.$$.fragment),we=L(),Ae&&Ae.c(),this.h()},l(B){e=g(B,"DIV",{class:!0});var Te=v(e);n=g(Te,"DIV",{class:!0});var j=v(n);t=g(j,"DIV",{class:!0}),v(t).forEach(f),r=M(j),l=g(j,"DIV",{class:!0});var ie=v(l);a=g(ie,"H3",{class:!0});var xe=v(a);i=se(xe,s[17]),xe.forEach(f),w=M(ie),T=g(ie,"P",{class:!0});var de=v(T);A=se(de,s[3]),E=se(de," • Created 1 second ago"),de.forEach(f),ie.forEach(f),_=M(j),x=g(j,"DIV",{class:!0});var it=v(x);N=g(it,"BUTTON",{class:!0});var Tt=v(N);re(C.$$.fragment,Tt),y=M(Tt),S=g(Tt,"SPAN",{class:!0,"data-svelte-h":!0}),Ce(S)!=="svelte-hbn8gl"&&(S.textContent=c),Tt.forEach(f),d=M(it),m=g(it,"BUTTON",{class:!0});var Ot=v(m);p=g(Ot,"SPAN",{class:!0,"data-svelte-h":!0}),Ce(p)!=="svelte-h01aeg"&&(p.textContent=k),b=M(Ot),re(I.$$.fragment,Ot),Ot.forEach(f),it.forEach(f),j.forEach(f),$=M(Te),P=g(Te,"DIV",{class:!0});var Ct=v(P);R=g(Ct,"BUTTON",{class:!0});var zt=v(R);V.l(zt),zt.forEach(f),H=M(Ct),G=g(Ct,"DIV",{class:!0});var tt=v(G);ee=g(tt,"SPAN",{class:!0});var ht=v(ee);z=se(ht,X),ht.forEach(f),Y=M(tt),K=g(tt,"DIV",{class:!0});var Pt=v(K);he=g(Pt,"DIV",{class:!0,style:!0}),v(he).forEach(f),Pt.forEach(f),ye=M(tt),q=g(tt,"SPAN",{class:!0});var Bt=v(q);J=se(Bt,W),Bt.forEach(f),tt.forEach(f),Ct.forEach(f),ue=M(Te),oe=g(Te,"DIV",{class:!0});var nt=v(oe);$e=g(nt,"BUTTON",{class:!0,title:!0});var Mt=v($e);re(_e.$$.fragment,Mt),Mt.forEach(f),ke=M(nt),fe=g(nt,"BUTTON",{class:!0});var Lt=v(fe);me.l(Lt),Lt.forEach(f),Ve=M(nt),Fe=g(nt,"BUTTON",{class:!0,title:!0});var It=v(Fe);re(Oe.$$.fragment,It),It.forEach(f),_t=M(nt),Ze=g(nt,"DIV",{class:!0});var pt=v(Ze);Ne=g(pt,"SPAN",{class:!0});var jt=v(Ne);rt=se(jt,gt),jt.forEach(f),Dt=M(pt),ut=g(pt,"DIV",{class:!0});var xt=v(ut);Pe=g(xt,"DIV",{class:!0,style:!0}),v(Pe).forEach(f),xt.forEach(f),lt=M(pt),Ge=g(pt,"SPAN",{class:!0});var Rt=v(Ge);vt=se(Rt,bt),Rt.forEach(f),pt.forEach(f),ct=M(nt),He=g(nt,"DIV",{class:!0});var Nt=v(He);et=g(Nt,"BUTTON",{class:!0});var mt=v(et);re(ot.$$.fragment,mt),Me=se(mt,` + Share`),mt.forEach(f),St=M(Nt),Ue=g(Nt,"BUTTON",{class:!0,title:!0});var nn=v(Ue);re(ft.$$.fragment,nn),nn.forEach(f),O=M(Nt),Q=g(Nt,"BUTTON",{class:!0,title:!0});var rn=v(Q);re(ve.$$.fragment,rn),rn.forEach(f),Nt.forEach(f),nt.forEach(f),we=M(Te),Ae&&Ae.l(Te),Te.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(T,"class","text-xs text-gray-500"),u(l,"class","flex-1"),u(S,"class","text-gray-700"),u(N,"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(p,"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(x,"class","flex items-center gap-2"),u(n,"class","flex items-center gap-3 mb-4"),u(R,"class","w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(ee,"class","text-xs text-gray-500 font-mono"),u(he,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Gt(he,"width",s[15]/s[16]*100+"%"),u(K,"class","flex-1 h-1 bg-gray-200 rounded-full cursor-pointer"),u(q,"class","text-xs text-gray-500 font-mono"),u(G,"class","flex-1 flex items-center gap-2"),u(P,"class","flex items-center gap-3 mb-4"),u($e,"class","p-2 hover:bg-gray-100 rounded-full"),u($e,"title","Skip back"),u(fe,"class","w-12 h-12 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(Fe,"class","p-2 hover:bg-gray-100 rounded-full"),u(Fe,"title","Skip forward"),u(Ne,"class","text-xs text-gray-500 font-mono"),u(Pe,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Gt(Pe,"width",s[15]/s[16]*100+"%"),u(ut,"class","flex-1 h-1 bg-gray-200 rounded-full"),u(Ge,"class","text-xs text-gray-500 font-mono"),u(Ze,"class","flex-1 flex items-center gap-3"),u(et,"class","flex items-center gap-2 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50"),u(Ue,"class","p-2 hover:bg-gray-100 rounded-md"),u(Ue,"title","Download"),u(Q,"class","p-2 hover:bg-gray-100 rounded-md"),u(Q,"title","More options"),u(He,"class","flex items-center gap-2"),u(oe,"class","flex items-center gap-4 mb-4"),u(e,"class","p-4 border border-gray-200 rounded-lg bg-white")},m(B,Te){ce(B,e,Te),o(e,n),o(n,t),o(n,r),o(n,l),o(l,a),o(a,i),o(l,w),o(l,T),o(T,A),o(T,E),o(n,_),o(n,x),o(x,N),ne(C,N,null),o(N,y),o(N,S),o(x,d),o(x,m),o(m,p),o(m,b),ne(I,m,null),o(e,$),o(e,P),o(P,R),wt[U].m(R,null),o(P,H),o(P,G),o(G,ee),o(ee,z),o(G,Y),o(G,K),o(K,he),o(G,ye),o(G,q),o(q,J),o(e,ue),o(e,oe),o(oe,$e),ne(_e,$e,null),o(oe,ke),o(oe,fe),Se[be].m(fe,null),o(oe,Ve),o(oe,Fe),ne(Oe,Fe,null),o(oe,_t),o(oe,Ze),o(Ze,Ne),o(Ne,rt),o(Ze,Dt),o(Ze,ut),o(ut,Pe),o(Ze,lt),o(Ze,Ge),o(Ge,vt),o(oe,ct),o(oe,He),o(He,et),ne(ot,et,null),o(et,Me),o(He,St),o(He,Ue),ne(ft,Ue,null),o(He,O),o(He,Q),ne(ve,Q,null),o(e,we),Ae&&Ae.m(e,null),Ee=!0,De||(Ut=[ge(N,"click",Fn),ge(m,"click",s[31]),ge(R,"click",s[26]),ge(fe,"click",s[26]),ge(et,"click",Fn),ge(Ue,"click",s[31])],De=!0)},p(B,Te){(!Ee||Te[0]&131072)&&We(i,B[17]),(!Ee||Te[0]&8)&&We(A,B[3]);let j=U;U=Ie(B),U!==j&&(at(),F(wt[j],1,1,()=>{wt[j]=null}),st(),V=wt[U],V||(V=wt[U]=yt[U](B),V.c()),D(V,1),V.m(R,null)),(!Ee||Te[0]&32768)&&X!==(X=Ft(B[15])+"")&&We(z,X),(!Ee||Te[0]&98304)&&Gt(he,"width",B[15]/B[16]*100+"%"),(!Ee||Te[0]&65536)&&W!==(W=Ft(B[16])+"")&&We(J,W);let ie=be;be=Le(B),be!==ie&&(at(),F(Se[ie],1,1,()=>{Se[ie]=null}),st(),me=Se[be],me||(me=Se[be]=At[be](B),me.c()),D(me,1),me.m(fe,null)),(!Ee||Te[0]&32768)&>!==(gt=Ft(B[15])+"")&&We(rt,gt),(!Ee||Te[0]&98304)&&Gt(Pe,"width",B[15]/B[16]*100+"%"),(!Ee||Te[0]&65536)&&bt!==(bt=Ft(B[16])+"")&&We(vt,bt),B[10]?Ae?Ae.p(B,Te):(Ae=En(B),Ae.c(),Ae.m(e,null)):Ae&&(Ae.d(1),Ae=null)},i(B){Ee||(D(C.$$.fragment,B),D(I.$$.fragment,B),D(V),D(_e.$$.fragment,B),D(me),D(Oe.$$.fragment,B),D(ot.$$.fragment,B),D(ft.$$.fragment,B),D(ve.$$.fragment,B),Ee=!0)},o(B){F(C.$$.fragment,B),F(I.$$.fragment,B),F(V),F(_e.$$.fragment,B),F(me),F(Oe.$$.fragment,B),F(ot.$$.fragment,B),F(ft.$$.fragment,B),F(ve.$$.fragment,B),Ee=!1},d(B){B&&f(e),te(C),te(I),wt[U].d(),te(_e),Se[be].d(),te(Oe),te(ot),te(ft),te(ve),Ae&&Ae.d(),De=!1,Et(Ut)}}}function ol(s){let e,n;return e=new qt({props:{size:14,class:"text-white ml-0.5"}}),{c(){le(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ne(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){te(e,t)}}}function il(s){let e;return{c(){e=h("div"),this.h()},l(n){e=g(n,"DIV",{class:!0}),v(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white")},m(n,t){ce(n,e,t)},i:Vt,o:Vt,d(n){n&&f(e)}}}function ul(s){let e,n;return e=new qt({props:{size:20,class:"text-white ml-0.5"}}),{c(){le(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ne(e,t,r),n=!0},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){te(e,t)}}}function cl(s){let e;return{c(){e=h("div"),this.h()},l(n){e=g(n,"DIV",{class:!0}),v(e).forEach(f),this.h()},h(){u(e,"class","pause-filled text-white scale-150")},m(n,t){ce(n,e,t)},i:Vt,o:Vt,d(n){n&&f(e)}}}function En(s){let e,n,t,r;return{c(){e=h("audio"),this.h()},l(l){e=g(l,"AUDIO",{src:!0,style:!0}),v(e).forEach(f),this.h()},h(){Kt(e.src,n=s[10])||u(e,"src",n),Gt(e,"display","none")},m(l,a){ce(l,e,a),s[44](e),t||(r=[ge(e,"loadedmetadata",s[27]),ge(e,"timeupdate",s[28]),ge(e,"play",s[29]),ge(e,"pause",s[30])],t=!0)},p(l,a){a[0]&1024&&!Kt(e.src,n=l[10])&&u(e,"src",n)},d(l){l&&f(e),s[44](null),t=!1,Et(r)}}}function Sn(s){let e=s[74].name+"",n,t,r=s[74].badge&&fl(s);return{c(){n=ae(e),r&&r.c(),t=$t()},l(l){n=se(l,e),r&&r.l(l),t=$t()},m(l,a){ce(l,n,a),r&&r.m(l,a),ce(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 fl(s){let e,n,t,r=s[74].badge+"",l,a;return{c(){e=ae(" "),n=h("span"),t=ae("("),l=ae(r),a=ae(")"),this.h()},l(i){e=se(i," "),n=g(i,"SPAN",{class:!0});var w=v(n);t=se(w,"("),l=se(w,r),a=se(w,")"),w.forEach(f),this.h()},h(){u(n,"class","text-xs text-gray-500")},m(i,w){ce(i,e,w),ce(i,n,w),o(n,t),o(n,l),o(n,a)},p:Vt,d(i){i&&(f(e),f(n))}}}function An(s){let e,n=s[74].name===s[4]&&Sn(s);return{c(){n&&n.c(),e=$t()},l(t){n&&n.l(t),e=$t()},m(t,r){n&&n.m(t,r),ce(t,e,r)},p(t,r){t[74].name===t[4]?n?n.p(t,r):(n=Sn(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&f(e),n&&n.d(t)}}}function Tn(s){let e,n=kt(s[23]),t=[];for(let r=0;r{$[G]=null}),st(),c=$[S],c||(c=$[S]=I[S](s),c.c()),D(c,1),c.m(y,null)),(!p||H[0]&8&&m!==(m="w-full flex items-center justify-between p-1.5 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(V){p||(D(c),p=!0)},o(V){F(c),p=!1},d(V){V&&f(e),$[S].d(),k=!1,Et(b)}}}function Nn(s){let e,n;return{c(){e=h("div"),n=ae(s[11]),this.h()},l(t){e=g(t,"DIV",{class:!0});var r=v(e);n=se(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){ce(t,e,r),o(e,n)},p(t,r){r[0]&2048&&We(n,t[11])},d(t){t&&f(e)}}}function Dn(s){let e,n,t,r,l,a,i,w,T,A,E,_,x="An error occurred while processing your request",N,C,y,S,c,d,m,p,k,b,I,$,P="Close",R,U,V;a=new qn({props:{size:20,class:"text-red-600"}}),y=new Xr({props:{size:20,class:"text-gray-500"}});let H=s[22]&&Cn(s);return k=new Wt({props:{size:16}}),{c(){e=h("div"),n=h("div"),t=h("div"),r=h("div"),l=h("div"),le(a.$$.fragment),i=L(),w=h("div"),T=h("h3"),A=ae(s[21]),E=L(),_=h("p"),_.textContent=x,N=L(),C=h("button"),le(y.$$.fragment),S=L(),c=h("div"),H&&H.c(),d=L(),m=h("div"),p=h("button"),le(k.$$.fragment),b=ae(` + Copy Error`),I=L(),$=h("button"),$.textContent=P,this.h()},l(G){e=g(G,"DIV",{class:!0});var ee=v(e);n=g(ee,"DIV",{class:!0});var X=v(n);t=g(X,"DIV",{class:!0});var z=v(t);r=g(z,"DIV",{class:!0});var Y=v(r);l=g(Y,"DIV",{class:!0});var K=v(l);re(a.$$.fragment,K),K.forEach(f),i=M(Y),w=g(Y,"DIV",{class:!0});var he=v(w);T=g(he,"H3",{class:!0});var ye=v(T);A=se(ye,s[21]),ye.forEach(f),E=M(he),_=g(he,"P",{class:!0,"data-svelte-h":!0}),Ce(_)!=="svelte-1l3zl3"&&(_.textContent=x),he.forEach(f),Y.forEach(f),N=M(z),C=g(z,"BUTTON",{class:!0,title:!0});var q=v(C);re(y.$$.fragment,q),q.forEach(f),z.forEach(f),S=M(X),c=g(X,"DIV",{class:!0});var W=v(c);H&&H.l(W),W.forEach(f),d=M(X),m=g(X,"DIV",{class:!0});var J=v(m);p=g(J,"BUTTON",{class:!0});var ue=v(p);re(k.$$.fragment,ue),b=se(ue,` + Copy Error`),ue.forEach(f),I=M(J),$=g(J,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce($)!=="svelte-1nyppew"&&($.textContent=P),J.forEach(f),X.forEach(f),ee.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(T,"class","text-lg font-semibold text-gray-900 truncate"),u(_,"class","text-sm text-gray-600"),u(w,"class","min-w-0"),u(r,"class","flex items-center gap-3 min-w-0"),u(C,"class","p-2 hover:bg-red-100 rounded-full transition-colors flex-shrink-0"),u(C,"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(p,"class","flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors"),u($,"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(G,ee){ce(G,e,ee),o(e,n),o(n,t),o(t,r),o(r,l),ne(a,l,null),o(r,i),o(r,w),o(w,T),o(T,A),o(w,E),o(w,_),o(t,N),o(t,C),ne(y,C,null),o(n,S),o(n,c),H&&H.m(c,null),o(n,d),o(n,m),o(m,p),ne(k,p,null),o(p,b),o(m,I),o(m,$),R=!0,U||(V=[ge(C,"click",s[36]),ge(p,"click",s[37]),ge($,"click",s[36])],U=!0)},p(G,ee){(!R||ee[0]&2097152)&&We(A,G[21]),G[22]?H?H.p(G,ee):(H=Cn(G),H.c(),H.m(c,null)):H&&(H.d(1),H=null)},i(G){R||(D(a.$$.fragment,G),D(y.$$.fragment,G),D(k.$$.fragment,G),R=!0)},o(G){F(a.$$.fragment,G),F(y.$$.fragment,G),F(k.$$.fragment,G),R=!1},d(G){G&&f(e),te(a),te(y),H&&H.d(),te(k),U=!1,Et(V)}}}function Cn(s){let e,n,t="Error Details:",r,l,a;function i(A,E){return E[0]&4194304&&(a=null),a==null&&(a=!!A[22].includes("exceeded your monthly included credits")),a?ml:pl}let w=i(s,[-1,-1,-1]),T=w(s);return{c(){e=h("div"),n=h("h4"),n.textContent=t,r=L(),l=h("pre"),T.c(),this.h()},l(A){e=g(A,"DIV",{class:!0});var E=v(e);n=g(E,"H4",{class:!0,"data-svelte-h":!0}),Ce(n)!=="svelte-3lmggt"&&(n.textContent=t),r=M(E),l=g(E,"PRE",{class:!0});var _=v(l);T.l(_),_.forEach(f),E.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(A,E){ce(A,e,E),o(e,n),o(e,r),o(e,l),T.m(l,null)},p(A,E){w===(w=i(A,E))&&T?T.p(A,E):(T.d(1),T=w(A),T&&(T.c(),T.m(l,null)))},d(A){A&&f(e),T.d()}}}function pl(s){let e;return{c(){e=ae(s[22])},l(n){e=se(n,s[22])},m(n,t){ce(n,e,t)},p(n,t){t[0]&4194304&&We(e,n[22])},d(n){n&&f(e)}}}function ml(s){let e,n=s[22].replace("Subscribe to PRO",'Subscribe to PRO')+"",t;return{c(){e=new Jt(!1),t=$t(),this.h()},l(r){e=Zt(r,!1),t=$t(),this.h()},h(){e.a=t},m(r,l){e.m(n,r,l),ce(r,t,l)},p(r,l){l[0]&4194304&&n!==(n=r[22].replace("Subscribe to PRO",'Subscribe to PRO')+"")&&e.p(n)},d(r){r&&(f(t),e.d())}}}function _l(s){let e,n,t,r,l,a,i,w,T,A,E,_,x,N,C,y,S,c,d,m,p,k;i=new vr({props:{size:14}}),_=new tr({props:{size:14}});let b=s[8].length>0&&mn(s);const I=[Jr,Zr],$=[];function P(V,H){return V[5]==="ui"?0:1}y=P(s),S=$[y]=I[y](s);let R=s[11]&&Nn(s),U=s[20]&&Dn(s);return{c(){e=h("div"),n=h("header"),t=h("div"),r=h("div"),l=h("div"),a=h("button"),le(i.$$.fragment),w=ae(` + UI`),A=L(),E=h("button"),le(_.$$.fragment),x=ae(` + Code Recorder + `),b&&b.c(),C=L(),S.c(),c=L(),R&&R.c(),d=L(),U&&U.c(),this.h()},l(V){e=g(V,"DIV",{class:!0});var H=v(e);n=g(H,"HEADER",{class:!0});var G=v(n);t=g(G,"DIV",{class:!0});var ee=v(t);r=g(ee,"DIV",{class:!0});var X=v(r);l=g(X,"DIV",{class:!0});var z=v(l);a=g(z,"BUTTON",{class:!0});var Y=v(a);re(i.$$.fragment,Y),w=se(Y,` + UI`),Y.forEach(f),A=M(z),E=g(z,"BUTTON",{class:!0});var K=v(E);re(_.$$.fragment,K),x=se(K,` + Code Recorder + `),b&&b.l(K),K.forEach(f),z.forEach(f),X.forEach(f),ee.forEach(f),G.forEach(f),C=M(H),S.l(H),c=M(H),R&&R.l(H),d=M(H),U&&U.l(H),H.forEach(f),this.h()},h(){u(a,"class",T="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(E,"class",N="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(V,H){ce(V,e,H),o(e,n),o(n,t),o(t,r),o(r,l),o(l,a),ne(i,a,null),o(a,w),o(l,A),o(l,E),ne(_,E,null),o(E,x),b&&b.m(E,null),o(e,C),$[y].m(e,null),o(e,c),R&&R.m(e,null),o(e,d),U&&U.m(e,null),m=!0,p||(k=[ge(a,"click",s[41]),ge(E,"click",s[42]),ge(e,"click",s[33])],p=!0)},p(V,H){(!m||H[0]&32&&T!==(T="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(V[5]==="ui"?"bg-white shadow-sm":"text-gray-600")))&&u(a,"class",T),V[8].length>0?b?b.p(V,H):(b=mn(V),b.c(),b.m(E,null)):b&&(b.d(1),b=null),(!m||H[0]&32&&N!==(N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative "+(V[5]==="code"?"bg-white shadow-sm":"text-gray-600")))&&u(E,"class",N);let G=y;y=P(V),y===G?$[y].p(V,H):(at(),F($[G],1,1,()=>{$[G]=null}),st(),S=$[y],S?S.p(V,H):(S=$[y]=I[y](V),S.c()),D(S,1),S.m(e,c)),V[11]?R?R.p(V,H):(R=Nn(V),R.c(),R.m(e,d)):R&&(R.d(1),R=null),V[20]?U?(U.p(V,H),H[0]&1048576&&D(U,1)):(U=Dn(V),U.c(),D(U,1),U.m(e,null)):U&&(at(),F(U,1,1,()=>{U=null}),st())},i(V){m||(D(i.$$.fragment,V),D(_.$$.fragment,V),D(S),D(U),m=!0)},o(V){F(i.$$.fragment,V),F(_.$$.fragment,V),F(S),F(U),m=!1},d(V){V&&f(e),te(i),te(_),b&&b.d(),$[y].d(),R&&R.d(),U&&U.d(),p=!1,Et(k)}}}function Ft(s){const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function Fn(){}function bl(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 vl(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="Andrew",l="Chatterbox",a="api",i="ui",w=!1,T=!1,A=[],E=oe(),_=null,x=null,N=null,C=.25,y=.7,S=!1,c=0,d=0,m="",p=null,k=null,b=null,I=!1,$="",P="";const R=["It was the best of times, it was the worst of times. It was the age of wisdom, it was the age of foolishness.","It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.","All happy families are alike; each unhappy family is unhappy in its own way."];let U=0;const V=[{id:"chatterbox",name:"Chatterbox",badge:"recommended"},{id:"kokoro",name:"Kokoro",badge:"coming soon",disabled:!0}],H=[{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:"lily",name:"Jasmine",description:"Warm, conversational tone of a woman in her 30s",sample:"/voices/lily.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/lily.mp3"},{id:"pirate",name:"Pirate",description:"Young male pirate-y voice that speaks gruffly and with excitement",sample:"/voices/pirate.mp3",preview_url:"https://huggingface.co/spaces/abidlabs/hfstudio/resolve/main/frontend/static/voices/pirate.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"}];async function G(){if(!t.trim())return;if(!(await fetch("/api/auth/user",{credentials:"include"})).ok){window.dispatchEvent(new CustomEvent("show-login-prompt"));return}if(n(7,T=!0),n(10,x=null),n(15,c=0),!_){n(1,_=_e());try{await fetch("/api/history/save",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({code:_,result_type:null,result_data:null,entry_type:"import"})})}catch(ve){console.error("Error saving import code to database:",ve)}}const Q=ke();n(14,S=!1),n(17,m=t.length>30?t.substring(0,30)+"...":t);try{const ve={text:t,voice_id:r.toLowerCase(),model_id:l.toLowerCase(),mode:a,parameters:{exaggeration:C,temperature:y}},we=await fetch("/api/tts/generate",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(ve)});if(!we.ok){const De=await we.text();throw new Error(`HTTP error! status: ${we.status}, body: ${De}`)}const Ee=await we.json();if(Ee.success&&Ee.audio_url)n(10,x=Ee.audio_url),W(Q,{type:"audio",url:Ee.audio_url,title:m,duration:Ee.duration}),i==="ui"&&setTimeout(()=>{p&&p.play().catch(()=>{})},100);else{const De=Ee.error||"Unknown error occurred";be("Generation Failed",De),n(10,x=null)}}catch{be("Network Error","Failed to connect to the server. Please check your connection and try again."),n(10,x=null)}finally{n(7,T=!1)}}function ee(){p&&(S?p.pause():p.play())}function X(){p&&n(16,d=p.duration)}function z(){p&&n(15,c=p.currentTime)}function Y(){n(14,S=!0)}function K(){n(14,S=!1)}function he(){if(x){const O=document.createElement("a");O.href=x,O.download="speech.wav",O.click()}}function ye(O,Q){if(Q.stopPropagation(),b===O.name)k&&(k.pause(),k.currentTime=0),n(19,b=null);else{k&&k.pause(),n(19,b=O.name);const ve=O.sample||"/samples/harvard.wav";k?k.src=ve:(k=new Audio(ve),k.addEventListener("ended",()=>{n(19,b=null)})),k.play().catch(we=>{n(19,b=null)})}}function q(O){O.target.closest(".model-dropdown")||n(6,w=!1)}async function W(O,Q=null){const ve={id:Date.now()+Math.random(),code:O,result:Q};n(8,A=[...A,ve]);try{await fetch("/api/history/save",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({code:O,result_type:(Q==null?void 0:Q.type)||null,result_data:Q||null,entry_type:"generation"})})}catch(we){console.error("Error saving history to database:",we)}return ve}async function J(){try{const O=await fetch("/api/history/load",{method:"GET",credentials:"include"});if(O.ok){const Q=await O.json(),ve=Q.entries.filter(De=>De.entry_type==="setup"),we=Q.entries.filter(De=>De.entry_type==="import"),Ee=Q.entries.filter(De=>De.entry_type==="generation");n(9,E=oe()),n(1,_=we.length>0?we[we.length-1].code:null),n(8,A=Ee.map(De=>({id:De.id,code:De.code,result:De.result_data})))}}catch(O){console.error("Error loading history from database:",O),n(8,A=[]),n(9,E=oe()),n(1,_=null)}}async function ue(){try{await fetch("/api/history/clear",{method:"DELETE",credentials:"include"}),n(8,A=[]),n(9,E=oe()),n(1,_=null)}catch(O){console.error("Error clearing history:",O),n(8,A=[]),n(9,E=oe()),n(1,_=null)}}function oe(){return a==="local"?`pip install huggingface-hub hfstudio uv +hfstudio start ${l.toLowerCase()} --port 7861`:"pip install huggingface-hub"}function $e(){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 _e(){const O=$e();return a==="local"?`from huggingface_hub import InferenceClient + +${O}`:`from huggingface_hub import InferenceClient + +${O}`}function ke(){const O=H.find(ve=>ve.name===r),Q=(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": "${Q}", + "exaggeration": ${C}, + "temperature": ${y} + } +)`:`text = """${t}""" + +# audio is in bytes format +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${Q}", + "exaggeration": ${C}, + "temperature": ${y} + } +)`}function fe(O,Q="Copied to clipboard!"){navigator.clipboard.writeText(O).then(()=>{n(11,N=Q),setTimeout(()=>{n(11,N=null)},2e3)})}function be(O,Q=""){n(21,$=O),n(22,P=Q),n(20,I=!0)}function me(){n(20,I=!1),n(21,$=""),n(22,P="")}function Ve(){const O=P?`${$} + +Details: +${P}`:$;fe(O,"Error message copied!")}function Fe(){const O=[];if(E){const we=E.includes("pip install")||E.includes("hfstudio start")?"bash":"";O.push(`## Setup (Run in Terminal) + +\`\`\`${we} +${E} +\`\`\``)}_&&O.push(`## Imports (Python) + +\`\`\`python +${_} +\`\`\``),A.forEach((ve,we)=>{O.push(`## Cell ${we+1} + +\`\`\`python +${ve.code} +\`\`\``)});const Q=O.join(` + +`);fe(Q,"All code copied as Markdown!")}Vn(async()=>{await J()});function Oe(O){O.audioElement||(O.audioElement=new Audio(O.result.url),O.audioElement.addEventListener("ended",()=>{O.isPlaying=!1,n(8,A=[...A])})),O.isPlaying?(O.audioElement.pause(),O.isPlaying=!1):(A.forEach(Q=>{Q!==O&&Q.isPlaying&&Q.audioElement&&(Q.audioElement.pause(),Q.isPlaying=!1)}),O.audioElement.play(),O.isPlaying=!0),n(8,A=[...A])}function _t(){U=(U+1)%R.length,n(2,t=R[U])}const Ze=()=>n(5,i="ui"),Ne=()=>n(5,i="code");function gt(){t=this.value,n(2,t)}function rt(O){sn[O?"unshift":"push"](()=>{p=O,n(18,p)})}const Dt=()=>n(6,w=!w),ut=O=>{O.disabled||(n(4,l=O.name),n(6,w=!1))},Pe=(O,Q)=>ye(O,Q),lt=O=>n(3,r=O.name);function Ge(){C=an(this.value),n(12,C)}function bt(){y=an(this.value),n(13,y)}const vt=()=>n(0,a="api"),ct=()=>n(0,a="local"),He=()=>fe(E),et=()=>fe(_),ot=O=>fe(O.code),Me=O=>Oe(O),St=O=>bl(O.result.url,O.result.title);function Ue(O,Q,ve){sn[O?"unshift":"push"](()=>{Q[ve].audioElement=O,n(8,A)})}const ft=(O,Q,ve)=>n(8,Q[ve].isPlaying=!1,A);return s.$$.update=()=>{s.$$.dirty[0]&3&&a&&(n(9,E=oe()),_&&n(1,_=_e()))},[a,_,t,r,l,i,w,T,A,E,x,N,C,y,S,c,d,m,p,b,I,$,P,V,H,G,ee,X,z,Y,K,he,ye,q,ue,fe,me,Ve,Fe,Oe,_t,Ze,Ne,gt,rt,Dt,ut,Pe,lt,Ge,bt,vt,ct,He,et,ot,Me,St,Ue,ft]}class kl extends ze{constructor(e){super(),Be(this,e,vl,_l,Re,{},null,[-1,-1,-1])}}export{kl as component};