import{aI as Ve,bq as oe,g as He,H as Ge,aQ as We,J as qe,r as ae,az as ze,L as Ee,aL as Xe,F as le,G as k,X as C,S as G,Z as Se,Q,R as ne,bP as Je,E as ue,a0 as j,am as ie,ao as se,bQ as Ke}from"./index-2efe4620.js";import{b as Qe,M as Ye}from"./index.esm-75698fae.js";import{N as Pe}from"./Input-4816b01d.js";var Ue={exports:{}};(function(e){(function(t){var n=V(),r=ce(),o=A(),a=L(),s={imagePlaceholder:void 0,cacheBust:!1},i={toSvg:g,toPng:f,toJpeg:P,toBlob:x,toPixelData:h,impl:{fontFaces:o,images:a,util:n,inliner:r,options:{}}};e.exports=i;function g(l,c){return c=c||{},T(c),Promise.resolve(l).then(function(p){return Y(p,c.filter,!0)}).then(Z).then(te).then(m).then(function(p){return N(p,c.width||n.width(l),c.height||n.height(l))});function m(p){return c.bgcolor&&(p.style.backgroundColor=c.bgcolor),c.width&&(p.style.width=c.width+"px"),c.height&&(p.style.height=c.height+"px"),c.style&&Object.keys(c.style).forEach(function(b){p.style[b]=c.style[b]}),p}}function h(l,c){return J(l,c||{}).then(function(m){return m.getContext("2d").getImageData(0,0,n.width(l),n.height(l)).data})}function f(l,c){return J(l,c||{}).then(function(m){return m.toDataURL()})}function P(l,c){return c=c||{},J(l,c).then(function(m){return m.toDataURL("image/jpeg",c.quality||1)})}function x(l,c){return J(l,c||{}).then(n.canvasToBlob)}function T(l){typeof l.imagePlaceholder>"u"?i.impl.options.imagePlaceholder=s.imagePlaceholder:i.impl.options.imagePlaceholder=l.imagePlaceholder,typeof l.cacheBust>"u"?i.impl.options.cacheBust=s.cacheBust:i.impl.options.cacheBust=l.cacheBust}function J(l,c){return g(l,c).then(n.makeImage).then(n.delay(100)).then(function(p){var b=m(l);return b.getContext("2d").drawImage(p,0,0),b});function m(p){var b=document.createElement("canvas");if(b.width=c.width||n.width(p),b.height=c.height||n.height(p),c.bgcolor){var y=b.getContext("2d");y.fillStyle=c.bgcolor,y.fillRect(0,0,b.width,b.height)}return b}}function Y(l,c,m){if(!m&&c&&!c(l))return Promise.resolve();return Promise.resolve(l).then(p).then(function(d){return b(l,d,c)}).then(function(d){return y(l,d)});function p(d){return d instanceof HTMLCanvasElement?n.makeImage(d.toDataURL()):d.cloneNode(!1)}function b(d,w,_){var B=d.childNodes;if(B.length===0)return Promise.resolve(w);return R(w,n.asArray(B),_).then(function(){return w});function R(ee,$,I){var F=Promise.resolve();return $.forEach(function(K){F=F.then(function(){return Y(K,I)}).then(function(O){O&&ee.appendChild(O)})}),F}}function y(d,w){if(!(w instanceof Element))return w;return Promise.resolve().then(_).then(B).then(R).then(ee).then(function(){return w});function _(){$(window.getComputedStyle(d),w.style);function $(I,F){I.cssText?F.cssText=I.cssText:K(I,F);function K(O,W){n.asArray(O).forEach(function(u){W.setProperty(u,O.getPropertyValue(u),O.getPropertyPriority(u))})}}}function B(){[":before",":after"].forEach(function(I){$(I)});function $(I){var F=window.getComputedStyle(d,I),K=F.getPropertyValue("content");if(K===""||K==="none")return;var O=n.uid();w.className=w.className+" "+O;var W=document.createElement("style");W.appendChild(u(O,I,F)),w.appendChild(W);function u(v,S,E){var U="."+v+":"+S,H=E.cssText?ge(E):pe(E);return document.createTextNode(U+"{"+H+"}");function ge(q){var z=q.getPropertyValue("content");return q.cssText+" content: "+z+";"}function pe(q){return n.asArray(q).map(z).join("; ")+";";function z(re){return re+": "+q.getPropertyValue(re)+(q.getPropertyPriority(re)?" !important":"")}}}}}function R(){d instanceof HTMLTextAreaElement&&(w.innerHTML=d.value),d instanceof HTMLInputElement&&w.setAttribute("value",d.value)}function ee(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function($){var I=w.getAttribute($);I&&w.style.setProperty($,I)}))}}}function Z(l){return o.resolveAll().then(function(c){var m=document.createElement("style");return l.appendChild(m),m.appendChild(document.createTextNode(c)),l})}function te(l){return a.inlineAll(l).then(function(){return l})}function N(l,c,m){return Promise.resolve(l).then(function(p){return p.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(p)}).then(n.escapeXhtml).then(function(p){return''+p+""}).then(function(p){return'"}).then(function(p){return"data:image/svg+xml;charset=utf-8,"+p})}function V(){return{escape:ee,parseExtension:c,mimeType:m,dataAsUrl:R,isDataUrl:p,canvasToBlob:y,resolveUrl:d,getAndEncode:B,uid:w(),delay:$,asArray:I,escapeXhtml:F,makeImage:_,width:K,height:O};function l(){var u="application/font-woff",v="image/jpeg";return{woff:u,woff2:u,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:v,jpeg:v,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function c(u){var v=/\.([^\.\/]*?)$/g.exec(u);return v?v[1]:""}function m(u){var v=c(u).toLowerCase();return l()[v]||""}function p(u){return u.search(/^(data:)/)!==-1}function b(u){return new Promise(function(v){for(var S=window.atob(u.toDataURL().split(",")[1]),E=S.length,U=new Uint8Array(E),H=0;H"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\uFEFF",h],{type:h.type}):h}function r(h,f,P){var x=new XMLHttpRequest;x.open("GET",h),x.responseType="blob",x.onload=function(){g(x.response,f,P)},x.onerror=function(){console.error("could not download file")},x.send()}function o(h){var f=new XMLHttpRequest;f.open("HEAD",h,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function a(h){try{h.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(f)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof oe=="object"&&oe.global===oe?oe:void 0,i=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(h,f,P){var x=s.URL||s.webkitURL,T=document.createElement("a");f=f||h.name||"download",T.download=f,T.rel="noopener",typeof h=="string"?(T.href=h,T.origin===location.origin?a(T):o(T.href)?r(h,f,P):a(T,T.target="_blank")):(T.href=x.createObjectURL(h),setTimeout(function(){x.revokeObjectURL(T.href)},4e4),setTimeout(function(){a(T)},0))}:"msSaveOrOpenBlob"in navigator?function(h,f,P){if(f=f||h.name||"download",typeof h!="string")navigator.msSaveOrOpenBlob(n(h,P),f);else if(o(h))r(h,f,P);else{var x=document.createElement("a");x.href=h,x.target="_blank",setTimeout(function(){a(x)})}}:function(h,f,P,x){if(x=x||open("","_blank"),x&&(x.document.title=x.document.body.innerText="downloading..."),typeof h=="string")return r(h,f,P);var T=h.type==="application/octet-stream",J=/constructor/i.test(s.HTMLElement)||s.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||T&&J||i)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var V=Z.result;V=Y?V:V.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=V:location=V,x=null},Z.readAsDataURL(h)}else{var te=s.URL||s.webkitURL,N=te.createObjectURL(h);x?x.location=N:location.href=N,x=null,setTimeout(function(){te.revokeObjectURL(N)},4e4)}});s.saveAs=g.saveAs=g,e.exports=g})})(De);var we=De.exports;function et(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const tt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function X(e){const t=[];for(let n=0,r=e.length;nM||e.height>M)&&(e.width>M&&e.height>M?e.width>e.height?(e.height*=M/e.width,e.width=M):(e.width*=M/e.height,e.height=M):e.width>M?(e.height*=M/e.width,e.width=M):(e.width*=M/e.height,e.height=M))}function de(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function it(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function st(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),it(o)}const D=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||D(n,t)};function ct(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function lt(e){return X(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function ut(e,t,n){const r=`.${e}:${t}`,o=n.cssText?ct(n):lt(n);return document.createTextNode(`${r}{${o}}`)}function Re(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const a=tt();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(ut(a,n,r)),t.appendChild(s)}function ft(e,t){Re(e,t,":before"),Re(e,t,":after")}const Ce="application/font-woff",Te="image/jpeg",ht={woff:Ce,woff2:Ce,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Te,jpeg:Te,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function dt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function be(e){const t=dt(e).toLowerCase();return ht[t]||""}function mt(e){return e.split(/,/)[1]}function ve(e){return e.search(/^(data:)/)!==-1}function Me(e,t){return`data:${t};base64,${e}`}async function Be(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((a,s)=>{const i=new FileReader;i.onerror=s,i.onloadend=()=>{try{a(n({res:r,result:i.result}))}catch(g){s(g)}},i.readAsDataURL(o)})}const ye={};function gt(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function xe(e,t,n){const r=gt(e,t,n.includeQueryParams);if(ye[r]!=null)return ye[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const a=await Be(e,n.fetchRequestInit,({res:s,result:i})=>(t||(t=s.headers.get("Content-Type")||""),mt(i)));o=Me(a,t)}catch(a){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return ye[r]=o,o}async function pt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):de(t)}async function wt(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const i=a.toDataURL();return de(i)}const n=e.poster,r=be(n),o=await xe(n,r,t);return de(o)}async function yt(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await me(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function vt(e,t){return D(e,HTMLCanvasElement)?pt(e):D(e,HTMLVideoElement)?wt(e,t):D(e,HTMLIFrameElement)?yt(e):e.cloneNode(!1)}const bt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function xt(e,t,n){var r,o;let a=[];return bt(e)&&e.assignedNodes?a=X(e.assignedNodes()):D(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=X(e.contentDocument.body.childNodes):a=X(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),a.length===0||D(e,HTMLVideoElement)||await a.reduce((s,i)=>s.then(()=>me(i,n)).then(g=>{g&&t.appendChild(g)}),Promise.resolve()),t}function Et(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):X(r).forEach(o=>{let a=r.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),D(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,r.getPropertyPriority(o))})}function St(e,t){D(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),D(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Pt(e,t){if(D(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function Rt(e,t){return D(t,Element)&&(Et(e,t),ft(e,t),St(e,t),Pt(e,t)),t}async function Ct(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;avt(r,t)).then(r=>xt(e,r,t)).then(r=>Rt(e,r)).then(r=>Ct(r,t))}const $e=/url\((['"]?)([^'"]+?)\1\)/g,Tt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,At=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Lt(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function It(e){const t=[];return e.replace($e,(n,r,o)=>(t.push(o),n)),t.filter(n=>!ve(n))}async function _t(e,t,n,r,o){try{const a=n?et(t,n):t,s=be(t);let i;if(o){const g=await o(a);i=Me(g,s)}else i=await xe(a,s,r);return e.replace(Lt(t),`$1${i}$3`)}catch{}return e}function Ut(e,{preferredFontFormat:t}){return t?e.replace(At,n=>{for(;;){const[r,,o]=Tt.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function Fe(e){return e.search($e)!==-1}async function Oe(e,t,n){if(!Fe(e))return e;const r=Ut(e,n);return It(r).reduce((a,s)=>a.then(i=>_t(i,s,t,n)),Promise.resolve(r))}async function fe(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const a=await Oe(o,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function Dt(e,t){await fe("background",e,t)||await fe("background-image",e,t),await fe("mask",e,t)||await fe("mask-image",e,t)}async function kt(e,t){const n=D(e,HTMLImageElement);if(!(n&&!ve(e.src))&&!(D(e,SVGImageElement)&&!ve(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await xe(r,be(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const i=e;i.decode&&(i.decode=a),i.loading==="lazy"&&(i.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function Mt(e,t){const r=X(e.childNodes).map(o=>je(o,t));await Promise.all(r).then(()=>e)}async function je(e,t){D(e,Element)&&(await Dt(e,t),await kt(e,t),await Mt(e,t))}function Bt(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const Ae={};async function Le(e){let t=Ae[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},Ae[e]=t,t}async function Ie(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let i=s.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),Be(i,t.fetchRequestInit,({result:g})=>(n=n.replace(s,`url(${g})`),[s,g]))});return Promise.all(a).then(()=>n)}function _e(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const g=o.exec(r);if(g===null)break;t.push(g[0])}r=r.replace(o,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",i=new RegExp(s,"gi");for(;;){let g=a.exec(r);if(g===null){if(g=i.exec(r),g===null)break;a.lastIndex=i.lastIndex}else i.lastIndex=a.lastIndex;t.push(g[0])}return t}async function $t(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{X(o.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let i=s+1;const g=a.href,h=Le(g).then(f=>Ie(f,t)).then(f=>_e(f).forEach(P=>{try{o.insertRule(P,P.startsWith("@import")?i+=1:o.cssRules.length)}catch(x){console.error("Error inserting rule from remote css",{rule:P,error:x})}})).catch(f=>{console.error("Error loading remote css",f.toString())});r.push(h)}})}catch(a){const s=e.find(i=>i.href==null)||document.styleSheets[0];o.href!=null&&r.push(Le(o.href).then(i=>Ie(i,t)).then(i=>_e(i).forEach(g=>{s.insertRule(g,o.cssRules.length)})).catch(i=>{console.error("Error loading remote stylesheet",i)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{X(o.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${o.href}`,a)}}),n))}function Ft(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Fe(t.style.getPropertyValue("src")))}async function Ot(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=X(e.ownerDocument.styleSheets),r=await $t(n,t);return Ft(r)}async function jt(e,t){const n=await Ot(e,t);return(await Promise.all(n.map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return Oe(o.cssText,a,t)}))).join(`
`)}async function Vt(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await jt(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function Ht(e,t={}){const{width:n,height:r}=ke(e,t),o=await me(e,t,!0);return await Vt(o,t),await je(o,t),Bt(o,t),await st(o,n,r)}async function Gt(e,t={}){const{width:n,height:r}=ke(e,t),o=await Ht(e,t),a=await de(o),s=document.createElement("canvas"),i=s.getContext("2d"),g=t.pixelRatio||ot(),h=t.canvasWidth||n,f=t.canvasHeight||r;return s.width=h*g,s.height=f*g,t.skipAutoScale||at(s),s.style.width=`${h}`,s.style.height=`${f}`,t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,s.width,s.height)),i.drawImage(a,0,0,s.width,s.height),s}async function Wt(e,t={}){return(await Gt(e,t)).toDataURL()}const qt={class:"flex grow flex-col sm:flex-row h-full"},zt={class:"sm:pt-4 box-border bg-[#fafbfc] dark:bg-[#18181c] overflow-y-auto w-full sm:w-[20rem] shrink-0 border-r-2 border-[#ffffff17] flex flex-col"},Xt={class:"flex-1 px-4 pb-2"},Jt={key:0,class:"flex items-center py-3"},Kt={class:"font-bold text-2xl"},Qt={class:"mb-2"},Yt={class:"flex my-4"},Zt={class:"flex justify-between mb-2"},Nt={class:"font-bold"},en={class:"py-3 bottom-0 border-t-2 border-[#00000014] w-full flex flex-col justify-center items-center"},tn={class:"items-start mb-2"},nn={class:"h-full flex-1 overflow-y-auto overflow-hidden min-h-[80vh] flex flex-col"},rn={key:0,class:"flex items-center p-5"},on={class:"font-bold text-2xl"},an={class:"flex-1 w-full p-4"},sn=`
# 会议流程
## 开场白
- 欢迎词
- 自我介绍
## 议程安排
- 介绍会议议程
- 确认议程是否被所有人接受
## 上一次会议的总结
- 回顾上次会议的议题及结果
- 确认上次会议的行动项是否已经完成
## 主题讨论
- 提出本次会议的主题
- 介绍主题相关背景信息
- 提出问题并进行讨论
- 形成共识或决策
## 行动项
- 确定行动项及责任人
- 确定完成时间和目标
## 公告和其他事项
- 公告即将到来的活动或项目
- 公告公司的其他事项
## 结束语
- 感谢所有人的参与
- 总结会议内容
- 确认下一次会议的时间和议题
`,cn=`# 如何高效使用AI助手
## 设定明确的使用目标
- 确定长期和短期的使用目标
- 细化目标为具体的任务和步骤
## 优化命令和提问方式
- 精确表达需求和期望结果
- 使用清晰和具体的命令提高回答准确度
- 减少不必要的交互
## 提高使用效率
- 避免重复或无关紧要的提问
- 明确询问信息的范围和深度
## 保持良好的使用习惯
- 学会灵活运用AI助手的多种功能
- 利用AI助手自动化日常任务和流程
## 持续学习和适应
- 了解AI助手的性能和限制
- 掌握AI助手的最新功能和更新
## 建立高效的交互模式
- 根据使用体验调整提问方式和任务分配
- 学会解读AI助手的回答,有效提取信息
- 合理安排AI助手的工作量
`,hn=He({__name:"index",setup(e){var ce;const t=Ge(),n=We(),r=qe(),o=(ce=t.globalConfig)==null?void 0:ce.mindDefaultData,a=ae(null),s=new Qe.Transformer,i=ae(!1),{isMobile:g}=ze(),h=ae(""),f=ae(),P=ae("");function x(){P.value=o||cn}Ee(()=>{setTimeout(()=>{x()},1e3)});let T;function J(){const A=new XMLSerializer().serializeToString(f.value),L=new Blob([A],{type:"image/svg+xml;charset=utf-8"});we.saveAs(L,"nineai-mind.svg")}async function Y(){const L=`
Markmap Export
${await Ne.toSvg(f.value)}
`,l=new Blob([L],{type:"text/html;charset=utf-8"});we.saveAs(l,"nineai-mind.html")}async function Z(){i.value=!0,P.value="";try{const A="";let L="";const l=()=>(P.value=L,i.value?!0:(P.value=L,!1)),c=setInterval(()=>{l()||clearInterval(c)},1e3);await(async()=>{let p=0;await Je({prompt:h.value,onDownloadProgress:({event:b})=>{const d=b.target.responseText,w=d.substring(p);p=d.length,w.trim().split(`
`).forEach(B=>{try{const R=JSON.parse(B);R.userBalance&&t.updateUserBalance(R.userBalance),R.text&&(L+=R.text)}catch(R){console.error("Error parsing JSON part:",R)}})}}),i.value=!1})()}catch(A){i.value=!1;const{code:L=500,message:l="好像出错了,请稍后再试!"}=A;if(L===429&&l.includes("balance has been exhausted"))return r.error("当前系统Key余额耗尽、请联系管理员补充!");if(L===500){let c=(A==null?void 0:A.message)??"好像出错了,请稍后再试!";c==="Request failed with status code 401"&&(c="非法操作、请先登录后再进行问答使用!"),r.error(c);return}if(A.code===402){r.error(A.message,{duration:5e3}),n.updateGoodsDialog(!0);return}r.error("出了点小错误、请稍后试试吧!")}finally{i.value=!1}}async function te(){const A=await Wt(f.value);we.saveAs(A,"markmap.png")}function N(){P.value=sn}const V=()=>{const{root:A}=s.transform(P.value);T.setData(A),T.fit()};return Ee(()=>{T=Ye.create(f.value),V()}),Xe(V),(A,L)=>(ue(),le("div",qt,[k("div",zt,[k("div",Xt,[C(g)?(ue(),le("header",Jt,[k("h2",Kt,G(C(j)("mindmap.title")),1)])):Se("",!0),k("h4",Qt,G(C(j)("mindmap.yourNeeds")),1),Q(C(Pe),{ref_key:"inputRef",ref:a,value:h.value,"onUpdate:value":L[0]||(L[0]=l=>h.value=l),type:"textarea",disabled:i.value,autosize:{minRows:3},placeholder:C(j)("mindmap.inputPlaceholder")},null,8,["value","disabled","placeholder"]),k("div",Yt,[Q(C(se),{type:"primary",size:"small",style:{width:"100%"},loading:i.value,onClick:Z},{default:ne(()=>[ie(G(C(j)("mindmap.generateMindMapButton")),1)]),_:1},8,["loading"])]),k("div",Zt,[k("h4",Nt,G(C(j)("mindmap.contentRequirements")),1),Q(C(se),{text:"",onClick:N},{default:ne(()=>[ie(G(C(j)("mindmap.tryDemoButton")),1)]),_:1})]),Q(C(Pe),{value:P.value,"onUpdate:value":L[1]||(L[1]=l=>P.value=l),type:"textarea",disabled:i.value,autosize:{minRows:8,maxRows:24},placeholder:"请用markdown语法输入您想要生成思维导图的内容或在上方使用描述让AI帮您完善!"},null,8,["value","disabled"])]),k("div",en,[k("div",tn,G(C(j)("mindmap.usageCredits")),1),k("div",null,[Q(C(Ke),{size:"small"},{default:ne(()=>[Q(C(se),{type:"primary",onClick:Y},{default:ne(()=>[ie(G(C(j)("mindmap.exportHTML")),1)]),_:1}),Q(C(se),{type:"primary",onClick:te},{default:ne(()=>[ie(G(C(j)("mindmap.exportPNG")),1)]),_:1}),Q(C(se),{type:"warning",onClick:J},{default:ne(()=>[ie(G(C(j)("mindmap.exportSVG")),1)]),_:1})]),_:1})])])]),k("div",nn,[C(g)?Se("",!0):(ue(),le("header",rn,[k("h2",on,G(C(j)("mindmap.title")),1)])),k("div",an,[(ue(),le("svg",{ref_key:"svgRef",ref:f,class:"box-border w-full h-full border rounded-md"},null,512))])])]))}});export{hn as default};