1import{k as Hi,_ as Z,c as r,a as o,f as i,l as k,t as d,m as G,d as Qe,r as v,o as Rt,n as De,p as Ua,q as he,v as Al,s as ye,u as X,x as b,b as h,y as ke,z as va,F as P,h as re,B as W,e as K,w as _,T as Bl,g as Bt,C as ae,D as Za,i as w,E as Re,G as It,A as me,H as lt,I as qa,S as rl,J as Ii,K as Ri,L as Bi,N as Pi,O as Fi,P as ma,Q as At,R as fa,U as Ei,V as _a,W as al,X as tt,Y as ms,Z as fs,$ as ka,a0 as xe,a1 as Se,a2 as Di,a3 as Ni,a4 as Ui,a5 as Zi,a6 as je,a7 as Ze,a8 as Pe,a9 as qi,aa as Oi,j as Gi}from"./index-DtDSSH-2.js";import{a as kt,C as Wi,S as ji,G as ya,L as ba,A as Qi,_ as Xi}from"./AudioTranscribingCard-DCrEiEUI.js";import{L as Ki}from"./Web-BIADQ1yB.js";import{R as ve,S as _s,P as Hl,E as $a,F as Yi,D as Ca,_ as Ji,A as eo}from"./FolderMoveOutline-Br858-EP.js";import{C as wa}from"./ContentCopy-Ce1Blg9I.js";import{L as nl,A as Il}from"./AudioCardIconInfo-0yDO8qIL.js";import"./SubscriptionPlans-JAGpqNXv.js";import"./WalletGiftcard-CnuC3CDE.js";const to=Hi("app",{state:()=>({asideVisible:!1,sidebarVisible:!0,sidebarUnfoldable:!1,theme:"default",posDirectMode:!0,segmentFilter:!1,segmentReplace:!1,segmentExport:!1,audioTranslate:!1,audioSummary:!1,audioMessages:!1,scrollLock:!0}),actions:{initSegmentSetting(){this.segmentReplace=!1,this.segmentExport=!1,this.audioTranslate=!1,this.segmentFilter=!1,this.audioSummary=!1,this.audioMessages=!1},toggleSegmentScrollLock(){this.scrollLock=!this.scrollLock},toggleAudioSummary(){this.audioSummary=!this.audioSummary,this.audioMessages=!1,this.segmentReplace=!1,this.segmentExport=!1,this.audioTranslate=!1,this.segmentFilter=!1},toggleAudioTranslate(){this.audioSummary=!1,this.audioMessages=!1,this.segmentReplace=!1,this.segmentExport=!1,this.audioTranslate=!this.audioTranslate,this.segmentFilter=!1},toggleAudioMessages(){this.audioSummary=!1,this.audioMessages=!this.audioMessages,this.segmentReplace=!1,this.segmentExport=!1,this.audioTranslate=!1,this.segmentFilter=!1},toggleSegmentFilter(){this.audioSummary=!1,this.audioMessages=!1,this.segmentReplace=!1,this.audioTranslate=!1,this.segmentExport=!1,this.segmentFilter=!this.segmentFilter},toggleSegmentReplace(){this.audioSummary=!1,this.audioMessages=!1,this.segmentFilter=!1,this.segmentExport=!1,this.audioTranslate=!1,this.segmentReplace=!this.segmentReplace},toggleSegmentExport(){this.audioSummary=!1,this.audioMessages=!1,this.segmentReplace=!1,this.segmentFilter=!1,this.audioTranslate=!1,this.segmentExport=!this.segmentExport},toggleAside(){this.asideVisible=!this.asideVisible},toggleSidebar(){this.sidebarVisible=!this.sidebarVisible},togglePosDirectMode(){this.posDirectMode=!this.posDirectMode},toggleTheme(a){this.theme=(a.value,"default")},toggleUnfoldable(){this.sidebarUnfoldable=!this.sidebarUnfoldable},updateSidebarVisible(a){this.sidebarVisible=a.value}}}),lo={name:"RocketLaunchOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},so=["aria-hidden","aria-label"],ao=["fill","width","height"],no={d:"M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M19.22 4C19.5 4 19.75 4 19.96 4.05C20.13 5.44 19.94 8.3 16.66 11.58C14.96 13.29 12.93 14.6 10.65 15.47L8.5 13.37C9.42 11.06 10.73 9.03 12.42 7.34C15.18 4.58 17.64 4 19.22 4M19.22 2C17.24 2 14.24 2.69 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.62 17.27 10.13 17.5 10.66 17.5C10.89 17.5 11.13 17.44 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39S20.7 2 19.22 2M14.54 9.46C13.76 8.68
113.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z"},io={key:0};function oo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon rocket-launch-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",no,[e.title?(o(),r("title",io,d(e.title),1)):k("",!0)])],8,ao))],16,so)}const ro=Z(lo,[["render",oo]]),uo={name:"TextBoxOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},co=["aria-hidden","aria-label"],po=["fill","width","height"],ho={d:"M5,3C3.89,3 3,3.89 3,5V19C3,20.11 3.89,21 5,21H19C20.11,21 21,20.11 21,19V5C21,3.89 20.11,3 19,3H5M5,5H19V19H5V5M7,7V9H17V7H7M7,11V13H17V11H7M7,15V17H14V15H7Z"},go={key:0};function vo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon text-box-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",ho,[e.title?(o(),r("title",go,d(e.title),1)):k("",!0)])],8,po))],16,co)}const mo=Z(uo,[["render",vo]]),fo={name:"ReceiptTextEditOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_o=["aria-hidden","aria-label"],ko=["fill","width","height"],yo={d:"M18 2L19.5 3.5L21 2V9.13L19 11.13V4.91H5V19.09H10.5V20.5L9 22L7.5 20.5L6 22L4.5 20.5L3 22V2L4.5 3.5L6 2L7.5 3.5L9 2L10.5 3.5L12 2L13.5 3.5L15 2L16.5 3.5L18 2M13 19.96L19.13 13.83L21.17 15.87L15.04 22H13V19.96M19.83 13.13L20.81 12.15L20.83 12.13C20.88 12.09 20.94 12.05 21 12.03C21.18 11.97 21.39 12 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19L21.87 15.17L19.83 13.13M18 12.13L17.13 13H6V11H18V12.13M15.13 15L13.13 17H6V15H15.13M18 9V7H6V9H18Z"},bo={key:0};function $o(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon receipt-text-edit-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",yo,[e.title?(o(),r("title",bo,d(e.title),1)):k("",!0)])],8,ko))],16,_o)}const Co=Z(fo,[["render",$o]]),wo={name:"AlphaCBoxOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xo=["aria-hidden","aria-label"],So=["fill","width","height"],Lo={d:"M3,5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5M5,5V19H19V5H5M11,7H13A2,2 0 0,1 15,9V10H13V9H11V15H13V14H15V15A2,2 0 0,1 13,17H11A2,2 0 0,1 9,15V9A2,2 0 0,1 11,7Z"},zo={key:0};function Mo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon alpha-c-box-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Lo,[e.title?(o(),r("title",zo,d(e.title),1)):k("",!0)])],8,So))],16,xo)}const Vo=Z(wo,[["render",Mo]]),To={name:"CreationIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ao=["aria-hidden","aria-label"],Ho=["fill","width","height"],Io={d:"M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74"},Ro={key:0};function Bo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon creation-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
1,[i("path",Io,[e.title?(o(),r("title",Ro,d(e.title),1)):k("",!0)])],8,Ho))],16,Ao)}const Po=Z(To,[["render",Bo]]),Fo={name:"NoteOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Eo=["aria-hidden","aria-label"],Do=["fill","width","height"],No={d:"M14,10H19.5L14,4.5V10M5,3H15L21,9V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3M5,5V19H19V12H12V5H5Z"},Uo={key:0};function Zo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon note-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",No,[e.title?(o(),r("title",Uo,d(e.title),1)):k("",!0)])],8,Do))],16,Eo)}const qo=Z(Fo,[["render",Zo]]),Oo={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Go=["aria-hidden","aria-label"],Wo=["fill","width","height"],jo={d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},Qo={key:0};function Xo(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon chevron-left-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",jo,[e.title?(o(),r("title",Qo,d(e.title),1)):k("",!0)])],8,Wo))],16,Go)}const xa=Z(Oo,[["render",Xo]]),Ko={name:"DotsVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yo=["aria-hidden","aria-label"],Jo=["fill","width","height"],er={d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"},tr={key:0};function lr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon dots-vertical-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",er,[e.title?(o(),r("title",tr,d(e.title),1)):k("",!0)])],8,Jo))],16,Yo)}const Sa=Z(Ko,[["render",lr]]),sr={name:"BookmarkOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ar=["aria-hidden","aria-label"],nr=["fill","width","height"],ir={d:"M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"},or={key:0};function rr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon bookmark-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",ir,[e.title?(o(),r("title",or,d(e.title),1)):k("",!0)])],8,nr))],16,ar)}const ks=Z(sr,[["render",rr]]),ur={name:"BookmarkIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dr=["aria-hidden","aria-label"],cr=["fill","width","height"],pr={d:"M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"},hr={key:0};function gr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon bookmark-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",pr,[e.title?(o(),r("title",hr,d(e.title),1)):k("",!0)])],8,cr))],16,dr)}const La=Z(ur,[["render",gr]]),vr={name:"DockLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mr=["aria-hidden","aria-label"],fr=["fill","width","height"],_r={d:"M20 4H4A2 2 0 0 0 2 6V18A2 2 0 0 0 4 20H20A2 2 0 0 0 22 18V6A2 2 0 0 0 20 4M20 18H9V6H20Z"},kr={key:0};function yr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon dock-left-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
1,[i("path",_r,[e.title?(o(),r("title",kr,d(e.title),1)):k("",!0)])],8,fr))],16,mr)}const br=Z(vr,[["render",yr]]),$r={name:"DockRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cr=["aria-hidden","aria-label"],wr=["fill","width","height"],xr={d:"M20 4H4A2 2 0 0 0 2 6V18A2 2 0 0 0 4 20H20A2 2 0 0 0 22 18V6A2 2 0 0 0 20 4M15 18H4V6H15Z"},Sr={key:0};function Lr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon dock-right-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",xr,[e.title?(o(),r("title",Sr,d(e.title),1)):k("",!0)])],8,wr))],16,Cr)}const zr=Z($r,[["render",Lr]]),Mr={name:"TextSearchVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vr=["aria-hidden","aria-label"],Tr=["fill","width","height"],Ar={d:"M9 6V8H2V6H9M9 11V13H2V11H9M18 16V18H2V16H18M19.31 11.5C19.75 10.82 20 10 20 9.11C20 6.61 18 4.61 15.5 4.61S11 6.61 11 9.11 13 13.61 15.5 13.61C16.37 13.61 17.19 13.36 17.88 12.93L21 16L22.39 14.61L19.31 11.5M15.5 11.61C14.12 11.61 13 10.5 13 9.11S14.12 6.61 15.5 6.61 18 7.73 18 9.11 16.88 11.61 15.5 11.61Z"},Hr={key:0};function Ir(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon text-search-variant-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Ar,[e.title?(o(),r("title",Hr,d(e.title),1)):k("",!0)])],8,Tr))],16,Vr)}const za=Z(Mr,[["render",Ir]]),Rr={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Br=["aria-hidden","aria-label"],Pr=["fill","width","height"],Fr={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},Er={key:0};function Dr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Fr,[e.title?(o(),r("title",Er,d(e.title),1)):k("",!0)])],8,Pr))],16,Br)}const Nr=Z(Rr,[["render",Dr]]),Ur={name:"NoteEditOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Zr=["aria-hidden","aria-label"],qr=["fill","width","height"],Or={d:"M18.13 12L19.39 10.74C19.83 10.3 20.39 10.06 21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11V19.13L11.13 19H5V5H12V12H18.13M14 4.5L19.5 10H14V4.5M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19Z"},Gr={key:0};function Wr(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon note-edit-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Or,[e.title?(o(),r("title",Gr,d(e.title),1)):k("",!0)])],8,qr))],16,Zr)}const jr=Z(Ur,[["render",Wr]]),Qr={name:"ArchiveOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Xr=["aria-hidden","aria-label"],Kr=["fill","width","height"],Yr={d:"M20 21H4V10H6V19H18V10H20V21M3 3H21V9H3V3M9.5 11H14.5C14.78 11 15 11.22 15 11.5V13H9V11.5C9 11.22 9.22 11 9.5 11M5 5V7H19V5H5Z"},Jr={key:0};function eu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon archive-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
1,[i("path",Yr,[e.title?(o(),r("title",Jr,d(e.title),1)):k("",!0)])],8,Kr))],16,Xr)}const Ma=Z(Qr,[["render",eu]]),tu={name:"PackageUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lu=["aria-hidden","aria-label"],su=["fill","width","height"],au={d:"M20.54,5.23C20.83,5.57 21,6 21,6.5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V6.5C3,6 3.17,5.57 3.46,5.23L4.84,3.55C5.12,3.21 5.53,3 6,3H18C18.47,3 18.88,3.21 19.15,3.55L20.54,5.23M5.12,5H18.87L17.93,4H5.93L5.12,5M12,9.5L6.5,15H10V17H14V15H17.5L12,9.5Z"},nu={key:0};function iu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon package-up-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",au,[e.title?(o(),r("title",nu,d(e.title),1)):k("",!0)])],8,su))],16,lu)}const ou=Z(tu,[["render",iu]]),ru={name:"PlusCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uu=["aria-hidden","aria-label"],du=["fill","width","height"],cu={d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"},pu={key:0};function hu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon plus-circle-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",cu,[e.title?(o(),r("title",pu,d(e.title),1)):k("",!0)])],8,du))],16,uu)}const Va=Z(ru,[["render",hu]]),gu={name:"HelpCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vu=["aria-hidden","aria-label"],mu=["fill","width","height"],fu={d:"M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"},_u={key:0};function ku(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon help-circle-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",fu,[e.title?(o(),r("title",_u,d(e.title),1)):k("",!0)])],8,mu))],16,vu)}const Oa=Z(gu,[["render",ku]]),yu={name:"FormatTitleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bu=["aria-hidden","aria-label"],$u=["fill","width","height"],Cu={d:"M5,4V7H10.5V19H13.5V7H19V4H5Z"},wu={key:0};function xu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon format-title-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Cu,[e.title?(o(),r("title",wu,d(e.title),1)):k("",!0)])],8,$u))],16,bu)}const Su=Z(yu,[["render",xu]]),Lu={name:"FormatClearIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},zu=["aria-hidden","aria-label"],Mu=["fill","width","height"],Vu={d:"M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z"},Tu={key:0};function Au(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon format-clear-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
1,[i("path",Vu,[e.title?(o(),r("title",Tu,d(e.title),1)):k("",!0)])],8,Mu))],16,zu)}const Hu=Z(Lu,[["render",Au]]),Iu={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ru=["aria-hidden","aria-label"],Bu=["fill","width","height"],Pu={d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},Fu={key:0};function Eu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Pu,[e.title?(o(),r("title",Fu,d(e.title),1)):k("",!0)])],8,Bu))],16,Ru)}const Du=Z(Iu,[["render",Eu]]),Nu={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Uu=["aria-hidden","aria-label"],Zu=["fill","width","height"],qu={d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"},Ou={key:0};function Gu(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",qu,[e.title?(o(),r("title",Ou,d(e.title),1)):k("",!0)])],8,Zu))],16,Uu)}const Wu=Z(Nu,[["render",Gu]]),ju={name:"SelectIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qu=["aria-hidden","aria-label"],Xu=["fill","width","height"],Ku={d:"M4,3H5V5H3V4A1,1 0 0,1 4,3M20,3A1,1 0 0,1 21,4V5H19V3H20M15,5V3H17V5H15M11,5V3H13V5H11M7,5V3H9V5H7M21,20A1,1 0 0,1 20,21H19V19H21V20M15,21V19H17V21H15M11,21V19H13V21H11M7,21V19H9V21H7M4,21A1,1 0 0,1 3,20V19H5V21H4M3,15H5V17H3V15M21,15V17H19V15H21M3,11H5V13H3V11M21,11V13H19V11H21M3,7H5V9H3V7M21,7V9H19V7H21Z"},Yu={key:0};function Ju(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon select-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Ku,[e.title?(o(),r("title",Yu,d(e.title),1)):k("",!0)])],8,Xu))],16,Qu)}const Ta=Z(ju,[["render",Ju]]),ed={name:"TableMergeCellsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},td=["aria-hidden","aria-label"],ld=["fill","width","height"],sd={d:"M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z"},ad={key:0};function nd(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon table-merge-cells-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",sd,[e.title?(o(),r("title",ad,d(e.title),1)):k("",!0)])],8,ld))],16,td)}const Aa=Z(ed,[["render",nd]]),id={name:"FilterVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},od=["aria-hidden","aria-label"],rd=["fill","width","height"],ud={d:"M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z"},dd={key:0};function cd(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon filter-variant-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
1,[i("path",ud,[e.title?(o(),r("title",dd,d(e.title),1)):k("",!0)])],8,rd))],16,od)}const Ga=Z(id,[["render",cd]]),pd={name:"FormatListGroupIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hd=["aria-hidden","aria-label"],gd=["fill","width","height"],vd={d:"M5 5V19H7V21H3V3H7V5H5M20 7H7V9H20V7M20 11H7V13H20V11M20 15H7V17H20V15Z"},md={key:0};function fd(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon format-list-group-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",vd,[e.title?(o(),r("title",md,d(e.title),1)):k("",!0)])],8,gd))],16,hd)}const _d=Z(pd,[["render",fd]]);function Cs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $t=Cs();function Wa(a){$t=a}var yt={exec:()=>null};function Y(a,l=""){let e=typeof a=="string"?a:a.source,u={replace:(n,g)=>{let c=typeof g=="string"?g:g.source;return c=c.replace(Ce.caret,"$1"),e=e.replace(n,c),u},getRegex:()=>new RegExp(e,l)};return u}var kd=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ce={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}>`)},yd=/^(?:[ \t]*(?:\n|$))+/,bd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$d=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,dl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ws=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ja=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qa=Y(ja).replace(/bull/g,ws).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),wd=Y(ja).replace(/bull/g,ws).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xd=/^[^\n]+/,Ss=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sd=Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ss).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ld=Y(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ws).getRegex(),Dl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ls=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zd=Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
vendor: 16,794 bytes, lines 1-26
1)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ls).replace("tag",Dl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xa=Y(xs).replace("hr",dl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex(),Md=Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xa).getRegex(),zs={blockquote:Md,code:bd,def:Sd,fences:$d,heading:Cd,hr:dl,html:zd,lheading:Qa,list:Ld,newline:yd,paragraph:Xa,table:yt,text:xd},Ha=Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex(),Vd={...zs,lheading:wd,table:Ha,paragraph:Y(xs).replace("hr",dl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ha).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Dl).getRegex()},Td={...zs,html:Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ls).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Y(xs).replace("hr",dl).replace("heading",` *#{1,6} *[^ 2]`).replace("lheading",Qa).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ad=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ka=/^( {2,}|\\)\n(?!\s*$)/,Id=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nl=/[\p{P}\p{S}]/u,Ms=/[\s\p{P}\p{S}]/u,Ya=/[^\s\p{P}\p{S}]/u,Rd=Y(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ms).getRegex(),Ja=/(?!~)[\p{P}\p{S}]/u,Bd=/(?!~)[\s\p{P}\p{S}]/u,Pd=/(?:[^\s\p{P}\p{S}]|~)/u,en=/(?![*_])[\p{P}\p{S}]/u,Fd=/(?![*_])[\s\p{P}\p{S}]/u,Ed=/(?:[^\s\p{P}\p{S}]|[*_])/u,Dd=Y(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),tn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Nd=Y(tn,"u").replace(/punct/g,Nl).getRegex(),Ud=Y(tn,"u").replace(/punct/g,Ja).getRegex(),ln="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zd=Y(ln,"gu").replace(/notPunctSpace/g,Ya).replace(/punctSpace/g,Ms).replace(/punct/g,Nl).getRegex(),qd=Y(ln,"gu").replace(/notPunctSpace/g,Pd).replace(/punctSpace/g,Bd).replace(/punct/g,Ja).getRegex(),Od=Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ya).replace(/punctSpace/g,Ms).replace(/punct/g,Nl).getRegex(),Gd=Y(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,en).getRegex(),Wd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",jd=Y(Wd,"gu").replace(/notPunctSpace/g,Ed).replace(/punctSpace/g,Fd).replace(/punct/g,en).getRegex(),Qd=Y(/\\(punct)/,"gu").replace(/punct/g,Nl).getRegex(),Xd=Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Kd=Y(Ls).replace("(?:-->|$)","-->").getRegex(),Yd=Y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Kd).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Jd=Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Pl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sn=Y(/^!?\[(label)\]\[(ref)\]/).replace("label",Pl).replace("ref",Ss).getRegex(),an=Y(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ss).getRegex(),ec=Y("reflink|nolink(?!\\()","g").replace("reflink",sn).replace("nolink",an).getRegex(),Ia=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Vs={_backpedal:yt,anyPunctuation:Qd,autolink:Xd,blockSkip:Dd,br:Ka,code:Hd,del:yt,delLDelim:yt,delRDelim:yt,emStrongLDelim:Nd,emStrongRDelimAst:Zd,emStrongRDelimUnd:Od,escape:Ad,link:Jd,nolink:an,punctuation:Rd,reflink:sn,reflinkSearch:ec,tag:Yd,text:Id,url:yt},tc={...Vs,link:Y(/^!?\[(label)\]\((.*?)\)/).replace("label",Pl).getRegex(),reflink:Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pl).getRegex()},ys={...Vs,emStrongRDelimAst:qd,emStrongLDelim:Ud,delLDelim:Gd,delRDelim:jd,url:Y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ia).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ia).getRegex()},lc={...ys,br:Y(Ka).replace("{2,}","*").getRegex(),text:Y(ys.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Rl={normal:zs,gfm:Vd,pedantic:Td},il={normal:Vs,gfm:ys,breaks:lc,pedantic:tc},sc={"&":"&","<":"<",">":">",'"':""","'":"'"},Ra=a=>sc[a];function qe(a,l){if(l){if(Ce.escapeTest.test(a))return a.replace(Ce.escapeReplace,Ra)}else if(Ce.escapeTestNoEncode.test(a))return a.replace(Ce.escapeReplaceNoEncode,Ra);return a}function Ba(a){try{a=encodeURI(a).replace(Ce.percentDecode,"%")}catch{return null}return a}function Pa(a,l){let e=a.replace(Ce.findPipe,(g,c,$)=>{let m=!1,x=c;for(;--x>=0&&$[x]==="\\";)m=!m;return m?"|":" |"}),u=e.split(Ce.splitPipe),n=0;if(u[0].trim()||u.shift(),u.length>0&&!u.at(-1)?.trim()&&u.pop(),l)if(u.length>l)u.splice(l);else for(;u.length<l;)u.push("");for(;n<u.length;n++)u[n]=u[n].trim().replace(Ce.slashPipe,"|");return u}function ol(a,l,e){let u=a.length;if(u===0)return"";let n=0;for(;n<u&&a.charAt(u-n-1)===l;)n++;return a.slice(0,u-n)}function ac(a,l){if(a.indexOf(l[1])===-1)return-1;let e=0;for(let u=0;u<a.length;u++)if(a[u]==="\\")u++;else if(a[u]===l[0])e++;else if(a[u]===l[1]&&(e--,e<0))return u;return e>0?-2:-1}function nc(a,l=0){let e=l,u="";for(let n of a)if(n===" "){let g=4-e%4;u+=" ".repeat(g),e+=g}else u+=n,e++;return u}function Fa(a,l,e,u,n){let g=l.href,c=l.title||null,$=a[1].replace(n.other.outputLinkReplace,"$1");u.state.inLink=!0;let m={type:a[0].charAt(0)==="!"?"image":"link",raw:e,href:g,title:c,text:$,tokens:u.inlineTokens($)};return u.state.inLink=!1,m}function ic(a,l,e){let u=a.match(e.other.indentCodeCompensation);if(u===null)return l;let n=u[1];return l.split(` 3`).map(g=>{let c=g.match(e.other.beginningSpace);if(c===null)return g;let[$]=c;return $.length>=n.length?g.slice(n.length):g}).join(` 4`)}var Fl=class{options;rules;lexer;constructor(a){this.options=a||$t}space(a){let l=this.rules.block.newline.exec(a);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(a){let l=this.rules.block.code.exec(a);if(l){let e=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ol(e,` 5`)}}}fences(a){let l=this.rules.block.fences.exec(a);if(l){let e=l[0],u=ic(e,l[3]||"",this.rules);return{type:"code",raw:e,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:u}}}heading(a){let l=this.rules.block.heading.exec(a);if(l){let e=l[2].trim();if(this.rules.other.endingHash.test(e)){let u=ol(e,"#");(this.options.pedantic||!u||this.rules.other.endingSpaceChar.test(u))&&(e=u.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(a){let l=this.rules.block.hr.exec(a);if(l)return{type:"hr",raw:ol(l[0],` 6`)}}blockquote(a){let l=this.rules.block.blockquote.exec(a);if(l){let e=ol(l[0],` 7`).split(` 8`),u="",n="",g=[];for(;e.length>0;){let c=!1,$=[],m;for(m=0;m<e.length;m++)if(this.rules.other.blockquoteStart.test(e[m]))$.push(e[m]),c=!0;else if(!c)$.push(e[m]);else break;e=e.slice(m);let x=$.join(` 9`),C=x.replace(this.rules.other.blockquoteSetextReplace,` 10 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");u=u?`${u} 11${x}`:x,n=n?`${n} 12${C}`:C;let T=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(C,g,!0),this.lexer.state.top=T,e.length===0)break;let I=g.at(-1);if(I?.type==="code")break;if(I?.type==="blockquote"){let F=I,L=F.raw+` 13`+e.join(` 14`),j=this.blockquote(L);g[g.length-1]=j,u=u.substring(0,u.length-F.raw.length)+j.raw,n=n.substring(0,n.length-F.text.length)+j.text;break}else if(I?.type==="list"){let F=I,L=F.raw+` 15`+e.join(` 16`),j=this.list(L);g[g.length-1]=j,u=u.substring(0,u.length-I.raw.length)+j.raw,n=n.substring(0,n.length-F.raw.length)+j.raw,e=L.substring(g.at(-1).raw.length).split(` 17`);continue}}return{type:"blockquote",raw:u,tokens:g,text:n}}}list(a){let l=this.rules.block.list.exec(a);if(l){let e=l[1].trim(),u=e.length>1,n={type:"list",raw:"",ordered:u,start:u?+e.slice(0,-1):"",loose:!1,items:[]};e=u?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=u?e:"[*+-]");let g=this.rules.other.listItemRegex(e),c=!1;for(;a;){let m=!1,x="",C="";if(!(l=g.exec(a))||this.rules.block.hr.test(a))break;x=l[0],a=a.substring(x.length);let T=nc(l[2].split(` 18`,1)[0],l[1].length),I=a.split(` 19`,1)[0],F=!T.trim(),L=0;if(this.options.pedantic?(L=2,C=T.trimStart()):F?L=l[1].length+1:(L=T.search(this.rules.other.nonSpaceChar),L=L>4?1:L,C=T.slice(L),L+=l[1].length),F&&this.rules.other.blankLine.test(I)&&(x+=I+` 20`,a=a.substring(I.length+1),m=!0),!m){let j=this.rules.other.nextBulletRegex(L),Q=this.rules.other.hrRegex(L),N=this.rules.other.fencesBeginRegex(L),E=this.rules.other.headingBeginRegex(L),H=this.rules.other.htmlBeginRegex(L),z=this.rules.other.blockquoteBeginRegex(L);for(;a;){let J=a.split(` 21`,1)[0],V;if(I=J,this.options.pedantic?(I=I.replace(this.rules.other.listReplaceNesting," "),V=I):V=I.replace(this.rules.other.tabCharGlobal," "),N.test(I)||E.test(I)||H.test(I)||z.test(I)||j.test(I)||Q.test(I))break;if(V.search(this.rules.other.nonSpaceChar)>=L||!I.trim())C+=` 22`+V.slice(L);else{if(F||T.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(T)||E.test(T)||Q.test(T))break;C+=` 23`+I}F=!I.trim(),x+=J+` 24`,a=a.substring(J.length+1),T=V.slice(L)}}n.loose||(c?n.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(c=!0)),n.items.push({type:"list_item",raw:x,task:!!this.options.gfm&&this.rules.other.listIsTask.test(C),loose:!1,text:C,tokens:[]}),n.raw+=x}let $=n.items.at(-1);if($)$.raw=$.raw.trimEnd(),$.text=$.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let m of n.items){if(this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]),m.task){if(m.text=m.text.replace(this.rules.other.listReplaceTask,""),m.tokens[0]?.type==="text"||m.tokens[0]?.type==="paragraph"){m.tokens[0].raw=m.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),m.tokens[0].text=m.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let C=this.lexer.inlineQueue.length-1;C>=0;C--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[C].src)){this.lexer.inlineQueue[C].src=this.lexer.inlineQueue[C].src.replace(this.rules.other.listReplaceTask,"");break}}let x=this.rules.other.listTaskCheckbox.exec(m.raw);if(x){let C={type:"checkbox",raw:x[0]+" ",checked:x[0]!=="[ ]"};m.checked=C.checked,n.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=C.raw+m.tokens[0].raw,m.tokens[0].text=C.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(C)):m.tokens.unshift({type:"paragraph",raw:C.raw,text:C.raw,tokens:[C]}):m.tokens.unshift(C)}}if(!n.loose){let x=m.tokens.filter(T=>T.type==="space"),C=x.length>0&&x.some(T=>this.rules.other.anyLine.test(T.raw));n.loose=C}}if(n.loose)for(let m of n.items){m.loose=!0;for(let x of m.tokens)x.type==="text"&&(x.type="paragraph")}return n}}html(a){let l=this.rules.block.html.exec(a);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(a){let l=this.rules.block.def.exec(a);if(l){let e=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),u=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:e,raw:l[0],href:u,title:n}}}table(a){let l=this.rules.block.table.exec(a);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;let e=Pa(l[1]),u=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=l[3]?.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(` 25`):[],g={type:"table",raw:l[0],header:[],align:[],rows:[]};if(e.length===u.length){for(let c of u)this.rules.other.tableAlignRight.test(c)?g.align.push("right"):this.rules.other.tableAlignCenter.test(c)?g.align.push("center"):this.rules.other.tableAlignLeft.test(c)?g.align.push("left"):g.align.push(null);for(let c=0;c<e.length;c++)g.header.push({text:e[c],tokens:this.lexer.inline(e[c]),header:!0,align:g.align[c]});for(let c of n)g.rows.push(Pa(c,g.header.length).map(($,m)=>({text:$,tokens:this.lexer.inline($),header:!1,align:g.align[m]})));return g}}lheading(a){let l=this.rules.block.lheading.exec(a);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(a){let l=this.rules.block.paragraph.exec(a);if(l){let e=l[1].charAt(l[1].length-1)===` 26`?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:e,tokens:this.lexer.inline(e)}}}text(a){let l=this.rules.block.text.exec(a);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(a){let l=this.rules.inline.escape.exec(a);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(a){let l=this.rules.inline.tag.exec(a);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(a){let l=this.rules.inline.link.exec(a);if(l){let e=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let g=ol(e.slice(0,-1),"\\");if((e.length-g.length)%2===0)return}
vendor: 4,105 bytes, lines 26-27
26else{let g=ac(l[2],"()");if(g===-2)return;if(g>-1){let c=(l[0].indexOf("!")===0?5:4)+l[1].length+g;l[2]=l[2].substring(0,g),l[0]=l[0].substring(0,c).trim(),l[3]=""}}let u=l[2],n="";if(this.options.pedantic){let g=this.rules.other.pedanticHrefTitle.exec(u);g&&(u=g[1],n=g[3])}else n=l[3]?l[3].slice(1,-1):"";return u=u.trim(),this.rules.other.startAngleBracket.test(u)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?u=u.slice(1):u=u.slice(1,-1)),Fa(l,{href:u&&u.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(a,l){let e;if((e=this.rules.inline.reflink.exec(a))||(e=this.rules.inline.nolink.exec(a))){let u=(e[2]||e[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=l[u.toLowerCase()];if(!n){let g=e[0].charAt(0);return{type:"text",raw:g,text:g}}return Fa(e,n,e[0],this.lexer,this.rules)}}emStrong(a,l,e=""){let u=this.rules.inline.emStrongLDelim.exec(a);if(!(!u||u[3]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!(u[1]||u[2])||!e||this.rules.inline.punctuation.exec(e))){let n=[...u[0]].length-1,g,c,$=n,m=0,x=u[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,l=l.slice(-1*a.length+n);(u=x.exec(l))!=null;){if(g=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!g)continue;if(c=[...g].length,u[3]||u[4]){$+=c;continue}else if((u[5]||u[6])&&n%3&&!((n+c)%3)){m+=c;continue}if($-=c,$>0)continue;c=Math.min(c,c+$+m);let C=[...u[0]][0].length,T=a.slice(0,n+u.index+C+c);if(Math.min(n,c)%2){let F=T.slice(1,-1);return{type:"em",raw:T,text:F,tokens:this.lexer.inlineTokens(F)}}let I=T.slice(2,-2);return{type:"strong",raw:T,text:I,tokens:this.lexer.inlineTokens(I)}}}}codespan(a){let l=this.rules.inline.code.exec(a);if(l){let e=l[2].replace(this.rules.other.newLineCharGlobal," "),u=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return u&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:l[0],text:e}}}br(a){let l=this.rules.inline.br.exec(a);if(l)return{type:"br",raw:l[0]}}del(a,l,e=""){let u=this.rules.inline.delLDelim.exec(a);if(u&&(!u[1]||!e||this.rules.inline.punctuation.exec(e))){let n=[...u[0]].length-1,g,c,$=n,m=this.rules.inline.delRDelim;for(m.lastIndex=0,l=l.slice(-1*a.length+n);(u=m.exec(l))!=null;){if(g=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!g||(c=[...g].length,c!==n))continue;if(u[3]||u[4]){$+=c;continue}if($-=c,$>0)continue;c=Math.min(c,c+$);let x=[...u[0]][0].length,C=a.slice(0,n+u.index+x+c),T=C.slice(n,-n);return{type:"del",raw:C,text:T,tokens:this.lexer.inlineTokens(T)}}}}autolink(a){let l=this.rules.inline.autolink.exec(a);if(l){let e,u;return l[2]==="@"?(e=l[1],u="mailto:"+e):(e=l[1],u=e),{type:"link",raw:l[0],text:e,href:u,tokens:[{type:"text",raw:e,text:e}]}}}url(a){let l;if(l=this.rules.inline.url.exec(a)){let e,u;if(l[2]==="@")e=l[0],u="mailto:"+e;else{let n;do n=l[0],l[0]=this.rules.inline._backpedal.exec(l[0])?.[0]??"";while(n!==l[0]);e=l[0],l[1]==="www."?u="http://"+l[0]:u=l[0]}return{type:"link",raw:l[0],text:e,href:u,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(a){let l=this.rules.inline.text.exec(a);if(l){let e=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:e}}}},Fe=class bs{tokens;options;state;inlineQueue;tokenizer;constructor(l){this.tokens=[],this.tokens.links=Object.create(null),this.options=l||$t,this.options.tokenizer=this.options.tokenizer||new Fl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:Ce,block:Rl.normal,inline:il.normal};this.options.pedantic?(e.block=Rl.pedantic,e.inline=il.pedantic):this.options.gfm&&(e.block=Rl.gfm,this.options.breaks?e.inline=il.breaks:e.inline=il.gfm),this.tokenizer.rules=e}static get rules(){return{block:Rl,inline:il}}static lex(l,e){return new bs(e).lex(l)}static lexInline(l,e){return new bs(e).inlineTokens(l)}lex(l){l=l.replace(Ce.carriageReturn,` 27`),this.blockTokens(l,this.tokens);for(let e=0;
vendor: 7,321 bytes, lines 27-58
27e<this.inlineQueue.length;e++){let u=this.inlineQueue[e];this.inlineTokens(u.src,u.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,e=[],u=!1){for(this.options.pedantic&&(l=l.replace(Ce.tabCharGlobal," ").replace(Ce.spaceLine,""));l;){let n;if(this.options.extensions?.block?.some(c=>(n=c.call({lexer:this},l,e))?(l=l.substring(n.raw.length),e.push(n),!0):!1))continue;if(n=this.tokenizer.space(l)){l=l.substring(n.raw.length);let c=e.at(-1);n.raw.length===1&&c!==void 0?c.raw+=` 28`:e.push(n);continue}if(n=this.tokenizer.code(l)){l=l.substring(n.raw.length);let c=e.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(` 29`)?"":` 30`)+n.raw,c.text+=` 31`+n.text,this.inlineQueue.at(-1).src=c.text):e.push(n);continue}if(n=this.tokenizer.fences(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(l)){l=l.substring(n.raw.length);let c=e.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(` 32`)?"":` 33`)+n.raw,c.text+=` 34`+n.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if(n=this.tokenizer.table(l)){l=l.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(l)){l=l.substring(n.raw.length),e.push(n);continue}let g=l;if(this.options.extensions?.startBlock){let c=1/0,$=l.slice(1),m;this.options.extensions.startBlock.forEach(x=>{m=x.call({lexer:this},$),typeof m=="number"&&m>=0&&(c=Math.min(c,m))}),c<1/0&&c>=0&&(g=l.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(g))){let c=e.at(-1);u&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(` 35`)?"":` 36`)+n.raw,c.text+=` 37`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):e.push(n),u=g.length!==l.length,l=l.substring(n.raw.length);continue}if(n=this.tokenizer.text(l)){l=l.substring(n.raw.length);let c=e.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(` 38`)?"":` 39`)+n.raw,c.text+=` 40`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):e.push(n);continue}if(l){let c="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,e}inline(l,e=[]){return this.inlineQueue.push({src:l,tokens:e}),e}inlineTokens(l,e=[]){let u=l,n=null;if(this.tokens.links){let m=Object.keys(this.tokens.links);if(m.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)m.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(u))!=null;)u=u.slice(0,n.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let g;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)g=n[2]?n[2].length:0,u=u.slice(0,n.index+g)+"["+"a".repeat(n[0].length-g-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);u=this.options.hooks?.emStrongMask?.call({lexer:this},u)??u;let c=!1,$="";for(;l;){c||($=""),c=!1;let m;if(this.options.extensions?.inline?.some(C=>(m=C.call({lexer:this},l,e))?(l=l.substring(m.raw.length),e.push(m),!0):!1))continue;if(m=this.tokenizer.escape(l)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.tag(l)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.link(l)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(m.raw.length);let C=e.at(-1);m.type==="text"&&C?.type==="text"?(C.raw+=m.raw,C.text+=m.text):e.push(m);continue}if(m=this.tokenizer.emStrong(l,u,$)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.codespan(l)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.br(l)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.del(l,u,$)){l=l.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.autolink(l)){l=l.substring(m.raw.length),e.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(l))){l=l.substring(m.raw.length),e.push(m);continue}let x=l;if(this.options.extensions?.startInline){let C=1/0,T=l.slice(1),I;this.options.extensions.startInline.forEach(F=>{I=F.call({lexer:this},T),typeof I=="number"&&I>=0&&(C=Math.min(C,I))}),C<1/0&&C>=0&&(x=l.substring(0,C+1))}if(m=this.tokenizer.inlineText(x)){l=l.substring(m.raw.length),m.raw.slice(-1)!=="_"&&($=m.raw.slice(-1)),c=!0;let C=e.at(-1);C?.type==="text"?(C.raw+=m.raw,C.text+=m.text):e.push(m);continue}if(l){let C="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return e}},El=class{options;parser;constructor(a){this.options=a||$t}space(a){return""}code({text:a,lang:l,escaped:e}){let u=(l||"").match(Ce.notSpaceStart)?.[0],n=a.replace(Ce.endingNewline,"")+` 41`;return u?'<pre><code class="language-'+qe(u)+'">'+(e?n:qe(n,!0))+`</code></pre> 42`:"<pre><code>"+(e?n:qe(n,!0))+`</code></pre> 43`}blockquote({tokens:a}){return`<blockquote> 44${this.parser.parse(a)}</blockquote> 45`}html({text:a}){return a}def(a){return""}heading({tokens:a,depth:l}){return`<h${l}>${this.parser.parseInline(a)}</h${l}> 46`}hr(a){return`<hr> 47`}list(a){let l=a.ordered,e=a.start,u="";for(let c=0;c<a.items.length;c++){let $=a.items[c];u+=this.listitem($)}let n=l?"ol":"ul",g=l&&e!==1?' start="'+e+'"':"";return"<"+n+g+`> 48`+u+"</"+n+`> 49`}listitem(a){return`<li>${this.parser.parse(a.tokens)}</li> 50`}checkbox({checked:a}){return"<input "+(a?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:a}){return`<p>${this.parser.parseInline(a)}</p> 51`}table(a){let l="",e="";for(let n=0;n<a.header.length;n++)e+=this.tablecell(a.header[n]);l+=this.tablerow({text:e});let u="";for(let n=0;n<a.rows.length;n++){let g=a.rows[n];e="";for(let c=0;c<g.length;c++)e+=this.tablecell(g[c]);u+=this.tablerow({text:e})}return u&&(u=`<tbody>${u}</tbody>`),`<table> 52<thead> 53`+l+`</thead> 54`+u+`</table> 55`}tablerow({text:a}){return`<tr> 56${a}</tr> 57`}tablecell(a){let l=this.parser.parseInline(a.tokens),e=a.header?"th":"td";return(a.align?`<${e} align="${a.align}">`:`<${e}>`)+l+`</${e}> 58`}strong({tokens:a}){return`<strong>${this.parser.parseInline(a)}</strong>`}em({tokens:a}){return`<em>${this.parser.parseInline(a)}</em>`}codespan({text:a}){return`<code>${qe(a,!0)}</code>`}br(a){return"<br>"}del({tokens:a}){return`<del>${this.parser.parseInline(a)}</del>`}link({href:a,title:l,tokens:e}){let u=this.parser.parseInline(e),n=Ba(a);if(n===null)return u;a=n;let g='<a href="'+a+'"';return l&&(g+=' title="'+qe(l)+'"'),g+=">"+u+"</a>",g}image({href:a,title:l,text:e,tokens:u}){u&&(e=this.parser.parseInline(u,this.parser.textRenderer));let n=Ba(a);if(n===null)return qe(e);a=n;let g=`<img src="${a}" alt="${qe(e)}"`;return l&&(g+=` title="${qe(l)}"`),g+=">",g}text(a){return"tokens"in a&&a.tokens?this.parser.parseInline(a.tokens):"escaped"in a&&a.escaped?a.text:qe(a.text)}},Ts=class{strong({text:a}){return a}
58em({text:a}){return a}codespan({text:a}){return a}del({text:a}){return a}html({text:a}){return a}text({text:a}){return a}link({text:a}){return""+a}image({text:a}){return""+a}br(){return""}checkbox({raw:a}){return a}},Ee=class $s{options;renderer;textRenderer;constructor(l){this.options=l||$t,this.options.renderer=this.options.renderer||new El,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ts}static parse(l,e){return new $s(e).parse(l)}static parseInline(l,e){return new $s(e).parseInline(l)}parse(l){let e="";for(let u=0;u<l.length;u++){let n=l[u];if(this.options.extensions?.renderers?.[n.type]){let c=n,$=this.options.extensions.renderers[c.type].call({parser:this},c);if($!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){e+=$||"";continue}}let g=n;switch(g.type){case"space":{e+=this.renderer.space(g);break}case"hr":{e+=this.renderer.hr(g);break}case"heading":{e+=this.renderer.heading(g);break}case"code":{e+=this.renderer.code(g);break}case"table":{e+=this.renderer.table(g);break}case"blockquote":{e+=this.renderer.blockquote(g);break}case"list":{e+=this.renderer.list(g);break}case"checkbox":{e+=this.renderer.checkbox(g);break}case"html":{e+=this.renderer.html(g);break}case"def":{e+=this.renderer.def(g);break}case"paragraph":{e+=this.renderer.paragraph(g);break}case"text":{e+=this.renderer.text(g);break}default:{let c='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return e}parseInline(l,e=this.renderer){let u="";for(let n=0;n<l.length;n++){let g=l[n];if(this.options.extensions?.renderers?.[g.type]){let $=this.options.extensions.renderers[g.type].call({parser:this},g);if($!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){u+=$||"";continue}}let c=g;switch(c.type){case"escape":{u+=e.text(c);break}case"html":{u+=e.html(c);break}case"link":{u+=e.link(c);break}case"image":{u+=e.image(c);break}case"checkbox":{u+=e.checkbox(c);break}case"strong":{u+=e.strong(c);break}case"em":{u+=e.em(c);break}case"codespan":{u+=e.codespan(c);break}case"br":{u+=e.br(c);break}case"del":{u+=e.del(c);break}case"text":{u+=e.text(c);break}default:{let $='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error($),"";throw new Error($)}}}return u}},ul=class{options;block;constructor(a){this.options=a||$t}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(a){return a}postprocess(a){return a}processAllTokens(a){return a}emStrongMask(a){return a}provideLexer(){return this.block?Fe.lex:Fe.lexInline}provideParser(){return this.block?Ee.parse:Ee.parseInline}},oc=class{defaults=Cs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ee;Renderer=El;TextRenderer=Ts;Lexer=Fe;Tokenizer=Fl;Hooks=ul;constructor(...a){this.use(...a)}walkTokens(a,l){let e=[];for(let u of a)switch(e=e.concat(l.call(this,u)),u.type){case"table":{let n=u;for(let g of n.header)e=e.concat(this.walkTokens(g.tokens,l));for(let g of n.rows)for(let c of g)e=e.concat(this.walkTokens(c.tokens,l));break}case"list":{let n=u;e=e.concat(this.walkTokens(n.items,l));break}default:{let n=u;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(g=>{let c=n[g].flat(1/0);e=e.concat(this.walkTokens(c,l))}):n.tokens&&(e=e.concat(this.walkTokens(n.tokens,l)))}}return e}use(...a){let l=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(e=>{let u={...e};if(u.async=this.defaults.async||u.async||!1,e.extensions&&(e.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let g=l.renderers[n.name];g?l.renderers[n.name]=function(...c){let $=n.renderer.apply(this,c);return $===!1&&($=g.apply(this,c)),$}:l.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let g=l[n.level];g?g.unshift(n.tokenizer):l[n.level]=[n.tokenizer],n.start&&(n.level==="block"?l.startBlock?l.startBlock.push(n.start):l.startBlock=[n.start]:n.level==="inline"&&(l.startInline?l.startInline.push(n.start):l.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(l.childTokens[n.name]=n.childTokens)}),u.extensions=l),e.renderer){let n=this.defaults.renderer||new El(this.defaults);for(let g in e.renderer){if(!(g in n))throw new Error(`renderer '${g}' does not exist`);if(["options","parser"].includes(g))continue;let c=g,$=e.renderer[c],m=n[c];n[c]=(...x)=>{let C=$.apply(n,x);return C===!1&&(C=m.apply(n,x)),C||""}}u.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new Fl(this.defaults);for(let g in e.tokenizer){if(!(g in n))throw new Error(`tokenizer '${g}' does not exist`);if(["options","rules","lexer"].includes(g))continue;let c=g,$=e.tokenizer[c],m=n[c];n[c]=(...x)=>{let C=$.apply(n,x);return C===!1&&(C=m.apply(n,x)),C}}u.tokenizer=n}if(e.hooks){let n=this.defaults.hooks||new ul;for(let g in e.hooks){if(!(g in n))throw new Error(`hook '${g}' does not exist`);if(["options","block"].includes(g))continue;let c=g,$=e.hooks[c],m=n[c];ul.passThroughHooks.has(g)?n[c]=x=>{if(this.defaults.async&&ul.passThroughHooksRespectAsync.has(g))return(async()=>{let T=await $.call(n,x);return m.call(n,T)})();let C=$.call(n,x);return m.call(n,C)}:n[c]=(...x)=>{if(this.defaults.async)return(async()=>{let T=await $.apply(n,x);return T===!1&&(T=await m.apply(n,x)),T})();let C=$.apply(n,x);return C===!1&&(C=m.apply(n,x)),C}}u.hooks=n}if(e.walkTokens){let n=this.defaults.walkTokens,g=e.walkTokens;u.walkTokens=function(c){let $=[];return $.push(g.call(this,c)),n&&($=$.concat(n.call(this,c))),$}}this.defaults={...this.defaults,...u}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,l){return Fe.lex(a,l??this.defaults)}parser(a,l){return Ee.parse(a,l??this.defaults)}parseMarkdown(a){return(l,e)=>{let u={...e},n={...this.defaults,...u},g=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&u.async===!1)return g(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof l>"u"||l===null)return g(new Error("marked(): input parameter is undefined or null"));if(typeof l!="string")return g(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=a),n.async)return(async()=>{let c=n.hooks?await n.hooks.preprocess(l):l,$=await(n.hooks?await n.hooks.provideLexer():a?Fe.lex:Fe.lexInline)(c,n),m=n.hooks?await n.hooks.processAllTokens($):$;n.walkTokens&&await Promise.all(this.walkTokens(m,n.walkTokens));let x=await(n.hooks?await n.hooks.provideParser():a?Ee.parse:Ee.parseInline)(m,n);return n.hooks?await n.hooks.postprocess(x):x})().catch(g);try{n.hooks&&(l=n.hooks.preprocess(l));let c=(n.hooks?n.hooks.provideLexer():a?Fe.lex:Fe.lexInline)(l,n);n.hooks&&(c=n.hooks.processAllTokens(c)),n.walkTokens&&this.walkTokens(c,n.walkTokens);let $=(n.hooks?n.hooks.provideParser():a?Ee.parse:Ee.parseInline)(c,n);return n.hooks&&($=n.hooks.postprocess($)),$}catch(c){return g(c)}}}onError(a,l){return e=>{if(e.message+=` 59Please report this to https://github.com/markedjs/marked.`,a){let u="<p>An error occurred:</p><pre>"+qe(e.message+"",!0)+"</pre>";return l?Promise.resolve(u):u}if(l)return Promise.reject(e);throw e}}},bt=new oc;function te(a,l){return bt.parse(a,l)}te.options=te.setOptions=function(a){return bt.setOptions(a),te.defaults=bt.defaults,Wa(te.defaults),te};te.getDefaults=Cs;te.defaults=$t;te.use=function(...a){return bt.use(...a),te.defaults=bt.defaults,Wa(te.defaults),te};te.walkTokens=function(a,l){return bt.walkTokens(a,l)};te.parseInline=bt.parseInline;te.Parser=Ee;te.parser=Ee.parse;te.Renderer=El;te.TextRenderer=Ts;te.Lexer=Fe;te.lexer=Fe.lex;te.Tokenizer=Fl;te.Hooks=ul;te.parse=te;te.options;te.setOptions;te.use;te.walkTokens;te.parseInline;Ee.parse;Fe.lex;const rc={name:"ArrowVerticalLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uc=["aria-hidden","aria-label"],dc=["fill","width","height"],cc={d:"M18.8 11V9.5C18.8 8.1 17.4 7 16 7S13.2 8.1 13.2 9.5V11C12.6 11 12 11.6 12 12.2V15.7C12 16.4 12.6 17 13.2 17H18.7C19.4 17 20 16.4 20 15.8V12.3C20 11.6 19.4 11 18.8 11M17.5 11H14.5V9.5C14.5 8.7 15.2 8.2 16 8.2C16.8 8.2 17.5 8.7 17.5 9.5V11M9 6H12L8 2L4 6H7V18H4L8 22L12 18H9V6Z"},pc={key:0};function hc(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon arrow-vertical-lock-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
59,[i("path",cc,[e.title?(o(),r("title",pc,d(e.title),1)):k("",!0)])],8,dc))],16,uc)}const gc=Z(rc,[["render",hc]]),vc={name:"FastForward5Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},mc=["aria-hidden","aria-label"],fc=["fill","width","height"],_c={d:"M11.5 3C14.15 3 16.55 4 18.4 5.6L21 3V10H14L16.62 7.38C15.23 6.22 13.46 5.5 11.5 5.5C7.96 5.5 4.95 7.81 3.9 11L1.53 10.22C2.92 6.03 6.85 3 11.5 3M9 12H15V14H11V16H13C14.11 16 15 16.9 15 18V20C15 21.11 14.11 22 13 22H9V20H13V18H9V12Z"},kc={key:0};function yc(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon fast-forward5-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",_c,[e.title?(o(),r("title",kc,d(e.title),1)):k("",!0)])],8,fc))],16,mc)}const bc=Z(vc,[["render",yc]]),$c={name:"Rewind5Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cc=["aria-hidden","aria-label"],wc=["fill","width","height"],xc={d:"M12.5 3C17.15 3 21.08 6.03 22.47 10.22L20.1 11C19.05 7.81 16.04 5.5 12.5 5.5C10.54 5.5 8.77 6.22 7.38 7.38L10 10H3V3L5.6 5.6C7.45 4 9.85 3 12.5 3M9 12H15V14H11V16H13C14.11 16 15 16.9 15 18V20C15 21.11 14.11 22 13 22H9V20H13V18H9V12Z"},Sc={key:0};function Lc(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon rewind5-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",xc,[e.title?(o(),r("title",Sc,d(e.title),1)):k("",!0)])],8,wc))],16,Cc)}const zc=Z($c,[["render",Lc]]),Mc={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vc=["aria-hidden","aria-label"],Tc=["fill","width","height"],Ac={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},Hc={key:0};function Ic(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon play-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Ac,[e.title?(o(),r("title",Hc,d(e.title),1)):k("",!0)])],8,Tc))],16,Vc)}const Rc=Z(Mc,[["render",Ic]]),Bc={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Pc=["aria-hidden","aria-label"],Fc=["fill","width","height"],Ec={d:"M14,19H18V5H14M6,19H10V5H6V19Z"},Dc={key:0};function Nc(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon pause-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Ec,[e.title?(o(),r("title",Dc,d(e.title),1)):k("",!0)])],8,Fc))],16,Pc)}const Uc=Z(Bc,[["render",Nc]]),Zc={class:"vue-audio-player"},qc={class:"vue-audio-player__time-wrap"},Oc={class:"vue-audio-player__current-time"},Gc={class:"vue-audio-player__duration"},Wc={class:"vue-audio-player__btn-wrap"},jc={key:1,class:"vue-audio-player__play-loading"},Qc=["onClick"],Xc={key:5,class:"vue-audio-player__play-volume-icon-wrap"},Kc=["src"],Yc=Qe({inheritAttrs:!1,__name:"VueAudioPlayer",props:{audioList:{type:Array,default:()=>[],required:!0},customDuration:{type:Number,default:0},showPlayButton:{type:Boolean,default:!0},showPrevButton:{type:Boolean,default:!0},showNextButton:{type:Boolean,default:!0},showVolumeButton:{type:Boolean,default:!0},showProgressBar:{type:Boolean,default:!0},showPlaybackRate:{type:Boolean,default:!0},showPlayLoading:{type:Boolean,default:!0},isLoop:{type:Boolean,default:!0},isAutoPlayNext:{type:Boolean,default:!0},progressInterval:{type:Number,default:500},isScrollLocked:{type:Boolean,default:!0},playbackRates:{type:Array,default:()=>[.25,.5,.75,1,1.25,1.5,1.75,2]},themeColor:{type:String,default:""},disabledProgressDrag:{type:Boolean,default:!1},disabledProgressClick:{type:Boolean,default:!1},beforePlay:{type:Function,default:null},beforePrev:{type:Function,default:null},beforeNext:{type:Function,default:null}},emits:["pause","play-prev","play-next","timeupdate","toggleSegmentScrollLock","toggleFilter","durationchange","ended","progress-start","progress-end","progress-move","progress-click","playing","play","play-error"],setup(a,{expose:l,emit:e}){const u=a,n=e,g=/iPhone|iPad|iPod/i.test(navigator?.userAgent??""),c=v(!1),$=v(!1),m=v(!1),x=v(!1),C=v(!1),T=v(!1),I=v(""),F=v(0),L=v(0),j=v(0),Q=v(1),N=v(1),E=v(!0),H=v(null),z=v(null),J=v(null),V=v(null),q=v(null),be=v(null),de=v(null);function Te(A){n("timeupdate",A)}function Ct(A){n("toggleSegmentScrollLock",A)}function Xe(A){n("toggleFilter",A)}function st(A){if(z.value){const R=z.value.duration;F.value=R&&isFinite(R)?R:0,u.customDuration>0&&u.customDuration>F.value&&(F.value=u.customDuration)}n("durationchange",A)}function Pt(A){setTimeout(()=>{Ae(),u.isLoop&&u.isAutoPlayNext&&Ye(),n("ended",A)},u.progressInterval)}function wt(){const A=u.audioList[L.value],R=typeof A=="string"?void 0:A;"mediaSession"in navigator&&R&&(navigator.mediaSession.metadata=new Media
59Metadata({title:R.title,artist:R.artist,album:R.album,artwork:R.artwork}),navigator.mediaSession.setActionHandler?.("play",()=>Be()),navigator.mediaSession.setActionHandler?.("pause",()=>Ae()),navigator.mediaSession.setActionHandler?.("previoustrack",()=>f()),navigator.mediaSession.setActionHandler?.("nexttrack",()=>Ye()))}function Ft(A={}){I.value=A.message??"",m.value=!0,setTimeout(()=>m.value=!1,A.duration??3e3)}function Le(){C.value=!C.value}function at(A){if(!be.value||!z.value)return;const R=be.value.getBoundingClientRect(),ue=A.pageY||A.touches?.[0]?.pageY;let ee=Math.round(R.bottom-ue)/be.value.offsetHeight;ee=Math.max(0,Math.min(1,ee)),z.value.volume=ee,Q.value=ee}function nt(A){N.value=+A,z.value&&(z.value.playbackRate=+A),T.value=!1}function it(A){E.value=!1,!u.disabledProgressDrag&&($.value=!0,n("progress-start",A))}function Ke(A){u.disabledProgressDrag||!$.value||($.value=!1,Be({currentTime:j.value}),n("progress-end",A))}function $e(A){q.value&&(q.value.style.left=A-q.value.offsetWidth/2+"px")}function ie(A){if(u.disabledProgressDrag||!$.value||!q.value||!J.value||!V.value||!z.value)return;const R=A.pageX||A.touches?.[0]?.pageX,ue=q.value.getBoundingClientRect();let ee=parseInt(getComputedStyle(q.value).left)+(R-ue.left);ee=Math.min(ee,J.value.offsetWidth),ee=Math.max(ee,0),$e(ee),V.value.style.width=ee+"px",j.value=ee/J.value.offsetWidth*F.value,n("progress-move",A)}function Ul(A){if(!J.value||!V.value||!q.value)return;if(u.disabledProgressClick||!E.value){E.value=!0;return}const R=A.target,ue=A.pageX||A.touches?.[0]?.pageX,D=R.getBoundingClientRect(),Nt=parseInt(getComputedStyle(R).left||"0")+(ue-D.left);if(R===q.value)return;j.value=Nt/J.value.offsetWidth*F.value;const Zl=c.value;Be({currentTime:j.value}).then(()=>{Zl||Ae()}).catch(()=>{}),$e(Nt),V.value.style.width=Nt+"px",E.value=!0,n("progress-click",A)}function Et(){H.value&&(clearInterval(H.value),H.value=null)}function cl(){if($.value||!z.value||!J.value||!V.value)return;const A=F.value||1,R=z.value.currentTime/A*J.value.offsetWidth;j.value=z.value.currentTime,V.value.style.width=R+"px",$e(R),n("playing")}function Be(A={}){return new Promise((R,ue)=>{if(!z.value)return ue(new Error("audio ref not ready"));x.value=!0;const D=()=>{z.value.play().then(async()=>{await De(),typeof A.currentTime=="number"&&(z.value.currentTime=A.currentTime),H.value?j.value=z.value.currentTime:H.value=window.setInterval(cl,u.progressInterval),c.value=!0,x.value=!1,z.value.playbackRate=N.value,n("play"),R(z.value)}).catch(ee=>{Ft({message:ee?.message}),ee?.code===9&&u.isAutoPlayNext&&setTimeout(()=>Ye(),3e3),x.value=!1,n("play-error",ee),ue(ee)}),wt()};if(g&&(console.log("iOS workaround: ignore play() interrupted by pause() warning"),z.value.play().finally(()=>z.value.pause())),u.beforePlay){u.beforePlay(ee=>{ee!==!1&&D()});return}D()})}function Ae(){z.value&&(z.value.pause(),De(()=>{Et(),c.value=!1,n("pause")}))}function f(){if(L.value<=0&&!u.isLoop)return;Et(),F.value=0;const A=()=>{L.value<=0&&u.isLoop?L.value=u.audioList.length-1:L.value--,De(()=>{Be(),n("play-prev")})};if(u.beforePrev){u.beforePrev(R=>{R!==!1&&A()});return}A()}function Ye(){if(L.value+1>=u.audioList.length&&!u.isLoop)return;Et(),F.value=0;const A=()=>{L.value+1>=u.audioList.length&&u.isLoop?L.value=0:L.value++,De(()=>{Be(),n("play-next")})};if(u.beforeNext){u.beforeNext(R=>{R!==!1&&A()});return}A()}function Dt(A=5){z.value&&(z.value.currentTime=Math.max(0,z.value.currentTime-A))}function pl(A=5){if(!z.value)return;const R=F.value||z.value.duration||0;z.value.currentTime=Math.min(R,z.value.currentTime+A)}return Rt(()=>{De(()=>{q.value?.addEventListener?.("mousedown",it),document.addEventListener("mousemove",ie),document.addEventListener("mouseup",Ke),be.value?.addEventListener?.("touchmove",at),q.value?.addEventListener?.("touchstart",it,{passive:!0}),document.addEventListener("touchmove",ie),document.addEventListener("touchend",Ke),z.value?.load()})}),Ua(()=>{Ae(),q.value?.removeEventListener?.("mousedown",it),document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",Ke);try{be.value?.removeEventListener?.("mousemove",at)}catch{}q.value?.removeEventListener?.("touchstart",it),document.removeEventListener("touchmove",ie),document.removeEventListener("touchend",Ke)}),l({play:Be,pause:Ae,audio:z,currentPlayIndex:L,duration:F}),(A,R)=>{const ue=K("CButton");return o(),r("div",Zc,[he(i("div",null,[i("div",{ref_key:"audioProgressWrap",ref:J,class:"vue-audio-player__progress-wrap",style:X({cursor:a.disabledProgressClick?"auto":"pointer"}),onClick:ye(Ul,["stop"])},[i("div",{ref_key:"audioProgress",ref:V,class:"vue-audio-player__progress",style:X({backgroundColor:a.theme
59Color})},null,4),i("div",{ref_key:"audioProgressPoint",ref:q,class:"vue-audio-player__progress-point",style:X({backgroundColor:a.themeColor,boxShadow:`0 0 10px 0 ${a.themeColor}`,cursor:a.disabledProgressDrag?"auto":"pointer"})},null,4)],4),i("div",qc,[i("div",Oc,d(b(kt).formattedTime(j.value)),1),i("div",Gc,d(b(kt).formattedTime(F.value)),1)])],512),[[Al,a.showProgressBar]]),i("div",Wc,[a.showPrevButton?(o(),r("div",{key:0,class:ke(["vue-audio-player__play-prev",{disable:!a.isLoop&&L.value===0}]),onClick:ye(f,["stop"]),style:X({color:a.themeColor})},[va(A.$slots,"play-prev",{},()=>[R[3]||(R[3]=i("svg",{t:"1717510776733",class:"vue-audio-player__play-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3657",width:"200",height:"200"},[i("path",{d:"M744.4353125 43.919375L280.94 425.3525 280.94 104.4359375a38.5096875 38.5096875 0 1 0-77.47875-0.916875l0 816.5034375a38.5096875 38.5096875 0 1 0 77.47875 0L280.94 596.35625l463.4953125 383.7253125a45.845625 45.845625 0 0 0 76.1034375-33.92625L820.53875 77.845625a45.845625 45.845625 0 0 0-76.1034375-33.92625z","p-id":"3658"})],-1))])],6)):k("",!0),x.value&&a.showPlayLoading?(o(),r("div",jc,[(o(),r(P,null,re(8,D=>i("span",{key:D,style:X({backgroundColor:a.themeColor})},null,4)),64))])):(o(),r(P,{key:2},[!c.value&&a.showPlayButton?(o(),W(ue,{key:0,class:"vue-audio-player__button",onClick:ye(Be,["stop"]),style:X({color:a.themeColor})},{default:_(()=>[h(Rc)]),_:1},8,["style"])):a.showPlayButton?(o(),W(ue,{key:1,class:"vue-audio-player__button",onClick:ye(Ae,["stop"]),style:X({color:a.themeColor})},{default:_(()=>[h(Uc)]),_:1},8,["style"])):k("",!0)],64)),a.showNextButton?(o(),r("div",{key:3,class:ke(["vue-audio-player__play-next",{disable:!a.isLoop&&L.value===a.audioList.length-1}]),onClick:ye(Ye,["stop"]),style:X({color:a.themeColor})},[va(A.$slots,"play-next",{},()=>[R[4]||(R[4]=i("svg",{t:"1717510922648",class:"vue-audio-player__play-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4091",width:"200",height:"200"},[i("path",{d:"M279.5646875 980.080625L743.06 598.6475 743.06 919.5640625a38.5096875 38.5096875 0 1 0 77.47875 0.916875l0-816.5034375a38.5096875 38.5096875 0 1 0-77.47875 0L743.06 427.64375l-463.4953125-383.7253125a45.845625 45.845625 0 0 0-76.1034375 33.92625L203.46125 946.154375a45.845625 45.845625 0 0 0 76.1034375 33.92625z","p-id":"4092"})],-1))])],6)):k("",!0),h(ue,{class:"vue-audio-player__button",style:X({color:a.themeColor})},{default:_(()=>[h(zc,{onClick:R[0]||(R[0]=D=>Dt())})]),_:1},8,["style"]),h(ue,{class:"vue-audio-player__button",style:X({color:a.themeColor})},{default:_(()=>[h(bc,{onClick:R[1]||(R[1]=D=>pl())})]),_:1},8,["style"]),a.showPlaybackRate?(o(),r("div",{key:4,class:"vue-audio-player__play-rate vue-audio-player__button",style:X({color:a.themeColor})},[i("span",{onClick:R[2]||(R[2]=ye(D=>T.value=!T.value,["stop"]))},d("x"+N.value.toFixed(1)),1),h(Bl,{name:"fade-rate"},{default:_(()=>[he(i("div",{class:"vue-audio-player__play-rate__dropdown",style:X({backgroundColor:a.themeColor})},[(o(!0),r(P,null,re(a.playbackRates,D=>(o(),r("div",{key:"pr_"+D,onClick:ye(ee=>nt(D),["stop"])},d(D.toFixed(2)),9,Qc))),128))],4),[[Al,T.value]])]),_:1})],4)):k("",!0),R[6]||(R[6]=i("div",{style:{"margin-left":"auto"}},null,-1)),a.showVolumeButton?(o(),r("div",Xc,[(o(),r("svg",{t:"1717511047008",class:"vue-audio-player__play-icon",style:X({color:a.themeColor}),onClick:ye(Le,["stop"]),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4233",width:"200",height:"200"},[...R[5]||(R[5]=[i("path",{d:"M1009.6852389 501.04265842v72.84551793c-12.28886699 137.14708366-93.42867683 254.45999047-208.60559588 317.12488904L762.68733667 817.14116381A318.92799715 318.92799715 0 0 0 928.10158763 537.46541682a319.0112165 319.0112165 0 0 0-175.15102891-284.80766635l38.33682717-73.87190158c120.33657856 61.22241365 205.74836509 181.25385159 218.39785301 322.25680953z m-165.69165255 27.96202667a248.96745017 248.96745017 0 0 1-120.17013874 213.51559395l-38.55874617-74.0660827a165.77487189 165.77487189 0 0 0 75.50856761-139.44951125 165.77487189 165.77487189 0 0 0-78.03291762-141.08617842l38.44778667-74.01060238a248.96745017 248.96745017 0 0 1 122.80544825 215.0967808zM625.26285255 162.75206827V872.89877618c0 56.72851683-70.04376747 84.24670094-109.29601764 42.94168462l-182.44667619-166.55159523H110.71162937a83.2203173 83.2203173
590 0 1-83.2203173-83.2203173V388.44556857a83.2203173 83.2203173 0 0 1 78.31031808-83.0816165l5.60350208-0.1387008 224.9167781 3.74491478 179.67266474-189.13204224c39.22451001-41.33275762 109.2960165-13.78683221 109.29601764 42.94168348z","p-id":"4234"},null,-1)])],4)),h(Bl,{name:"fade-volume"},{default:_(()=>[he(i("div",{ref_key:"playVolumeWrap",ref:be,class:"vue-audio-player__play-volume-wrap",onClick:ye(at,["stop"])},[i("div",{ref_key:"playVolume",ref:de,class:"vue-audio-player__play-volume",style:X({height:Q.value*100+"%",backgroundColor:a.themeColor})},null,4)],512),[[Al,C.value]])]),_:1})])):k("",!0),h(ue,{class:"vue-audio-player__button",onClick:Ct},{default:_(()=>[h(gc,{style:X({color:a.isScrollLocked?a.themeColor:"#c4c4c4"})},null,8,["style"])]),_:1}),h(ue,{class:"vue-audio-player__button",onClick:Xe},{default:_(()=>[h(Ga)]),_:1}),he(i("div",{class:"vue-audio-player__notice"},d(I.value),513),[[Al,m.value]])]),i("audio",G({ref_key:"audio",ref:z,class:"vue-audio-player__audio",src:a.audioList?.[L.value]?.src||a.audioList?.[L.value]},A.$attrs,{onEnded:Pt,onTimeupdate:Te,onDurationchange:st})," æµè§å¨å¤ªèå¯ï¼è¯·å级æµè§å¨å§~ ",16,Kc)])}}}),Jc={class:"right-menu__title"},e1={class:"st-card-secondary"},t1={class:"right-menu__subtitle"},l1={class:"st-card-secondary"},s1={class:"right-menu__subtitle"},Ea=Qe({__name:"AudioFilters",props:{speakers:{},tags:{}},emits:["updateFilterSpeaker","updateFilterTag"],setup(a,{emit:l}){const e=l,u=(g,c)=>{e("updateFilterSpeaker",g,c)},n=(g,c)=>{e("updateFilterTag",g,c)};return(g,c)=>{const $=K("CFormCheck");return o(),r(P,null,[i("div",Jc,d(g.$t("filters")),1),i("div",e1,[i("div",t1,d(g.$t("speakers")),1),(o(!0),r(P,null,re(g.speakers,m=>(o(),W($,{id:"speaker-filter"+m.key,label:m.name,key:m.key,checked:m.is_show,onChange:x=>u(m,x.target.checked)},null,8,["id","label","checked","onChange"]))),128))]),c[1]||(c[1]=i("div",{style:{height:"16px"}},null,-1)),i("div",l1,[i("div",s1,d(g.$t("tags")),1),h($,{id:"bookmark-filter",label:g.$t("bookmark"),checked:g.tags.includes("bookmark"),onChange:c[0]||(c[0]=m=>n("bookmark",m.target.checked))},null,8,["label","checked"])])],64)}}}),a1=["placeholder"],n1={class:"folder-header"},i1={style:{"font-size":"15px","font-weight":"600"}},o1=Qe({__name:"MoveFolderModal",props:{visible:{type:Boolean,default:!1},selectedAudioIds:{},currentFolderId:{default:null}},emits:["close","moved"],setup(a,{emit:l}){const e=a,u=l,{appContext:n}=Bt(),g=n.config.globalProperties.apiClient,c=v(!1),$=v(null),m=v(null),x=ae(()=>m.value===null||m.value===$.value);Za(()=>e.visible,V=>{V&&($.value=e.currentFolderId??null,m.value=e.currentFolderId??null)});const C=v([]),T=v(0),I=v(!1),F=v(null),L=v(!1),j=v(""),Q=v(null),N=()=>{F.value=null,g.getFolders().then(V=>{C.value=V.data,T.value=V.meta?.total_count??0}).finally(()=>{I.value=!1})},E=()=>{u("close")},H=async()=>{if(!c.value){if(m.value===null){u("close");return}c.value=!0,m.value===0?await g.removeAudiosFolder(e.selectedAudioIds):await g.addAudiosFolder(m.value,e.selectedAudioIds),u("moved")}},z=()=>{L.value=!0,j.value="",De(()=>{Q.value?.focus()})},J=async()=>{const V=j.value.trim();if(V)try{const q=await g.createFolder(V);C.value.push(q),m.value=q.id,L.value=!1,j.value=""}catch(q){console.error("Failed to create folder:",q)}};return Rt(()=>{N()}),(V,q)=>{const be=K("CModalTitle"),de=K("CModalHeader"),Te=K("CListGroupItem"),Ct=K("CListGroup"),Xe=K("CModalBody"),st=K("CButton"),Pt=K("CLoadingButton"),wt=K("CModalFooter"),Ft=K("CModal");return o(),W(Ft,{onClose:q[4]||(q[4]=Le=>
59V.$emit("close")),alignment:"center",visible:V.visible},{default:_(()=>[h(de,null,{default:_(()=>[h(be,null,{default:_(()=>[w(d(L.value?V.$t("create_folder"):V.$t("move_audios_to_folder")),1)]),_:1})]),_:1}),h(Xe,null,{default:_(()=>[L.value?he((o(),r("input",{key:0,"onUpdate:modelValue":q[0]||(q[0]=Le=>j.value=Le),class:"create-folder-input",placeholder:V.$t("create_folder")+"...",onKeyup:It(J,["enter"]),ref_key:"createFolderInput",ref:Q},null,40,a1)),[[Re,j.value]]):(o(),r(P,{key:1},[i("div",n1,[i("div",i1,d(V.$t("please_select_folder")),1),i("button",{class:"create-folder-link",onClick:z}," + "+d(V.$t("create_folder")),1)]),h(Ct,{class:"folder-list"},{default:_(()=>[h(Te,{component:"button",onClick:q[1]||(q[1]=()=>m.value=0),active:m.value===0},{default:_(()=>[w(" ("+d(V.$t("empty_folder"))+") ",1)]),_:1},8,["active"]),(o(!0),r(P,null,re(C.value,Le=>(o(),W(Te,{component:"button",key:"folder"+Le.id,onClick:()=>m.value=Le.id,active:m.value===Le.id},{default:_(()=>[w(d(Le.name),1)]),_:2},1032,["onClick","active"]))),128))]),_:1})],64))]),_:1}),h(wt,null,{default:_(()=>[L.value?(o(),r(P,{key:0},[h(st,{color:"light",shape:"rounded-pill",onClick:q[2]||(q[2]=Le=>{L.value=!1,j.value=""})},{default:_(()=>[w(d(V.$t("cancel")),1)]),_:1}),h(st,{color:"primary",shape:"rounded-pill",onClick:J,disabled:!j.value.trim()},{default:_(()=>[w(d(V.$t("create")),1)]),_:1},8,["disabled"])],64)):(o(),r(P,{key:1},[h(st,{onClick:E},{default:_(()=>[w(d(V.$t("cancel")),1)]),_:1}),h(Pt,{class:"move-to-folder-button",onClick:q[3]||(q[3]=Le=>H()),shape:"rounded-pill",disabled:x.value},{default:_(()=>[w(d(V.$t("move")),1)]),_:1},8,["disabled"])],64))]),_:1})]),_:1},8,["visible"])}}}),r1=Z(o1,[["__scopeId","data-v-cf52bc15"]]),u1="/assets/summary-C3ragF0q.png",d1={class:"right-menu__title"},c1={key:0,style:{"text-align":"center",padding:"20px"}},p1={key:1,style:{"font-size":"14px"}},h1={style:{"font-size":"14px",display:"flex"}},g1=["src"],v1={key:2},m1=["innerHTML"],f1={key:3,class:"row",style:{"align-items":"center","font-size":"14px","margin-bottom":"4px","margin-top":"12px"}},_1={class:"col-8"},k1={class:"col-4"},y1={key:4,style:{"font-size":"12px","margin-top":"2px"}},b1={key:0},$1={key:1},C1=Qe({__name:"AudioSummary",props:{summaryResult:{default:""},audioId:{},length_seconds:{default:1}},emits:["summaryUploaded"],setup(a,{emit:l}){const e=a,u=l,n=v(""),g=v(!1),c=v(1),$=v(!me.isPaidUser()),m=v(me.isUsedSummary()),{appContext:x}=Bt(),C=x.config.globalProperties.apiClient,T=ae(()=>(L(),F((n.value===""?e.summaryResult:n.value)??"").replace(/\n/g,"<br>"))),I=ae(()=>(console.log("mins_per_query"),console.log(e.length_seconds),console.log(c.value),Math.ceil(e.length_seconds/c.value/60))),F=Q=>{let N=Q.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>");return N=N.replace(/### (.*?)\n/g,"<h3>$1</h3>"),N=N.replace(/\d+\. (.*?)(\n|$)/g,"<p>$1</p>"),N},L=()=>{e.audioId&&C.getAiServerFee(e.audioId,"summary").then(Q=>{Q&&(c.value=Q.rate)})},j=()=>{e.audioId&&(g.value=!0,C.summarizeAudio(e.audioId,"","").then(Q=>{if(!Q){g.value=!1;return}me.setUsedSummary(!0),n.value=Q.summary,L(),u("summaryUploaded",n.value)}).finally(()=>{g.value=!1}))};return(Q,N)=>{const E=K("CSpinner"),H=K("CButton");return o(),r(P,null,[i("div",d1,d(Q.$t("summary")),1),g.value?(o(),r("div",c1,[h(E)])):T.value.length===0&&Q.summaryResult.length===0?(o(),r("div",p1,[i("div",h1,[i("img",{src:b(u1),style:{width:"80%","margin-left":"auto","margin-right":"auto",padding:"28px"}},null,8,g1)]),w(" "+d(Q.$t("summary_des1")),1)])):(o(),r("div",v1,[i("div",{id:"summary-result",ref:"summary-result",style:{height:"400px",overflow:"auto"},innerHTML:T.value},null,8,m1)])),N[0]||(N[0]=i("hr",null,null,-1)),c.value!==0?(o(),r("div",f1,[i("div",_1,d(Q.$t("consume_transcription_quota")),1),i("div",k1,"-"+d(Q.$t("x_minutes",{x:I.value})),1)])):k("",!0),N[1]||(N[1]=i("div",{style:{height:"12px"}},null,-1)),h(H,{style:{width:"100%"},color:"primary",shape:"rounded-pill",onClick:j,disabled:$.value&&m.value},{default:_(()=>[w(d(Q.$t("submit")),1)]),_:1},8,["disabled"]),$.value?(o(),r("div",y1,[m.value?(o(),r("div",b1,d(Q.$t("free_user_summary")),1)):(o(),r("div",$1,d(Q.$t("free_user_service_once")),1))])):k("",!0)],64)}}}),w1="/assets/chat-JU_Ule6y.png",x1={name:"SendIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},S1=["aria-hidden","aria-label"],L1=["fill","width","height"],z1={d:"M2,21L23,12L2,3V10L17,12L2,14V21Z"},M1={key:0};function V1(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon send-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"}
59,[i("path",z1,[e.title?(o(),r("title",M1,d(e.title),1)):k("",!0)])],8,L1))],16,S1)}const nn=Z(x1,[["render",V1]]),T1={class:"right-menu__title"},A1={key:0,style:{"text-align":"center",padding:"20px"}},H1={key:1,style:{"font-size":"14px",display:"flex"}},I1=["src"],R1={key:2},B1={key:0,class:"message user-message"},P1={key:1,class:"message bot-message"},F1={key:0,style:{"text-align":"center"}},E1={style:{"font-size":"12px","margin-top":"6px"}},D1={style:{"align-items":"center","font-size":"14px","margin-bottom":"4px","margin-top":"6px",display:"flex"}},N1={key:3,style:{"font-size":"12px","margin-top":"2px"}},U1={key:0},Z1={key:1},q1=Qe({__name:"AudioMessages",props:{rate:{default:0},audioId:{default:0},length_seconds:{default:1}},setup(a){const l=a,{appContext:e}=Bt(),u=e.config.globalProperties.apiClient,n=v(null),g=v(""),c=v(!1),$=v(!1),m=v(!1),x=v(),C=!me.isPaidUser(),T=me.isUsedQuery(),I=ae(()=>Math.ceil(l.length_seconds/l.rate)),F=()=>{console.log("loadMessages"),u.getMessages(l.audioId).then(N=>{n.value=N.data,n.value.reverse();for(let E=0;E<n.value.length;E++){const H=n.value[E];console.log(H)}Q()}).finally(()=>{m.value=!1})},L=()=>{g.value.length===0||c.value||(c.value=!0,u.sendMessage(l.audioId,g.value).then(N=>{g.value="",me.setUsedQuery(!0),n.value.push(N),j(N.id),Q()}))},j=N=>{$.value=!0,u.getMessageResponse(N).then(E=>{n.value.push(E),me.isPaidUser()&&(c.value=!1),Q()}).finally(()=>{$.value=!1})},Q=()=>{setTimeout(()=>{const N=x.value;N&&N.lastElementChild?.scrollIntoView({behavior:"smooth"})},500)};return Rt(()=>{F()}),(N,E)=>{const H=K("CSpinner");return o(),r(P,null,[i("div",T1,d(N.$t("query")),1),n.value==null?(o(),r("div",A1,[h(H)])):n.value.length===0?(o(),r("div",H1,[i("img",{src:b(w1),style:{width:"80%","margin-left":"auto","margin-right":"auto",padding:"28px"}},null,8,I1)])):(o(),r("div",R1,[i("div",{style:{height:"500px",overflow:"auto"},ref_key:"scrollMessages",ref:x,class:"scroll-messages-container"},[(o(!0),r(P,null,re(n.value,z=>(o(),r("div",{style:{display:"grid"},key:z.id},[z.user_id!=null?(o(),r("div",B1,d(z.text),1)):(o(),r("div",P1,d(z.text==="not_found"?N.$t("information_not_found"):z.text),1))]))),128)),$.value?(o(),r("div",F1,[h(H)])):k("",!0)],512)])),i("div",E1,d(N.$t("mins_per_query",{x:"-"+I.value})),1),i("div",D1,[h(b(lt),{class:"message-input",disabled:c.value||C&&b(T),placeholder:"Aa",modelValue:g.value,"onUpdate:modelValue":E[0]||(E[0]=z=>g.value=z),onKeyup:It(L,["enter"])},null,8,["disabled","modelValue"]),E[1]||(E[1]=i("div",{style:{height:"12px"}},null,-1)),h(ve,{icon:nn,onClick:L,disabled:c.value||C&&b(T)},null,8,["disabled"])]),C?(o(),r("div",N1,[b(T)?(o(),r("div",U1,d(N.$t("free_user_summary")),1)):(o(),r("div",Z1,d(N.$t("free_user_service_once")),1))])):k("",!0)],64)}}}),O1=Z(q1,[["__scopeId","data-v-910fdc3a"]]),G1={name:"AutoFixIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},W1=["aria-hidden","aria-label"],j1=["fill","width","height"],Q1={d:"M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z"},X1={key:0};function K1(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon auto-fix-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Q1,[e.title?(o(),r("title",X1,d(e.title),1)):k("",!0)])],8,j1))],16,W1)}const Y1=Z(G1,[["render",K1]]),J1={class:"ai-chat"},ep={key:0,class:"ai-chat__placeholder"},tp={key:1,class:"ai-chat__placeholder"},lp={style:{"text-align":"center"}},sp={style:{"text-align":"center","margin-bottom":"12px"}},ap={style:{"font-weight":"600","font-size":"15px","margin-bottom":"4px"}},np={key:0,class:"message user-message"},ip={key:1,class:"message bot-message"},op={key:0,style:{"text-align":"center"}},rp={class:"ai-chat__footer"},up={key:0,class:"ai-chat__meta ai-chat__meta--muted"},dp=["aria-describedby"],cp={class:"usage-help-popover"},pp={class:"usage-help-popover__title"},hp={key:0,class:"usage-help-popover__row"},gp={class:"usage-help-popover__label"},vp={class:"usage-help-popover__row"},mp={class:"usage-help-popover__label"},fp={key:1,class:"usage-help-popover__cta"}
59,_p={key:1,class:"ai-chat__meta"},kp={key:2,class:"ai-chat__blocked"},yp={class:"ai-chat__blocked-text"},bp={class:"ai-chat__composer"},$p=Qe({__name:"AIChat",props:{rate:{default:0},audioId:{default:0},length_seconds:{default:1},isColCOn:{type:Boolean},chatUsage:{},disabled:{type:Boolean}},emits:["usage-changed"],setup(a,{emit:l}){const e=me.isPaidUser(),u=a,n=l,{appContext:g}=Bt(),c=g.config.globalProperties.apiClient,$=v(null),m=v(""),x=v(!1),C=v(!1),T=v(!1),I=v(),F=ae(()=>u.chatUsage?.credits_per_use===-1),L=ae(()=>u.chatUsage?.credits_per_use??0),j=()=>{c.getMessages(u.audioId).then(H=>{$.value=H.data,$.value.reverse(),E()}).finally(()=>{T.value=!1})},Q=()=>{m.value.length===0||x.value||F.value||(x.value=!0,c.sendMessage(u.audioId,m.value).then(H=>{m.value="",$.value.push(H),N(H.id),E(),n("usage-changed")}))},N=H=>{C.value=!0,c.getMessageResponse(H).then(z=>{$.value.push(z),F.value||(x.value=!1),E()}).finally(()=>{C.value=!1})},E=()=>{setTimeout(()=>{const H=I.value;H&&H.scrollTo({top:H.scrollHeight,behavior:"smooth"})},500)};return Rt(()=>{j()}),(H,z)=>{const J=K("CSpinner"),V=K("RouterLink"),q=K("CPopover"),be=K("CFormInput");return o(),r("div",J1,[$.value==null?(o(),r("div",ep,[h(J)])):$.value.length===0?(o(),r("div",tp,[i("div",lp,[i("div",sp,[h(Y1,{size:36})]),i("div",ap,d(H.$t("ask_soundtype_ai")),1),i("div",null,d(H.$t("ask_soundtype_ai_des")),1)])])):(o(),r("div",{key:2,ref_key:"scrollMessages",ref:I,class:"scroll-messages-container ai-chat__messages"},[(o(!0),r(P,null,re($.value,de=>(o(),r("div",{class:"ai-chat__message-row",key:de.id},[de.user_id!=null?(o(),r("div",np,d(de.text),1)):(o(),r("div",ip,d(de.text==="not_found"?H.$t("information_not_found"):de.text),1))]))),128)),C.value?(o(),r("div",op,[h(J)])):k("",!0)],512)),i("div",rp,[u.chatUsage?(o(),r("div",up,[i("span",null,d(H.$t("chat_usage_remaining",{remaining:u.chatUsage.free_remaining,limit:u.chatUsage.free_limit})),1),h(q,{content:"",trigger:"click",placement:"top"},{toggler:_(({id:de,on:Te})=>[i("button",G({class:"usage-help-btn","aria-describedby":de},qa(Te,!0)),[h(Oa,{size:14})],16,dp)]),content:_(()=>[i("div",cp,[i("div",pp,d(H.$t("usage_limit_info_title")),1),b(e)?k("",!0):(o(),r("div",hp,[i("span",gp,d(H.$t("free_plan")),1),i("span",null,d(H.$t("usage_chat_free_plan",{limit:u.chatUsage.free_limit})),1)])),i("div",vp,[i("span",mp,d(H.$t("paid_plan")),1),i("span",null,d(H.$t("usage_chat_paid_plan",{limit:u.chatUsage.free_limit,minutes:Math.ceil(L.value/60)})),1)]),b(e)?k("",!0):(o(),r("div",fp,[h(V,{to:"/plan",class:"usage-help-popover__link"},{default:_(()=>[w(d(H.$t("upgrade_now")),1)]),_:1})]))])]),_:1})])):k("",!0),L.value>0?(o(),r("div",_p,d(H.$t("chat_usage_minutes",{minutes:Math.ceil(L.value/60)})),1)):k("",!0),F.value?(o(),r("div",kp,[i("span",yp,d(H.$t("chat_usage_limit_reached_text")),1),h(V,{to:"/plan",class:"usage-upgrade-link"},{default:_(()=>[w(d(H.$t("upgrade_now")),1)]),_:1})])):k("",!0),i("div",bp,[h(be,{class:"message-input",disabled:x.value||F.value||u.disabled,placeholder:"Aa",modelValue:m.value,"onUpdate:modelValue":z[0]||(z[0]=de=>m.value=de),onKeyup:It(Q,["enter"])},null,8,["disabled","modelValue"]),h(ve,{icon:nn,onClick:Q,disabled:x.value||F.value||u.disabled},null,8,["disabled"])])])])}}}),Cp=Z($p,[["__scopeId","data-v-df6f87c8"]]),wp="/assets/translation-Boez6Wrq.png",xp={class:"right-menu__title"},Sp={key:0},Lp={key:1,style:{"text-align":"center",padding:"20px"}},zp={class:"des"},Mp={class:"des"},Vp={key:2},Tp={style:{"font-size":"14px",display:"flex"}},Ap=["src"],Hp={class:"des"},Ip={class:"des1",style:{"margin-top":"8px"}},Rp={class:"des1"},Bp={key:0,class:"row",style:{"align-items":"center","font-size":"14px","margin-bottom":"4px","margin-top":"12px"}},Pp={class:"col-8"},Fp={class:"col-4"},Ep=["value"],Dp={key:0},Np={key:1},Up={key:1,style:{"font-size":"12px","margin-top":"2px"}},Zp=Qe({__name:"AudioTranslate",props:{audioId:{default:""},length_seconds:{default:1}},emits:["translated"],setup(a,{emit:l}){const e=a,u=l,{appContext:n}=Bt(),g=n.config.globalProperties.apiClient,c=v(""),$=rl.LANGUAGES,m=v(!1),x=v(!1),C=!me.isPaidUser(),T=v(!0),I=v(999),F=v(null),L=ae(()=>Math.ceil(e.length_seconds/I.value/60)),j=()=>{const E=x.value;
59console.log("loadServiceFee"),g.getAiServerFee(e.audioId,"translation").then(H=>{H&&(F.value=H,x.value=F.value.is_processing,I.value=F.value.rate,x.value?Q():E&&u("translated"))})},Q=()=>{setTimeout(()=>{j()},5e3)},N=()=>{x.value=!0,g.translateAudio(e.audioId,c.value).then(()=>{u("translated")}).finally(()=>{x.value=!1})};return Rt(()=>{console.log("AudioTranslate created"),j()}),(E,H)=>{const z=K("CSpinner"),J=K("CFormSelect"),V=K("CButton");return o(),r(P,null,[i("div",xp,d(E.$t("translation")),1),m.value?(o(),r("div",Sp,[h(z)])):x.value?(o(),r("div",Lp,[h(z),i("div",zp,d(E.$t("translating")),1),i("div",Mp,d(E.$t("translating_des")),1)])):(o(),r("div",Vp,[i("div",Tp,[i("img",{src:b(wp),style:{width:"80%","margin-left":"auto","margin-right":"auto",padding:"28px"}},null,8,Ap)]),i("div",Hp,d(E.$t("translate_des1")),1),i("div",Ip,d(E.$t("translate_des2")),1),i("div",Rp,d(E.$t("translate_des3")),1),H[1]||(H[1]=i("hr",null,null,-1)),I.value!==0?(o(),r("div",Bp,[i("div",Pp,d(E.$t("consume_transcription_quota")),1),i("div",Fp,"-"+d(E.$t("x_minutes",{x:L.value})),1)])):k("",!0),H[2]||(H[2]=i("div",{style:{height:"12px"}},null,-1)),h(J,{modelValue:c.value,"onUpdate:modelValue":H[0]||(H[0]=q=>c.value=q)},{default:_(()=>[(o(!0),r(P,null,re(b($),q=>(o(),r("option",{value:q.value,key:q.value},[q.value===""?(o(),r("label",Dp,d(E.$t("please_select_language")),1)):(o(),r("label",Np,d(q.text),1))],8,Ep))),128))]),_:1},8,["modelValue"]),H[3]||(H[3]=i("div",{style:{height:"12px"}},null,-1)),h(V,{style:{width:"100%"},color:"primary",shape:"rounded-pill",onClick:N,disabled:c.value===""||C&&T.value},{default:_(()=>[w(d(E.$t("submit")),1)]),_:1},8,["disabled"]),C?(o(),r("div",Up,d(E.$t("unlock_pro_feature")),1)):k("",!0)]))],64)}}}),qp=Z(Zp,[["__scopeId","data-v-f144b314"]]),Op={class:"loading-page"},Gp={class:"loading-content"},Wp={class:"loading-title"},jp=Qe({__name:"LoadingAudioDetail",props:{message:{default:""}},setup(a){return(l,e)=>(o(),r("div",Op,[i("div",Gp,[e[0]||(e[0]=i("div",{class:"loading-spinner"},[i("div",{class:"spinner"})],-1)),i("h2",Wp,d(l.$t("loading")),1)])]))}}),Qp=Z(jp,[["__scopeId","data-v-d1613692"]]),Xp={name:"TranslateIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kp=["aria-hidden","aria-label"],Yp=["fill","width","height"],Jp={d:"M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z"},eh={key:0};function th(a,l,e,u,n,g){return o(),r("span",G(a.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon translate-icon",role:"img",onClick:l[0]||(l[0]=c=>a.$emit("click",c))}),[(o(),r("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[i("path",Jp,[e.title?(o(),r("title",eh,d(e.title),1)):k("",!0)])],8,Yp))],16,Kp)}const Da=Z(Xp,[["render",th]]),lh=["placeholder","value"],sh={key:2,style:{display:"flex"}},ah={key:0,class:"audio-folder-badge"},nh={style:{"margin-left":"2px"}},ih={class:"audio-more-menu"},oh={key:1,class:"audio-more-menu__dropdown"},rh={key:0},uh={key:0,class:"audio-error"},dh={class:"audio-error__title"},ch={class:"audio-error__hint"},ph={key:1,class:"col-container"},hh={class:"tool-breadcrumb__current"},gh={key:1},vh={key:0,class:"tool-detail"},mh={class:"tool-detail__meta"},fh={class:"tool-detail__date"},_h={key:0,class:"tool-detail__status"},kh={key:1,class:"tool-detail__status tool-detail__status--failed"},yh=["innerHTML"],bh={key:0,class:"tool-record__error",style:{"margin-bottom":"12px"}},$h={class:"tool-detail__actions"},Ch={style:{"margin-bottom":"12px"}},wh={class:"tool-detail__label"},xh={style:{"margin-bottom":"12px",flex:"1",display:"flex","flex-direction":"column"}},Sh={class:"tool-detail__label"},Lh={key:0,class:"tool-record__error",style:{"margin-bottom":"12px"}},zh={class:"tool-detail__actions"},Mh={key:1,class:"tool-panel"},Vh={key:0,style:{"text-align":"center",padding:"20px"}}
59,Th={key:1,style:{display:"grid","grid-template-columns":"repeat(2, 1fr)",gap:"12px"}},Ah=["onClick"],Hh={class:"tool-btn__label"},Ih={class:"tool-btn__label"},Rh={class:"tool-log-title"},Bh=["title"],Ph={class:"tool-log-body"},Fh={key:0,class:"tool-log-empty"},Eh={key:1,class:"tool-log-empty"},Dh={style:{"margin-top":"8px"}},Nh={key:2},Uh=["onClick"],Zh={class:"tool-record__header"},qh={class:"tool-record__info"},Oh={class:"tool-record__name"},Gh={key:0},Wh={key:1},jh={key:2},Qh={class:"tool-record__date"},Xh={key:0,class:"tool-record__processing"},Kh={key:0,class:"tool-record__progress"},Yh={key:1,class:"tool-record__error"},Jh={class:"audio"},eg={key:0,class:"audio-ai-tools"},tg={style:{display:"flex","align-items":"center",gap:"12px"}},lg={key:1,class:"audio__info-container"},sg=["onClick"],ag={class:"speaker-dropdown__header"},ng={class:"speaker-dropdown__title"},ig={class:"speaker-list"},og={class:"speaker-item__content"},rg=["value","onChange"],ug={class:"speaker-item__segments"},dg={key:0,class:"speaker-dropdown__add-form"},cg=["placeholder"],pg={class:"speaker-dropdown__add-actions"},hg={key:0,class:"edit-mode-badge"},gg={key:0,style:{display:"flex"}},vg={class:"export-title"},mg={key:1},fg={key:0,style:{"text-align":"center",margin:"40px"}},_g={key:1,style:{"white-space":"pre-line",padding:"6px","line-height":"20px","font-size":"15px"}},kg={key:0},yg={href:"/",target:"_blank"},bg={key:0,style:{"text-align":"center",padding:"50px",border:"1px solid grey","border-radius":"8px","font-weight":"600","font-size":"15px","margin-top":"20px","text-decoration":"underline"}},$g={key:3,class:"segments-loading-center"},Cg={key:4},wg={style:{"text-align":"center",padding:"50px","font-weight":"600","font-size":"15px",opacity:"0.4"}},xg={key:5},Sg={style:{"text-align":"center",padding:"50px","font-size":"14px",opacity:"0.5"}},Lg={key:6},zg={class:"segment__time"},Mg=["onClick"],Vg={style:{width:"100%"}},Tg={class:"segment__top"},Ag=["onClick"],Hg={class:"segment__text"},Ig={key:0,class:"segment__text-readonly"},Rg={key:1,class:"segment__translated_text"},Bg=["onClick"],Pg=["onClick"],Fg={class:"segment__time"},Eg=["onClick"],Dg={style:{width:"100%"}},Ng={class:"segment__top"},Ug=["onClick"],Zg=["value","onChange"],qg=["value"],Og={class:"segment__text"},Gg=["data-find-idx","innerHTML"],Wg=["id","value","onInput","onChange"],jg=["id"],Qg={key:1,class:"segment__translated_text"},Xg={key:0,class:"select-action-bar"},Kg={class:"select-action-bar__left"},Yg={class:"select-action-bar__count"},Jg={class:"select-action-bar__actions"},ev=["title"],tv=["title"],lv={class:"select-action-bar__speaker-wrapper"},sv=["title"],av={key:0,class:"select-action-bar__speaker-dropdown"},nv=["onClick"],iv=["title","disabled"],ov=["title"],rv={style:{display:"flex",gap:"8px","justify-content":"center"}},uv={style:{"font-weight":"600","font-size":"16px","margin-bottom":"12px"}},dv={style:{"font-size":"14px",color:"var(--st-text-grey-color)","margin-bottom":"16px"}},cv={style:{display:"flex",gap:"8px","justify-content":"flex-end"}},pv={key:0,class:"copy-toast"},hv={class:"find-replace-dialog__title"},gv={class:"find-replace-dialog__body"},vv={class:"find-replace-dialog__row"},mv=["placeholder"],fv={key:0,class:"find-replace-dialog__count"},_v=["disabled"],kv=["disabled"],yv={class:"find-replace-dialog__row"},bv=["placeholder"],$v=["disabled"],Cv={class:"find-replace-dialog__options"},wv={class:"find-replace-dialog__checkbox"},xv={key:0,class:"find-replace-dialog__result"},Sv={key:2,style:{"text-align":"center"}},Lv={key:3,class:"segments-loading-bottom"},zv={class:"audio-player_container"},Mv={key:0,style:{"text-align":"center","font-size":"13px",margin:"12px"}},Vv={key:1},Tv={style:{"text-align":"center","font-size":"13px",margin:"12px"}},Av={key:2},Hv={key:0},Iv={key:0,class:"st-card"},Rv={style:{display:"flex"}},Bv={key:1,class:"st-card"},Pv={key:2,class:"st-card"},Fv={key:3,class:"st-card"},Ev={key:4,class:"st-card"},Dv={key:0},Nv={key:0,class:"audio-info-dialog"},Uv={class:"audio-info-dialog__row"},Zv={class:"audio-info-dialog__label"},qv={class:"audio-info-dialog__row"},Ov={class:"audio-info-dialog__label"},Gv={class:"audio-info-dialog__row"},Wv={class:"audio-info-dialog__label"},jv={class:"audio-info-dialog__row"},Qv={class:"audio-info-dialog__label"},Xv={class:"audio-info-dialog__row"},Kv={class:"audio-info-dialog__label"},Yv={key:0,class:"audio-info-dialog__row"},Jv={class:"audio-info-dialog__label"},em=["href"],tm={style:{"margin-bottom":"16px"}},lm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},sm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},am={style:{"margin-bottom":"16px"}},nm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},im={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},om={key:0,style:{"font-size":"12px","font-weight":"400",color:"var(--cui-secondary-color)","margin-left":"6px"}},rm={key:0,style:{"text-align":"center",padding:"20px"}},um={key:0,class:"toolkit-dialog__section"},dm={class:"toolkit-dialog__section-title"},cm={class:"toolkit-dialog__grid"},pm={key:0,class:"tool-btn-wrap"},hm=["onClick"],gm={class:"tool-btn__label"},vm=["onClick"],mm={class:"toolkit-dialog__section"},fm={class:"toolkit-dialog__section-header"},_m={class:"toolkit-dialog__section-title"},km={class:"toolkit-dialog__grid toolkit-dialog__grid--scrollable"},ym={key:0,class:"tool-btn-wrap"},bm=["onClick"],$m={class:"tool-btn__label"},Cm=["onClick"],wm={class:"tool-btn__label"},xm={class:"tool-btn__label"},Sm={style:{"margin-bottom":"16px"}},Lm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},zm={style:{"margin-bottom":"16px"}}
59,Mm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Vm={style:{"margin-bottom":"16px"}},Tm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Am={key:0,style:{"text-align":"center",padding:"20px"}},Hm={key:1,style:{"text-align":"center",padding:"20px",color:"var(--st-text-muted)"}},Im={key:2},Rm={class:"tool-record__header"},Bm={class:"tool-record__info",style:{"margin-left":"8px"}},Pm={class:"tool-record__name"},Fm={class:"tool-record__date"},Em={style:{"margin-bottom":"16px"}},Dm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Nm={style:{"margin-bottom":"16px"}},Um={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Zm={style:{"margin-bottom":"16px"}},qm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Om={key:0,style:{"margin-bottom":"16px"}},Gm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Wm={class:"toolkit-description-box"},jm={key:1,style:{"margin-bottom":"16px"}},Qm={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Xm={class:"toolkit-description-box",style:{"white-space":"pre-wrap"}},Km={style:{"margin-bottom":"16px"}},Ym={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},Jm={key:0,value:""},ef={key:1,value:""},tf=["value"],lf={key:2,style:{"margin-bottom":"16px"}},sf={style:{display:"block","margin-bottom":"4px","font-weight":"500"}},af={key:3,class:"toolkit-usage-info"},nf={key:0},of={class:"toolkit-usage-info--muted"},rf={class:"toolkit-usage-info--blocked"},uf={class:"toolkit-usage-info--muted"},df=["aria-describedby"],cf={class:"usage-help-popover"},pf={class:"usage-help-popover__title"},hf={key:0,class:"usage-help-popover__row"},gf={class:"usage-help-popover__label"},vf={class:"usage-help-popover__row"},mf={class:"usage-help-popover__label"},ff={key:1,class:"usage-help-popover__cta"},_f={key:0,class:"toolkit-usage-info--normal"},kf={key:1,class:"toolkit-not-ready-notice"},yf={class:"filter-dialog__section-title"},bf={class:"filter-dialog__checkbox-item"},$f=["checked"],Cf={key:0,class:"filter-dialog__checkbox-item"},wf=["checked"],xf={class:"filter-dialog__section-title"},Sf={class:"filter-dialog__checkbox-item"},Lf=["checked"],zf={class:"filter-dialog__section-title"},Mf=["checked","onChange"],Vf={class:"filter-dialog__speaker-name"},Tf={class:"filter-dialog__speaker-count"},Af=["placeholder"],Hf={class:"add-segment-form"},If={class:"add-segment-form__field"},Rf={class:"add-segment-form__label"},Bf={class:"add-segment-form__time-row"},Pf={class:"add-segment-form__field"},Ff={class:"add-segment-form__label"},Ef={class:"add-segment-form__time-row"},Df={class:"add-segment-form__field"},Nf={class:"add-segment-form__label"},Uf=["value"],Zf={class:"add-segment-form__field"},qf={class:"add-segment-form__label"},Of=["placeholder"],Ht=25,_t=70,Na=100,Gf=Qe({__name:"Audio",setup(a){Ii().toggleVisible(!1);const e=v(Ht+"%"),u=v(100-Ht*2+"%"),n=v(Ht+"%"),g=v(!0),c=v(!0),$=v(!1),m=v([]),x=v(!1),C=v(!1),T=v([]),I=v(!1),F=v(!1),L=v(null),j=()=>{g.value=!g.value,N()},Q=()=>{c.value=!c.value,N()},N=()=>{g.value&&c.value?(e.value=Ht+"%",u.value=100-Ht*2+"%",n.value=Ht+"%"):!g.value&&c.value?(e.value=_t+"px",u.value="calc(70% - "+_t+"px)",n.value="30%"):g.value&&!c.value?(e.value="30%",u.value="calc(70% - "+_t+"px)",n.value=_t+"px"):(e.value=_t+"px",u.value="calc(100% - "+_t*2+"px)",n.value=_t+"px")},E=Oi(),H=Pi(),z=to(),J=Ri(),{t:V}=Bi();v();const q=v(),be=v(),de=v(),Te=v(),Ct=v({}),Xe=v({}),st=t=>{let s="segment";return R.value>=Math.floor(t.start)&&R.value<=Math.floor(t.end)&&(s+=" segment--active"),tl(t)&&(s+=" segment--bookmarked"),ce.value.has(t.id)&&(s+=" segment--selected"),s},Pt=t=>{let s="segment";return t.segments.some(M=>R.value>=Math.floor(M.start)&&R.value<=Math.floor(M.end))&&(s+=" segment--active"),t.segments.some(M=>tl(M))&&(s+=" segment--bookmarked"),s},wt=t=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"},Ft=(t,s)=>{t&&(Xe.value["segment"+s]=t,De(()=>wt(t)))},Le=(t,s)=>{t&&(Ct.value[s]=t)},at=v(!1),nt=v(!1),it=v([]),Ke=v(null),$e=v(me.isPaidUser()),ie=v([]),Ul=ae(()=>{const t=ut.value,s=[];for(const y of ie.value){const M=s[s.length-1];M&&M.speaker===y.speaker&&y.start-M.start<=t?(M.segments.push(y),M.end=y.end,M.id+="-"+y.id):s.push({id:String(y.id),segments:[y],speaker:y.speaker,start:y.start,end:y.end})}return s}),Et=v(""),cl=v(!1),Be=v(!1),Ae=v(!1),f=v(null),Ye=v([]),Dt=v(0),pl=v(""),A=v(H.params.uuid),R=v(0),ue=v([]),D=v([]),ee=v([]),Nt=v(!1),Zl=v("original"),on=v(!1),As=v(!1),Hs=v(0),ot=v("txt");v("");const Ut=v(!1),ql=v(!1),Ol=v(!1);v(!1),v(!1),v(!1),v(!1);const Is=v(0),Zt=v(!1),Rs=v(5),xt=v(!1),St=v(!1),Je=v(!1),hl=v(!1),Gl=v(null),gl=v(""),vl=v(!1),Ne=v(!1),ce=v(ne
59w Set),qt=v(!1),Lt=v(!1),Ot=v(!1),Wl=v(!1),rt=v(!1),ze=v(""),ml=v(""),Gt=v(!1),Ue=v(0),He=v(0),jl=v([]),zt=v(""),Ql=v({x:0,y:0}),fl=v(!1),_l=v({x:0,y:0}),Xl=v(!1),Me=v(!1),ut=v(30),dt=v(!1),Kl=v(),Bs=v({}),rn=[0,10,20,30,40,50,60],fe=v(!1),Mt=v(!1),Wt=v(!1),ne=v({startH:0,startM:0,startS:0,endH:0,endM:0,endS:0,speaker:"",content:""}),jt=v(!1),kl=v(!1),Qt=v(!1),Vt=v(""),Xt=v(""),le=v(null),ct=v(!1),Kt=v([]),Yl=v(!1),Oe=v(!1),_e=v({name:"",description:"",prompt_template:"",icon:""}),yl=v(!1),Ge=v(!1),bl=v(!1),we=v({name:"",description:"",prompt_template:""}),$l=ae(()=>T.value.filter(t=>t.is_starred).map(t=>String(t.id))),un=t=>$l.value.includes(t),Ps=async t=>{const s=parseInt(t);if(isNaN(s))return;const y=T.value.find(M=>M.id===s);if(y)try{y.is_starred?(await O.unstarAIToolkit(s),y.is_starred=!1):(await O.starAIToolkit(s),y.is_starred=!0)}catch(M){console.error("Error toggling star:",M)}},pt=t=>{if(!t)return null;if(t.toolkit_type&&t.toolkit_type!=="custom")switch(t.toolkit_type){case"summary":return V("summary");case"translation":return V("translation");case"meeting":return V("meeting_notes");default:return t.name}return t.name},dn=t=>{if(t.toolkit_type&&t.toolkit_type!=="custom")switch(t.toolkit_type){case"summary":return V("summary_des");case"translation":return V("translation_des");case"meeting":return V("meeting_notes_des");default:return t.description}return t.description},Fs=ae(()=>le.value?pt(le.value):""),pe=v({custom_name:"",note_content:"",uuid:""}),oe=v(null),Ve=v({custom_name:"",note_content:""}),Jl=v(!1),Yt=v(!1),Cl=v(null),Es=ae(()=>{const t=Ve.value.note_content;return t?te(t):""}),{appContext:cn}=Bt(),O=cn.config.globalProperties.apiClient,pn=()=>f.value?f.value.status==="pending"||f.value.status==="pending_download"||f.value.status==="pending_downloading"||f.value.status==="pending_convert"||f.value.status==="pending_converting"||f.value.status==="queuing"||f.value.status==="transcribing":!1,Ds=t=>rl.getLanguageByValue(t),hn=()=>{window.location.reload()},es=()=>{Zt.value=!1,Ut.value=!0},Ns=()=>{if(!$e.value){Zt.value=!0;return}f.value&&O.transcribeRemaining(f.value.id).then(()=>{window.location.reload()})},wl=()=>f.value?Bn(f.value.length_seconds-f.value.limited_seconds):0,gn=()=>{f.value&&(Sl()?f.value.tags=f.value.tags.filter(t=>t!=="star"):f.value.tags.push("star"),O.updateAudio(f.value.id,{tags:f.value.tags}))},vn=()=>{const t=document.referrer,s=t&&new URL(t).origin===window.location.origin;window.history.length>1&&s?E.go(-1):E.push("/dashboard")},mn=()=>{nt.value=!0},fn=()=>{f.value&&O.removeAudios([f.value.id]).then(()=>{nt.value=!1,E.push("/dashboard")})},_n=()=>{ql.value=!0},kn=t=>{f.value&&(f.value.summary=t)},yn=()=>{window.location.reload()},ts=["#4F46E5","#0891B2","#059669","#D97706","#DC2626","#7C3AED","#DB2777","#2563EB","#65A30D","#EA580C"],xl=t=>{const s=D.value.findIndex(y=>y.key===t);return s<0?ts[0]:ts[s%ts.length]},ht=t=>{const s=D.value.find(y=>y.key===t);return s?s.name:t},bn=()=>{Ae.value||!f.value||(Ae.value=!0,O.reSubmitAudio(f.value.id).then(t=>{f.value=t}).finally(()=>{Ae.value=!1}))},$n=(t,s)=>{f.value&&(t.name=s,O.updateAudio(f.value.id,{transcript_speakers:D.value}))},Jt=v(!1),gt=v(""),Cn=()=>{gt.value="",Jt.value=!0},Us=()=>{if(!f.value||!gt.value.trim())return;const t=D.value.map(M=>M.key);let s=D.value.length;for(;t.includes(`speaker_${s}`);)s++;const y=`speaker_${s}`;D.value.push({key:y,name:gt.value.trim(),is_show:!1}),O.updateAudio(f.value.id,{transcript_speakers:D.value}),Jt.value=!1,gt.value=""},wn=()=>{const t=de.value?.value;if(!t){de.value&&(de.value.value=f.value?.name||"");return}xn(t)},xn=t=>{f.value&&(f.value.name=t,O.updateAudio(f.value.id,{name:t}))},ls=(t,s)=>{t.is_show=s,vt()},ss=(t,s)=>{s?ee.value.push(t):ee.value=ee.value.filter(y=>y!==t),vt()},Sn=()=>{const t=ee.value.includes("bookmark");ss("bookmark",!t)},Ln=()=>{ne.value={startH:0,startM:0,startS:0,endH:0,endM:0,endS:0,speaker:D.value.length>0?D.value[0].key:"",content:""},Wt.value=!0},zn=async()=>{if(!f.value)return;const t=ne.value.startH*3600+ne.value.startM*60+ne.value.startS,s=ne.value.endH*3600+ne.value.endM*60+ne.value.endS;try{console.log({audio_id:f.value.id,start:t,end:s,text:ne.value.content,speaker:ne.value.speaker,language:f.value.language??"en"}),await O.createSegment({audio_id:f.value.id,start:t,end:s,text:ne.value.content,speaker:ne.value.speaker,language:f.value.language??"en"}),Wt.value=!1,await zl()}catch(y){console.error("Failed to create segment:",y)}},el=v(!1),Tt=v(""),Mn=()=>{fe.value=!1,Tt.value=f.value?.name||"",el.value=!0},Zs=()=>
59{if(!f.value||!Tt.value.trim())return;const t=Tt.value.trim();f.value.name=t,O.updateAudio(f.value.id,{name:t}),el.value=!1},Vn=()=>{Me.value=!1},Tn=()=>{xt.value=!1,St.value=!1,ee.value=[],D.value.forEach(t=>{t.is_show=!1}),vt()},qs=v({}),An=()=>{if(!dt.value&&Kl.value){const t=Kl.value.getBoundingClientRect();Bs.value={position:"fixed",top:t.bottom+4+"px",right:window.innerWidth-t.right+"px"}}dt.value=!dt.value},Hn=t=>{ut.value=t,dt.value=!1},In=()=>{if(!Je.value&&Te.value){const t=Te.value.getBoundingClientRect();qs.value={position:"fixed",top:t.bottom+4+"px",right:window.innerWidth-t.right+"px"}}Je.value=!Je.value},Os=t=>{if(!Te.value)return;const s=t.target;if(Te.value.contains(s))return;const y=document.querySelector(".speaker-dropdown");y&&y.contains(s)||(Je.value=!1)},Gs=t=>{Gl.value=t,De(()=>{const s=Ct.value[t];s&&(s.focus(),s.click())})},as=()=>{Gl.value=null},Rn=(t,s)=>{if(t.speaker===s){as();return}const y=t.speaker;t.speaker=s,as(),O.updateSegment(t.id,{speaker:s}).then(()=>{vt()}).catch(()=>{t.speaker=y,vt()})},Sl=()=>f.value?f.value.tags.includes("star"):!1,tl=t=>t.tags.includes("bookmark"),Ws=t=>{const s=Xe.value["segment"+t];if(!s)return;const y=s.closest(".scrollable-card-body");if(!y)return;const M=s.getBoundingClientRect(),S=y.getBoundingClientRect();y.scrollTo({top:y.scrollTop+(M.top-S.top)-100,behavior:"smooth"})},js=t=>{try{let s;t==="audio_title"?s=de.value:s=Xe.value[t],s&&(s.style.height=s.scrollHeight+"px")}catch(s){console.log(s)}},vt=()=>{if(!f.value)return;const t=Et.value.trim().toLowerCase();ie.value=f.value.segments.filter(s=>{const y=D.value.every(se=>se.is_show),M=D.value.every(se=>!se.is_show);if(!y&&!M&&!D.value.find(ge=>ge.is_show&&ge.key===s.speaker)||ee.value.length>0&&!s.tags.includes("bookmark"))return!1;if(!t)return!0;const S=(s.custom_text&&s.custom_text!==""?s.custom_text:s.text)??"",U=s.translated_text??"";return S.toLowerCase().includes(t)||U.toLowerCase().includes(t)}),setTimeout(()=>{ra(),cl.value=!0},1)},Bn=t=>Math.floor(t/60),Qs=(t,s)=>{t.tags.includes(s)||(t.tags.push(s),O.updateSegment(t.id,{tags:t.tags}))},Xs=(t,s)=>{t.tags.includes(s)&&(t.tags=t.tags.filter(y=>y!==s),O.updateSegment(t.id,{tags:t.tags}))},ns=()=>{Ne.value=!Ne.value,Ne.value||(ce.value.clear(),qt.value=!1,Lt.value=!1)},Pn=()=>{Ne.value||(Ne.value=!0),ce.value.clear()},Ks=t=>{ce.value.has(t)?ce.value.delete(t):ce.value.add(t)},Fn=()=>{ie.value.forEach(t=>ce.value.add(t.id))},En=()=>{ce.value.clear()},Ys=ae(()=>ie.value.length>0&&ie.value.every(t=>ce.value.has(t.id))),Ll=ae(()=>ce.value.size),mt=ae(()=>Array.from(ce.value)),Dn=async()=>{const s=ie.value.filter(y=>ce.value.has(y.id)).map(y=>y.custom_text||y.text).join(` 60`);await navigator.clipboard.writeText(s),Wl.value=!0,setTimeout(()=>{Wl.value=!1},2e3)},Nn=async t=>{if(!(!f.value||mt.value.length===0)){qt.value=!1;try{await O.changeSegmentsSpeaker(f.value.id,mt.value,t),ie.value.filter(s=>ce.value.has(s.id)).forEach(s=>{s.speaker=t})}catch(s){console.error("Failed to change speaker:",s)}}},Un=async()=>{if(!(!f.value||mt.value.length===0))try{await O.addTagsSegments(f.value.id,mt.value,["bookmark"]),ie.value.filter(t=>ce.value.has(t.id)).forEach(t=>{t.tags.includes("bookmark")||t.tags.push("bookmark")})}catch(t){console.error("Failed to bookmark segments:",t)}},Zn=async()=>{if(!(!f.value||mt.value.length===0))try{await O.deleteSegments(f.value.id,mt.value),ie.value=ie.value.filter(t=>!ce.value.has(t.id)),ce.value.clear(),Lt.value=!1}catch(t){console.error("Failed to delete segments:",t)}},qn=async()=>{if(!f.value||mt.value.length<2)return;const t=ie.value.filter(U=>ce.value.has(U.id)).sort((U,se)=>U.start-se.start),s=t[0],y=t[t.length-1],M=t.map(U=>U.custom_text||U.text).join(" "),S=t.slice(1).map(U=>U.id);try{await O.updateSegment(s.id,{custom_text:M,end:y.end}),S.length>0&&await O.deleteSegments(f.value.id,S),s.custom_text=M,s.end=y.end,ie.value=ie.value.filter(U=>!S.includes(U.id)),ce.value.clear()}catch(U){console.error("Failed to merge segments:",U)}},ft=v([]),is=()=>{if(zt.value="",!ze.value){Ue.value=0,He.value=0,jl.value=[],ft.value=[];return}const t=ze.value,s=Gt.value?"g":"gi",y=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s),M=[],S=[];ie.value.forEach(U=>{const se=U.custom_text||U.text;let ge=0;const We=new RegExp(y.source,y.flags);for(;We.exec(se)!==null;)M.includes(U.id)||M.push(U.id),S.push({segmentId:U.id,idx:ge}),ge++}),jl.value=M,ft.value=S,Ue.value=S.length,He.value=S.length>0?1:0,S.length>0&&De(()=>
60os())},os=()=>{De(()=>{const t=document.querySelector(".find-highlight--current");t&&t.scrollIntoView({behavior:"smooth",block:"center"})})},On=()=>{if(ft.value.length===0)return;const t=He.value<ft.value.length?He.value:0;He.value=t+1,os()},Gn=()=>{if(ft.value.length===0)return;const t=He.value>1?He.value-2:ft.value.length-1;He.value=t+1,os()},Wn=t=>{const s=t.custom_text||t.text;if(!ze.value||Ue.value===0)return Js(s);const y=Gt.value?"g":"gi",M=new RegExp("("+ze.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")",y);let S=0;for(const ge of ie.value){if(ge.id===t.id)break;const We=ge.custom_text||ge.text,gs=new RegExp(M.source,M.flags);for(;gs.exec(We)!==null;)S++}let U=0;const se=He.value-1;return Js(s).replace(new RegExp("("+ze.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")",y),ge=>{const We=S+U===se;return U++,We?`<mark class="find-highlight find-highlight--current">${ge}</mark>`:`<mark class="find-highlight">${ge}</mark>`})},Js=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),ea=async()=>{if(!(!f.value||!ze.value)){zt.value="";try{const t=await O.replaceAllSegments(f.value.id,ze.value,ml.value,Gt.value);zt.value=V("x_replaced",{x:t.replaced_count}),await zl(),is()}catch(t){console.error("Failed to replace:",t)}}},jn=()=>{rt.value=!1,Xl.value=!1,ze.value="",ml.value="",Ue.value=0,He.value=0,jl.value=[],ft.value=[],zt.value=""},Qn=t=>{const s=t.target.closest(".find-replace-dialog");if(!s)return;const y=s.getBoundingClientRect();_l.value={x:y.left,y:y.top},Xl.value=!0,fl.value=!0,Ql.value={x:t.clientX-y.left,y:t.clientY-y.top},document.addEventListener("mousemove",ta),document.addEventListener("mouseup",la)},ta=t=>{fl.value&&(_l.value={x:t.clientX-Ql.value.x,y:t.clientY-Ql.value.y})},la=()=>{fl.value=!1,document.removeEventListener("mousemove",ta),document.removeEventListener("mouseup",la)},Xn=(t,s)=>{t.custom_text=s,t.is_text_changed=!0,js("segment"+t.id)},Kn=(t,s)=>{t.is_text_changed&&(t.custom_text=s,O.updateSegment(t.id,{custom_text:s}).finally(()=>{Be.value=!1}))},Yn=t=>{try{const s=t.target;if(R.value!==Math.floor(s.currentTime)){if(R.value=s.currentTime,!f.value)return;if(ue.value=f.value.segments.filter(y=>y.start<=R.value&&y.end>R.value).map(y=>y.id),z.scrollLock&&ue.value.length>0){const y=Xe.value["segment"+ue.value[0]];if(!y)return;const M=y.closest(".scrollable-card-body");if(!M)return;const S=M.getBoundingClientRect(),U=y.getBoundingClientRect();(U.top<S.top||U.bottom>S.bottom)&&Ws(ue.value[0])}}}catch(s){console.log(s)}},sa=t=>{try{be.value?.audio&&(be.value.audio.currentTime=t,be.value.play())}catch(s){console.log(s)}},Jn=()=>{f.value&&(f.value.transcript_at===null?(it.value=[{value:"audio",label:V("audio")}],ot.value="audio"):(it.value=[{value:"audio",label:V("audio")},{value:"copy",label:V("copy_text")},{value:"txt",label:"TXT"},{value:"srt",label:"SRT (Pro)"},{value:"pdf",label:"PDF (Pro)"},{value:"docx",label:"Microsoft Word (.docx) (Pro)"}],ot.value="txt"))},rs=()=>{Be.value=!0,gl.value="",O.getAudioUUID(A.value,!1).then(async t=>{if(f.value=t,Je.value=!1,wi(),Si(f.value.name),Jn(),si(),pn()){ie.value=[],setTimeout(()=>rs(),5e3);return}xi(),Vl(),await zl()}).catch(t=>{const s=t?.message||"",y=t?.response?.status;(s.includes("404")||y===404||s.includes("400")||y===400)&&(gl.value=V("audio_not_found_or_unauthorized")),console.log(t)}).finally(()=>{Be.value=!1})},zl=async()=>{if(!f.value)return;f.value.segments=[],vl.value=!0;let t=0;for(;;)try{const s=await O.getSegmentsByUUID(A.value,t,Na);if(!f.value)return;const y=s.data;if(f.value.segments.push(...y),ei(),vt(),y.length<Na||f.value.segments.length>=s.meta.total_count)break;t+=y.length}catch(s){console.error("Error loading segments batch:",s);break}if(vl.value=!1,!!f.value){if(ds.value&&(Is.value=f.value.segments.length,f.value.segments=f.value.segments.filter(s=>s.start<=nl*60),Is.value-=f.value.segments.length,vt()),f.value.segments.length>0){const s=f.value.segments[f.value.segments.length-1].end;s>0&&(Dt.value=s)}await De(),ra(),cl.value=!0}},ei=()=>{if(f.value){for(const t of f.value.segments){if(D.value.find(y=>y.key===t.speaker))continue;const s=parseInt(t.speaker.replace("SPEAKER_",""));D.value.push({key:t.speaker,name:f.value.transcript_speakers.find(y=>y.key===t.speaker)?.name||V("speaker_person_x",{x:s+1}),is_show:!1})}for(const t of f.value.transcript_speakers)D.value.find(s=>
60s.key===t.key)||D.value.push({key:t.key,name:t.name||V("speaker_person_x",{x:parseInt(t.key.replace("SPEAKER_","").replace("speaker_",""))+1}),is_show:!1})}},ti=()=>{E.push("/")},li=async()=>{I.value=!0;try{const t=me.getAccessToken()||"",s=await O.client.aiToolkits.list(t,{is_active:"true"});if(s.isSuccess()){const y=s.success();T.value=[],T.value=y.data||[];for(const M of T.value)oi(M.icon)&&ri(M.icon)}}catch(t){console.error("Error fetching AI toolkits:",t)}finally{I.value=!1}},si=async()=>{if(!(!f.value||C.value))try{const t=me.getAccessToken()||"";x.value=!0;const s=await O.client.aiToolkitExecutions.list(t,{audio_id:f.value.id.toString()});if(s.isSuccess()){const y=s.success();m.value=y.data||[],C.value=!0}x.value=!1;for(const y of m.value)(y.status==="pending"||y.status==="processing")&&na(y.uuid)}catch(t){console.error("Error fetching toolkit executions:",t)}},ai=async(t,s,y)=>{if(f.value){F.value=!0;try{const M=me.getAccessToken()||"",S={};s&&(S.language=s),y&&(S.custom_request=y);const U=await O.client.aiToolkits.execute(M,t,{audio_ids:[f.value.id],parameters:S});if(U.isSuccess()){const se=U.success();m.value.unshift({id:se.id,uuid:se.uuid,execution_type:se.execution_type,custom_name:se.custom_name,toolkit:se.toolkit,audio:se.audio,status:"pending",progress_percentage:0,input_parameters:se.input_parameters,created_at:se.created_at,updated_at:se.created_at}),na(se.uuid),Vl(),se.toolkit.toolkit_type==="translation"&&setTimeout(()=>{zl()},500)}}catch(M){console.error("Error executing toolkit:",M);const S=M?.response?.data?.error||"Failed to execute toolkit";alert(S)}finally{F.value=!1}}},Ml=()=>{Qt.value=!1,le.value=null,Vt.value="",Xt.value="",ct.value=!1,Oe.value=!1,Ge.value=!1,_e.value={name:"",description:"",prompt_template:"",icon:""}},ni=()=>{le.value=null,Vt.value="",Xt.value="",Ge.value=!1},ii=()=>{Ml(),ci()},oi=t=>t?t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"):!1,aa=v({}),ri=async t=>{if(!aa.value[t])try{const y=await(await fetch(t)).text();y.includes("<svg")&&(aa.value[t]=y)}catch(s){console.error("Failed to fetch SVG:",s)}},ll=t=>{if(t==null)return"";switch(t.toolkit_type){case"summary":return J.isDarkMode?"#c7c8c8":"#224385";case"translation":return J.isDarkMode?"#c9edf1":"#056b96";case"meeting":return J.isDarkMode?"#cdf2d7":"#0f5324";case"custom":return J.isDarkMode?"#f2f3cd":"#796832";default:return J.isDarkMode?t.color_dark||t.color||"currentColor":t.color||"currentColor"}},us=t=>{if(t==null)return"";switch(t.toolkit_type){case"summary":return J.isDarkMode?"#32333e":"#ededfb";case"translation":return J.isDarkMode?"#32373e":"#def2f8";case"meeting":return J.isDarkMode?"#303533":"#e1f2e5";case"custom":return J.isDarkMode?"#3a3b2d":"#f2f4e9";default:return J.isDarkMode?t.bg_color_dark||t.bg_color||"currentColor":t.bg_color||"currentColor"}},sl=t=>{if(t==null)return qo;switch(t.toolkit_type){case"summary":return mo;case"translation":return Da;case"meeting":return Co;case"custom":return Vo;default:return Po}},et=()=>20,Ie=t=>{const s=parseInt(t);if(!isNaN(s))return T.value.find(y=>y.id===s)},ui=t=>{const s=Ie(t);s&&(Qt.value=!0,le.value=s)},di=()=>{le.value&&(ai(le.value.id,Vt.value||void 0,Xt.value||void 0),Ml())},na=async(t,s=60)=>{let y=0;const M=async()=>{if(y>=s){console.error("Polling timeout for execution:",t);return}try{const S=me.getAccessToken()||"",U=await O.client.aiToolkitExecutions.show(S,t);if(U.isSuccess()){const se=U.success(),ge=m.value.findIndex(We=>We.uuid===t);if(ge!==-1&&(m.value[ge]=se),se.status==="completed"||se.status==="failed"){se.toolkit.toolkit_type==="translation"&&setTimeout(()=>{rs()},500),Vl();return}y++,setTimeout(M,5e3)}}catch(S){console.error("Error polling execution status:",S)}};M()},ci=()=>{pe.value={custom_name:"",note_content:"",uuid:""},jt.value=!0},ia=async t=>{try{if((await O.archiveAIToolkitExecution(t)).isSuccess()){const y=m.value.findIndex(M=>M.uuid===t);y!==-1&&m.value.splice(y,1)}}catch(s){console.error("Error archiving record:",s)}},pi=async()=>{if(!(!_e.value.name.trim()||!_e.value.prompt_template.trim())){yl.value=!0;try{const t=me.getAccessToken()||"",s=await O.client.aiToolkits.create(t,{name:_e.value.name.trim(),description:_e.value.description.trim()||void 0,prompt_template:_e.value.prompt_template.trim(),icon:_e.value.icon.trim()||void 0,toolkit_type:"custom"});if(s.isSuccess()){const y=s.success();T.value.push(y),Oe.value=!1,_e.value={name:"",description:"",prompt_template:"",icon:""}}}catch(t){console.error("Error creating custom toolkit:",t)}finally{yl.value=!1}}},hi=()=>{le.value&&(we.value={name:le.value.name,description:le.value.description||"",prompt_template:le.value.prompt_template||""},Ge.value=!0)},gi=async()=>
60{if(le.value&&!(!we.value.name.trim()||!we.value.prompt_template.trim())){bl.value=!0;try{const t=me.getAccessToken()||"",s=await O.client.aiToolkits.update(t,le.value.id,{name:we.value.name.trim(),description:we.value.description.trim()||void 0,prompt_template:we.value.prompt_template.trim()});if(s.isSuccess()){const y=s.success(),M=T.value.findIndex(S=>S.id===y.id);M!==-1&&(T.value[M]=y),le.value=y,Ge.value=!1}}catch(t){console.error("Error updating custom toolkit:",t)}finally{bl.value=!1}}},vi=async()=>{Qt.value=!0,await mi()},mi=async()=>{ct.value=!0,Yl.value=!0;try{const t=me.getAccessToken()||"",s=await O.client.aiToolkitExecutions.list(t,{audio_id:f.value.id.toString(),is_archived:"1"});if(s.isSuccess()){const y=s.success(),M=y?.data||y?.results||[];Kt.value=Array.isArray(M)?M:M?.results||[]}}catch(t){console.error("Error loading archived records:",t)}finally{Yl.value=!1}},fi=async t=>{try{const s=await O.unarchiveAIToolkitExecution(t);if(s.isSuccess()){const y=s.success(),M=Kt.value.findIndex(S=>S.uuid===t);M!==-1&&Kt.value.splice(M,1),m.value.unshift(y)}}catch(s){console.error("Error unarchiving record:",s)}},oa=t=>{Cl.value=t,setTimeout(()=>{Cl.value=null},2e3)},_i=()=>{const t=Es.value,s=Ve.value.note_content,y=new Blob([t],{type:"text/html"}),M=new Blob([s],{type:"text/plain"});navigator.clipboard.write([new ClipboardItem({"text/html":y,"text/plain":M})]),oa("copy")},ki=()=>{const t=te(Ve.value.note_content),s=document.createElement("div");s.innerHTML=t,navigator.clipboard.writeText(s.textContent||""),oa("copy_without_format")},yi=t=>{oe.value=t,Yt.value=!1,Ve.value={custom_name:t.custom_name||pt(t.toolkit)||"",note_content:t.note_content||t.result||""}},bi=async()=>{if(oe.value){if(!Ve.value.custom_name.trim()){alert(V("please_enter_name"));return}Jl.value=!0;try{let t;oe.value.execution_type=="note"?t={custom_name:Ve.value.custom_name,note_content:Ve.value.note_content}:t={custom_name:Ve.value.custom_name,result:Ve.value.note_content};const s=await O.updateAIToolkitExecution(oe.value.uuid,t);if(s.isSuccess()){const y=s.success(),M=m.value.findIndex(S=>S.uuid===oe.value.uuid);M!==-1&&(m.value[M]=y),oe.value=y,Yt.value=!1}else alert(V("update_failed"))}catch(t){console.error("Error saving record:",t),alert(V("update_failed"))}finally{Jl.value=!1}}},$i=async()=>{if(!pe.value.custom_name.trim()){alert(V("please_enter_name"));return}try{const t=await O.createNote({execution_type:"note",custom_name:pe.value.custom_name,note_content:pe.value.note_content,audio_id:f.value?.id});if(t.isSuccess()){const s=t.success();m.value.unshift(s),jt.value=!1}else alert(V("create_failed"))}catch(t){console.error("Error creating note:",t),alert(V("create_failed"))}},Ci=async()=>{if(!pe.value.custom_name.trim()){alert(V("please_enter_name"));return}try{const t=await O.updateAIToolkitExecution(pe.value.uuid,{custom_name:pe.value.custom_name,note_content:pe.value.note_content});if(t.isSuccess()){const s=t.success(),y=m.value.findIndex(M=>M.uuid===pe.value.uuid);y!==-1&&(m.value[y]=s),kl.value=!1}else alert(V("update_failed"))}catch(t){console.error("Error updating record:",t),alert(V("update_failed"))}},ra=()=>{try{if(!f.value)return;f.value.segments.forEach(t=>{js("segment"+t.id)})}catch(t){console.log(t)}},wi=async()=>{if(!(Ye.value.length>0||!f.value))try{if(f.value.status.includes("download")||f.value.status.includes("convert")){at.value=!0;return}let t="";f.value.cloud_storage_platform!==""?t=(await Gi.get(O.config.backendUrl+"audios/file/?type=url&uuid="+f.value.uuid)).data.url:t=O.config.backendUrl+"audios/file/?uuid="+f.value.uuid,pl.value=t,Ye.value=[t],f.value.segments.length>0&&f.value.segments[f.value.segments.length-1].end>0&&(Dt.value=f.value.segments[f.value.segments.length-1].end)}catch(t){t.toString().includes("404")>=0&&f.value.is_converted===!1&&(at.value=!0),console.log(t)}},xi=()=>{f.value&&O.getAiServerFee(f.value.id).then(t=>{Ke.value=t})},Vl=()=>{f.value&&O.getAIToolkitUsageStatus(f.value.id).then(t=>{L.value=t}).catch(t=>{console.error("Error loading usage status:",t)})},Si=t=>{document.title=t+" - SoundType AI"},ds=ae(()=>!$e.value&&!!f.value&&f.value.length_seconds>nl*60),cs=ae(()=>!$e.value&&(ot.value==="srt"||ot.value==="pdf"||ot.value==="docx"||As.value||Hs.value>0)),Tl=ae(()=>z.segmentExport),ps=ae(()=>!!f.value&&f.value.translated_language!==""),ua=ae(()=>!!f.value&&f.value.segments.length>0);ae(()=>{const t=D.value.some(s=>!s.is_show);return ha.value||t});const Li=ae(()=>`${D.value.length}`),da=ae(()=>{const t={};
60return f.value&&f.value.segments.forEach(s=>{t[s.speaker]=(t[s.speaker]||0)+1}),t}),ca=ae(()=>xt.value===St.value?!0:xt.value),pa=ae(()=>xt.value===St.value?!0:St.value),ha=ae(()=>ee.value.includes("bookmark")),hs=ae(()=>screen.width<=760),zi=ae(()=>z.audioSummary||z.audioTranslate||z.audioMessages||z.segmentFilter||z.segmentExport||z.segmentReplace);return ae(()=>hs.value?"col-12":"col-"+(12-Rs.value)),ae(()=>hs.value?"col-0":zi.value?"col-"+Rs.value:"col-0"),Rt(()=>{z.initSegmentSetting(),rs(),li(),document.addEventListener("click",Os)}),Za(f,t=>{}),Ua(()=>{document.removeEventListener("click",Os)}),(t,s)=>{const y=K("CHeaderToggler"),M=K("CContainer"),S=K("CButton"),U=K("CSpinner"),se=K("CDropdownToggle"),ge=K("CDropdownItem"),We=K("CDropdownMenu"),gs=K("CDropdown"),vs=K("CCardBody"),Mi=K("CLoadingButton"),Vi=K("CFormSelect"),ga=K("RouterLink"),Ti=K("CPopover");return o(),r(P,null,[i("div",null,[h(b(Ei),{position:"sticky",class:"p-0"},{default:_(()=>[h(M,{class:"px-4 d-flex align-items-center",fluid:"",style:{"justify-content":"unset","padding-left":"0 !important","padding-right":"0 !important"}},{default:_(()=>[h(y,null,{default:_(()=>[i("a",{class:"header-logo",href:"#",onClick:ye(vn,["prevent"])},[h(xa)])]),_:1}),f.value!=null&&Sl()?(o(),W(_s,{key:0,size:18,style:{color:"#f59e0b","flex-shrink":"0"}})):k("",!0),f.value!=null?(o(),r("input",{key:1,ref_key:"audio_title",ref:de,class:"audio_title editable-input",placeholder:t.$t("untitled"),value:f.value.name,onBlur:wn},null,40,lh)):k("",!0),f.value!=null?(o(),r("div",sh,[s[100]||(s[100]=i("div",{style:{"margin-left":"auto"}},null,-1)),f.value.folder?(o(),r("div",ah,[h(Fi,{size:14}),i("span",nh,d(f.value.folder.name),1)])):k("",!0),h(ve,{onClick:s[0]||(s[0]=p=>rt.value=!rt.value),icon:za,class:ke(["audio-action-button",rt.value?"audio-button-active":""]),tooltip:t.$t("find_and_replace")},null,8,["tooltip","class"]),h(ve,{onClick:s[1]||(s[1]=p=>Me.value=!Me.value),icon:Hl,class:ke(["audio-action-button",Me.value?"audio-button-active":""]),tooltip:t.$t("edit")},null,8,["tooltip","class"]),h(ve,{onClick:ns,icon:Ta,class:ke(["audio-action-button",Ne.value?"audio-button-active":""]),tooltip:t.$t("select_mode")},null,8,["tooltip","class"]),h(ve,{onClick:s[2]||(s[2]=()=>hl.value=!0),icon:ma,class:"audio-action-button",tooltip:t.$t("audio_info")},null,8,["tooltip"]),h(ve,{onClick:s[3]||(s[3]=()=>{$.value=!0}),icon:$a,text:t.$t("export"),tooltip:t.$t("export"),class:"audio-action-button"},null,8,["text","tooltip"]),i("div",ih,[h(ve,{onClick:s[4]||(s[4]=p=>fe.value=!fe.value),icon:Sa,tooltip:t.$t("more"),class:"audio-action-button"},null,8,["tooltip"]),fe.value?(o(),r("div",{key:0,class:"audio-more-menu__backdrop",onClick:s[5]||(s[5]=p=>fe.value=!1)})):k("",!0),fe.value?(o(),r("div",oh,[i("button",{class:"audio-more-menu__item",onClick:s[6]||(s[6]=p=>{hl.value=!0,fe.value=!1})},[h(ma,{size:16}),w(" "+d(t.$t("audio_info")),1)]),i("button",{class:"audio-more-menu__item",onClick:Mn},[h(Su,{size:16}),w(" "+d(t.$t("rename")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[7]||(s[7]=p=>{Me.value=!Me.value,fe.value=!1})},[h(Hl,{size:16}),w(" "+d(t.$t("edit")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[8]||(s[8]=p=>{ns(),fe.value=!1})},[h(Ta,{size:16}),w(" "+d(t.$t("select_mode")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[9]||(s[9]=p=>{Pn(),fe.value=!1})},[h(Aa,{size:16,style:{transform:"rotate(90deg)"}}),w(" "+d(t.$t("merge_segments")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[10]||(s[10]=p=>{$.value=!0,fe.value=!1})},[h($a,{size:16}),w(" "+d(t.$t("export")),1)]),s[98]||(s[98]=i("div",{class:"audio-more-menu__divider"},null,-1)),i("button",{class:"audio-more-menu__item",onClick:s[11]||(s[11]=p=>{rt.value=!rt.value,fe.value=!1})},[h(za,{size:16}),w(" "+d(t.$t("find_and_replace")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[12]||(s[12]=p=>{Mt.value=!0,fe.value=!1})},[h(Ga,{size:16}),w(" "+d(t.$t("filters")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[13]||(s[13]=p=>{_n(),fe.value=!1})},[h(Yi,{size:16}),w(" "+d(t.$t("move_to_folder")),1)]),i("button",{class:"audio-more-menu__item",onClick:s[14]||(s[14]=p=>{gn(),fe.value=!1})},[(o(),W(At(Sl()?_s:fa),{size:16})),w(" "+d(Sl()?t.$t("remove_starred"):t.$t("set_as_starred")),1)]),s[99]||(s[99]=i("div",{class:"audio-more-menu__divider"},null,-1)),i("button",{class:"audio-more-menu__item audio-more-menu__item--danger",onClick:s[15]||(s[15]=p=>{mn(),fe.value=!1})},[h(Ca,{size:16}),w(" "+d(t.$t("delete")),1)])])):k("",!0)])])):k("",!0)]),_:1})]),_:1}),f.value==null?(o(),r("div",rh,[gl.value?(o(),r("div",uh,[i("div",dh,d(gl.value),1),i("div",ch,d(t.$t("audio_not_found_or_unauthorized_help")),1),h(S,{color:"primary",shape:"rounded-pill",class:"audio-error__action",onClick:ti},{default:_(()=>[w(d(t.$t("back_to_home")),1)]),_:1})])):(o(),W(Qp,{key:1}))])):(o(),r("div",ph,[i("div",{class:"col-a",style:X({width:e.value})},[h(b(ms),{class:ke(["full-height-card",g.value?"":"hidden-col"])},{default:_(()=>[h(b(_a),null,{default:_(()=>[g.value&&oe.value?(o(),r(P,{key:0},[i("span",{class:"tool-breadcrumb__back",onClick:s[16]||(s[16]=p=>oe.value=null)},d(t.$t("toolkit")),1),s[101]||(s[101]=i("span",{class:"tool-breadcrumb__separator"},">",-1)),i("span",hh,d(oe.value.custom_name||pt(oe.value.toolkit)||t.$t("note")),1)],64)):g.value?(o(),r("span",gh,d(t.$t("toolkit")),1)):k("",!0),oe.value?k("",!0):(o(),W(ve,{key:2,icon:br,onClick:j,style:X({marginLeft:g.value?"auto":""})},null,8,["style"]))]),_:1}),h(vs,null,{default:_(()=>[g.value&&oe.value?(o(),r("div",vh,[i("div",mh,[i("span",fh,d(b(al).dateTimeToStringFull(oe.value.started_at||oe.value.created_at)),1),oe.value.status==="processing"?(o(),r("span",_h,[h(U,{size:"sm"}),w(" "+d(oe.value.progress_percentage)+"% ",1)])):k("",!0),oe.value.status==="failed"?(o(),r("span",kh,d(t.$t("failed")),1)):k("",!0)]),Yt.value?(o(),r(P,{key:1},[i("div",Ch,[i("label",wh,d(t.$t("name")),1),h(b(lt),{modelValue:Ve.value.custom_name,"onUpdate:modelValue":s[20]||(s[20]=p=>Ve.value.custom_name=p)},null,8,["modelValue"])]),i("div",xh,[i("label",Sh,d(t.$t("content")),1),h(b(tt),{modelValue:Ve.value.note_content,"onUpdate:modelValue":s[21]||(s[21]=p=>Ve.value.note_content=p),style:{flex:"1",resize:"none"}},null,8,["modelValue"])]),oe.value.status==="failed"?(o(),r("div",Lh,d(t.$t("unexpected_error")),1)):k("",!0),i("div",zh,[h(S,{color:"primary",size:"sm",shape:"rounded-pill",onClick:bi,disabled:Jl.value},{default:_(()=>[w(d(t.$t("save")),1)]),_:1},8,["disabled"]),h(S,{size:"sm",shape:"rounded-pill",variant:"outline",onClick:s[22]||(s[22]=p=>Yt.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})])],64)):(o(),r(P,{key:0}
60,[i("div",{class:"tool-detail__content",innerHTML:Es.value},null,8,yh),oe.value.status==="failed"?(o(),r("div",bh,d(t.$t("unexpected_error")),1)):k("",!0),i("div",$h,[h(ve,{icon:xa,tooltip:t.$t("back"),"icon-size":18,height:30,onClick:s[17]||(s[17]=p=>oe.value=null),style:{"margin-right":"auto"}},null,8,["tooltip"]),h(ve,{icon:Hl,tooltip:t.$t("edit"),"icon-size":18,height:30,onClick:s[18]||(s[18]=p=>Yt.value=!0)},null,8,["tooltip"]),h(ve,{icon:wa,tooltip:Cl.value==="copy"?t.$t("copied"):t.$t("copy"),"icon-size":18,height:30,onClick:_i},null,8,["tooltip"]),h(ve,{icon:Hu,tooltip:Cl.value==="copy_without_format"?t.$t("copied"):t.$t("copy_without_format"),"icon-size":18,height:30,onClick:ki},null,8,["tooltip"]),h(ve,{icon:Ma,tooltip:t.$t("archive"),"icon-size":18,height:30,onClick:s[19]||(s[19]=p=>{ia(oe.value.uuid),oe.value=null})},null,8,["tooltip"])])],64))])):g.value?(o(),r("div",Mh,[I.value?(o(),r("div",Vh,d(t.$t("loading"))+"... ",1)):(o(),r("div",Th,[(o(!0),r(P,null,re($l.value,p=>(o(),r(P,{key:p},[Ie(p)?(o(),r("div",{key:0,class:"tool-btn",onClick:B=>ui(p),style:X({backgroundColor:us(Ie(p)),color:ll(Ie(p))})},[(o(),W(At(sl(Ie(p))),{class:"tool-btn__icon",size:et()},null,8,["size"])),i("div",Hh,d(pt(Ie(p))),1)],12,Ah)):k("",!0)],64))),128)),i("div",{class:"tool-btn",onClick:s[23]||(s[23]=p=>Qt.value=!0)},[h(Nr,{class:"tool-btn__icon",size:et()},null,8,["size"]),i("div",Ih,d(t.$t("more")),1)])])),i("div",Rh,[i("span",null,d(t.$t("toolkit_history")),1),i("button",{class:"tool-log-title__archive-btn",onClick:s[24]||(s[24]=p=>vi()),title:t.$t("archived")},[h(Ma,{size:16})],8,Bh)]),i("div",Ph,[x.value?(o(),r("div",Fh,[h(U)])):m.value.length===0?(o(),r("div",Eh,[h(ro,{size:36}),i("div",Dh,d(t.$t("toolkit_record_empty")),1)])):(o(),r("div",Nh,[(o(!0),r(P,null,re(m.value,p=>(o(),r("div",{key:p.uuid,class:ke(["tool-record",{"tool-record--disabled":p.status==="processing"||p.status==="pending","tool-record--no-click":p.toolkit?.toolkit_type==="translation"}]),onClick:B=>p.status!=="processing"&&p.status!=="pending"&&p.toolkit?.toolkit_type!=="translation"&&yi(p)},[i("div",Zh,[(o(),W(At(sl(p.toolkit)),{class:"tool-record__icon",style:X({color:ll(p.toolkit)}),size:et()},null,8,["style","size"])),i("div",qh,[i("span",Oh,[p.custom_name?(o(),r("label",Gh,d(p.custom_name),1)):p.toolkit?(o(),r("label",Wh,d(pt(p.toolkit)),1)):(o(),r("label",jh,d(t.$t("note")),1))]),i("span",Qh,d(b(al).dateTimeToStringFull(p.started_at||p.created_at)),1)]),p.status==="processing"?(o(),r("div",Xh,[h(U,{size:"sm"})])):k("",!0),h(gs,{alignment:"end",popper:"",style:{"margin-left":"auto"},onClick:s[25]||(s[25]=ye(()=>{},["stop"])),class:"tool-record__dropdown"},{default:_(()=>[h(se,{size:"sm",caret:!1,class:"tool-record__dropdown-toggle"},{default:_(()=>[h(Sa,{size:14})]),_:1}),h(We,{style:{padding:"0"}},{default:_(()=>[h(ge,{component:"button",onClick:B=>ia(p.uuid)},{default:_(()=>[w(d(t.$t("archive")),1)]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),p.status==="processing"?(o(),r("div",Kh,[i("div",{class:"tool-record__progress-bar",style:X({width:p.progress_percentage+"%"})},null,4)])):k("",!0),p.status==="failed"?(o(),r("div",Yh,d(t.$t("unexpected_error")),1)):k("",!0)],10,Uh))),128))]))])])):k("",!0)]),_:1})]),_:1},8,["class"])],4),i("div",{class:"col-b",style:X({width:u.value})},[h(b(ms),{class:"full-height-card"},{default:_(()=>[h(vs,null,{default:_(()=>[i("div",Jh,[i("div",null,[h(Ji,{status:f.value.status},null,8,["status"]),f.value.status==="no_credit"?(o(),W(Mi,{key:0,onClick:bn,size:"sm",color:"warning",style:{"margin-left":"4px",color:"white"},loading:Ae.value,disabled:Ae.value},{default:_(()=>[w(d(t.$t("re_submit")),1)]),_:1},8,["loading","disabled"])):k("",!0)]),f.value.transcript_at!=null&&f.value.limited_seconds!=null&&f.value.limited_seconds>0?(o(),r("div",eg,[h(S,{color:$e.value?"warning":"secondary",shape:"rounded-pill",onClick:Ns,class:"transcribe-remaining-button"},{default:_(()=>[w(d(t.$t("transcribe_remaining_x_minutes",{x:wl()})),1)]),_:1},8,["color"])])):k("",!0),i("div",tg,[Me.value?(o(),r(P,{key:0},[h(S,{color:"primary",shape:"rounded-pill",size:"sm",onClick:Vn},{default:_(()=>[w(d(t.$t("done_editing")),1)]),_:1}),h(S,{color:"light",shape:"rounded-pill",size:"sm",onClick:Ln},{default:_(()=>[h(Va,{size:16,style:{"margin-right":"4px"}}),w(" "+d(t.$t("add_segment")),1)]),_:1})],64)):(o(),r("div",lg,[h(Il,{name:b(al).dateTimeToStringFull(f.value.created_at),class:"audio-info",icon:Wi},null,8,["name"]),h(Il,{name:b(kt).formattedTime(f.value.length_seconds),class:"audio-info",icon:ji},null,8,["name"]),h(Il,{name:b(rl).getLanguageByValue(f.value.language),class:"audio-info",icon:Ki},null,8,["name"]),f.value.translated_language!==""?(o(),W(Il,{key:0,name:Ds(f.value.translated_language),class:"audio-info",icon:Da},null,8,["name"])):k("",!0)])),f.value&&!Me.value?(o(),r("div",{key:2,ref_key:"combineFilterRef",ref:Kl,style:{"margin-left":"auto"}},[h(ve,{onClick:An,icon:_d,height:30,"icon-size":18,text:ut.value>0?ut.value+"s":"-",class:ke(["audio-top-tool-btn",ut.value>0?"audio-button-active":""])},null,8,["text","class"]),(o(),W(fs,{to:"body"},[dt.value?(o(),r("div",{key:0,class:"combine-dropdown__backdrop",onClick:s[26]||(s[26]=p=>dt.value=!1)})):k("",!0),dt.value?(o(),r("div",{key:1,class:"combine-dropdown",style:X(Bs.value)},[(o(),r(P,null,re(rn,p=>i("div",{key:p,class:ke(["combine-dropdown__item",ut.value===p?"combine-dropdown__item--active":""]),onClick:B=>Hn(p)},d(p===0?"--":p+"s"),11,sg)),64))],4)):k("",!0)]))],512)):k("",!0),f.value?(o(),r("div",{key:3,class:"speaker-filter",ref_key:"speakerFilterRef",ref:Te,style:X(Me.value?"margin-left: auto":"")},[h(ve,{onClick:In,icon:ya,height:30,"icon-size":18,text:t.$t("x_speakers",{x:Li.value}),class:"audio-top-tool-btn"},null,8,["text"]),(o(),W(fs,{to:"body"},[Je.value&&!Jt.value?(o(),r("div",{key:0,class:"speaker-dropdown__backdrop",onClick:s[27]||(s[27]=p=>Je.value=!1)})):k("",!0),Je.value?(o(),r("div",{key:1,class:"speaker-dropdown",style:X(qs.value)},[i("div",ag,[i("div",ng,d(t.$t("manage_speakers")),1)]),i("div",ig,[(o(!0),r(P,null,re(D.value,p=>(o(),r("div",{class:"speaker-item",key:p.key},[i("div",{class:"speaker-item__color-dot",style:X({background:xl(p.key)})},null,4),i("div",og,[(o(),r("input",{class:"speaker-item__name editable-input",key:p.key,value:ht(p.key),style:X({color:xl(p.key)}),onChange:B=>$n(p,B.target.value)},null,44,rg)),i("div",ug,d(t.$t("segments_count",{x:da.value[p.key]||0})),1)])]))),128))]),i("button",{class:"speaker-dropdown__add",onClick:Cn}," + "+d(t.$t("add_speaker")),1),Jt.value?(o(),r("div",dg,[he(i("input",{"onUpdate:modelValue":s[28]||(s[28]=p=>gt.value=p),class:"speaker-dropdown__add-input",placeholder:t.$t("add_speaker")+"...",onKeyup:It(Us,["enter"])},null,40,cg),[[Re,gt.value]]),i("div",pg,[h(S,{color:"light",size:"sm",shape:"rounded-pill",onClick:s[29]||(s[29]=p=>Jt.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1}),h(S,{color:"primary",size:"sm",shape:"rounded-pill",onClick:Us,disabled:!gt.value.trim()},{default:_(()=>[w(d(t.$t("add_speaker")),1)]),_:1},8,["disabled"])])])):k("",!0)],4)):k("",!0)]))],4)):k("",!0)]),i("div",{class:ke(["result-wrapper",Me.value?"edit-mode":""])},[Me.value?(o(),r("div",hg,d(t.$t("edit_mode")),1)):k("",!0),i("div",{class:ke(["result st-card scrollable-card-body",Tl.value?"export-mode":""])},[Tl.value?(o(),r("div",gg,[i("div",vg,d(t.$t("export_preview")),1)])):k("",!0),Tl.value?(o(),r("div",mg,[ot.value==="audio"?(o(),r("div",fg,d(t.$t("no_preview")),1)):(o(),r("div",_g,[i("div",{class:ke(cs.value?"limited":"")},d(b(kt).genResult(f.value,$e.value,D.value,cs.value,b(nl),Nt.value,Hs.value,ot.value,As.value,on.value,Zl.value)),3),ds.value?(o(),r("div",kg,[h(ba,{"remaining-minutes":wl(),"limited-minutes":b(nl),onClick:s[30]||(s[30]=()=>Ut.value=!0)},null,8,["remaining-minutes","limited-minutes"])])):k("",!0),i("a",yg,[cs.value?(o(),r("div",bg,d(t.$t("unlock_pro_feature")),1)):k("",!0)])]))])):f.value.transcript_at==null||f.value.status!=="done"?(o(),W(Qi,{key:2,style:{border:"none"}})):vl.value&&ie.value.length===0?(o(),r("div",$g,[h(U)])):ie.value.length===0&&!ua.value?(o(),r("div",Cg,[i("div",wg,d(t.$t("no_speech")),1)])):ie.value.length===0&&ua.value?(o(),r("div",xg,[i("div",Sg,d(t.$t("no_matching_segments")),1)])):(o(),r("div",Lg,[ut.value>0&&!Me.value&&!Ne.value&&!(ze.value&&Ue.value>0)?(o(!0),r(P,{key:0},re(Ul.value,p=>(o(),r("div",{key:p.id,class:ke(["segment",Pt(p)])},[i("div",zg,[i("div",{onClick:ye(B=>sa(p.start),["stop"]),class:"segment__time-clickable grey-background"},d(b(kt).formattedTime(p.start)),9,Mg)]),i("div",Vg,[i("div",Tg,[i("div",{class:"segment__name segment__name--button",style:X({color:xl(p.speaker)}),onClick:B=>Gs(p.segments[0].id)},d(ht(p.speaker)),13,Ag),s[102]||(s[102]=i("label",{style:{"margin-left":"auto"}},null,-1)),p.segments.some(B=>tl(B))?(o(),W(La,{key:0,class:"bookmark-icon-on",size:18,onClick:B=>
60Xs(p.segments.find(Ai=>tl(Ai)),"bookmark")},null,8,["onClick"])):(o(),W(ks,{key:1,class:"bookmark-icon-off",size:18,onClick:B=>Qs(p.segments[0],"bookmark")},null,8,["onClick"]))]),i("div",Hg,[ca.value?(o(),r("div",Ig,d(p.segments.map(B=>B.custom_text===""?B.text:B.custom_text).join(" ")),1)):k("",!0),pa.value&&ps.value&&p.segments.some(B=>B.translated_text!=="")?(o(),r("div",Rg,d(p.segments.map(B=>B.translated_text).filter(B=>B!=="").join(" ")),1)):k("",!0)])])],2))),128)):(o(!0),r(P,{key:1},re(ie.value,p=>(o(),r("div",{key:p.id,class:ke(["segment",st(p)]),onClick:B=>Ne.value&&Ks(p.id)},[Ne.value?(o(),r("div",{key:0,class:"segment__checkbox",onClick:ye(B=>Ks(p.id),["stop"])},[ce.value.has(p.id)?(o(),W(Du,{key:0,size:20,class:"segment__checkbox-icon segment__checkbox-icon--checked"})):(o(),W(Wu,{key:1,size:20,class:"segment__checkbox-icon"}))],8,Pg)):k("",!0),i("div",Fg,[i("div",{onClick:ye(B=>sa(p.start),["stop"]),class:"segment__time-clickable grey-background"},d(b(kt).formattedTime(p.start)),9,Eg)]),i("div",Dg,[
60i("div",Ng,[Gl.value!==p.id?(o(),r("div",{key:0,class:"segment__name segment__name--button",style:X({color:xl(p.speaker)}),onClick:B=>Gs(p.id)},d(ht(p.speaker)),13,Ug)):(o(),r("select",{key:1,class:"segment__speaker-select grey-background",value:p.speaker,ref_for:!0,ref:B=>Le(B,p.id),onChange:B=>Rn(p,B.target.value),onBlur:as},[(o(!0),r(P,null,re(D.value,B=>(o(),r("option",{key:B.key,value:B.key},d(ht(B.key)),9,qg))),128))],40,Zg)),s[103]||(s[103]=i("label",{style:{"margin-left":"auto"}},null,-1)),tl(p)?(o(),W(La,{key:2,class:"bookmark-icon-on",size:18,onClick:B=>Xs(p,"bookmark")},null,8,["onClick"])):(o(),W(ks,{key:3,class:"bookmark-icon-off",size:18,onClick:B=>Qs(p,"bookmark")},null,8,["onClick"]))]),i("div",Og,[ca.value?(o(),r(P,{key:0},[ze.value&&Ue.value>0?(o(),r("div",{key:0,class:"segment__text-highlight","data-find-idx":He.value,innerHTML:Wn(p)},null,8,Gg)):Me.value?(o(),r("textarea",{key:1,id:"segment-textarea-"+p.id,ref_for:!0,ref:B=>Ft(B,p.id),value:p.custom_text===""?p.text:p.custom_text,style:{width:"100%"},class:"editable-input segment__textarea",onInput:B=>{Xn(p,B.target.value),wt(B.target)},onChange:B=>Kn(p,B.target.value)},null,40,Wg)):(o(),r("div",{key:2,class:"segment__text-readonly",id:"segment-textarea-"+p.id},d(p.custom_text===""?p.text:p.custom_text),9,jg))],64)):k("",!0),pa.value&&ps.value&&p.translated_text!==""?(o(),r("div",Qg,d(p.translated_text),1)):k("",!0)])])],10,Bg))),128)),h(Bl,{name:"slide-up"},{default:_(()=>[Ne.value?(o(),r("div",Xg,[i("div",Kg,[i("span",Yg,d(t.$t("x_selected",{x:Ll.value})),1),i("button",{class:"select-action-bar__link",onClick:s[31]||(s[31]=p=>Ys.value?En():Fn())},d(Ys.value?t.$t("deselect_all"):t.$t("select_all")),1)]),i("div",Jg,[i("button",{class:"select-action-bar__btn",onClick:Dn,title:t.$t("copy")},[h(wa,{size:18})],8,ev),i("button",{class:"select-action-bar__btn",onClick:Un,title:t.$t("bookmarked")},[h(ks,{size:18})],8,tv),i("div",lv,[i("button",{class:"select-action-bar__btn",onClick:s[32]||(s[32]=p=>qt.value=!qt.value),title:t.$t("change_speaker")},[h(ya,{size:18})],8,sv),qt.value?(o(),r("div",av,[(o(!0),r(P,null,re(D.value,p=>(o(),r("button",{key:p.key,class:"select-action-bar__speaker-item",onClick:B=>Nn(p.key)},d(ht(p.key)),9,nv))),128))])):k("",!0)]),i("button",{class:"select-action-bar__btn",onClick:s[33]||(s[33]=p=>Ot.value=!0),title:t.$t("merge_segments"),disabled:Ll.value<2},[h(Aa,{size:18,style:{transform:"rotate(90deg)"}})],8,iv),i("button",{class:"select-action-bar__btn select-action-bar__btn--danger",onClick:s[34]||(s[34]=p=>Lt.value=!0),title:t.$t("delete")},[h(Ca,{size:18})],8,ov)]),i("button",{class:"select-action-bar__close",onClick:ns},[h(ka,{size:18})])])):k("",!0)]),_:1}),h(b(xe),{visible:Lt.value,onClose:s[36]||(s[36]=p=>Lt.value=!1),alignment:"center"},{default:_(()=>[h(b(Se),{style:{"text-align":"center",padding:"24px"}},{default:_(()=>[i("p",null,d(t.$t("delete_segments_confirm",{x:Ll.value})),1),i("div",rv,[h(S,{color:"secondary",shape:"rounded-pill",onClick:s[35]||(s[35]=p=>Lt.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1}),h(S,{color:"danger",shape:"rounded-pill",onClick:Zn},{default:_(()=>[w(d(t.$t("delete")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:Ot.value,onClose:s[39]||(s[39]=p=>Ot.value=!1),alignment:"center"},{default:_(()=>[h(b(Se),{style:{padding:"24px"}},{default:_(()=>[i("div",uv,d(t.$t("merge_segments_confirm",{x:Ll.value})),1),i("p",dv,d(t.$t("merge_segments_warning")),1),i("div",cv,[h(S,{color:"secondary",shape:"rounded-pill",onClick:s[37]||(s[37]=p=>Ot.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1}),h(S,{color:"primary",shape:"rounded-pill",onClick:s[38]||(s[38]=p=>{Ot.value=!1,qn()})},{default:_(()=>[w(d(t.$t("merge_segments")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]),h(Bl,{name:"slide-up"},{default:_(()=>[Wl.value?(o(),r("div",pv,d(t.$t("copied_to_clipboard")),1)):k("",!0)]),_:1}),(o(),W(fs,{to:"body"},[rt.value?(o(),r("div",{key:0,class:"find-replace-dialog",style:X(fl.value||Xl.value?{left:_l.value.x+"px",top:_l.value.y+"px"}:{right:"24px",top:"120px"})},[i("div",{class:"find-replace-dialog__header",onMousedown:Qn},[i("span",hv,d(t.$t("find_and_replace")),1),i("button",{class:"find-replace-dialog__close",onClick:jn},[h(ka,{size:16})])],32),i("div",gv,[i("div",vv,[he(i("input",{"onUpdate:modelValue":s[40]||(s[40]=p=>ze.value=p),placeholder:t.$t("find")+"...",class:"find-replace-dialog__input",onKeyup:is},null,40,mv),[[Re,ze.value]]),ze.value?(o(),r("span",fv,d(t.$t("x_of_x",{current:He.value,total:Ue.value})),1)):k("",!0),i("button",{class:"find-replace-dialog__nav-btn",onClick:Gn,disabled:Ue.value===0},[h(Di,{size:16})],8,_v),i("button",{class:"find-replace-dialog__nav-btn",onClick:On,disabled:Ue.value===0},[h(Ni,{size:16})],8,kv)]),i("div",yv,[he(i("input",{"onUpdate:modelValue":s[41]||(s[41]=p=>ml.value=p),placeholder:t.$t("replace_with")+"...",class:"find-replace-dialog__input",onKeyup:It(ea,["enter"])},null,40,bv),[[Re,ml.value]]),i("button",{class:"find-replace-dialog__action-btn",onClick:ea,disabled:Ue.value===0},d(t.$t("replace_all")),9,$v)]),i("div",Cv,[i("label",wv,[he(i("input",{type:"checkbox","onUpdate:modelValue":s[42]||(s[42]=p=>Gt.value=p),onChange:is},null,544),[[Ui,Gt.value]]),w(" "+d(t.$t("match_case")),1)]),zt.value?(o(),r("span",xv,d(zt.value),1)):k("",!0)])])],4)):k("",!0)])),f.value.limited_seconds>0||ds.value?(o(),r("div",Sv,[s[104]||(s[104]=i("div",{class:"dotdotdot"},"...",-1)),$e.value&&f.value.limited_seconds>0?(o(),W(S,{key:0,color:$e.value?"warning":"secondary",shape:"rounded-pill",onClick:Ns,class:"transcribe-remaining-button"},{default:_(()=>[w(d(t.$t("transcribe_remaining_x_minutes",{x:wl()})),1)]),_:1},8,["color"])):k("",!0),$e.value?k("",!0):(o(),W(ba,{key:1,"remaining-minutes":wl(),"limited-minutes":b(nl),onClick:s[43]||(s[43]=()=>Ut.value=!0)},null,8,["remaining-minutes","limited-minutes"])),$e.value?k("",!0):(o(),W(S,{key:2,onClick:es,color:"warning",shape:"rounded-pill",class:"transcribe-remaining-button",style:{width:"100%","margin-top":"12px","margin-bottom":"24px"}},{default:_(()=>[w(d(t.$t("upgrade")),1)]),_:1}))])):k("",!0),vl.value?(o(),r("div",Lv,[h(U,{size:"sm"}
60)])):k("",!0)]))],2)],2)])]),_:1}),h(b(Zi),null,{default:_(()=>[i("div",zv,[at.value?(o(),r("div",Mv,d(t.$t("converting_to_audio"))+"... ",1)):pl.value===""?(o(),r("div",Vv,[i("div",Tv,d(t.$t("loading_audio"))+"... ",1)])):(o(),r("div",Av,[Tl.value?k("",!0):(o(),W(Yc,{key:0,ref_key:"audioPlayer",ref:be,"audio-list":Ye.value,customDuration:Dt.value,isScrollLocked:b(z).scrollLock,onToggleSegmentScrollLock:s[44]||(s[44]=()=>b(z).toggleSegmentScrollLock()),onToggleFilter:s[45]||(s[45]=()=>Mt.value=!Mt.value),showPrevButton:!1,showNextButton:!1,"show-volume-button":!1,"show-play-loading":!1,onTimeupdate:Yn,isLoop:!1},null,8,["audio-list","customDuration","isScrollLocked"]))]))])]),_:1})]),_:1})],4),i("div",{class:"col-c",style:X({width:n.value})},[h(b(ms),{class:ke(["full-height-card",c.value?"":"hidden-col"])},{default:_(()=>[h(b(_a),null,{default:_(()=>[h(ve,{icon:zr,onClick:Q,class:"expand-btn"}),c.value?(o(),r("span",Hv,d(t.$t("chat")),1)):k("",!0)]),_:1}),h(vs,null,{default:_(()=>[h(Cp,{style:X({visibility:c.value?"visible":"hidden"}),rate:Ke.value?.rate,"audio-id":f.value.id,"is-col-c-on":c.value,"chat-usage":L.value?.chat,disabled:f.value.status!=="done",onUsageChanged:Vl},null,8,["style","rate","audio-id","is-col-c-on","chat-usage","disabled"])]),_:1})]),_:1},8,["class"]),i("div",null,[i("div",{style:{position:"fixed"},ref_key:"right_menu",ref:q},[b(z).segmentReplace?(o(),r("div",Iv,[i("div",null,d(t.$t("replace")),1),i("div",Rv,[h(b(lt),{placeholder:t.$t("find")},null,8,["placeholder"]),i("label",null,d(t.$t("x_of_x",{current:"1",total:"10"})),1)]),h(b(lt),{placeholder:t.$t("replace_with")},null,8,["placeholder"]),h(S,{onClick:s[46]||(s[46]=p=>Ws(575))},{default:_(()=>[w(d(t.$t("next")),1)]),_:1}),h(S,null,{default:_(()=>[w(d(t.$t("previous")),1)]),_:1}),h(S,null,{default:_(()=>[w(d(t.$t("replace")),1)]),_:1}),h(S,null,{default:_(()=>[w(d(t.$t("replace_all")),1)]),_:1})])):b(z).segmentFilter?(o(),r("div",Bv,[h(Ea,{speakers:D.value,tags:ee.value,onUpdateFilterSpeaker:ls,onUpdateFilterTag:ss},null,8,["speakers","tags"])])):b(z).audioSummary?(o(),r("div",Pv,[h(C1,{"summary-result":f.value.summary,"audio-id":f.value.id,length_seconds:f.value.length_seconds,onSummaryUploaded:kn},null,8,["summary-result","audio-id","length_seconds"])])):b(z).audioTranslate?(o(),r("div",Fv,[h(qp,{"audio-id":f.value.id,length_seconds:f.value.length_seconds,onTranslated:yn},null,8,["audio-id","length_seconds"])])):b(z).audioMessages?(o(),r("div",Ev,[h(O1,{rate:Ke.value.message,"audio-id":f.value.id},null,8,["rate","audio-id"])])):k("",!0)],512)])],4)]))]),h(b(xe),{alignment:"center",size:"xl",visible:$.value,onClose:s[48]||(s[48]=()=>{$.value=!1})},{default:_(()=>[h(b(Se),null,{default:_(()=>[h(eo,{selectedAudioIds:[f.value.id],translated:f.value.translated_language!=="","show-preview":!0,"audio-only":f.value.status!=="done","audio-cloud-storage-path":f.value.cloud_storage_path||"","audio-name":f.value.name||"",onCancelClick:s[47]||(s[47]=()=>$.value=!1)},null,8,["selectedAudioIds","translated","audio-only","audio-cloud-storage-path","audio-name"])]),_:1})]),_:1},8,["visible"]),hs.value?(o(),r("div",Dv,[h(b(xe),{alignment:"center",visible:b(z).segmentFilter,backdrop:!0,onClose:s[49]||(s[49]=()=>{b(z).toggleSegmentFilter()})},{default:_(()=>[h(b(Se),null,{default:_(()=>[h(Ea,{speakers:D.value,tags:ee.value,onUpdateFilterSpeaker:ls,onUpdateFilterTag:ss},null,8,["speakers","tags"])]),_:1})]),_:1},8,["visible"])])):k("",!0),h(b(xe),{visible:nt.value,onClose:s[51]||(s[51]=()=>nt.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("are_you_sure_to_delete")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[w(d(t.$t("delete_audios_move_to_bin"))+" "+d(t.$t("bin_audio_x_days",{x:30})),1)]),_:1}),h(b(Pe),null,{default:_(()=>[h(S,{color:"danger",onClick:fn,shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("delete")),1)]),_:1}),h(S,{onClick:s[50]||(s[50]=()=>nt.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:Zt.value,onClose:s[53]||(s[53]=()=>Zt.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("upgrade_plan_to_transcribe")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[w(d(t.$t("only_paid_user_can_use")),1)]),_:1}),h(b(Pe),null,{default:_(()=>[h(S,{onClick:es,color:"warning",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("upgrade")),1)]),_:1}),h(S,{onClick:s[52]||(s[52]=()=>Zt.value=!1),color:"light",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(Xi,{visible:Ut.value,onClose:s[54]||(s[54]=()=>Ut.value=!1)},null,8,["visible"]),f.value?(o(),W(r1,{key:1,visible:ql.value,onClose:s[55]||(s[55]=()=>ql.value=!1),"selected-audio-ids":[f.value.id],"current-folder-id":f.value.folder?.id??null,onMoved:hn},null,8,["visible","selected-audio-ids","current-folder-id"])):k("",!0),h(b(xe),{visible:hl.value,onClose:s[56]||(s[56]=()=>hl.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("audio_info")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[f.value?(o(),r("div",Nv,[i("div",Uv,[i("span",Zv,d(t.$t("created_at")),1),i("span",null,d(b(al).dateTimeToStringFull(f.value.created_at)),1)]),i("div",qv,[i("span",Ov,d(t.$t("audio_length")),1),i("span",null,d(b(kt).formattedTime(f.value.length_seconds)),1)]),i("div",Gv,[i("span",Wv,d(t.$t("speakers")),1),i("span",null,d(D.value.length),1)]),i("div",jv,[i("span",Qv,d(t.$t("language")),1),i("span",null,d(b(rl).getLanguageByValue(f.value.language)),1)]),i("div",Xv,[i("span",Kv,d(t.$t("translated_language")),1),i("span",null,d(f.value.translated_language!==""?Ds(f.value.translated_language):"-"),1)]),f.value.youtube_url!==""?(o(),r("div",Yv,[i("span",Jv,d(t.$t("youtube_link")),1),i("a",{class:"audio-info-dialog__value audio-info-dialog__value--link",href:f.value.youtube_url,target:"_blank",rel:"noopener"}
60,d(f.value.youtube_url),9,em)])):k("",!0)])):k("",!0)]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:Ol.value,onClose:s[58]||(s[58]=()=>Ol.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("summary")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[w(d(t.$t("only_paid_user_can_use")),1)]),_:1}),h(b(Pe),null,{default:_(()=>[h(S,{onClick:es,color:"warning",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("upgrade")),1)]),_:1}),h(S,{onClick:s[57]||(s[57]=()=>Ol.value=!1),color:"light",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:jt.value,onClose:s[62]||(s[62]=()=>jt.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("create_note")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[i("div",tm,[i("label",lm,d(t.$t("note_name")),1),h(b(lt),{modelValue:pe.value.custom_name,"onUpdate:modelValue":s[59]||(s[59]=p=>pe.value.custom_name=p),placeholder:t.$t("please_enter_name")},null,8,["modelValue","placeholder"])]),i("div",null,[i("label",sm,d(t.$t("note_content")),1),h(b(tt),{modelValue:pe.value.note_content,"onUpdate:modelValue":s[60]||(s[60]=p=>pe.value.note_content=p),placeholder:t.$t("please_enter_content"),rows:"8"},null,8,["modelValue","placeholder"])])]),_:1}),h(b(Pe),null,{default:_(()=>[h(S,{onClick:$i,color:"primary",shape:"rounded-pill",disabled:!pe.value.custom_name.trim()},{default:_(()=>[w(d(t.$t("create")),1)]),_:1},8,["disabled"]),h(S,{onClick:s[61]||(s[61]=()=>jt.value=!1),color:"light",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:kl.value,onClose:s[66]||(s[66]=()=>kl.value=!1),alignment:"center"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("edit")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[i("div",am,[i("label",nm,d(t.$t("name")),1),h(b(lt),{modelValue:pe.value.custom_name,"onUpdate:modelValue":s[63]||(s[63]=p=>pe.value.custom_name=p),placeholder:t.$t("please_enter_name")},null,8,["modelValue","placeholder"])]),i("div",null,[i("label",im,d(t.$t("content")),1),h(b(tt),{modelValue:pe.value.note_content,"onUpdate:modelValue":s[64]||(s[64]=p=>pe.value.note_content=p),placeholder:t.$t("please_enter_content"),rows:"8"},null,8,["modelValue","placeholder"])])]),_:1}),h(b(Pe),null,{default:_(()=>[h(S,{onClick:Ci,color:"primary",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("save")),1)]),_:1}),h(S,{onClick:s[65]||(s[65]=()=>kl.value=!1),color:"light",shape:"rounded-pill"},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:Qt.value,onClose:Ml,alignment:"center",scrollable:"",size:"lg"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[Ge.value?(o(),r(P,{key:0},[i("span",{class:"tool-breadcrumb__back",onClick:s[67]||(s[67]=p=>Ge.value=!1)},d(Fs.value),1),s[105]||(s[105]=i("span",{class:"tool-breadcrumb__separator"},">",-1)),i("span",null,d(t.$t("edit")),1)],64)):Oe.value?(o(),r(P,{key:1},[i("span",{class:"tool-breadcrumb__back",onClick:s[68]||(s[68]=p=>Oe.value=!1)},d(t.$t("toolkit")),1),s[106]||(s[106]=i("span",{class:"tool-breadcrumb__separator"},">",-1)),i("span",null,d(t.$t("custom_toolkit")),1)],64)):ct.value?(o(),r(P,{key:2},[i("span",{class:"tool-breadcrumb__back",onClick:s[69]||(s[69]=p=>ct.value=!1)},d(t.$t("toolkit")),1),s[107]||(s[107]=i("span",{class:"tool-breadcrumb__separator"},">",-1)),i("span",null,d(t.$t("archived")),1)],64)):le.value?(o(),r(P,{key:3},[i("span",{class:"tool-breadcrumb__back",onClick:ni},d(t.$t("toolkit")),1),s[108]||(s[108]=i("span",{class:"tool-breadcrumb__separator"},">",-1)),i("span",null,d(Fs.value),1),le.value?.toolkit_type==="custom"?(o(),r("span",om,"("+d(t.$t("custom_toolkit"))+")",1)):k("",!0)],64)):(o(),r(P,{key:4},[w(d(t.$t("toolkit")),1)],64))]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[!le.value&&!ct.value&&!Oe.value?(o(),r(P,{key:0},[I.value?(o(),r("div",rm,[h(U,{size:"sm"}),w(" "+d(t.$t("loading"))+"... ",1)])):(o(),r(P,{key:1},[$l.value.length>0?(o(),r("div",um,[i("div",dm,d(t.$t("favorites")),1),i("div",cm,[(o(!0),r(P,null,re($l.value,p=>(o(),r(P,{key:p},[Ie(p)?(o(),r("div",pm,[i("div",{class:"tool-btn",onClick:B=>
60le.value=Ie(p),style:X({backgroundColor:us(Ie(p)),color:ll(Ie(p))})},[(o(),W(At(sl(Ie(p))),{class:"tool-btn__icon",size:et()},null,8,["size"])),i("div",gm,d(pt(Ie(p))),1)],12,hm),i("button",{class:"tool-btn-star tool-btn-star--active",onClick:ye(B=>Ps(p),["stop"])},[h(_s,{size:14})],8,vm)])):k("",!0)],64))),128))])])):k("",!0),i("div",mm,[i("div",fm,[i("div",_m,d(t.$t("tools")),1),s[109]||(s[109]=i("div",{class:"toolkit-dialog__section-actions"},null,-1))]),i("div",km,[(o(!0),r(P,null,re(T.value,p=>(o(),r(P,{key:p.id},[un(String(p.id))?k("",!0):(o(),r("div",ym,[i("div",{class:ke(["tool-btn",{"tool-btn--disabled":F.value}]),style:X({backgroundColor:us(p),color:ll(p)}),onClick:B=>le.value=p},[(o(),W(At(sl(p)),{class:"tool-btn__icon",size:et()},null,8,["size"])),i("div",$m,d(pt(p)),1)],14,bm),i("button",{class:"tool-btn-star",onClick:ye(B=>Ps(String(p.id)),["stop"])},[h(fa,{size:14})],8,Cm)]))],64))),128)),i("div",{class:"tool-btn",onClick:ii},[h(jr,{class:"tool-btn__icon",size:et()},null,8,["size"]),i("div",wm,d(t.$t("create_note")),1)]),i("div",{class:"tool-btn",onClick:s[70]||(s[70]=p=>Oe.value=!0)},[h(Va,{class:"tool-btn__icon",size:et()},null,8,["size"]),i("div",xm,d(t.$t("custom_toolkit")),1)])])])],64))],64)):Oe.value?(o(),r(P,{key:1},[i("div",Sm,[i("label",Lm,d(t.$t("name")),1),h(b(lt),{modelValue:_e.value.name,"onUpdate:modelValue":s[71]||(s[71]=p=>_e.value.name=p),placeholder:t.$t("toolkit_name_placeholder")},null,8,["modelValue","placeholder"])]),i("div",zm,[i("label",Mm,d(t.$t("description")),1),h(b(tt),{modelValue:_e.value.description,"onUpdate:modelValue":s[72]||(s[72]=p=>_e.value.description=p),placeholder:t.$t("description"),rows:"2"},null,8,["modelValue","placeholder"])]),i("div",Vm,[i("label",Tm,d(t.$t("prompt_template")),1),h(b(tt),{modelValue:_e.value.prompt_template,"onUpdate:modelValue":s[73]||(s[73]=p=>_e.value.prompt_template=p),placeholder:t.$t("prompt_template_placeholder"),rows:"6"},null,8,["modelValue","placeholder"])])],64)):ct.value?(o(),r(P,{key:2},[Yl.value?(o(),r("div",Am,[h(U,{size:"sm"})])):Kt.value.length===0?(o(),r("div",Hm,d(t.$t("no_archived_records")),1)):(o(),r("div",Im,[(o(!0),r(P,null,re(Kt.value,p=>(o(),r("div",{key:p.uuid,class:"tool-record"},[i("div",Rm,[(o(),W(At(sl(p.toolkit)),{class:"tool-btn__icon",style:X({color:ll(p.toolkit)}),size:et()},null,8,["style","size"])),i("div",Bm,[i("span",Pm,d(p.custom_name||p.toolkit?.name||t.$t("note")),1),i("span",Fm,d(b(al).dateTimeToStringFull(p.started_at||p.created_at)),1)]),h(S,{color:"light",size:"sm",style:{"margin-left":"auto"},onClick:B=>fi(p.uuid)},{default:_(()=>[h(ou,{size:14,style:{"margin-right":"4px"}}),w(" "+d(t.$t("unarchive")),1)]),_:1},8,["onClick"])])]))),128))]))],64)):Ge.value?(o(),r(P,{key:3},[i("div",Em,[i("label",Dm,d(t.$t("name")),1),h(b(lt),{modelValue:we.value.name,"onUpdate:modelValue":s[74]||(s[74]=p=>we.value.name=p),placeholder:t.$t("toolkit_name_placeholder")},null,8,["modelValue","placeholder"])]),i("div",Nm,[i("label",Um,d(t.$t("description")),1),h(b(tt),{modelValue:we.value.description,"onUpdate:modelValue":s[75]||(s[75]=p=>we.value.description=p),placeholder:t.$t("description"),rows:"2"},null,8,["modelValue","placeholder"])]),i("div",Zm,[i("label",qm,d(t.$t("prompt_template")),1),h(b(tt),{modelValue:we.value.prompt_template,"onUpdate:modelValue":s[76]||(s[76]=p=>we.value.prompt_template=p),placeholder:t.$t("prompt_template_placeholder"),rows:"6"},null,8,["modelValue","placeholder"])])],64)):(o(),r(P,{key:4},[le.value?.description?(o(),r("div",Om,[i("label",Gm,d(t.$t("description")),1),i("div",Wm,d(dn(le.value)),1)])):k("",!0),le.value?.toolkit_type==="custom"&&le.value?.prompt_template?(o(),r("div",jm,[i("label",Qm,d(t.$t("prompt_template")),1),i("div",Xm,d(le.value.prompt_template),1)])):k("",!0),i("div",Km,[i("label",Ym,d(t.$t("language")),1),h(Vi,{modelValue:Vt.value,"onUpdate:modelValue":s[77]||(s[77]=p=>Vt.value=p)},{default:_(()=>[le.value?.toolkit_type!=="translation"?(o(),r("option",Jm,d(t.$t("according_content_language")),1)):(o(),r("option",ef,d(t.$t("please_select_language")),1)),(o(!0),r(P,null,re(b(rl).LANGUAGES.filter(p=>p.value!==""),p=>(o(),r("option",{key:p.value,value:p.value},d(p.text),9,tf))),128))]),_:1},8,["modelValue"])]),le.value?.toolkit_type!=="translation"?(o(),r("div",lf,[i("label",sf,d(t.$t("toolkit_topic_prompt")),1),h(b(tt),{modelValue:Xt.value,"onUpdate:modelValue":s[78]||(s[78]=p=>Xt.value=p),placeholder:t.$t("toolkit_topic_placeholder"),rows:"4"},null,8,["modelValue","placeholder"])])):k("",!0),L.value?(o(),r("div",af,[L.value.toolkit.credits_per_use===-1?(o(),r("div",nf,[i("div",of,d(t.$t("toolkit_usage_remaining",{remaining:0,limit:L.value.toolkit.free_limit})),1),i("div",rf,[w(d(t.$t("toolkit_usage_limit_reached_text"))+" ",1),h(ga,{to:"/plan",class:"usage-upgrade-link"},{default:_(()=>[w(d(t.$t("upgrade_now")),1)]),_:1})])])):(o(),r(P,{key:1},[i("div",uf,[w(d(t.$t("toolkit_usage_remaining",{remaining:L.value.toolkit.free_remaining,limit:L.value.toolkit.free_limit}))+" ",1),h(Ti,{content:"",trigger:"click",placement:"top"},{toggler:_(({id:p,on:B})=>[i("button",G({class:"usage-help-btn","aria-describedby":p},qa(B,!0)),[h(Oa,{size:16})],16,df)]),content:_(()=>[i("div",cf,[i("div",pf,d(t.$t("usage_limit_info_title")),1),$e.value?k("",!0):(o(),r("div",hf,[i("span",gf,d(t.$t("free_plan")),1
60),i("span",null,d(t.$t("usage_toolkit_free_plan",{limit:L.value?.chat.free_limit})),1)])),i("div",vf,[i("span",mf,d(t.$t("paid_plan")),1),i("span",null,d(t.$t("usage_toolkit_paid_plan",{limit:L.value?.toolkit.free_limit,minutes:Math.ceil((L.value?.toolkit.over_limit_credits??0)/60)})),1)]),$e.value?k("",!0):(o(),r("div",ff,[h(ga,{to:"/plan",class:"usage-help-popover__link"},{default:_(()=>[w(d(t.$t("upgrade_now")),1)]),_:1})]))])]),_:1})]),L.value.toolkit.credits_per_use>0?(o(),r("div",_f,d(t.$t("toolkit_usage_minutes",{minutes:Math.ceil(L.value.toolkit.credits_per_use/60)})),1)):k("",!0)],64))])):k("",!0)],64))]),_:1}),Oe.value?(o(),W(b(Pe),{key:0},{default:_(()=>[h(S,{color:"primary",shape:"rounded-pill",disabled:yl.value||!_e.value.name.trim()||!_e.value.prompt_template.trim(),onClick:pi},{default:_(()=>[yl.value?(o(),W(U,{key:0,size:"sm",style:{"margin-right":"4px"}})):k("",!0),w(" "+d(t.$t("create")),1)]),_:1},8,["disabled"]),h(S,{color:"light",shape:"rounded-pill",onClick:s[79]||(s[79]=p=>Oe.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})):Ge.value?(o(),W(b(Pe),{key:1},{default:_(()=>[h(S,{color:"primary",shape:"rounded-pill",disabled:bl.value||!we.value.name.trim()||!we.value.prompt_template.trim(),onClick:gi},{default:_(()=>[bl.value?(o(),W(U,{key:0,size:"sm",style:{"margin-right":"4px"}})):k("",!0),w(" "+d(t.$t("save")),1)]),_:1},8,["disabled"]),h(S,{color:"light",shape:"rounded-pill",onClick:s[80]||(s[80]=p=>Ge.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})):le.value&&!ct.value?(o(),W(b(Pe),{key:2},{default:_(()=>[le.value?.toolkit_type==="custom"?(o(),W(S,{key:0,color:"light",shape:"rounded-pill",onClick:hi,style:{"margin-right":"auto"}},{default:_(()=>[h(Hl,{size:16,style:{"margin-right":"4px"}}),w(" "+d(t.$t("edit")),1)]),_:1})):k("",!0),f.value?.status!=="done"?(o(),r("div",kf,d(t.$t("toolkit_audio_not_ready")),1)):k("",!0),h(S,{color:"primary",shape:"rounded-pill",disabled:F.value||le.value?.toolkit_type==="translation"&&!Vt.value||L.value?.toolkit.credits_per_use===-1||f.value?.status!=="done",onClick:di},{default:_(()=>[w(d(L.value?.toolkit.credits_per_use&&L.value.toolkit.credits_per_use>0?t.$t("execute_with_credits",{credits:L.value.toolkit.credits_per_use/60}):t.$t("execute")),1)]),_:1},8,["disabled"]),h(S,{color:"light",shape:"rounded-pill",onClick:Ml},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1})]),_:1})):k("",!0)]),_:1},8,["visible"]),h(b(xe),{visible:Mt.value,onClose:s[84]||(s[84]=p=>Mt.value=!1),alignment:"center",size:"sm"},{default:_(()=>[h(b(Se),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("filter")),1)]),_:1}),i("div",yf,d(t.$t("display_content")),1),i("label",bf,[i("input",{type:"checkbox",checked:xt.value,onChange:s[81]||(s[81]=p=>xt.value=p.target.checked)},null,40,$f),i("span",null,d(t.$t("original_language")),1)]),ps.value?(o(),r("label",Cf,[i("input",{type:"checkbox",checked:St.value,onChange:s[82]||(s[82]=p=>St.value=p.target.checked)},null,40,wf),i("span",null,d(t.$t("translated_language")),1)])):k("",!0),i("div",xf,d(t.$t("tags")),1),i("label",Sf,[i("input",{type:"checkbox",checked:ha.value,onChange:Sn},null,40,Lf),i("span",null,d(t.$t("bookmarked")),1)]),i("div",zf,d(t.$t("x_speakers",{x:D.value.length})),1),(o(!0),r(P,null,re(D.value,p=>(o(),r("label",{key:p.key,class:"filter-dialog__checkbox-item"},[i("input",{type:"checkbox",checked:p.is_show,onChange:B=>ls(p,B.target.checked)},null,40,Mf),i("span",Vf,d(ht(p.key)),1),i("span",Tf,d(da.value[p.key]||0),1)]))),128))]),_:1}),h(b(Pe),{class:"filter-dialog__footer"},{default:_(()=>[h(S,{color:"light",shape:"rounded-pill",size:"sm",onClick:Tn},{default:_(()=>[w(d(t.$t("reset")),1)]),_:1}),h(S,{color:"primary",shape:"rounded-pill",size:"sm",onClick:s[83]||(s[83]=p=>Mt.value=!1),style:{"margin-left":"auto"}},{default:_(()=>[w(d(t.$t("done")),1)]),_:1})]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:el.value,onClose:s[87]||(s[87]=p=>el.value=!1),alignment:"center",size:"sm"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("rename")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[he(i("input",{"onUpdate:modelValue":s[85]||(s[85]=p=>Tt.value=p),class:"rename-dialog__input",placeholder:t.$t("untitled"),onKeyup:It(Zs,["enter"])},null,40,Af),[[Re,Tt.value]])]),_:1}),h(b(Pe),{style:{display:"flex","justify-content":"flex-end",gap:"8px"}},{default:_(()=>[h(S,{color:"light",shape:"rounded-pill",size:"sm",onClick:s[86]||(s[86]=p=>el.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1}),h(S,{color:"primary",shape:"rounded-pill",size:"sm",onClick:Zs,disabled:!Tt.value.trim()},{default:_(()=>[w(d(t.$t("done")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["visible"]),h(b(xe),{visible:Wt.value,onClose:s[97]||(s[97]=p=>Wt.value=!1),alignment:"center",size:"sm"},{default:_(()=>[h(b(je),null,{default:_(()=>[h(b(Ze),null,{default:_(()=>[w(d(t.$t("add_segment")),1)]),_:1})]),_:1}),h(b(Se),null,{default:_(()=>[i("div",Hf,[i("div",If,[i("label",Rf,d(t.$t("start_time"))+" (HH:MM:SS)",1),i("div",Bf,[he(i("input",{type:"number","onUpdate:modelValue":s[88]||(s[88]=
60p=>ne.value.startH=p),min:"0",max:"99",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.startH,void 0,{number:!0}]]),s[110]||(s[110]=i("span",{class:"add-segment-form__time-sep"},":",-1)),he(i("input",{type:"number","onUpdate:modelValue":s[89]||(s[89]=p=>ne.value.startM=p),min:"0",max:"59",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.startM,void 0,{number:!0}]]),s[111]||(s[111]=i("span",{class:"add-segment-form__time-sep"},":",-1)),he(i("input",{type:"number","onUpdate:modelValue":s[90]||(s[90]=p=>ne.value.startS=p),min:"0",max:"59",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.startS,void 0,{number:!0}]])])]),i("div",Pf,[i("label",Ff,d(t.$t("end_time"))+" (HH:MM:SS)",1),i("div",Ef,[he(i("input",{type:"number","onUpdate:modelValue":s[91]||(s[91]=p=>ne.value.endH=p),min:"0",max:"99",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.endH,void 0,{number:!0}]]),s[112]||(s[112]=i("span",{class:"add-segment-form__time-sep"},":",-1)),he(i("input",{type:"number","onUpdate:modelValue":s[92]||(s[92]=p=>ne.value.endM=p),min:"0",max:"59",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.endM,void 0,{number:!0}]]),s[113]||(s[113]=i("span",{class:"add-segment-form__time-sep"},":",-1)),he(i("input",{type:"number","onUpdate:modelValue":s[93]||(s[93]=p=>ne.value.endS=p),min:"0",max:"59",class:"add-segment-form__time-input",placeholder:"00"},null,512),[[Re,ne.value.endS,void 0,{number:!0}]])])]),i("div",Df,[i("label",Nf,d(t.$t("speaker")),1),he(i("select",{"onUpdate:modelValue":s[94]||(s[94]=p=>ne.value.speaker=p),class:"add-segment-form__select"},[(o(!0),r(P,null,re(D.value,p=>(o(),r("option",{key:p.key,value:p.key},d(ht(p.key)),9,Uf))),128))],512),[[qi,ne.value.speaker]])]),i("div",Zf,[i("label",qf,d(t.$t("content")),1),he(i("textarea",{"onUpdate:modelValue":s[95]||(s[95]=p=>ne.value.content=p),class:"add-segment-form__textarea",rows:"4",placeholder:t.$t("please_enter_content")},null,8,Of),[[Re,ne.value.content]])])])]),_:1}),h(b(Pe),{style:{display:"flex","justify-content":"flex-end",gap:"8px"}},{default:_(()=>[h(S,{color:"light",shape:"rounded-pill",size:"sm",onClick:s[96]||(s[96]=p=>Wt.value=!1)},{default:_(()=>[w(d(t.$t("cancel")),1)]),_:1}),h(S,{color:"primary",shape:"rounded-pill",size:"sm",onClick:zn,disabled:!ne.value.content},{default:_(()=>[w(d(t.$t("add_segment")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["visible"])],64)}}}),t_=Z(Gf,[["__scopeId","data-v-e7af5620"]]);export{t_ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.